Bullet Collision Detection & Physics Library
Public Member Functions | Protected Attributes | List of all members
btDX11VertexBufferDescriptor Class Reference

#include <btSoftBodySolverVertexBuffer_DX11.h>

Inheritance diagram for btDX11VertexBufferDescriptor:
Inheritance graph
[legend]
Collaboration diagram for btDX11VertexBufferDescriptor:
Collaboration graph
[legend]

Public Member Functions

 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. More...
 
 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. More...
 
virtual ~btDX11VertexBufferDescriptor ()
 
virtual BufferTypes getBufferType () const
 Return the type of the vertex buffer descriptor. More...
 
virtual ID3D11DeviceContext * getContext () const
 
virtual ID3D11Buffer * getbtDX11Buffer () const
 
virtual ID3D11UnorderedAccessView * getDX11UAV () const
 
- Public Member Functions inherited from btVertexBufferDescriptor
 btVertexBufferDescriptor ()
 
virtual ~btVertexBufferDescriptor ()
 
virtual bool hasVertexPositions () const
 
virtual bool hasNormals () const
 
virtual int getVertexOffset () const
 Return the vertex offset in floats from the base pointer. More...
 
virtual int getVertexStride () const
 Return the vertex stride in number of floats between vertices. More...
 
virtual int getNormalOffset () const
 Return the vertex offset in floats from the base pointer. More...
 
virtual int getNormalStride () const
 Return the vertex stride in number of floats between vertices. More...
 

Protected Attributes

ID3D11DeviceContext * m_context
 Context of the DX11 device on which the vertex buffer is stored. More...
 
ID3D11Buffer * m_vertexBuffer
 DX11 vertex buffer. More...
 
ID3D11UnorderedAccessView * m_vertexBufferUAV
 UAV for DX11 buffer. More...
 
- Protected Attributes inherited from btVertexBufferDescriptor
bool m_hasVertexPositions
 
bool m_hasNormals
 
int m_vertexOffset
 
int m_vertexStride
 
int m_normalOffset
 
int m_normalStride
 

Additional Inherited Members

- Public Types inherited from btVertexBufferDescriptor
enum  BufferTypes {
  CPU_BUFFER,
  DX11_BUFFER,
  OPENGL_BUFFER
}
 

Detailed Description

Definition at line 28 of file btSoftBodySolverVertexBuffer_DX11.h.

Constructor & Destructor Documentation

btDX11VertexBufferDescriptor::btDX11VertexBufferDescriptor ( ID3D11DeviceContext *  context,
ID3D11Buffer *  buffer,
ID3D11UnorderedAccessView *  UAV,
int  vertexOffset,
int  vertexStride 
)
inline

buffer is a pointer to the DX11 buffer to place the vertex data in.

UAV is a pointer to the UAV representation of the buffer laid out in floats. vertexOffset is the offset in floats to the first vertex. vertexStride is the stride in floats between vertices.

Definition at line 46 of file btSoftBodySolverVertexBuffer_DX11.h.

btDX11VertexBufferDescriptor::btDX11VertexBufferDescriptor ( ID3D11DeviceContext *  context,
ID3D11Buffer *  buffer,
ID3D11UnorderedAccessView *  UAV,
int  vertexOffset,
int  vertexStride,
int  normalOffset,
int  normalStride 
)
inline

buffer is a pointer to the DX11 buffer to place the vertex data in.

UAV is a pointer to the UAV representation of the buffer laid out in floats. vertexOffset is the offset in floats to the first vertex. vertexStride is the stride in floats between vertices. normalOffset is the offset in floats to the first normal. normalStride is the stride in floats between normals.

Definition at line 64 of file btSoftBodySolverVertexBuffer_DX11.h.

virtual btDX11VertexBufferDescriptor::~btDX11VertexBufferDescriptor ( )
inlinevirtual

Definition at line 78 of file btSoftBodySolverVertexBuffer_DX11.h.

Member Function Documentation

virtual ID3D11Buffer* btDX11VertexBufferDescriptor::getbtDX11Buffer ( ) const
inlinevirtual

Definition at line 96 of file btSoftBodySolverVertexBuffer_DX11.h.

virtual BufferTypes btDX11VertexBufferDescriptor::getBufferType ( ) const
inlinevirtual

Return the type of the vertex buffer descriptor.

Implements btVertexBufferDescriptor.

Definition at line 86 of file btSoftBodySolverVertexBuffer_DX11.h.

virtual ID3D11DeviceContext* btDX11VertexBufferDescriptor::getContext ( ) const
inlinevirtual

Definition at line 91 of file btSoftBodySolverVertexBuffer_DX11.h.

virtual ID3D11UnorderedAccessView* btDX11VertexBufferDescriptor::getDX11UAV ( ) const
inlinevirtual

Definition at line 101 of file btSoftBodySolverVertexBuffer_DX11.h.

Member Data Documentation

ID3D11DeviceContext* btDX11VertexBufferDescriptor::m_context
protected

Context of the DX11 device on which the vertex buffer is stored.

Definition at line 32 of file btSoftBodySolverVertexBuffer_DX11.h.

ID3D11Buffer* btDX11VertexBufferDescriptor::m_vertexBuffer
protected

DX11 vertex buffer.

Definition at line 34 of file btSoftBodySolverVertexBuffer_DX11.h.

ID3D11UnorderedAccessView* btDX11VertexBufferDescriptor::m_vertexBufferUAV
protected

UAV for DX11 buffer.

Definition at line 36 of file btSoftBodySolverVertexBuffer_DX11.h.


The documentation for this class was generated from the following file: