Class D3D11Texture2D
A 2D texture interface manages texel data, which is structured memory.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
[SecurityCritical]
public class D3D11Texture2D : D3D11Resource, IDisposable
Constructors
| Edit this page View SourceD3D11Texture2D(nint)
Initializes a new instance of the D3D11Texture2D class.
Declaration
public D3D11Texture2D(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceD3D11Texture2DGuid
The interface GUID.
Declaration
public static readonly Guid D3D11Texture2DGuid
Field Value
| Type | Description |
|---|---|
| Guid |
Properties
| Edit this page View SourceDescription
Gets the properties of the texture resource.
Declaration
public D3D11Texture2DDesc Description { get; }
Property Value
| Type | Description |
|---|---|
| D3D11Texture2DDesc |
Methods
| Edit this page View SourceCreateTexture2DFromRessource(DXComObject)
Initializes a new instance of the D3D11Texture2D class.
Declaration
public static D3D11Texture2D CreateTexture2DFromRessource(DXComObject resource)
Parameters
| Type | Name | Description |
|---|---|---|
| DXComObject | resource | A ressource interface which implements the |
Returns
| Type | Description |
|---|---|
| D3D11Texture2D |
CreateTexture2DFromRessource(nint)
Initializes a new instance of the D3D11Texture2D class.
Declaration
public static D3D11Texture2D CreateTexture2DFromRessource(nint resource)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | resource | A ressource interface which implements the |
Returns
| Type | Description |
|---|---|
| D3D11Texture2D |
GetSharedHandle()
Gets the handle to a shared resource.
Declaration
public nint GetSharedHandle()
Returns
| Type | Description |
|---|---|
| nint | A handle. |