Sign in to follow this  
Shnoutz

Fence flags

Recommended Posts

Hi!

 

I can kind of guess what D3D12_FENCE_FLAG_SHARED_CROSS_ADAPTER is for but what is the use of D3D12_FENCE_FLAG_SHARED?

 

Is it used for fence shared across different queues?

 

Thanks.

Edited by Shnoutz

Share this post


Link to post
Share on other sites

A non-shared fence will fail ID3D12Device::CreateSharedHandle. A non-cross-adapter-shared fence will fail ID3D12Device::OpenSharedHandle if the device's adapter is different from the device which created that fence. So you only need the shared flag if you plan to go to a different device (e.g. cross-process).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this