|
Blender V4.3
|
Functions | |
Vertex Array Bindings | |
| void | update_bindings (const GLuint vao, const Batch *batch, const ShaderInterface *interface, int base_instance) |
| void | update_bindings (const GLuint vao, uint v_first, const GPUVertFormat *format, const ShaderInterface *interface) |
| void blender::gpu::GLVertArray::update_bindings | ( | const GLuint | vao, |
| const Batch * | batch, | ||
| const ShaderInterface * | interface, | ||
| int | base_instance ) |
Update the Attribute Binding of the currently bound VAO.
Definition at line 96 of file gl_vertex_array.cc.
References blender::gpu::ShaderInterface::attr_get(), batch, blender::gpu::GLVertBuf::bind(), blender::gpu::GLContext::default_attr_vbo_, blender::gpu::ShaderInterface::enabled_attr_mask_, blender::gpu::VertBuf::format, blender::gpu::GLContext::get(), GPU_BATCH_INST_VBO_MAX_LEN, GPU_BATCH_VBO_MAX_LEN, GPU_COMP_I32, blender::gpu::to_gl(), blender::gpu::unwrap(), v, and blender::gpu::VertBuf::vertex_len.
Referenced by blender::gpu::GLImmediate::end(), and blender::gpu::GLVaoCache::vao_get().
| void blender::gpu::GLVertArray::update_bindings | ( | const GLuint | vao, |
| uint | v_first, | ||
| const GPUVertFormat * | format, | ||
| const ShaderInterface * | interface ) |
Another version of update_bindings for Immediate mode.
Definition at line 161 of file gl_vertex_array.cc.
References blender::gpu::vbo_bind().