|
Blender V5.0
|
#include <gl_uniform_buffer.hh>
Inherits blender::gpu::UniformBuf.
Public Member Functions | |
Creation & Deletion | |
| GLUniformBuf (size_t size, const char *name) | |
| ~GLUniformBuf () | |
Usage | |
| void | bind (int slot) override |
| void | bind_as_ssbo (int slot) override |
| void | unbind () override |
| Public Member Functions inherited from blender::gpu::UniformBuf | |
| UniformBuf (size_t size, const char *name) | |
| virtual | ~UniformBuf () |
| void | attach_data (void *data) |
Data upload / update | |
| void | update (const void *data) override |
| void | clear_to_zero () override |
Additional Inherited Members | |
| Protected Attributes inherited from blender::gpu::UniformBuf | |
| size_t | size_in_bytes_ |
| void * | data_ = nullptr |
| char | name_ [DEBUG_NAME_LEN] |
Implementation of Uniform Buffers using OpenGL.
Definition at line 21 of file gl_uniform_buffer.hh.
| blender::gpu::GLUniformBuf::GLUniformBuf | ( | size_t | size, |
| const char * | name ) |
Definition at line 25 of file gl_uniform_buffer.cc.
References BLI_assert, GPU_max_uniform_buffer_size(), name, size(), and blender::gpu::UniformBuf::UniformBuf().
| blender::gpu::GLUniformBuf::~GLUniformBuf | ( | ) |
Definition at line 31 of file gl_uniform_buffer.cc.
References blender::gpu::GLContext::buffer_free().
|
overridevirtual |
Implements blender::gpu::UniformBuf.
Definition at line 98 of file gl_uniform_buffer.cc.
References BLI_assert, blender::gpu::GLContext::bound_ubo_slots, blender::gpu::UniformBuf::data_, blender::gpu::GLContext::get(), init(), blender::gpu::GLContext::max_ubo_binds, MEM_SAFE_FREE, blender::gpu::UniformBuf::name_, and update().
|
overridevirtual |
Implements blender::gpu::UniformBuf.
Definition at line 128 of file gl_uniform_buffer.cc.
References BLI_assert, blender::gpu::GLContext::bound_ssbo_slots, blender::gpu::UniformBuf::data_, blender::gpu::GLContext::get(), init(), MEM_SAFE_FREE, and update().
|
overridevirtual |
Implements blender::gpu::UniformBuf.
Definition at line 63 of file gl_uniform_buffer.cc.
References data, blender::gpu::GLContext::direct_state_access_support, GPU_DATA_UINT, init(), blender::gpu::to_gl(), blender::gpu::to_gl_data_format(), and blender::gpu::to_gl_internal_format().
|
overridevirtual |
Implements blender::gpu::UniformBuf.
Definition at line 145 of file gl_uniform_buffer.cc.
References blender::gpu::GLContext::bound_ubo_slots, and blender::gpu::GLContext::get().
|
overridevirtual |
Implements blender::gpu::UniformBuf.
Definition at line 53 of file gl_uniform_buffer.cc.
References data, init(), and blender::gpu::UniformBuf::size_in_bytes_.
Referenced by bind(), and bind_as_ssbo().