Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/opengl/gl_uniform_buffer.hh
| Show All 24 Lines | private: | ||||
| GLuint ubo_id_ = 0; | GLuint ubo_id_ = 0; | ||||
| public: | public: | ||||
| GLUniformBuf(size_t size, const char *name); | GLUniformBuf(size_t size, const char *name); | ||||
| ~GLUniformBuf(); | ~GLUniformBuf(); | ||||
| void update(const void *data) override; | void update(const void *data) override; | ||||
| void bind(int slot) override; | void bind(int slot) override; | ||||
| void bind_as_ssbo(int slot) override; | |||||
| void unbind() override; | void unbind() override; | ||||
| private: | private: | ||||
| void init(); | void init(); | ||||
| MEM_CXX_CLASS_ALLOC_FUNCS("GLUniformBuf"); | MEM_CXX_CLASS_ALLOC_FUNCS("GLUniformBuf"); | ||||
| }; | }; | ||||
| } // namespace gpu | } // namespace gpu | ||||
| } // namespace blender | } // namespace blender | ||||