Jump to content

View more

Image of the Day

The beast has a mighty searchlight of evil! #screenshotsaturday https://t.co/bzKepOojDL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

DirectX 11 Sampler States

4: Adsense

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   

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!

#2 MJP   Moderators   

19484
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.