Class DxgiResource
An IDXGIResource interface allows resource sharing and identifies the memory that a resource resides in.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.Dxgi
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
[SecurityCritical]
public class DxgiResource : DxgiDeviceSubObject, IDisposable
Constructors
| Edit this page View SourceDxgiResource(nint)
Initializes a new instance of the DxgiResource class.
Declaration
public DxgiResource(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceDxgiResourceGuid
The interface GUID.
Declaration
public static readonly Guid DxgiResourceGuid
Field Value
| Type | Description |
|---|---|
| Guid |
Properties
| Edit this page View SourceEvictionPriority
Gets or sets the eviction priority.
Declaration
public DxgiResourceEvictionPriority EvictionPriority { get; set; }
Property Value
| Type | Description |
|---|---|
| DxgiResourceEvictionPriority |
Usage
Gets the expected resource usage.
Declaration
public DxgiUsages Usage { get; }
Property Value
| Type | Description |
|---|---|
| DxgiUsages |
Methods
| Edit this page View SourceGetSharedHandle()
Gets the handle to a shared resource.
Declaration
public nint GetSharedHandle()
Returns
| Type | Description |
|---|---|
| nint | A handle. |