Jump to content
Posted 24 February 2012 - 11:10 AM
Posted 24 February 2012 - 11:20 AM
Posted 24 February 2012 - 11:28 AM
Posted 24 February 2012 - 12:04 PM
Posted 24 February 2012 - 12:20 PM
to set the state back to the default, you can just pass NULL as the parameter. the application should set the state to whatever it needs before it draws it's stuff though. it's possible it set the state during initialization time, so that when you change the state, it never goes back to the state that was set in the initialization of the scene.
Posted 24 February 2012 - 12:34 PM
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.
Posted 24 February 2012 - 03:47 PM
I haven't benchmarked the use of such a Get call, but I would expect that all you're doing is getting a handle to the object from the runtime (rather than reading back data from the GPU) so it should be OK.
With D3D11 I'd create a deferred context, record my stuff in a command list, then play it back and destroy the context. FinishCommandList can be told to save and restore the previous states for you, so you won't need to worry about any of that.
Posted 24 February 2012 - 11:55 PM