Class DxgiResource3
An IDXGIResource1 interface extends the IDXGIResource interface by adding support for creating a sub-resource surface object and for creating a handle to a shared resource.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.Dxgi
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
[SecurityCritical]
public class DxgiResource3 : DxgiDeviceSubObject, IDisposable
Constructors
| Edit this page View SourceDxgiResource3(nint)
Initializes a new instance of the DxgiResource3 class.
Declaration
public DxgiResource3(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceDxgiResource3Guid
The interface GUID.
Declaration
public static readonly Guid DxgiResource3Guid
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 SourceCreateSubresourceSurface(uint)
Creates a sub-resource surface object.
Declaration
public DxgiSurface3 CreateSubresourceSurface(uint index)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | index | The index of the sub-resource surface object to enumerate. |
Returns
| Type | Description |
|---|---|
| DxgiSurface3 | A |
GetSharedHandle()
Gets the handle to a shared resource.
Declaration
public nint GetSharedHandle()
Returns
| Type | Description |
|---|---|
| nint | A handle. |