Does anyone have a good design up their sleeve on how to best abstract vertex/input layouts?
I'm trying to figure out something that would work for DX9/11 and perhaps OpenGL. I had thought that I'd try go down the route that DX11 has and couple the layout with the vertex shader, but I'm unsure if I can get the input layout from the shader in DX9 to be able to create the equivalent VertexDeclaration. I can get information about the constants via reflection in DX9 but I don't think it can give me info on the input layout?
Abstracting Vertex/Input Layout
Does anyone have a good design up their sleeve on how to best abstract vertex/input layouts?
I'm trying to figure out something that would work for DX9/11 and perhaps OpenGL. I had thought that I'd try go down the route that DX11 has and couple the layout with the vertex shader, but I'm unsure if I can get the input layout from the shader in DX9 to be able to create the equivalent VertexDeclaration. I can get information about the constants via reflection in DX9 but I don't think it can give me info on the input layout?
D3DXGetShaderInputSemantics should give you the info that you need for DX9.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement