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 uint source_first_index,
55 uint dest_first_index,
56 uint index_len)
override;
59 bool is_active()
const;
60 void strip_restart_indices()
override
65 MEM_CXX_CLASS_ALLOC_FUNCS(
"GLIndexBuf")
70 return (type ==
GPU_INDEX_U32) ? GL_UNSIGNED_INT : GL_UNSIGNED_SHORT;
Read Blender memory allocation and freeing.
void copy_sub(IndexBuf &source_buf, uint source_first_index, uint dest_first_index, uint index_len) override
Copy part of source index buffer into this index buffer.
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_
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
GLenum to_gl(eGPUDataFormat format)
BMesh const char void * data