14 unsigned int numVertices,
bool createStorage)
16 Buffer(numVertices, vformat.GetVertexSize(), createStorage),
23 std::shared_ptr<StructuredBuffer>
const& sbuffer)
35 Buffer(numVertices, 0, false)
41 std::set<DFType>
const& requiredTypes)
60 if (requiredTypes.size() > 0)
62 if (requiredTypes.find(type) == requiredTypes.end())
std::shared_ptr< StructuredBuffer > mSBuffer
unsigned int GetNumElements() const
VertexBuffer(VertexFormat const &vformat, unsigned int numVertices, bool createStorage=true)
void SetNumActiveElements(unsigned int numActiveElements)
GLint GLint GLsizei GLint GLenum GLenum type
char * GetChannel(VASemantic semantic, unsigned int unit, std::set< DFType > const &requiredTypes)