Jump to content

  • Log In with Google      Sign In   
  • Create Account

DirectX 11 Sampler States


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 James Leighe   Members   -  Reputation: 222

Like
0Likes
Like

Posted 12 September 2012 - 09:56 PM

The DX11 documentation mentions that 'CreateSamplerState' will return a handle to a current texture sampler state if the state you are trying to create is not unique.

My question is, if it returns a handle to a current sampler state, and I release it, does that invalidate everyone else's handles to that state?

Thanks!

Sponsor:

#2 MJP   Moderators   -  Reputation: 11761

Like
0Likes
Like

Posted 12 September 2012 - 10:17 PM

No. The sampler states are referenced counted (just like all COM objects), so it won't be deleted until everybody calls Release and the ref count goes to zero.




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