|
Blender
V2.93
|
#include <gl_shader_interface.hh>
Inherits blender::gpu::ShaderInterface.
Public Member Functions | |
| MEM_CXX_CLASS_ALLOC_FUNCS ("GLShaderInterface") | |
Creation / Destruction | |
| GLShaderInterface (GLuint program) | |
| ~GLShaderInterface () | |
Batch Reference | |
| void | ref_add (GLVaoCache *ref) |
| void | ref_remove (GLVaoCache *ref) |
Public Member Functions inherited from blender::gpu::ShaderInterface | |
| ShaderInterface () | |
| virtual | ~ShaderInterface () |
| void | debug_print (void) |
| const ShaderInput * | attr_get (const char *name) const |
| const ShaderInput * | ubo_get (const char *name) const |
| const ShaderInput * | ubo_get (const int binding) const |
| const ShaderInput * | uniform_get (const char *name) const |
| const ShaderInput * | texture_get (const int binding) const |
| const char * | input_name_get (const ShaderInput *input) const |
| int32_t | uniform_builtin (const GPUUniformBuiltin builtin) const |
| int32_t | ubo_builtin (const GPUUniformBlockBuiltin builtin) const |
Additional Inherited Members | |
Public Attributes inherited from blender::gpu::ShaderInterface | |
| ShaderInput * | inputs_ = NULL |
| char * | name_buffer_ = NULL |
| uint | attr_len_ = 0 |
| uint | ubo_len_ = 0 |
| uint | uniform_len_ = 0 |
| uint16_t | enabled_attr_mask_ = 0 |
| uint16_t | enabled_ubo_mask_ = 0 |
| uint8_t | enabled_ima_mask_ = 0 |
| uint64_t | enabled_tex_mask_ = 0 |
| int32_t | builtins_ [GPU_NUM_UNIFORMS] |
| int32_t | builtin_blocks_ [GPU_NUM_UNIFORM_BLOCKS] |
Protected Member Functions inherited from blender::gpu::ShaderInterface | |
| uint32_t | set_input_name (ShaderInput *input, char *name, uint32_t name_len) const |
| void | sort_inputs (void) |
Static Protected Member Functions inherited from blender::gpu::ShaderInterface | |
| static const char * | builtin_uniform_name (GPUUniformBuiltin u) |
| static const char * | builtin_uniform_block_name (GPUUniformBlockBuiltin u) |
Implementation of Shader interface using OpenGL.
Definition at line 46 of file gl_shader_interface.hh.
| blender::gpu::GLShaderInterface::GLShaderInterface | ( | GLuint | program | ) |
Definition at line 134 of file gl_shader_interface.cc.
References blender::gpu::ShaderInterface::attr_len_, blender::gpu::ShaderInput::binding, BLI_assert, BLI_BITMAP_ENABLE, BLI_BITMAP_NEW, BLI_BITMAP_TEST, blender::gpu::block_binding(), blender::gpu::ShaderInterface::builtin_blocks_, blender::gpu::ShaderInterface::builtin_uniform_block_name(), blender::gpu::ShaderInterface::builtin_uniform_name(), blender::gpu::ShaderInterface::builtins_, blender::gpu::ShaderInterface::enabled_attr_mask_, blender::gpu::ShaderInterface::enabled_ima_mask_, blender::gpu::ShaderInterface::enabled_tex_mask_, blender::gpu::ShaderInterface::enabled_ubo_mask_, GPU_NUM_UNIFORM_BLOCKS, GPU_NUM_UNIFORMS, blender::gpu::image_binding(), blender::gpu::ShaderInterface::inputs_, blender::gpu::ShaderInput::location, max_ii(), MEM_callocN, MEM_freeN, MEM_mallocN, MEM_reallocN, blender::gpu::ShaderInterface::name_buffer_, blender::compositor::program, blender::gpu::sampler_binding(), blender::gpu::ShaderInterface::set_input_name(), size(), blender::gpu::ShaderInterface::sort_inputs(), type, blender::gpu::ShaderInterface::ubo_get(), blender::gpu::ShaderInterface::ubo_len_, and blender::gpu::ShaderInterface::uniform_len_.
| blender::gpu::GLShaderInterface::~GLShaderInterface | ( | ) |
Definition at line 285 of file gl_shader_interface.cc.
| blender::gpu::GLShaderInterface::MEM_CXX_CLASS_ALLOC_FUNCS | ( | "GLShaderInterface" | ) |
| void blender::gpu::GLShaderInterface::ref_add | ( | GLVaoCache * | ref | ) |
Definition at line 300 of file gl_shader_interface.cc.
References NULL.
| void blender::gpu::GLShaderInterface::ref_remove | ( | GLVaoCache * | ref | ) |
Definition at line 311 of file gl_shader_interface.cc.
References NULL.