|
Blender V5.3
|
#include "BLI_math_base_c.hh"#include "BLI_utildefines.hh"#include "GPU_batch.hh"#include "GPU_batch_presets.hh"#include "GPU_shader.hh"#include "GPU_index_buffer.hh"#include "GPU_vertex_buffer.hh"#include "gpu_backend.hh"#include "gpu_context_private.hh"#include "gpu_debug_private.hh"#include "gpu_shader_private.hh"#include <cstring>Go to the source code of this file.
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Functions | |
Creation & Deletion | |
| void | blender::GPU_batch_zero (Batch *batch) |
| void | blender::GPU_batch_init_ex (Batch *batch, GPUPrimType primitive_type, VertBuf *vertex_buf, IndexBuf *index_buf, GPUBatchFlag owns_flag) |
| void | blender::GPU_batch_copy (Batch *batch_dst, Batch *batch_src) |
| void | blender::GPU_batch_clear (Batch *batch) |
| void | blender::GPU_batch_discard (Batch *batch) |
Creation | |
| gpu::Batch * | blender::GPU_batch_calloc () |
| gpu::Batch * | blender::GPU_batch_create_ex (GPUPrimType primitive_type, gpu::VertBuf *vertex_buf, gpu::IndexBuf *index_buf, GPUBatchFlag owns_flag) |
| gpu::Batch * | blender::GPU_batch_create_procedural (GPUPrimType primitive_type, int32_t vertex_count) |
Buffers Management | |
| void | blender::GPU_batch_elembuf_set (Batch *batch, gpu::IndexBuf *index_buf, bool own_ibo) |
| int | blender::GPU_batch_vertbuf_add (Batch *batch, VertBuf *vertex_buf, bool own_vbo) |
| bool | blender::GPU_batch_vertbuf_has (const Batch *batch, const VertBuf *vertex_buf) |
Uniform setters | |
| void | blender::GPU_batch_set_shader (Batch *batch, gpu::Shader *shader, const shader::SpecializationConstants *constants_state) |
| static uint16_t | blender::bind_attribute_as_ssbo (const ShaderInterface *interface, gpu::Shader *shader, VertBuf *vbo) |
| void | blender::GPU_batch_bind_as_resources (Batch *batch, gpu::Shader *shader, const shader::SpecializationConstants *constants) |
Drawing / Draw-call functions | |
| void | blender::GPU_batch_draw_parameter_get (Batch *batch, int *r_vertex_count, int *r_vertex_first, int *r_base_index, int *r_instance_count) |
| static void | blender::polyline_draw_workaround (Batch *batch, int vertex_first, int vertex_count, int instance_first, int instance_count) |
| void | blender::GPU_batch_draw (Batch *batch) |
| void | blender::GPU_batch_draw_range (Batch *batch, int vertex_first, int vertex_count) |
| void | blender::GPU_batch_draw_instance_range (Batch *batch, int instance_first, int instance_count) |
| void | blender::GPU_batch_draw_advanced (Batch *batch, int vertex_first, int vertex_count, int instance_first, int instance_count) |
| void | blender::GPU_batch_draw_indirect (Batch *batch, gpu::StorageBuf *indirect_buf, intptr_t offset) |
| void | blender::GPU_batch_multi_draw_indirect (Batch *batch, gpu::StorageBuf *indirect_buf, int count, intptr_t offset, intptr_t stride) |
Shader Binding & Uniforms | |
| IndexRange | blender::GPU_batch_draw_expanded_parameter_get (GPUPrimType input_prim_type, GPUPrimType output_prim_type, int vertex_count, int vertex_first, int output_primitive_cout) |
Utilities | |
| void | blender::GPU_batch_program_set_builtin_with_config (Batch *batch, GPUBuiltinShader shader_id, GPUShaderConfig sh_cfg) |
| void | blender::GPU_batch_program_set_builtin (Batch *batch, GPUBuiltinShader shader_id) |
| void | blender::GPU_batch_program_set_imm_shader (Batch *batch) |
Procedural drawing | |
A draw-call always need a batch to be issued. These are dummy batches that contains no vertex data and can be used to render geometry without per vertex inputs. | |
| gpu::Batch * | blender::GPU_batch_procedural_points_get () |
| gpu::Batch * | blender::GPU_batch_procedural_lines_get () |
| gpu::Batch * | blender::GPU_batch_procedural_triangles_get () |
| gpu::Batch * | blender::GPU_batch_procedural_triangle_strips_get () |
Module init/exit | |
| void | blender::gpu_batch_init () |
| void | blender::gpu_batch_exit () |
GPU geometry batch Contains VAOs + VBOs + Shader representing a drawable entity.
Definition in file gpu_batch.cc.