|
Blender V5.0
|
#include "BLI_compiler_attrs.h"Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::gpu |
Functions | |
| blender::gpu::Batch * | GPU_batch_preset_sphere (int lod) ATTR_WARN_UNUSED_RESULT |
| blender::gpu::Batch * | GPU_batch_preset_sphere_wire (int lod) ATTR_WARN_UNUSED_RESULT |
| blender::gpu::Batch * | GPU_batch_preset_quad () |
| void | gpu_batch_presets_init () |
| void | gpu_batch_presets_register (blender::gpu::Batch *preset_batch) |
| void | gpu_batch_storage_buffer_register (blender::gpu::StorageBuf *preset_buffer) |
| void | gpu_batch_presets_exit () |
Batched geometry rendering is powered by the GPU library. This file contains any additions or modifications specific to Blender.
Definition in file GPU_batch_presets.hh.
| blender::gpu::Batch * GPU_batch_preset_quad | ( | ) |
To be used with procedural placement inside shader.
Definition at line 204 of file gpu_batch_presets.cc.
References g_presets_2d, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, gpu_batch_presets_register(), GPU_PRIM_TRI_STRIP, GPU_vertbuf_attr_fill(), GPU_vertbuf_create_with_format(), GPU_vertbuf_data_alloc(), and preset_2d_format().
Referenced by blender::gpu::tests::blend_test(), blender::ed::vse::StripsDrawBatch::StripsDrawBatch(), blender::ed::vse::ThumbsDrawBatch::ThumbsDrawBatch(), and wm_draw_region_blend().
| blender::gpu::Batch * GPU_batch_preset_sphere | ( | int | lod | ) |
Definition at line 99 of file gpu_batch_presets.cc.
References BLI_assert, BLI_thread_is_main(), and g_presets_3d.
Referenced by blender::ed::curves::curve_draw_stroke_3d(), curve_draw_stroke_3d(), ui_draw_but_UNITVEC(), wm_xr_controller_model_draw(), and wm_xr_raycast_destination_draw().
| blender::gpu::Batch * GPU_batch_preset_sphere_wire | ( | int | lod | ) |
Definition at line 114 of file gpu_batch_presets.cc.
References BLI_assert, BLI_thread_is_main(), and g_presets_3d.
| void gpu_batch_presets_exit | ( | ) |
Definition at line 263 of file gpu_batch_presets.cc.
References BLI_mutex_end(), BLI_pophead(), buffer_list, g_presets_2d, g_presets_3d, GPU_batch_discard(), GPU_storagebuf_free(), MEM_freeN(), and presets_list.
Referenced by gpu_batch_exit().
| void gpu_batch_presets_init | ( | ) |
Definition at line 228 of file gpu_batch_presets.cc.
References batch_sphere_wire(), BLI_mutex_init(), g_presets_3d, gpu_batch_presets_register(), and gpu_batch_sphere().
Referenced by gpu_batch_init().
| void gpu_batch_presets_register | ( | blender::gpu::Batch * | preset_batch | ) |
Definition at line 249 of file gpu_batch_presets.cc.
References BLI_addtail(), BLI_genericNodeN(), BLI_mutex_lock(), BLI_mutex_unlock(), g_presets_3d, and presets_list.
Referenced by batch_screen_edges_get(), GPU_batch_preset_quad(), gpu_batch_presets_init(), blender::ed::space_node::nodelink_batch_init(), blender::ed::space_node::nodesocket_batch_init(), ui_batch_roundbox_shadow_get(), and ui_batch_roundbox_widget_get().
| void gpu_batch_storage_buffer_register | ( | blender::gpu::StorageBuf * | preset_buffer | ) |
Definition at line 256 of file gpu_batch_presets.cc.
References BLI_addtail(), BLI_genericNodeN(), BLI_mutex_lock(), BLI_mutex_unlock(), buffer_list, and g_presets_3d.
Referenced by blender::ed::space_node::nodelink_batch_init().