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.
Inherited Members
Namespace: JeremyAnsel.DirectX.Dxgi
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
public sealed class DxgiResource2 : DxgiDeviceSubObject, IDisposable, IDxgiReleasable
Constructors
| Edit this page View SourceDxgiResource2(object)
Initializes a new instance of the DxgiResource2 class.
Declaration
public DxgiResource2(object resource)
Parameters
| Type | Name | Description |
|---|---|---|
| object | resource | A resource interface which implements the |
Properties
| Edit this page View SourceEvictionPriority
Gets or sets the eviction priority.
Declaration
public DxgiResourceEvictionPriority EvictionPriority { get; set; }
Property Value
| Type | Description |
|---|---|
| DxgiResourceEvictionPriority |
Handle
Gets an handle representing the DXGI object interface.
Declaration
public override object Handle { get; }
Property Value
| Type | Description |
|---|---|
| object |
Overrides
| Edit this page View SourceUsage
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. |