Sign in to follow this  

vertex buffer and directx 11

Recommended Posts

I'm using dx 11.
You can always lock a VertexBuffer or IndexBuffer and read or write values to every summit or structure?
Even copying the subresource to somewhere else.
Relative to this, it is also 'possible to upload one or more Vertexes in a VertexBuffer without using the classical data structure (Eg sturct simplevertex {float position, float normal} etc ...) but with a memcpy or setting the float or int var in sequence (position/ normal / textcoord )etc. ... like a structure index?
Because I would like generate the buffer directly from the compiled vertex shader , with the information extracted at runtime and creating a vertex layout, without any structure declaration (at runtime I can not declare a structure).

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this