Jump to content
  • Advertisement
Sign in to follow this  
Mike.Popoloski

ID3D11DeviceContext::CSSetUnorderedAccessViews

This topic is 3396 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

I ran across this method for the first time today, and was wondering about the usage of the last parameter. The documentation and header seem to imply that it's an array of lengths, but if so what exactly are these lengths? Looking at the samples seems to tell a completely different story; I see these two usages:
pd3dImmediateContext->CSSetUnorderedAccessViews( 0, 1, &pUnorderedAccessView, (UINT*)&pUnorderedAccessView );

ID3D11UnorderedAccessView* ppUAViewNULL[1] = { NULL };
pd3dImmediateContext->CSSetUnorderedAccessViews( 0, 1, ppUAViewNULL, (UINT*)(&ppUAViewNULL) );

These seem quite confusing to me. What exactly is getting passed, and why?

Share this post


Link to post
Share on other sites
Advertisement
Well, I'm at a loss. It's not even a type that can safely take a pointer.

Share this post


Link to post
Share on other sites
The docs should be fixed for the next SDK release.

The 3rd parameter is an initial count offset that will be given to the corrisponding UAV with the COUNTER or APPEND flag set during creation. Other UAV's ignore this value. -1 can be used to keep the current count value associated with the UAV.

Share this post


Link to post
Share on other sites
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!