[]
IDXGISurface
[Guid("cafcb56c-6ac3-4889-bf47-9e23bbd260ec")]
public class Surface : DeviceChild, IDisposable, IUnknown
Initializes a new instance of the Surface class.
public Surface(IntPtr nativePtr)
nativePtr System.IntPtrThe native pointer.
GetDescription
public SurfaceDescription Description { get; }
Gets a swap chain back buffer.
public static Surface FromSwapChain(SwapChain swapChain, int index)
swapChain SwapChainThe swap chain to get the buffer from.
index intThe index of the desired buffer.
The buffer interface, or null on failure.
HRESULT IDXGISurface::GetDesc([Out] DXGI_SURFACE_DESC* pDesc)
public void GetDescription(out SurfaceDescription descRef)
descRef SurfaceDescriptionAcquires access to the surface data.
public DataRectangle Map(MapFlags flags, out DataStream dataStream)
flags MapFlagsFlags specifying CPU access permissions.
dataStream DataStreamA data stream.
A C1.Win.DX.DataRectangle for accessing the mapped data, or null on failure.
Acquires access to the surface data.
public DataRectangle Map(MapFlags flags)
flags MapFlagsFlags specifying CPU access permissions.
A C1.Win.DX.DataRectangle for accessing the mapped data, or null on failure.
HRESULT IDXGISurface::Map([Out] DXGI_MAPPED_RECT* pLockedRect,[In] unsigned int MapFlags)
public void Map(out MappedRectangle lockedRectRef, int mapFlags)
lockedRectRef MappedRectanglemapFlags intHRESULT IDXGISurface::Unmap()
public void Unmap()
Performs an explicit conversion from System.IntPtr to Surface.
public static explicit operator Surface(IntPtr nativePointer)
nativePointer System.IntPtr