Jump to content
  • Advertisement
Sign in to follow this  
Infinisearch

[D3D12] Barriers and Fences

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

Can anyone explain fences and resource barriers to me in the simplest fashion possible?  I am not used to such constructs and want to be sure I get it right.

Share this post


Link to post
Share on other sites
Advertisement

Resource barrier are a way to tell the GPU that you are switching the resource state. You see on the GPU a Resource is just that a resource. It can be in many different states. So resource barrier just let you set the resource state you want it to be before modifying that state.

Share this post


Link to post
Share on other sites

Thanks guys, Hodgman's answer cleared up my doubt in regards to resource barriers.  Anyone wanna pseudo code an example for fences for me?  Greatly appreciated.

Share this post


Link to post
Share on other sites

Thank you Hodgman that clears it up for the most part, I was confused because I was misreading something in the docs.  Upon closer inspection I realized my mistake after I read your post which prompted the closer inspection. 

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!