cbuffers lifetime in a pipeline
Members - Reputation: 176
Posted 17 March 2012 - 09:34 AM
A quick question I have is about how long is a lifetime of a constant buffer within a frame. Let's assume all my vertex shaders have the same set of constant buffers:
At the moment I naturally set the perObject cb with every object I draw, and perFrame with each new vertex shader I set to the pipeline. What I am wondering is, if my shaders have the the same layout , would the perFrame cb stay attached from one vertex shader to another?
Members - Reputation: 1401
Posted 17 March 2012 - 09:49 AM
Crossbones+ - Reputation: 10087
Posted 17 March 2012 - 10:17 AM
It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.