Jump to content
  • Advertisement
Sign in to follow this  
giugio

vertex buffer and directx 11

This topic is 2791 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!