Share via


DisplayFence Class

Definition

Represents a fence object that can be used to synchronize rendering commands between Direct3D devices and a DisplayDevice object.

public ref class DisplayFence sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class DisplayFence final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class DisplayFence
Public NotInheritable Class DisplayFence
Inheritance
Object Platform::Object IInspectable DisplayFence
Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

A DisplayFence can be shared between Direct3D devices and a DisplayDevice using the IDisplayDeviceInterop native COM interface. The CreateSharedHandle method can create a shared NT handle for a DisplayFence created by a DisplayDevice, and the OpenSharedHandle method can be used to create a DisplayFence object from an existing Direct3D shared fence handle.

Applies to