DX11 Buffer that tracks a host buffer on use to ensure size-correctness.
More...
#include <btSoftBodySolverBuffer_DX11.h>
Public Member Functions |
| | btDX11Buffer (ID3D11Device *d3dDevice, ID3D11DeviceContext *d3dDeviceContext, btAlignedObjectArray< ElementType > *CPUBuffer, bool readOnly) |
| virtual | ~btDX11Buffer () |
| ID3D11ShaderResourceView *& | getSRV () |
| ID3D11UnorderedAccessView *& | getUAV () |
| ID3D11Buffer *& | getBuffer () |
| bool | moveToGPU () |
| | Move the data to the GPU if it is not there already.
|
| bool | moveFromGPU () |
| | Move the data back from the GPU if it is on there and isn't read only.
|
| bool | copyFromGPU () |
| | Copy the data back from the GPU without changing its state to be CPU-side.
|
| virtual void | changedOnCPU () |
| | Call if data has changed on the CPU.
|
Protected Member Functions |
| bool | createBuffer (ID3D11Buffer *preexistingBuffer=0) |
Detailed Description
template<typename ElementType>
class btDX11Buffer< ElementType >
DX11 Buffer that tracks a host buffer on use to ensure size-correctness.
Definition at line 32 of file btSoftBodySolverBuffer_DX11.h.
Constructor & Destructor Documentation
template<typename ElementType>
template<typename ElementType>
Member Function Documentation
template<typename ElementType>
template<typename ElementType>
Copy the data back from the GPU without changing its state to be CPU-side.
Useful if we just want to view it on the host for visualization.
Definition at line 273 of file btSoftBodySolverBuffer_DX11.h.
template<typename ElementType>
| bool btDX11Buffer< ElementType >::createBuffer |
( |
ID3D11Buffer * |
preexistingBuffer = 0 | ) |
|
|
inlineprotected |
template<typename ElementType>
template<typename ElementType>
| ID3D11ShaderResourceView* & btDX11Buffer< ElementType >::getSRV |
( |
| ) |
|
|
inline |
template<typename ElementType>
| ID3D11UnorderedAccessView* & btDX11Buffer< ElementType >::getUAV |
( |
| ) |
|
|
inline |
template<typename ElementType>
template<typename ElementType>
Member Data Documentation
template<typename ElementType>
template<typename ElementType>
template<typename ElementType>
template<typename ElementType>
| ID3D11DeviceContext* btDX11Buffer< ElementType >::m_d3dDeviceContext |
|
protected |
template<typename ElementType>
template<typename ElementType>
template<typename ElementType>
template<typename ElementType>
template<typename ElementType>
| ID3D11ShaderResourceView* btDX11Buffer< ElementType >::m_SRV |
|
protected |
template<typename ElementType>
| ID3D11UnorderedAccessView* btDX11Buffer< ElementType >::m_UAV |
|
protected |
The documentation for this class was generated from the following file: