My gut says no, but I hope it's wrong. I have this:
SVertexAttribute k[3] =
{
{ 0, 32, FLOAT3, false, POSITION, 0 },
{ 12, 32, FLOAT3, false, NORMAL, 0 },
{ 24, 32, FLOAT2, false, TEXTURE, 0 }
};
SStreamDescriptor s =
{
3,
k
};
I want something akin to this:
SStreamDescriptor s =
{
3,
{
{ 0, 32, FLOAT3, false, POSITION, 0 },
{ 12, 32, FLOAT3, false, NORMAL, 0 },
{ 24, 32, FLOAT2, false, TEXTURE, 0 }
}
};
Where:
struct SStreamDescriptor
{
size_t AttributeCount;
SVertexAttribute * Attributes;
};
struct SVertexAttribute
{
// it is POD, with enums, if it matters
};
Possible at all?