Jump to content

  • Log In with Google      Sign In   
  • Create Account


How does IASetVertexBuffers work?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 mrheisenberg   Members   -  Reputation: 356

Like
0Likes
Like

Posted 25 November 2012 - 02:19 PM

Ok this might sound weird,but I never actually read anywhere how exactly resources are handled between the CPU on a lower level.I mean - does the vertex buffer stay in the system memory and when you call "IASetVertexBuffers" get sent to the GPU each time or are all the buffers/textures/shaders/whatever loaded directly in the video memory and then just given small commands from the cpu for which resource to set up for rendering?

Sponsor:

#2 Jason Z   Crossbones+   -  Reputation: 4901

Like
1Likes
Like

Posted 25 November 2012 - 08:48 PM

That depends on the type of resource you have created and what options you used when creating it. Normally the resources will reside in GPU memory, and you are just given a CPU COM based reference that is used to identify it. So when you bind it to the pipeline somehow, it is actually not being transferred to the GPU - it is already there.

In other cases, you can create resources that are able to be manipulated by the CPU. Those resources are probably going to reside in system memory, but they typically can't be directly bound to the pipeline. These are just general ideas though, because the implementation is dependent on the driver.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS