[]
IDXGISurface2
[Guid("aba496dd-b617-4cb8-a866-bc44d7eb1fa2")]
public class Surface2 : Surface1, IDisposable, IUnknown
Initializes a new instance of the Surface2 class.
public Surface2(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Initializes a new sub resource surface instance of Surface2 class.
public static Surface2 Create(Resource1 resource, int index)
resource
Resource1index
intHRESULT IDXGISurface2::GetResource([In] const GUID& riid,[Out] void** ppParentResource,[Out] unsigned int* pSubresourceIndex)
public void GetResource(Guid riid, out IntPtr parentResourceOut, out int subresourceIndexRef)
riid
System.GuidparentResourceOut
System.IntPtrsubresourceIndexRef
intPerforms an explicit conversion from System.IntPtr to Surface2.
public static explicit operator Surface2(IntPtr nativePointer)
nativePointer
System.IntPtr