29 ::GPUTexture *buffer_texture_ =
nullptr;
32 bool is_wrapper_ =
false;
41 void read(
void *data)
const override;
55 bool is_active()
const;
57 MEM_CXX_CLASS_ALLOC_FUNCS(
"GLVertBuf");
64 return GL_STREAM_DRAW;
66 return GL_DYNAMIC_DRAW;
69 return GL_STATIC_DRAW;
72 return GL_STATIC_DRAW;
82 return GL_UNSIGNED_BYTE;
86 return GL_UNSIGNED_SHORT;
90 return GL_UNSIGNED_INT;
94 return GL_INT_2_10_10_10_REV;
Read Guarded memory(de)allocation.
void bind_as_texture(uint binding) override
void read(void *data) const override
void upload_data() override
void bind_as_ssbo(uint binding) override
void wrap_handle(uint64_t handle) override
void duplicate_data(VertBuf *dst) override
void resize_data() override
void update_sub(uint start, uint len, const void *data) override
void acquire_data() override
void release_data() override
static GLenum to_gl(const GPUAttachmentType type)
unsigned __int64 uint64_t