[]
IDXGISwapChain2
[Guid("a8be2ac4-199f-4946-b331-79599fb98de7")]
public class SwapChain2 : SwapChain1, IDisposable, IUnknown
Initializes a new instance of the SwapChain2 class.
public SwapChain2(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
GetMatrixTransform / SetMatrixTransform
public Matrix3x2 MatrixTransform { get; set; }
Gets or sets the source region used for the swap chain.
public Size2L SourceSize { get; set; }
void* IDXGISwapChain2::GetFrameLatencyWaitableObject()
public IntPtr GetFrameLatencyWaitableObject()
HRESULT IDXGISwapChain2::GetMatrixTransform([Out] DXGI_MATRIX_3X2_F* pMatrix)
public void GetMatrixTransform(out Matrix3x2 matrixRef)
matrixRef
Matrix3x2HRESULT IDXGISwapChain2::GetMaximumFrameLatency([Out] unsigned int* pMaxLatency)
public int GetMaximumFrameLatency()
HRESULT IDXGISwapChain2::GetSourceSize([Out] unsigned int* pWidth,[Out] unsigned int* pHeight)
public void GetSourceSize(out int widthRef, out int heightRef)
widthRef
intheightRef
intHRESULT IDXGISwapChain2::SetMatrixTransform([In] const DXGI_MATRIX_3X2_F* pMatrix)
public void SetMatrixTransform(ref Matrix3x2 matrixRef)
matrixRef
Matrix3x2HRESULT IDXGISwapChain2::SetMaximumFrameLatency([In] unsigned int MaxLatency)
public void SetMaximumFrameLatency(int maxLatency)
maxLatency
intHRESULT IDXGISwapChain2::SetSourceSize([In] unsigned int Width,[In] unsigned int Height)
public void SetSourceSize(int width, int height)
width
intheight
intPerforms an explicit conversion from System.IntPtr to SwapChain2.
public static explicit operator SwapChain2(IntPtr nativePointer)
nativePointer
System.IntPtr