DisplayTask Class

Definition

Represents a set of operations that can be queued and executed atomically by display hardware.

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

Windows requirements

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

Methods

SetScanout(DisplayScanout)

Sets this DisplayTask to present content to a source using the parameters specified by a DisplayScanout when executed.

SetSignal(DisplayTaskSignalKind, DisplayFence)

Creates a fence as part of the presentation pipeline, which will be signaled at a specified point in time by the graphics scheduler. You can SetSignal multiple times to provide fences for multiple events for the primary buffer that's part of the current present.

The fence value that is signaled is the value that's returned from DisplayTaskPool.TryExecuteTask in the DisplayTaskResult.PresentId property (it's very probable that it will increase by 1 with each Present).

SetWait(DisplayFence, UInt64)

Sets the operations for this DisplayTask to occur once the specified GPU fence is signaled with the specified value.

Applies to