32 bool is_wrapper_ =
false;
41 uint source_first_vertex,
42 uint dest_first_vertex,
45 void read(
void *
data)
const override;
58 bool is_active()
const;
60 MEM_CXX_CLASS_ALLOC_FUNCS(
"GLVertBuf");
67 return GL_STREAM_DRAW;
69 return GL_DYNAMIC_DRAW;
72 return GL_STATIC_DRAW;
75 return GL_STATIC_DRAW;
85 return GL_UNSIGNED_BYTE;
89 return GL_UNSIGNED_SHORT;
93 return GL_UNSIGNED_INT;
97 return GL_INT_2_10_10_10_REV;
Read Blender memory allocation and freeing.
void bind_as_texture(uint binding) override
void read(void *data) const override
void upload_data() override
void bind_as_ssbo(uint binding) override
friend class GLStorageBuf
void wrap_handle(uint64_t handle) override
void resize_data() override
void update_sub(uint start, uint len, const void *data) override
void acquire_data() override
void copy_sub(VertBuf &source_buf, uint source_first_vertex, uint dest_first_vertex, uint vertex_len) override
Copy from part of source vertex buffer into the vertex buffer.
void release_data() override
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
GLenum to_gl(eGPUDataFormat format)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
unsigned __int64 uint64_t