Class DXGI.SwapChain2
public class DXGI.SwapChain2 : DXGI.SwapChain1, IDisposable
- Inheritance
-
DXGI.SwapChain2
- Implements
- Inherited Members
Constructors
SwapChain2(void*)
public SwapChain2(void* ptr)
Parameters
ptrvoid*
Fields
IID
public static readonly Guid IID
Field Value
Methods
GetFrameLatencyWaitableObject()
Returns a waitable handle that becomes signaled when the swap chain is ready to accept a new frame (used for frame pacing).
public nint GetFrameLatencyWaitableObject()
Returns
Remarks
Requires the swap chain to be created with FrameLatencyWaitableObject. https://learn.microsoft.com/en-us/windows/win32/api/dxgi1_3/nf-dxgi1_3-idxgiswapchain2-getframelatencywaitableobject
SetMaximumFrameLatency(uint)
Limits the number of frames the swap chain can queue for rendering. Use 1 for tight "render once per frame" pacing.
public void SetMaximumFrameLatency(uint maxLatency)
Parameters
maxLatencyuint