Class DxgiDevice1
An IDXGIDevice1 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 DxgiDevice1 : DxgiObject, IDisposable
Constructors
| Edit this page View SourceDxgiDevice1(nint)
Initializes a new instance of the DxgiDevice1 class.
Declaration
public DxgiDevice1(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceDxgiDevice1Guid
The interface GUID.
Declaration
public static readonly Guid DxgiDevice1Guid
Field Value
| Type | Description |
|---|---|
| Guid |
Properties
| Edit this page View SourceMaximumFrameLatency
Gets or sets the number of frames that the system is allowed to queue for rendering.
Declaration
public uint MaximumFrameLatency { get; set; }
Property Value
| Type | Description |
|---|---|
| uint | The number of frames that can be queued for render. This value defaults to 3, but can range from 1 to 16. |
Methods
| Edit this page View SourceCreateDeviceFromDevice(DXComObject)
Initializes a new instance of the DxgiDevice1 class.
Declaration
public static DxgiDevice1 CreateDeviceFromDevice(DXComObject device)
Parameters
| Type | Name | Description |
|---|---|---|
| DXComObject | device | A device interface which implements the |
Returns
| Type | Description |
|---|---|
| DxgiDevice1 |
CreateDeviceFromDevice(nint)
Initializes a new instance of the DxgiDevice1 class.
Declaration
public static DxgiDevice1 CreateDeviceFromDevice(nint device)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | device | A device interface which implements the |
Returns
| Type | Description |
|---|---|
| DxgiDevice1 |
GetAdapter()
Returns the adapter for the specified device.
Declaration
public DxgiAdapter1 GetAdapter()
Returns
| Type | Description |
|---|---|
| DxgiAdapter1 | The adapter for the specified device. |
QueryResourceResidency(DxgiResource1)
Gets the residency status of a resource.
Declaration
public DxgiResidency QueryResourceResidency(DxgiResource1 resource)
Parameters
| Type | Name | Description |
|---|---|---|
| DxgiResource1 | resource | An |
Returns
| Type | Description |
|---|---|
| DxgiResidency | A |
QueryResourceResidency(DxgiResource1?[]?)
Gets the residency status of an array of resources.
Declaration
public DxgiResidency[] QueryResourceResidency(DxgiResource1?[]? resources)
Parameters
| Type | Name | Description |
|---|---|---|
| DxgiResource1[] | resources | An array of |
Returns
| Type | Description |
|---|---|
| DxgiResidency[] | An array of |
QueryResourceResidency(ReadOnlySpan<DxgiResource1>, Span<DxgiResidency>)
Gets the residency status of an array of resources.
Declaration
public void QueryResourceResidency(ReadOnlySpan<DxgiResource1> resources, Span<DxgiResidency> residencies)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<DxgiResource1> | resources | An array of |
| Span<DxgiResidency> | residencies | An array of |