[]
IDXGIDevice
[Guid("54ec77fa-1377-44e6-8c32-88fd5f44c84c")]
public class Device : DXGIObject, IDisposable, IUnknown
Initializes a new instance of the Device class.
public Device(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
HRESULT IDXGIDevice::CreateSurface([In] const DXGI_SURFACE_DESC* pDesc,[In] unsigned int NumSurfaces,[In] unsigned int Usage,[In, Optional] const DXGI_SHARED_RESOURCE* pSharedResource,[Out] IDXGISurface** ppSurface)
public Surface CreateSurface(ref SurfaceDescription descRef, int numSurfaces, int usage, SharedResource? sharedResourceRef)
descRef
SurfaceDescriptionnumSurfaces
intusage
intsharedResourceRef
SharedResource?HRESULT IDXGIDevice::GetAdapter([Out] IDXGIAdapter** pAdapter)
public Adapter GetAdapter()
HRESULT IDXGIDevice::GetGPUThreadPriority([Out] int* pPriority)
public int GetGPUThreadPriority()
HRESULT IDXGIDevice::QueryResourceResidency([In, Buffer] const IUnknown** ppResources,[Out, Buffer] DXGI_RESIDENCY* pResidencyStatus,[In] unsigned int NumResources)
public void QueryResourceResidency(ComArray<ComObject> resourcesOut, Residency[] residencyStatusRef, int numResources)
HRESULT IDXGIDevice::QueryResourceResidency([In, Buffer] const IUnknown** ppResources,[Out, Buffer] DXGI_RESIDENCY* pResidencyStatus,[In] unsigned int NumResources)
public void QueryResourceResidency(ComObject[] resourcesOut, Residency[] residencyStatusRef, int numResources)
Gets the residency status of an array of resources.
public Residency[] QueryResourceResidency(params ComObject[] comObjects)
Returns an array of Residency flags. Each element describes the residency status for corresponding element in the ppResources argument array.
The information returned by the pResidencyStatus argument array describes the residency status at the time that the QueryResourceResidency method was called. Note that the residency status will constantly change. If you call the QueryResourceResidency method during a device removed state, the pResidencyStatus argument will return the DXGI_RESIDENCY_EVICTED_TO_DISK flag. Note??This method should not be called every frame as it incurs a non-trivial amount of overhead.
HRESULT IDXGIDevice::SetGPUThreadPriority([In] int Priority)
public void SetGPUThreadPriority(int priority)
priority
intPerforms an explicit conversion from System.IntPtr to Device.
public static explicit operator Device(IntPtr nativePointer)
nativePointer
System.IntPtr