39 return reinterpret_cast<void *
>(
intptr_t(additional_vertex_offset) *
sizeof(GLuint));
41 return reinterpret_cast<void *
>(
intptr_t(additional_vertex_offset) *
sizeof(GLushort));
54 bool is_active()
const;
55 void strip_restart_indices()
override
60 MEM_CXX_CLASS_ALLOC_FUNCS(
"GLIndexBuf")
65 return (type ==
GPU_INDEX_U32) ? GL_UNSIGNED_INT : GL_UNSIGNED_SHORT;
Read Guarded memory(de)allocation.
GLuint restart_index() const
void bind_as_ssbo(uint binding) override
void * offset_ptr(uint additional_vertex_offset) const
void update_sub(uint start, uint len, const void *data) override
void upload_data() override
void read(uint32_t *data) const override
GPUIndexBufType index_type_
static GLenum to_gl(const GPUAttachmentType type)