Class D3D11Buffer
A buffer interface accesses a buffer resource, which is unstructured memory.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
[SecurityCritical]
public class D3D11Buffer : D3D11Resource, IDisposable
Constructors
| Edit this page View SourceD3D11Buffer(nint)
Initializes a new instance of the D3D11Buffer class.
Declaration
public D3D11Buffer(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceD3D11BufferGuid
The interface GUID.
Declaration
public static readonly Guid D3D11BufferGuid
Field Value
| Type | Description |
|---|---|
| Guid |
Properties
| Edit this page View SourceDescription
Gets the properties of a buffer resource.
Declaration
public D3D11BufferDesc Description { get; }
Property Value
| Type | Description |
|---|---|
| D3D11BufferDesc |
Methods
| Edit this page View SourceCreateBufferFromRessource(DXComObject)
Initializes a new instance of the D3D11Buffer class.
Declaration
public static D3D11Buffer CreateBufferFromRessource(DXComObject resource)
Parameters
| Type | Name | Description |
|---|---|---|
| DXComObject | resource | A ressource interface which implements the |
Returns
| Type | Description |
|---|---|
| D3D11Buffer |
CreateBufferFromRessource(nint)
Initializes a new instance of the D3D11Buffer class.
Declaration
public static D3D11Buffer CreateBufferFromRessource(nint resource)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | resource | A ressource interface which implements the |
Returns
| Type | Description |
|---|---|
| D3D11Buffer |
GetSharedHandle()
Gets the handle to a shared resource.
Declaration
public nint GetSharedHandle()
Returns
| Type | Description |
|---|---|
| nint | A handle. |