[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DXGI.Device

Class Device

Namespace
GrapeCity.Documents.DX.DXGI
Assembly
GcDocs.DX.Windows.dll

IDXGIDevice

[Guid("54ec77fa-1377-44e6-8c32-88fd5f44c84c")]
public class Device : DXGIObject, IDisposable, IUnknown
Inheritance
object
Device
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

Device(IntPtr)

Initializes a new instance of the Device class.

public Device(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

CreateSurface(ref SurfaceDescription, int, int, SharedResource?)

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)

Parameters

descRef SurfaceDescription
numSurfaces int
usage int
sharedResourceRef SharedResource?

Returns

Surface

GetAdapter()

HRESULT IDXGIDevice::GetAdapter([Out] IDXGIAdapter** pAdapter)

public Adapter GetAdapter()

Returns

Adapter

GetGPUThreadPriority()

HRESULT IDXGIDevice::GetGPUThreadPriority([Out] int* pPriority)

public int GetGPUThreadPriority()

Returns

int

QueryResourceResidency(ComArray<ComObject>, Residency[], int)

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)

Parameters

resourcesOut ComArray<ComObject>
residencyStatusRef Residency[]
numResources int

QueryResourceResidency(ComObject[], Residency[], int)

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)

Parameters

resourcesOut ComObject[]
residencyStatusRef Residency[]
numResources int

QueryResourceResidency(params ComObject[])

Gets the residency status of an array of resources.

public Residency[] QueryResourceResidency(params ComObject[] comObjects)

Parameters

comObjects ComObject[]

An array of Resource interfaces.

Returns

Residency[]

Returns an array of Residency flags. Each element describes the residency status for corresponding element in the ppResources argument array.

Remarks

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.

SetGPUThreadPriority(int)

HRESULT IDXGIDevice::SetGPUThreadPriority([In] int Priority)

public void SetGPUThreadPriority(int priority)

Parameters

priority int

Operators

explicit operator Device(IntPtr)

Performs an explicit conversion from System.IntPtr to Device.

public static explicit operator Device(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

Device