Class DxgiDevice
An IDXGIDevice interface implements a derived class for DXGI objects that produce image data.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.Dxgi
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
[SecurityCritical]
public class DxgiDevice : DxgiObject, IDisposable
Constructors
| Edit this page View SourceDxgiDevice(nint)
Initializes a new instance of the DxgiDevice class.
Declaration
public DxgiDevice(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceDxgiDeviceGuid
The interface GUID.
Declaration
public static readonly Guid DxgiDeviceGuid
Field Value
| Type | Description |
|---|---|
| Guid |
Methods
| Edit this page View SourceCreateDeviceFromDevice(DXComObject)
Initializes a new instance of the DxgiDevice class.
Declaration
public static DxgiDevice CreateDeviceFromDevice(DXComObject device)
Parameters
| Type | Name | Description |
|---|---|---|
| DXComObject | device | A device interface which implements the |
Returns
| Type | Description |
|---|---|
| DxgiDevice |
CreateDeviceFromDevice(nint)
Initializes a new instance of the DxgiDevice class.
Declaration
public static DxgiDevice CreateDeviceFromDevice(nint device)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | device | A device interface which implements the |
Returns
| Type | Description |
|---|---|
| DxgiDevice |
GetAdapter()
Returns the adapter for the specified device.
Declaration
public DxgiAdapter GetAdapter()
Returns
| Type | Description |
|---|---|
| DxgiAdapter | The adapter for the specified device. |
QueryResourceResidency(DxgiResource)
Gets the residency status of a resource.
Declaration
public DxgiResidency QueryResourceResidency(DxgiResource resource)
Parameters
| Type | Name | Description |
|---|---|---|
| DxgiResource | resource | An |
Returns
| Type | Description |
|---|---|
| DxgiResidency | A |
QueryResourceResidency(DxgiResource?[]?)
Gets the residency status of an array of resources.
Declaration
public DxgiResidency[] QueryResourceResidency(DxgiResource?[]? resources)
Parameters
| Type | Name | Description |
|---|---|---|
| DxgiResource[] | resources | An array of |
Returns
| Type | Description |
|---|---|
| DxgiResidency[] | An array of |
QueryResourceResidency(ReadOnlySpan<DxgiResource>, Span<DxgiResidency>)
Gets the residency status of an array of resources.
Declaration
public void QueryResourceResidency(ReadOnlySpan<DxgiResource> resources, Span<DxgiResidency> residencies)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<DxgiResource> | resources | An array of |
| Span<DxgiResidency> | residencies | An array of |