struct Vertex
{
float Position[3];
float Color[4];
float TextCoords[2];
float TexId;
};
static std::array<Vertex, 4> CreateQuad(float x, float y) {
Vertex v;
v.Position = { 0.0f,0.0f,0.0f };
}
this gives me error that the v must modifiable ivalue. and and the too many initializer value.
Vertex v{};
would achieve the goal – M.M