33#ifndef DVD_GENERIC_VERTEX_DATA_H
34#define DVD_GENERIC_VERTEX_DATA_H
55 bool smallIndices{
false };
56 bool indicesNeedCast{
false };
57 bool dynamic{
false };
64 static constexpr size_t INVALID_ELEMENT_STRIDE = SIZE_MAX;
73 size_t _elementStride{ INVALID_ELEMENT_STRIDE };
74 std::pair<bufferPtr, size_t> _initialData{
nullptr, 0};
75 bool _useRingBuffer{
false };
90 U32 elementCountOffset,
91 U32 elementCountRange,
Rough around the edges Adapter pattern abstracting the actual rendering API and access to the GPU.
virtual BufferLock updateBuffer(U32 buffer, U32 elementCountOffset, U32 elementCountRange, bufferPtr data)=0
virtual BufferLock setIndexBuffer(const IndexBuffer &indices)=0
virtual void reset()=0
Also clears GPU memory.
virtual BufferLock setBuffer(const SetBufferParams ¶ms)=0
Handle console commands that start with a forward slash.
eastl::vector< Type > vector
BufferUsageType _usageType
vector< U16 > _smallIndicesTemp