Blender
V3.3
|
Functions | |
Vertex Array Bindings | |
void | update_bindings (const GLuint vao, const GPUBatch *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 GPUBatch * | batch, | ||
const ShaderInterface * | interface, | ||
int | base_instance | ||
) |
Update the Attribute Binding of the currently bound VAO.
Definition at line 94 of file gl_vertex_array.cc.
References Freestyle::a, 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, mask(), blender::gpu::unwrap(), v, blender::gpu::vbo_bind(), blender::gpu::GLContext::vertex_attrib_binding_support, and blender::gpu::VertBuf::vertex_len.
Referenced by blender::gpu::GLVaoCache::base_instance_vao_get(), 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 141 of file gl_vertex_array.cc.
References blender::gpu::vbo_bind().