[]
IDXGIResource1
[Guid("30961379-4609-4a41-998e-54fe567ee0c1")]
public class Resource1 : Resource, IDisposable, IUnknown
Initializes a new instance of the Resource1 class.
public Resource1(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
HRESULT IDXGIResource1::CreateSharedHandle([In, Optional] const SECURITY_ATTRIBUTES* pAttributes,[In] DXGI_SHARED_RESOURCE_FLAGS dwAccess,[In, Optional] const wchar_t* lpName,[Out] void** pHandle)
public IntPtr CreateSharedHandle(SecurityAttributes? attributesRef, SharedResourceFlags dwAccess, string lpName)
attributesRef
SecurityAttributes?dwAccess
SharedResourceFlagslpName
stringCreates a handle to a shared resource. You can then use the returned handle with multiple Direct3D devices.
public IntPtr CreateSharedHandle(string name, SharedResourceFlags dwAccess, SecurityAttributes? attributesRef = null)
name
stringdwAccess
SharedResourceFlagsattributesRef
SecurityAttributes?HRESULT IDXGIResource1::CreateSubresourceSurface([In] unsigned int index,[Out, Fast] IDXGISurface2** ppSurface)
public Surface2 CreateSubresourceSurface2(int index)
index
intPerforms an explicit conversion from System.IntPtr to Resource1.
public static explicit operator Resource1(IntPtr nativePointer)
nativePointer
System.IntPtr