InputLayout handling
Posted
by
Kikaimaru
on Game Development
See other posts from Game Development
or by Kikaimaru
Published on 2012-06-29T20:07:30Z
Indexed on
2012/06/29
21:24 UTC
Read the original article
Hit count: 253
Where are you supposed to store InputLayout?
Suppose i have some basic structure like.
class Mesh
{
List<MeshPart> MeshParts
}
class MeshPart
{
Effect Effect;
VertexBufferBinding VertexBuffer;
...
}
Where should I store input layout?
It's a connection between vertex buffer and specific pass, i can live with just 1 pass but I still have diffferent techniques so i need at least an array with some connection to effecttechniques, but I would appriciate something not crazy like dictionary. I could also create wrapper for Effect and EffectTechnique, but there must be some normal solution.
© Game Development or respective owner