16 #ifndef BT_SOFT_BODY_SOLVER_VERTEX_BUFFER_DX11_H
17 #define BT_SOFT_BODY_SOLVER_VERTEX_BUFFER_DX11_H
26 #include <d3dcompiler.h>
46 btDX11VertexBufferDescriptor( ID3D11DeviceContext* context, ID3D11Buffer* buffer, ID3D11UnorderedAccessView *UAV,
int vertexOffset,
int vertexStride )
64 btDX11VertexBufferDescriptor( ID3D11DeviceContext* context, ID3D11Buffer* buffer, ID3D11UnorderedAccessView *UAV,
int vertexOffset,
int vertexStride,
int normalOffset,
int normalStride )
107 #endif // #ifndef BT_SOFT_BODY_SOLVER_VERTEX_BUFFER_DX11_H
virtual ID3D11DeviceContext * getContext() const
virtual ID3D11Buffer * getbtDX11Buffer() const
btDX11VertexBufferDescriptor(ID3D11DeviceContext *context, ID3D11Buffer *buffer, ID3D11UnorderedAccessView *UAV, int vertexOffset, int vertexStride, int normalOffset, int normalStride)
buffer is a pointer to the DX11 buffer to place the vertex data in.
virtual BufferTypes getBufferType() const
Return the type of the vertex buffer descriptor.
ID3D11Buffer * m_vertexBuffer
DX11 vertex buffer.
virtual ID3D11UnorderedAccessView * getDX11UAV() const
ID3D11DeviceContext * m_context
Context of the DX11 device on which the vertex buffer is stored.
bool m_hasVertexPositions
ID3D11UnorderedAccessView * m_vertexBufferUAV
UAV for DX11 buffer.
virtual ~btDX11VertexBufferDescriptor()
btDX11VertexBufferDescriptor(ID3D11DeviceContext *context, ID3D11Buffer *buffer, ID3D11UnorderedAccessView *UAV, int vertexOffset, int vertexStride)
buffer is a pointer to the DX11 buffer to place the vertex data in.