Sign in to follow this  

vertex buffer and directx 11

This topic is 2574 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello.
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).
thanks.

Share this post


Link to post
Share on other sites

This topic is 2574 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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