Concrete vertex buffer class for DirectX subdivision and DirectX drawing.
More...
#include <d3d11VertexBuffer.h>
|
virtual | ~D3D11VertexBuffer () |
| Destructor.
|
|
void | UpdateData (const float *src, int startVertex, int numVertices, ID3D11DeviceContext *deviceContext) |
|
int | GetNumElements () const |
| Returns how many elements defined in this vertex buffer.
|
|
int | GetNumVertices () const |
| Returns how many vertices allocated in this vertex buffer.
|
|
ID3D11Buffer * | BindD3D11Buffer (ID3D11DeviceContext *deviceContext) |
| Returns the D3D11 buffer object.
|
|
ID3D11Buffer * | BindVBO (ID3D11DeviceContext *deviceContext) |
| Returns the D3D11 buffer object (for Osd::Mesh interface)
|
|
ID3D11UnorderedAccessView * | BindD3D11UAV (ID3D11DeviceContext *deviceContext) |
| Returns the D3D11 UAV.
|
|
|
static D3D11VertexBuffer * | Create (int numElements, int numVertices, ID3D11DeviceContext *deviceContext) |
| Creator. Returns NULL if error.
|
|
Concrete vertex buffer class for DirectX subdivision and DirectX drawing.
D3D11VertexBuffer implements D3D11VertexBufferInterface. An instance of this buffer class can be passed to D3D11ComputeEvaluator.
Definition at line 46 of file d3d11VertexBuffer.h.
◆ ~D3D11VertexBuffer()
◆ D3D11VertexBuffer()
◆ allocate()
bool allocate |
( |
ID3D11Device * |
device | ) |
|
|
protected |
◆ BindD3D11Buffer()
ID3D11Buffer * BindD3D11Buffer |
( |
ID3D11DeviceContext * |
deviceContext | ) |
|
Returns the D3D11 buffer object.
◆ BindD3D11UAV()
ID3D11UnorderedAccessView * BindD3D11UAV |
( |
ID3D11DeviceContext * |
deviceContext | ) |
|
◆ BindVBO()
ID3D11Buffer * BindVBO |
( |
ID3D11DeviceContext * |
deviceContext | ) |
|
|
inline |
◆ Create()
static D3D11VertexBuffer * Create |
( |
int |
numElements, |
|
|
int |
numVertices, |
|
|
ID3D11DeviceContext * |
deviceContext |
|
) |
| |
|
static |
Creator. Returns NULL if error.
◆ GetNumElements()
int GetNumElements |
( |
| ) |
const |
Returns how many elements defined in this vertex buffer.
◆ GetNumVertices()
int GetNumVertices |
( |
| ) |
const |
Returns how many vertices allocated in this vertex buffer.
◆ UpdateData()
void UpdateData |
( |
const float * |
src, |
|
|
int |
startVertex, |
|
|
int |
numVertices, |
|
|
ID3D11DeviceContext * |
deviceContext |
|
) |
| |
This method is meant to be used in client code in order to provide coarse vertices data to Osd.
The documentation for this class was generated from the following file: