Class DxgiResource2
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 DxgiResource2 : DxgiDeviceSubObject, IDisposable
Constructors
| Edit this page View SourceDxgiResource2(nint)
Initializes a new instance of the DxgiResource2 class.
Declaration
public DxgiResource2(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceDxgiResource2Guid
The interface GUID.
Declaration
public static readonly Guid DxgiResource2Guid
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 DxgiSurface2 CreateSubresourceSurface(uint index)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | index | The index of the sub-resource surface object to enumerate. |
Returns
| Type | Description |
|---|---|
| DxgiSurface2 | A |
GetSharedHandle()
Gets the handle to a shared resource.
Declaration
public nint GetSharedHandle()
Returns
| Type | Description |
|---|---|
| nint | A handle. |