|
Blender V4.3
|
#include "BLI_listbase.h"#include "BLI_math_matrix.h"#include "BLI_math_vector.h"#include "BLI_string.h"#include "BKE_context.hh"#include "BKE_layer.hh"#include "BKE_material.h"#include "BKE_pbvh.hh"#include "BKE_scene.hh"#include "BLT_translation.hh"#include "DNA_light_types.h"#include "DNA_material_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "DNA_world_types.h"#include "GPU_framebuffer.hh"#include "GPU_material.hh"#include "GPU_primitive.hh"#include "GPU_shader.hh"#include "GPU_storage_buffer.hh"#include "GPU_texture.hh"#include "GPU_uniform_buffer.hh"#include "draw_cache.hh"#include "draw_common_c.hh"#include "draw_view_c.hh"#include "draw_debug_c.hh"#include "draw_manager_profiling.hh"#include "draw_state.hh"#include "draw_view_data.hh"#include "MEM_guardedalloc.h"#include "RE_engine.h"#include "DEG_depsgraph.hh"Go to the source code of this file.
Classes | |
| struct | BoundSphere |
| struct | DrawEngineDataSize |
| struct | DrawEngineType |
| struct | DRWInstanceAttrFormat |
| struct | DRWContextState |
Namespaces | |
| namespace | blender |
| namespace | blender::gpu |
| namespace | blender::draw |
Typedefs | |
| typedef struct DRWCallBuffer | DRWCallBuffer |
| typedef struct DRWInterface | DRWInterface |
| typedef struct DRWPass | DRWPass |
| typedef struct DRWShaderLibrary | DRWShaderLibrary |
| typedef struct DRWShadingGroup | DRWShadingGroup |
| typedef struct DRWUniform | DRWUniform |
| typedef struct DRWView | DRWView |
| typedef char | DRWViewportEmptyList |
| typedef bool | DRWCallVisibilityFn(bool vis_in, void *user_data) |
Enumerations | |
| enum | DRWTextureFlag { DRW_TEX_FILTER = (1 << 0) , DRW_TEX_WRAP = (1 << 1) , DRW_TEX_COMPARE = (1 << 2) , DRW_TEX_MIPMAP = (1 << 3) } |
| enum | eDRWAttrType { DRW_ATTR_INT , DRW_ATTR_FLOAT } |
| #define DRW_buffer_add_entry | ( | buffer, | |
| ... ) |
Definition at line 428 of file DRW_render.hh.
Referenced by camera_view3d_reconstruction(), ArmatureBoneDrawStrategyWire::draw_bone(), draw_bone_degrees_of_freedom(), drw_shgroup_bone_envelope(), drw_shgroup_bone_envelope_distance(), drw_shgroup_bone_stick(), OVERLAY_bounds(), OVERLAY_empty_shape(), OVERLAY_extra_cache_populate(), OVERLAY_extra_line(), OVERLAY_extra_line_dashed(), OVERLAY_extra_point(), OVERLAY_forcefield(), OVERLAY_light_cache_populate(), OVERLAY_lightprobe_cache_populate(), OVERLAY_object_center(), OVERLAY_speaker_cache_populate(), OVERLAY_texture_space(), and OVERLAY_volume_extra().
| #define DRW_DEBUG_FILE_LINE_ARGS |
Definition at line 61 of file DRW_render.hh.
| #define DRW_PASS_CREATE | ( | pass, | |
| state ) (pass = DRW_pass_create(#pass, state)) |
Definition at line 628 of file DRW_render.hh.
Referenced by basic_cache_init(), GPENCIL_antialiasing_init(), GPENCIL_cache_init(), OVERLAY_antialiasing_cache_init(), OVERLAY_armature_cache_init(), OVERLAY_background_cache_init(), OVERLAY_edit_curve_cache_init(), OVERLAY_edit_curves_cache_init(), OVERLAY_edit_gpencil_legacy_cache_init(), OVERLAY_edit_grease_pencil_cache_init(), OVERLAY_edit_lattice_cache_init(), OVERLAY_edit_mesh_cache_init(), OVERLAY_edit_particle_cache_init(), OVERLAY_edit_text_cache_init(), OVERLAY_edit_uv_cache_init(), OVERLAY_extra_cache_init(), OVERLAY_facing_cache_init(), OVERLAY_fade_cache_init(), OVERLAY_gpencil_legacy_cache_init(), OVERLAY_grease_pencil_cache_init(), OVERLAY_grid_cache_init(), OVERLAY_image_cache_init(), OVERLAY_metaball_cache_init(), OVERLAY_mode_transfer_cache_init(), OVERLAY_motion_path_cache_init(), OVERLAY_outline_cache_init(), OVERLAY_paint_cache_init(), OVERLAY_particle_cache_init(), OVERLAY_sculpt_cache_init(), OVERLAY_sculpt_curves_cache_init(), OVERLAY_viewer_attribute_cache_init(), OVERLAY_volume_cache_init(), OVERLAY_wireframe_cache_init(), and select_cache_init().
| #define DRW_PASS_INSTANCE_CREATE | ( | pass, | |
| original, | |||
| state ) (pass = DRW_pass_create_instance(#pass, (original), state)) |
Definition at line 629 of file DRW_render.hh.
Referenced by OVERLAY_edit_text_cache_init().
| #define DRW_SHADER_FREE_SAFE | ( | shader | ) |
Definition at line 286 of file DRW_render.hh.
Referenced by BASIC_shaders_free(), DRW_shaders_free(), external_engine_free(), GPENCIL_shader_free(), blender::draw::image_engine::IMAGE_shader_free(), OVERLAY_shader_free(), select_debug_engine_free(), select_engine_free(), blender::eevee::ShaderModule::~ShaderModule(), and blender::workbench::StaticShader::~StaticShader().
| #define DRW_shgroup_call | ( | shgroup, | |
| geom, | |||
| ob ) DRW_shgroup_call_ex(shgroup, ob, nullptr, geom, false, nullptr) |
If ob is nullptr, unit model-matrix is assumed and culling is bypassed.
Definition at line 342 of file DRW_render.hh.
Referenced by basic_cache_populate(), basic_cache_populate_particles(), blender::draw::DRW_shgroup_pointcloud_create_sub(), external_cache_populate(), OVERLAY_background_cache_init(), OVERLAY_edit_lattice_cache_populate(), OVERLAY_edit_particle_cache_populate(), OVERLAY_edit_text_cache_populate(), OVERLAY_facing_cache_populate(), OVERLAY_fade_cache_populate(), OVERLAY_grid_cache_init(), OVERLAY_mode_transfer_cache_populate(), OVERLAY_outline_cache_populate(), OVERLAY_outline_volume(), OVERLAY_paint_texture_cache_populate(), OVERLAY_paint_vertex_cache_populate(), OVERLAY_particle_cache_populate(), OVERLAY_pose_cache_populate(), OVERLAY_sculpt_cache_populate(), OVERLAY_volume_cache_populate(), OVERLAY_wireframe_cache_populate(), populate_cache_for_geometry(), and populate_cache_for_instance().
| #define DRW_shgroup_call_no_cull | ( | shgroup, | |
| geom, | |||
| ob ) DRW_shgroup_call_ex(shgroup, ob, nullptr, geom, true, nullptr) |
Same as DRW_shgroup_call but bypass culling even if ob is not nullptr.
Definition at line 359 of file DRW_render.hh.
Referenced by draw_pbvh_nodes(), draw_select_id_edit_mesh(), draw_select_id_mesh(), blender::draw::DRW_shgroup_curves_create_sub(), DRW_shgroup_hair_create_sub(), OVERLAY_edit_curve_cache_populate(), overlay_edit_curves_add_ob_to_pass(), OVERLAY_edit_grease_pencil_cache_populate(), overlay_edit_mesh_add_ob_to_pass(), OVERLAY_edit_mesh_cache_populate(), OVERLAY_edit_surf_cache_populate(), OVERLAY_sculpt_grease_pencil_cache_populate(), OVERLAY_vertex_grease_pencil_cache_populate(), OVERLAY_weight_grease_pencil_cache_populate(), OVERLAY_wireframe_cache_populate(), populate_edit_overlay(), and wireframe_hair_cache_populate().
| #define DRW_shgroup_call_obmat | ( | shgroup, | |
| geom, | |||
| obmat ) DRW_shgroup_call_ex(shgroup, nullptr, obmat, geom, false, nullptr) |
Same as DRW_shgroup_call but override the obmat. Not culled.
Definition at line 348 of file DRW_render.hh.
Referenced by edit_text_cache_populate_cursor(), edit_text_cache_populate_select(), external_cache_image_add(), OVERLAY_edit_uv_cache_init(), overlay_edit_uv_cache_populate(), OVERLAY_extra_loose_points(), OVERLAY_extra_wire(), OVERLAY_grid_cache_init(), OVERLAY_image_camera_cache_populate(), OVERLAY_image_empty_cache_populate(), populate_cache_for_geometry(), populate_cache_for_instance(), and select_cache_populate().
| #define DRW_shgroup_call_with_callback | ( | shgroup, | |
| geom, | |||
| ob, | |||
| user_data ) DRW_shgroup_call_ex(shgroup, ob, nullptr, geom, false, user_data) |
Definition at line 353 of file DRW_render.hh.
Definition at line 309 of file DRW_render.hh.
Referenced by OVERLAY_shader_instance_formats_get().
| #define DRW_shgroup_storage_block | ( | shgroup, | |
| name, | |||
| ssbo ) DRW_shgroup_storage_block_ex(shgroup, name, ssbo) |
Definition at line 593 of file DRW_render.hh.
| #define DRW_shgroup_storage_block_ref | ( | shgroup, | |
| name, | |||
| ssbo ) DRW_shgroup_storage_block_ref_ex(shgroup, name, ssbo) |
Definition at line 595 of file DRW_render.hh.
Referenced by blender::eevee::VelocityModule::bind_resources().
| #define DRW_shgroup_uniform_block | ( | shgroup, | |
| name, | |||
| ubo ) DRW_shgroup_uniform_block_ex(shgroup, name, ubo) |
Definition at line 589 of file DRW_render.hh.
Referenced by basic_cache_init(), DRW_shgroup_add_material_resources(), blender::draw::DRW_shgroup_curves_create_sub(), DRW_shgroup_hair_create_sub(), drw_volume_object_grids_init(), drw_volume_object_mesh_init(), grease_pencil_object_cache_populate(), OVERLAY_antialiasing_cache_init(), OVERLAY_armature_cache_init(), OVERLAY_background_cache_init(), OVERLAY_edit_curve_cache_init(), OVERLAY_edit_curves_cache_init(), OVERLAY_edit_gpencil_legacy_cache_init(), OVERLAY_edit_grease_pencil_cache_init(), OVERLAY_edit_lattice_cache_init(), OVERLAY_edit_mesh_cache_init(), OVERLAY_edit_particle_cache_init(), OVERLAY_edit_uv_cache_init(), OVERLAY_extra_cache_init(), OVERLAY_facing_cache_init(), OVERLAY_gpencil_legacy_cache_init(), OVERLAY_grease_pencil_cache_init(), OVERLAY_grid_cache_init(), OVERLAY_metaball_cache_init(), OVERLAY_mode_transfer_cache_populate(), OVERLAY_motion_path_cache_init(), OVERLAY_outline_cache_init(), OVERLAY_paint_cache_init(), OVERLAY_particle_cache_init(), and OVERLAY_wireframe_cache_init().
| #define DRW_shgroup_uniform_block_ref | ( | shgroup, | |
| name, | |||
| ubo ) DRW_shgroup_uniform_block_ref_ex(shgroup, name, ubo) |
Definition at line 591 of file DRW_render.hh.
Referenced by blender::eevee::VelocityModule::bind_resources().
| #define DRW_shgroup_vertex_buffer | ( | shgroup, | |
| name, | |||
| vert ) DRW_shgroup_vertex_buffer_ex(shgroup, name, vert) |
Definition at line 585 of file DRW_render.hh.
Referenced by blender::draw::drw_curves_cache_update_compute(), and drw_hair_particle_cache_update_compute().
| #define DRW_shgroup_vertex_buffer_ref | ( | shgroup, | |
| name, | |||
| vert ) DRW_shgroup_vertex_buffer_ref_ex(shgroup, name, vert) |
Definition at line 587 of file DRW_render.hh.
Definition at line 246 of file DRW_render.hh.
Referenced by DRW_engines_free(), DRW_globals_update(), GPENCIL_cache_init(), OVERLAY_edit_uv_draw_finish(), blender::draw::particle_batch_cache_clear_hair(), select_engine_free(), and blender::draw::volume_batch_cache_clear().
| #define DRW_UBO_FREE_SAFE | ( | ubo | ) |
Definition at line 254 of file DRW_render.hh.
Referenced by DRW_engines_free(), gpencil_light_pool_free(), gpencil_material_pool_free(), and blender::draw::overlay::Instance::~Instance().
| #define DRW_VIEWPORT_DATA_SIZE | ( | ty | ) |
Definition at line 103 of file DRW_render.hh.
| #define DRW_VIEWPORT_LIST_SIZE | ( | list | ) | (sizeof(list) == sizeof(DRWViewportEmptyList) ? 0 : (sizeof(list) / sizeof(void *))) |
Definition at line 99 of file DRW_render.hh.
| typedef struct DRWCallBuffer DRWCallBuffer |
Definition at line 83 of file DRW_render.hh.
| typedef bool DRWCallVisibilityFn(bool vis_in, void *user_data) |
Return final visibility.
Definition at line 330 of file DRW_render.hh.
| typedef struct DRWInterface DRWInterface |
Definition at line 84 of file DRW_render.hh.
| typedef struct DRWPass DRWPass |
Definition at line 85 of file DRW_render.hh.
| typedef struct DRWShaderLibrary DRWShaderLibrary |
Definition at line 86 of file DRW_render.hh.
| typedef struct DRWShadingGroup DRWShadingGroup |
Definition at line 87 of file DRW_render.hh.
| typedef struct DRWUniform DRWUniform |
Definition at line 88 of file DRW_render.hh.
| typedef struct DRWView DRWView |
Definition at line 89 of file DRW_render.hh.
| typedef char DRWViewportEmptyList |
Definition at line 97 of file DRW_render.hh.
| enum DRWTextureFlag |
| Enumerator | |
|---|---|
| DRW_TEX_FILTER | |
| DRW_TEX_WRAP | |
| DRW_TEX_COMPARE | |
| DRW_TEX_MIPMAP | |
Definition at line 147 of file DRW_render.hh.
| enum eDRWAttrType |
| Enumerator | |
|---|---|
| DRW_ATTR_INT | |
| DRW_ATTR_FLOAT | |
Definition at line 296 of file DRW_render.hh.
| void DRW_buffer_add_entry_array | ( | DRWCallBuffer * | callbuf, |
| const void * | attr[], | ||
| uint | attr_len ) |
Definition at line 1617 of file draw_manager_data.cc.
References BLI_assert, DRWCallBuffer::buf, DRWCallBuffer::buf_select, DRWCallBuffer::count, DRW_BUFFER_VERTS_CHUNK, DST, G, G_FLAG_PICKSEL, GPU_vertbuf_attr_set(), GPU_vertbuf_data_resize(), GPU_vertbuf_get_format(), GPU_vertbuf_get_vertex_alloc(), DRWManager::select_id, UNLIKELY, and UNUSED_VARS_NDEBUG.
| void DRW_buffer_add_entry_struct | ( | DRWCallBuffer * | callbuf, |
| const void * | data ) |
Definition at line 1596 of file draw_manager_data.cc.
References DRWCallBuffer::buf, DRWCallBuffer::buf_select, DRWCallBuffer::count, DRW_BUFFER_VERTS_CHUNK, DST, G, G_FLAG_PICKSEL, GPU_vertbuf_attr_set(), GPU_vertbuf_data_resize(), GPU_vertbuf_get_vertex_alloc(), GPU_vertbuf_vert_set(), DRWManager::select_id, and UNLIKELY.
Referenced by camera_stereoscopy_extra(), drw_shgroup_bone_box(), drw_shgroup_bone_custom_mesh_wire(), drw_shgroup_bone_custom_solid_mesh(), drw_shgroup_bone_envelope(), drw_shgroup_bone_octahedral(), drw_shgroup_bone_sphere(), drw_shgroup_custom_bone_curve(), OVERLAY_camera_cache_populate(), OVERLAY_edit_metaball_cache_populate(), and OVERLAY_metaball_cache_populate().
| void DRW_cache_restart | ( | ) |
Used when the render engine want to redo another cache populate inside the same render frame.
Definition at line 2184 of file draw_manager_c.cc.
References DRWManager::buffer_finish_called, drw_manager_init(), DRW_smoke_exit(), DRW_smoke_init(), DRW_volume_init(), DST, DRWManager::viewport, and DRWManager::vmempool.
Referenced by blender::eevee::Instance::render_sync(), and workbench_render_to_image().
| const DRWContextState * DRW_context_state_get | ( | ) |
Definition at line 3046 of file draw_manager_c.cc.
References DRWManager::draw_ctx, and DST.
Referenced by basic_cache_init(), basic_cache_populate(), camera_view3d_reconstruction(), compositor_engine_update(), blender::eevee::ShadowModule::debug_end_sync(), blender::draw::overlay::Armatures::draw_armature_pose(), drw_batch_cache_generate_requested(), drw_batch_cache_generate_requested_evaluated_mesh_or_curve(), blender::draw::DRW_curves_pos_buffer_get(), DRW_draw_cursor(), DRW_draw_cursor_2d(), DRW_draw_gizmo_2d(), DRW_draw_gizmo_3d(), DRW_draw_region_info(), DRW_engine_external_acquire_for_image_editor(), DRW_globals_update(), DRW_hair_pos_buffer_get(), DRW_object_is_visible_psys_in_active_context(), DRW_object_wire_theme_get(), blender::draw::drw_particle_get_hair_source(), blender::draw::drw_particle_update_ptcache(), blender::draw::drw_particle_update_ptcache_edit(), DRW_render_object_iter(), drw_sculpt_generate_calls(), blender::draw::DRW_shgroup_curves_create_sub(), DRW_shgroup_hair_create_sub(), blender::draw::DRW_volume_batch_cache_get_wireframes_face(), eevee_engine_init(), eevee_render_to_image(), external_cache_init(), external_cache_populate(), external_draw_scene(), external_draw_scene_do(), external_draw_scene_do_image(), external_draw_scene_do_v3d(), external_engine_init(), external_image_space_matrix_set(), blender::draw::compositor::Context::get_compositing_region(), blender::draw::compositor::Context::get_input_texture(), blender::draw::compositor::Context::get_node_tree(), blender::draw::compositor::Context::get_render_data(), blender::draw::compositor::Context::get_scene(), blender::draw::compositor::Context::get_view_name(), GPENCIL_cache_init(), GPENCIL_engine_init(), GPENCIL_render_result_z(), GPENCIL_render_to_image(), blender::draw::image_engine::IMAGE_cache_init(), blender::draw::image_engine::IMAGE_draw_scene(), blender::draw::image_engine::ImageEngine< DrawingMode >::image_sync(), blender::draw::image_engine::ScreenSpaceDrawingMode< TextureMethod >::image_sync(), blender::draw::overlay::Instance::init(), blender::workbench::DofPass::init(), blender::workbench::SceneState::init(), is_selection_visible(), motion_path_cache(), blender::eevee::Instance::object_sync(), blender::workbench::ObjectState::ObjectState(), OVERLAY_armature_cache_init(), OVERLAY_armature_cache_populate(), OVERLAY_background_cache_init(), OVERLAY_cache_populate(), OVERLAY_camera_cache_populate(), OVERLAY_draw_scene(), OVERLAY_edit_curve_cache_init(), OVERLAY_edit_curves_init(), OVERLAY_edit_gpencil_legacy_cache_init(), OVERLAY_edit_grease_pencil_cache_init(), OVERLAY_edit_grease_pencil_cache_populate(), OVERLAY_edit_mesh_cache_init(), OVERLAY_edit_mesh_cache_populate(), OVERLAY_edit_mesh_init(), OVERLAY_edit_particle_cache_init(), OVERLAY_edit_particle_cache_populate(), OVERLAY_edit_text_cache_init(), OVERLAY_edit_uv_cache_init(), overlay_edit_uv_cache_populate(), OVERLAY_edit_uv_init(), OVERLAY_empty_cache_populate(), OVERLAY_engine_init(), OVERLAY_extra_cache_populate(), OVERLAY_facing_cache_init(), OVERLAY_facing_cache_populate(), OVERLAY_fade_cache_init(), OVERLAY_fade_cache_populate(), OVERLAY_gpencil_legacy_cache_init(), OVERLAY_grease_pencil_cache_init(), overlay_grease_pencil_draw_stroke_color_name(), OVERLAY_grease_pencil_material_names(), OVERLAY_grid_init(), OVERLAY_image_camera_cache_populate(), OVERLAY_image_empty_cache_populate(), OVERLAY_image_init(), OVERLAY_lattice_cache_populate(), OVERLAY_light_cache_populate(), OVERLAY_lightprobe_cache_populate(), OVERLAY_metaball_cache_populate(), OVERLAY_mode_transfer_cache_populate(), OVERLAY_motion_path_cache_populate(), OVERLAY_next_engine_init(), OVERLAY_outline_cache_populate(), OVERLAY_paint_cache_init(), OVERLAY_paint_init(), OVERLAY_particle_cache_init(), OVERLAY_sculpt_cache_populate(), OVERLAY_sculpt_grease_pencil_cache_populate(), OVERLAY_shader_armature_degrees_of_freedom_solid(), OVERLAY_shader_armature_degrees_of_freedom_wire(), OVERLAY_shader_armature_envelope(), OVERLAY_shader_armature_shape(), OVERLAY_shader_armature_shape_wire(), OVERLAY_shader_armature_sphere(), OVERLAY_shader_armature_stick(), OVERLAY_shader_armature_wire(), OVERLAY_shader_depth_only(), OVERLAY_shader_edit_curve_handle(), OVERLAY_shader_edit_curve_point(), OVERLAY_shader_edit_curve_wire(), OVERLAY_shader_edit_curves_handle(), OVERLAY_shader_edit_gpencil_guide_point(), OVERLAY_shader_edit_gpencil_point(), OVERLAY_shader_edit_gpencil_wire(), OVERLAY_shader_edit_lattice_point(), OVERLAY_shader_edit_lattice_wire(), OVERLAY_shader_edit_mesh_analysis(), OVERLAY_shader_edit_mesh_depth(), OVERLAY_shader_edit_mesh_edge(), OVERLAY_shader_edit_mesh_face(), OVERLAY_shader_edit_mesh_facedot(), OVERLAY_shader_edit_mesh_normal(), OVERLAY_shader_edit_mesh_skin_root(), OVERLAY_shader_edit_mesh_vert(), OVERLAY_shader_edit_particle_point(), OVERLAY_shader_edit_particle_strand(), OVERLAY_shader_extra(), OVERLAY_shader_extra_grid(), OVERLAY_shader_extra_groundline(), OVERLAY_shader_extra_loose_point(), OVERLAY_shader_extra_point(), OVERLAY_shader_extra_wire(), OVERLAY_shader_facing(), OVERLAY_shader_gpencil_canvas(), OVERLAY_shader_image(), OVERLAY_shader_motion_path_line(), OVERLAY_shader_motion_path_vert(), OVERLAY_shader_outline_prepass(), OVERLAY_shader_outline_prepass_curves(), OVERLAY_shader_outline_prepass_gpencil(), OVERLAY_shader_outline_prepass_pointcloud(), OVERLAY_shader_paint_face(), OVERLAY_shader_paint_point(), OVERLAY_shader_paint_texture(), OVERLAY_shader_paint_vertcol(), OVERLAY_shader_paint_weight(), OVERLAY_shader_paint_wire(), OVERLAY_shader_particle_dot(), OVERLAY_shader_particle_shape(), OVERLAY_shader_sculpt_curves_cage(), OVERLAY_shader_sculpt_curves_selection(), OVERLAY_shader_sculpt_mask(), OVERLAY_shader_uniform_color(), OVERLAY_shader_uniform_color_pointcloud(), OVERLAY_shader_viewer_attribute_curve(), OVERLAY_shader_viewer_attribute_curves(), OVERLAY_shader_viewer_attribute_mesh(), OVERLAY_shader_viewer_attribute_pointcloud(), OVERLAY_shader_wireframe(), OVERLAY_shader_wireframe_select(), OVERLAY_speaker_cache_populate(), OVERLAY_vertex_grease_pencil_cache_populate(), OVERLAY_weight_grease_pencil_cache_populate(), OVERLAY_wireframe_cache_init(), OVERLAY_wireframe_cache_populate(), OVERLAY_wireframe_init(), blender::draw::particle_batch_cache_ensure_pos(), POSE_is_driven_by_active_armature(), blender::draw::sculpt_batches_get_ex(), select_cache_init(), select_cache_populate(), select_engine_init(), SELECT_next_engine_init(), blender::draw::color_management::viewport_color_management_set(), and workbench_render_to_image().
Definition at line 425 of file draw_manager_exec.cc.
References draw_culling_box_test(), DST, view, and DRWManager::view_default.
Definition at line 455 of file draw_manager_exec.cc.
References DST, DRWView::frustum_corners, view, and DRWManager::view_default.
Definition at line 461 of file draw_manager_exec.cc.
References DST, view, and DRWManager::view_default.
Referenced by blender::workbench::ShadowPass::init().
| bool DRW_culling_min_max_test | ( | const DRWView * | view, |
| float | obmat[4][4], | ||
| float | min[3], | ||
| float | max[3] ) |
Return True if the given box intersect the current view frustum. This function will have to be replaced when world space bounding-box per objects is implemented.
Definition at line 437 of file draw_manager_exec.cc.
References aabb_get_near_far_from_plane(), DST, min, mul_v4_m4v4(), plane_point_side_v3(), transpose_m4_m4(), view, and DRWManager::view_default.
Definition at line 431 of file draw_manager_exec.cc.
References draw_culling_plane_test(), DST, view, and DRWManager::view_default.
| bool DRW_culling_sphere_test | ( | const DRWView * | view, |
| const BoundSphere * | bsphere ) |
Definition at line 419 of file draw_manager_exec.cc.
References draw_culling_sphere_test(), DST, view, and DRWManager::view_default.
Referenced by ArmatureBoneDrawStrategyBBone::culling_test(), ArmatureBoneDrawStrategyEnvelope::culling_test(), pchan_culling_test_simple(), and pchan_culling_test_with_radius_scale().
| void DRW_custom_pipeline | ( | DrawEngineType * | draw_engine_type, |
| Depsgraph * | depsgraph, | ||
| void(* | callback )(void *vedata, void *user_data), | ||
| void * | user_data ) |
Assume a valid GL context is bound (and that the gl_context_mutex has been acquired). This function only setup DST and execute the given function.
dfbl & dtxl). Definition at line 2169 of file draw_manager_c.cc.
References callback, depsgraph, DRW_custom_pipeline_begin(), DRW_custom_pipeline_end(), DRW_view_data_engine_data_get_ensure(), DST, and DRWManager::view_data_active.
| void DRW_custom_pipeline_begin | ( | DrawEngineType * | draw_engine_type, |
| Depsgraph * | depsgraph ) |
Same as DRW_custom_pipeline but allow better code-flow than a callback.
Definition at line 2118 of file draw_manager_c.cc.
References DEG_get_evaluated_scene(), DEG_get_evaluated_view_layer(), depsgraph, DRWContextState::depsgraph, DRWManager::draw_background, DRWManager::draw_ctx, drw_context_state_init(), drw_manager_init(), DRW_smoke_init(), drw_state_prepare_clean_for_draw(), DRW_view_data_engine_data_get_ensure(), DRW_volume_init(), DST, DRWContextState::engine_type, DRWManager::is_image_render, DRWManager::is_scene_render, OB_MODE_OBJECT, DRWContextState::object_mode, DRWManager::options, DRWContextState::scene, scene, DRWManager::view_data_active, DRWContextState::view_layer, and DRWManager::vmempool.
Referenced by DRW_custom_pipeline(), and blender::eevee::Instance::light_bake_irradiance().
| void DRW_custom_pipeline_end | ( | ) |
Definition at line 2149 of file draw_manager_c.cc.
References DRWManager::buffer_finish_called, drw_manager_exit(), DRW_smoke_exit(), DST, GPU_backend_get_type(), GPU_BACKEND_OPENGL, GPU_finish(), GPU_framebuffer_restore(), and DRWManager::vmempool.
Referenced by DRW_custom_pipeline(), and blender::eevee::Instance::light_bake_irradiance().
| void DRW_draw_callbacks_post_scene | ( | ) |
Definition at line 1468 of file draw_manager_c.cc.
References BKE_regiontype_from_id(), BKE_spacetype_from_id(), DEG_get_input_scene(), depsgraph, DRWContextState::depsgraph, DRWManager::draw_ctx, drw_debug_draw(), DRW_draw_gizmo_2d(), DRW_draw_gizmo_3d(), DRW_draw_region_info(), drw_draw_show_annotation(), drw_engines_draw_text(), DRW_state_reset(), DRW_stats_draw(), DRW_viewport_framebuffer_list_get(), DST, ED_annotation_draw_view3d(), ED_region_draw_cb_draw(), ED_region_surface_draw_cb_draw(), ED_region_visible_rect(), DRWContextState::evil_C, View3D::flag, View3D::flag2, G, View3D::gizmo_flag, GPU_apply_state(), GPU_DEPTH_LESS_EQUAL, GPU_DEPTH_NONE, GPU_depth_test(), GPU_framebuffer_bind(), GPU_matrix_projection_set, GPU_matrix_set, DefaultFramebufferList::overlay_fb, DRWContextState::region, REGION_DRAW_POST_VIEW, RGN_TYPE_XR, DRWContextState::rv3d, SPACE_VIEW3D, DRWContextState::v3d, V3D_GIZMO_HIDE, V3D_HIDE_OVERLAYS, V3D_SHOW_ANNOTATION, V3D_XR_SESSION_MIRROR, V3D_XR_SESSION_SURFACE, V3D_XR_SHOW_CONTROLLERS, V3D_XR_SHOW_CUSTOM_OVERLAYS, RegionView3D::viewmat, RegionView3D::winmat, and WM_xr_surface_controller_region_type_get().
Referenced by DRW_draw_render_loop_ex().
| void DRW_draw_callbacks_pre_scene | ( | ) |
Definition at line 1453 of file draw_manager_c.cc.
References DRWManager::draw_ctx, DRW_state_reset(), DST, ED_region_draw_cb_draw(), DRWContextState::evil_C, GPU_matrix_projection_set, GPU_matrix_set, DRWContextState::region, REGION_DRAW_PRE_VIEW, DRWContextState::rv3d, RegionView3D::viewmat, and RegionView3D::winmat.
Referenced by DRW_draw_render_loop_ex(), and DRW_draw_select_loop().
| void DRW_draw_pass | ( | DRWPass * | pass | ) |
Definition at line 1254 of file draw_manager_exec.cc.
References drw_draw_pass_ex().
Referenced by basic_draw_scene(), blender::draw::image_engine::ScreenSpaceDrawingMode< TextureMethod >::draw_viewport(), blender::draw::DRW_curves_update(), DRW_hair_update(), external_draw_scene(), GPENCIL_antialiasing_draw(), gpencil_draw_mask(), GPENCIL_draw_object(), GPENCIL_draw_scene_depth_only(), OVERLAY_antialiasing_end(), OVERLAY_armature_draw(), OVERLAY_armature_in_front_draw(), OVERLAY_background_draw(), OVERLAY_edit_curve_draw(), OVERLAY_edit_curves_draw(), OVERLAY_edit_gpencil_legacy_draw(), OVERLAY_edit_grease_pencil_draw(), OVERLAY_edit_lattice_draw(), OVERLAY_edit_mesh_draw(), overlay_edit_mesh_draw_components(), OVERLAY_edit_particle_draw(), OVERLAY_edit_text_draw(), OVERLAY_edit_uv_draw(), OVERLAY_extra_blend_draw(), OVERLAY_extra_centers_draw(), OVERLAY_extra_draw(), OVERLAY_extra_in_front_draw(), OVERLAY_facing_draw(), OVERLAY_facing_infront_draw(), OVERLAY_fade_draw(), OVERLAY_fade_infront_draw(), OVERLAY_gpencil_legacy_draw(), OVERLAY_grease_pencil_draw(), OVERLAY_grid_draw(), OVERLAY_image_background_draw(), OVERLAY_image_draw(), OVERLAY_image_in_front_draw(), OVERLAY_image_scene_background_draw(), OVERLAY_metaball_draw(), OVERLAY_metaball_in_front_draw(), OVERLAY_mode_transfer_draw(), OVERLAY_mode_transfer_infront_draw(), OVERLAY_motion_path_draw(), OVERLAY_outline_draw(), OVERLAY_paint_draw(), OVERLAY_particle_draw(), OVERLAY_pose_draw(), OVERLAY_sculpt_curves_draw(), OVERLAY_sculpt_curves_draw_wires(), OVERLAY_sculpt_draw(), OVERLAY_viewer_attribute_draw(), OVERLAY_volume_draw(), OVERLAY_wireframe_draw(), OVERLAY_wireframe_in_front_draw(), OVERLAY_xray_fade_draw(), select_debug_draw_scene(), and select_draw_scene().
| void DRW_draw_pass_subset | ( | DRWPass * | pass, |
| DRWShadingGroup * | start_group, | ||
| DRWShadingGroup * | end_group ) |
Draw only a subset of shgroups. Used in special situations as grease pencil strokes.
Definition at line 1261 of file draw_manager_exec.cc.
References drw_draw_pass_ex().
| DrawData * DRW_drawdata_ensure | ( | ID * | id, |
| DrawEngineType * | engine_type, | ||
| size_t | size, | ||
| DrawDataInitCb | init_cb, | ||
| DrawDataFreeCb | free_cb ) |
Definition at line 903 of file draw_manager_c.cc.
References BASE_FROM_DUPLI, BLI_addtail(), BLI_assert, DRW_drawdata_get(), DRW_drawdatalist_from_id(), DRW_instance_data_next(), DRW_instance_data_request(), DST, DrawData::engine_type, float, DrawData::free, GS, id_can_have_drawdata(), ID_OB, DRWData::idatalist, MAX_INSTANCE_DATA_SIZE, MEM_callocN, DRWManager::object_instance_data, and DRWManager::vmempool.
Referenced by blender::draw::compositor::Context::query_id_recalc_flag(), blender::render::Context::query_id_recalc_flag(), select_cache_init(), and select_draw_scene().
| DrawData * DRW_drawdata_get | ( | ID * | id, |
| DrawEngineType * | engine_type ) |
Definition at line 887 of file draw_manager_c.cc.
References DRW_drawdatalist_from_id(), and LISTBASE_FOREACH.
Referenced by DRW_drawdata_ensure(), DRW_select_buffer_context_offset_for_object_elem(), SELECTID_Context::is_dirty(), and select_cache_populate().
| void ** DRW_duplidata_get | ( | void * | vedata | ) |
Return nullptr if not a dupli or a pointer of pointer to the engine data.
Definition at line 772 of file draw_manager_c.cc.
References DST, DRWManager::dupli_datas, DRWManager::dupli_source, ViewportEngineData::engine_type, and DRWRegisteredDrawEngine::index.
Referenced by OVERLAY_duplidata_get().
| bool DRW_is_viewport_compositor_enabled | ( | ) |
Definition at line 1243 of file draw_manager_c.cc.
References DRWManager::draw_ctx, DST, Scene::nodetree, OB_MATERIAL, RegionView3D::persp, DRWContextState::rv3d, RV3D_CAMOB, DRWContextState::scene, View3D::shading, View3DShading::type, View3DShading::use_compositor, Scene::use_nodes, DRWContextState::v3d, V3D_SHADING_USE_COMPOSITOR_CAMERA, and V3D_SHADING_USE_COMPOSITOR_DISABLED.
Referenced by drw_engines_enable(), and blender::eevee::Film::is_viewport_compositor_enabled().
| void DRW_mesh_batch_cache_get_attributes | ( | Object * | object, |
| Mesh * | mesh, | ||
| blender::draw::DRW_Attributes ** | r_attrs, | ||
| blender::draw::DRW_MeshCDMask ** | r_cd_needed ) |
| DupliObject * DRW_object_get_dupli | ( | const Object * | ob | ) |
Definition at line 273 of file draw_manager_c.cc.
References DST, and DRWManager::dupli_source.
Referenced by DRW_hair_duplimat_get(), blender::draw::overlay::AttributeViewer::object_sync(), blender::eevee::ObjectKey::ObjectKey(), OVERLAY_cache_populate(), OVERLAY_next_cache_populate(), OVERLAY_viewer_attribute_cache_populate(), OVERLAY_viewer_attribute_text(), SELECT_next_cache_populate(), wireframe_hair_cache_populate(), and workbench_cache_populate().
Definition at line 268 of file draw_manager_c.cc.
References DST, and DRWManager::dupli_parent.
Referenced by drw_call_obinfos_init(), DRW_hair_duplimat_get(), DRW_object_wire_theme_get(), blender::eevee::ObjectKey::ObjectKey(), OVERLAY_cache_populate(), OVERLAY_next_cache_populate(), OVERLAY_wireframe_cache_populate(), SELECT_next_cache_populate(), wireframe_hair_cache_populate(), and workbench_cache_populate().
| bool DRW_object_is_in_edit_mode | ( | const Object * | ob | ) |
Does ob needs to be rendered in edit mode.
When using duplicate linked meshes, objects that are not in edit-mode will be drawn as it is in edit mode, when another object with the same mesh is in edit mode. This will not be the case when one of the objects are influenced by modifiers.
Definition at line 203 of file draw_manager_c.cc.
References BKE_object_is_in_editmode(), ELEM, Object::mode, OB_CURVES, OB_MESH, OB_MODE_EDIT, and Object::type.
Referenced by drw_batch_cache_generate_requested(), drw_batch_cache_generate_requested_evaluated_mesh_or_curve(), DRW_draw_select_id(), blender::draw::DRW_mesh_batch_cache_create_requested(), DRW_object_is_renderable(), overlay_edit_uv_cache_populate(), overlay_object_is_edit_mode(), and OVERLAY_wireframe_cache_populate().
| bool DRW_object_is_renderable | ( | const Object * | ob | ) |
Definition at line 187 of file draw_manager_c.cc.
References BASE_ENABLED_AND_MAYBE_VISIBLE_IN_VIEWPORT, Object::base_flag, BLI_assert, DRWManager::draw_ctx, DRW_object_is_in_edit_mode(), DST, View3D::flag2, OB_MESH, DRWContextState::object_edit, RETOPOLOGY_ENABLED, Object::type, DRWContextState::v3d, and V3D_HIDE_OVERLAYS.
Referenced by basic_cache_populate(), external_cache_populate(), blender::draw::overlay::Facing::object_sync(), blender::draw::overlay::Fade::object_sync(), blender::draw::overlay::ModeTransfer::object_sync(), blender::eevee::Instance::object_sync(), blender::workbench::Instance::object_sync(), OVERLAY_cache_populate(), and blender::eevee::step_object_sync_render().
| bool DRW_object_is_visible_psys_in_active_context | ( | const Object * | object, |
| const ParticleSystem * | psys ) |
Definition at line 237 of file draw_manager_c.cc.
References DRWContextState::depsgraph, DRW_context_state_get(), DRW_state_is_image_render(), ParticleEditSettings::flag, ParticleSystem::flag, PointCache::flag, OB_MODE_PARTICLE_EDIT, DRWContextState::object_edit, ParticleSystem::part, PE_DRAW_PART, ParticleSystem::pointcache, psys_check_enabled(), PSYS_HAIR_DYNAMICS, psys_in_edit_mode(), PTCACHE_BAKED, and DRWContextState::scene.
Referenced by basic_cache_populate_particles(), external_cache_populate(), blender::eevee::foreach_hair_particle_handle(), blender::draw::overlay::Particles::object_sync(), blender::workbench::Instance::object_sync(), OVERLAY_particle_cache_populate(), OVERLAY_wireframe_cache_populate(), and blender::draw::overlay::Prepass::particle_sync().
Can only be called during iteration phase.
Definition at line 790 of file draw_manager_data.cc.
References DST, DRWManager::ob_handle, and DRWManager::resource_handle.
| bool DRW_object_use_hide_faces | ( | const Object * | ob | ) |
Definition at line 222 of file draw_manager_c.cc.
References Object::mode, OB_MESH, OB_MODE_SCULPT, OB_MODE_TEXTURE_PAINT, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, and Object::type.
Referenced by drw_batch_cache_generate_requested(), drw_batch_cache_generate_requested_evaluated_mesh_or_curve(), and blender::workbench::ObjectState::ObjectState().
Return whether this object is visible depending if we are rendering or drawing in the viewport.
Definition at line 216 of file draw_manager_c.cc.
References BKE_object_visibility(), DAG_EVAL_RENDER, DAG_EVAL_VIEWPORT, and DRW_state_is_scene_render().
Referenced by DRW_render_check_grease_pencil(), external_cache_populate(), GPENCIL_cache_populate(), GPENCIL_render_cache(), blender::draw::overlay::Relations::object_sync(), blender::eevee::Instance::object_sync(), blender::workbench::Instance::object_sync(), overlay_edit_uv_cache_populate(), OVERLAY_relationship_lines(), and blender::eevee::step_object_sync_render().
Definition at line 2420 of file draw_manager_data.cc.
References BLI_memblock_alloc(), DRW_handle_increment(), DRW_STATE_PROGRAM_POINT_SIZE, DST, G, G_DEBUG_GPU, DRWManager::pass_handle, DRWData::passes, DRWPass::state, state, STRNCPY, and DRWManager::vmempool.
Referenced by blender::draw::DRW_curves_init(), DRW_hair_init(), DRW_pass_create_instance(), external_cache_init(), gpencil_layer_cache_add(), gpencil_vfx_pass_create(), grease_pencil_layer_cache_add(), and select_debug_engine_init().
Create an instance of the original pass that will execute the same drawcalls but with its own DRWState.
Definition at line 2439 of file draw_manager_data.cc.
References DRW_pass_create(), and state.
| void DRW_pass_foreach_shgroup | ( | DRWPass * | pass, |
| void(* | callback )(void *user_data, DRWShadingGroup *shgroup), | ||
| void * | user_data ) |
Definition at line 2468 of file draw_manager_data.cc.
References callback, and LISTBASE_FOREACH.
| bool DRW_pass_is_empty | ( | DRWPass * | pass | ) |
Definition at line 2454 of file draw_manager_data.cc.
References DRW_pass_is_empty(), DRW_shgroup_is_empty(), and LISTBASE_FOREACH.
Referenced by DRW_pass_is_empty(), OVERLAY_antialiasing_cache_finish(), OVERLAY_edit_mesh_draw(), OVERLAY_image_scene_background_draw(), OVERLAY_outline_draw(), and select_draw_scene().
Link two passes so that they are both rendered if the first one is being drawn.
Definition at line 2447 of file draw_manager_data.cc.
References BLI_assert, and DRWPass::next.
| void DRW_pass_sort_shgroup_reverse | ( | DRWPass * | pass | ) |
Reverse Shading group submission order.
Definition at line 2558 of file draw_manager_data.cc.
References BLI_linklist_reverse(), and DRWShadingGroup::last.
| void DRW_pass_sort_shgroup_z | ( | DRWPass * | pass | ) |
Sort Shading groups by decreasing Z of their first draw call. This is useful for order dependent effect such as alpha-blending.
Definition at line 2507 of file draw_manager_data.cc.
References DRWShadingGroup::cmd, DRWCommandChunk::command_type, command_type_get(), DRWCommandChunk::command_used, DRWCommandChunk::commands, DRWShadingGroup::distance, dot_v3v3(), DRWCommand::draw, DRW_CMD_DRAW, DRW_memblock_elem_from_handle(), DST, DRWShadingGroup::first, DRWCommandDraw::handle, DRWObjectMatrix::model, DRWCommandChunk::next, DRWShadingGroup::next, DRWData::obmats, DRWShadingGroup::original_index, DRWShadingGroup::pass_handle, pass_shgroup_dist_sort(), DRWView::storage, sub_v3_v3v3(), DRWManager::view_active, ViewMatrices::viewinv, DRWManager::vmempool, and DRWShadingGroup::z_sorting.
Referenced by OVERLAY_image_cache_finish().
| void DRW_render_instance_buffer_finish | ( | ) |
Must run after all instance datas have been added.
Definition at line 2386 of file draw_manager_c.cc.
References BLI_assert_msg, DRWManager::buffer_finish_called, DRW_instance_buffer_finish(), drw_resource_buffer_finish(), DST, DRWData::idatalist, and DRWManager::vmempool.
Referenced by DRW_draw_depth_loop(), DRW_draw_render_loop_2d_ex(), DRW_draw_render_loop_ex(), DRW_draw_select_id(), DRW_draw_select_loop(), GPENCIL_render_to_image(), blender::eevee::Instance::render_sync(), and workbench_render_to_image().
| void DRW_render_object_iter | ( | void * | vedata, |
| RenderEngine * | engine, | ||
| Depsgraph * | depsgraph, | ||
| void(* | callback )(void *vedata, Object *ob, RenderEngine *engine, Depsgraph *depsgraph) ) |
Definition at line 2074 of file draw_manager_c.cc.
References callback, DEG_OBJECT_ITER_BEGIN, DEG_OBJECT_ITER_END, DEG_OBJECT_ITER_FOR_RENDER_ENGINE_FLAGS, DEGObjectIterSettings::depsgraph, depsgraph, drw_batch_cache_generate_requested(), drw_batch_cache_validate(), DRW_context_state_get(), drw_duplidata_free(), drw_duplidata_load(), DRW_smoke_init(), drw_task_graph_deinit(), drw_task_graph_init(), DRW_volume_init(), DST, DRWManager::dupli_origin, DRWManager::dupli_origin_data, DRWManager::dupli_parent, DRWManager::dupli_source, DEGObjectIterSettings::flags, DRWManager::ob_handle, View3D::object_type_exclude_viewport, Object::type, DRWContextState::v3d, and DRWManager::vmempool.
Referenced by GPENCIL_render_to_image(), blender::eevee::Instance::render_sync(), blender::eevee::VelocityModule::step_sync(), and workbench_render_to_image().
| void DRW_render_set_time | ( | RenderEngine * | engine, |
| Depsgraph * | depsgraph, | ||
| int | frame, | ||
| float | subframe ) |
Definition at line 2394 of file draw_manager_c.cc.
References DEG_get_evaluated_scene(), DEG_get_evaluated_view_layer(), depsgraph, DRWManager::draw_ctx, DST, RE_engine_frame_set(), DRWContextState::scene, and DRWContextState::view_layer.
| void DRW_render_to_image | ( | RenderEngine * | engine, |
| Depsgraph * | depsgraph ) |
Definition at line 1983 of file draw_manager_c.cc.
References BLI_rcti_init(), BLI_rcti_is_empty(), DRWManager::buffer_finish_called, DEG_get_evaluated_scene(), DEG_get_evaluated_view_layer(), depsgraph, DRWContextState::depsgraph, DRWManager::draw_background, DRWManager::draw_ctx, RenderEngineType::draw_engine, drw_context_state_init(), drw_manager_exit(), drw_manager_init(), DRW_smoke_exit(), drw_state_prepare_clean_for_draw(), DRW_state_reset(), DRW_view_data_engine_data_get_ensure(), DRW_view_reset(), DST, DRWContextState::engine_type, ListBase::first, GPU_framebuffer_restore(), GPU_render_begin(), GPU_render_end(), GPU_viewport(), DRWManager::is_image_render, DRWManager::is_scene_render, RenderResult::layers, ViewLayer::name, RenderView::next, OB_MODE_OBJECT, DRWContextState::object_mode, DRWManager::options, R_ADDSKY, RenderEngine::re, RE_engine_begin_result(), RE_engine_end_result(), RE_engine_get_result(), RE_GetViewPlane(), RE_SetActiveRenderView(), DrawEngineType::render_to_image, RenderEngine::resolution_x, RenderEngine::resolution_y, DRWContextState::scene, scene, DrawEngineType::store_metadata, RenderEngine::type, DRWManager::view_data_active, DRWContextState::view_layer, RenderResult::views, and DRWManager::vmempool.
| void DRW_render_viewport_size_set | ( | const int | size[2] | ) |
Definition at line 284 of file draw_manager_c.cc.
References DST, DRWManager::inv_size, and DRWManager::size.
| void DRW_sculpt_debug_cb | ( | blender::bke::pbvh::Node * | node, |
| void * | user_data, | ||
| const float | bmin[3], | ||
| const float | bmax[3], | ||
| PBVHNodeFlags | flag ) |
Definition at line 1276 of file draw_manager_data.cc.
References BKE_boundbox_init_from_minmax(), BKE_pbvh_debug_draw_gen_get(), DRW_debug_bbox(), flag, PBVH_Leaf, PBVH_TexLeaf, and SCULPT_DEBUG_COLOR.
Referenced by basic_cache_populate(), and drw_sculpt_generate_calls().
| void DRW_select_load_id | ( | uint | id | ) |
Definition at line 26 of file draw_manager_exec.cc.
References BLI_assert, DST, G, G_FLAG_PICKSEL, and DRWManager::select_id.
Referenced by basic_cache_populate(), basic_cache_populate_particles(), camera_view3d_reconstruction(), ArmatureBoneDrawStrategyBBone::draw_bone(), ArmatureBoneDrawStrategyCustomShape::draw_bone(), ArmatureBoneDrawStrategyEnvelope::draw_bone(), ArmatureBoneDrawStrategyLine::draw_bone(), ArmatureBoneDrawStrategyOcta::draw_bone(), ArmatureBoneDrawStrategyWire::draw_bone(), draw_points(), DRW_draw_select_loop(), and OVERLAY_edit_metaball_cache_populate().
| void DRW_shader_exit | ( | ) |
Definition at line 216 of file draw_manager_shader.cc.
References BLI_threadpool_end(), compilation_threadpool(), compiler_data(), GPU_context_active_set(), GPU_context_discard(), GPU_MAT_CREATED, GPU_MAT_OPTIMIZATION_READY, GPU_material_optimization_status_set(), GPU_material_status_set(), GPU_use_main_context_workaround(), DRWShaderCompiler::queue_cv, DRWShaderCompiler::stop, WM_system_gpu_context_activate(), and WM_system_gpu_context_dispose().
Referenced by DRW_gpu_context_destroy().
| void DRW_shader_free | ( | GPUShader * | shader | ) |
Definition at line 488 of file draw_manager_shader.cc.
References GPU_shader_free().
| GPUMaterial * DRW_shader_from_material | ( | Material * | ma, |
| bNodeTree * | ntree, | ||
| eGPUMaterialEngine | engine, | ||
| const uint64_t | shader_id, | ||
| const bool | is_volume_shader, | ||
| bool | deferred, | ||
| GPUCodegenCallbackFn | callback, | ||
| void * | thunk, | ||
| GPUMaterialPassReplacementCallbackFn | pass_replacement_cb = nullptr ) |
Definition at line 414 of file draw_manager_shader.cc.
References callback, DEG_get_original_id(), DRWManager::draw_ctx, drw_deferred_shader_add(), drw_register_shader_vlattrs(), DRW_shader_queue_optimize_material(), DST, GPU_material_from_nodetree(), Material::gpumaterial, Material::id, Scene::id, ID::name, and DRWContextState::scene.
Referenced by blender::eevee::ShaderModule::material_shader_get().
| GPUMaterial * DRW_shader_from_world | ( | World * | wo, |
| bNodeTree * | ntree, | ||
| eGPUMaterialEngine | engine, | ||
| const uint64_t | shader_id, | ||
| const bool | is_volume_shader, | ||
| bool | deferred, | ||
| GPUCodegenCallbackFn | callback, | ||
| void * | thunk ) |
Definition at line 380 of file draw_manager_shader.cc.
References callback, DEG_get_original_id(), DRWManager::draw_ctx, drw_deferred_shader_add(), drw_register_shader_vlattrs(), DRW_shader_queue_optimize_material(), DRW_state_is_image_render(), DST, GPU_material_from_nodetree(), World::gpumaterial, Scene::id, World::id, ID::name, and DRWContextState::scene.
Referenced by blender::eevee::ShaderModule::world_shader_get().
| void DRW_shader_init | ( | ) |
Definition at line 190 of file draw_manager_shader.cc.
References DRWManager::blender_gpu_context, DRWShaderCompiler::blender_gpu_context, BLI_assert_unreachable, BLI_threadpool_init(), BLI_threadpool_insert(), compilation_threadpool(), compiler_data(), drw_deferred_shader_compilation_exec(), DST, GPU_context_active_set(), GPU_context_create(), GPU_use_main_context_workaround(), initialized, DRWShaderCompiler::stop, DRWManager::system_gpu_context, DRWShaderCompiler::system_gpu_context, WM_system_gpu_context_activate(), and WM_system_gpu_context_create().
Referenced by DRW_gpu_context_create().
| void DRW_shader_queue_optimize_material | ( | GPUMaterial * | mat | ) |
Definition at line 445 of file draw_manager_shader.cc.
References BLI_time_sleep_ms(), drw_deferred_queue_append(), DRW_deferred_shader_optimize_remove(), DRW_state_is_image_render(), ELEM, GPU_MAT_OPTIMIZATION_QUEUED, GPU_MAT_OPTIMIZATION_SKIP, GPU_MAT_OPTIMIZATION_SUCCESS, GPU_MAT_SUCCESS, GPU_material_optimization_ready(), GPU_material_optimization_status(), and GPU_material_status().
Referenced by DRW_shader_from_material(), DRW_shader_from_world(), and blender::eevee::ShaderModule::material_shader_get().
| void DRW_shgroup_add_material_resources | ( | DRWShadingGroup * | grp, |
| GPUMaterial * | material ) |
Definition at line 1832 of file draw_manager_data.cc.
References BKE_image_get_gpu_material_texture(), GPUSamplerState::default_sampler(), drw_shgroup_material_texture(), DRW_shgroup_uniform_block, drw_shgroup_uniform_create_ex(), DRW_shgroup_uniform_texture(), DRW_shgroup_uniform_texture_ex(), DRW_UNIFORM_BLOCK_OBATTRS, DRW_UNIFORM_BLOCK_VLATTRS, GPU_ATTRIBUTE_UBO_BLOCK_NAME, GPU_LAYER_ATTRIBUTE_UBO_BLOCK_NAME, GPU_material_layer_attributes(), GPU_material_textures(), GPU_material_uniform_attributes(), GPU_material_uniform_buffer_get(), GPU_shader_get_ubo_binding(), GPU_UBO_BLOCK_NAME, Tex::ima, Tex::iuser, LISTBASE_FOREACH, DRWShadingGroup::shader, tex, ImageGPUTextures::texture, ImageGPUTextures::tile_mapping, and DRWShadingGroup::uniform_attrs.
Referenced by blender::draw::DRW_shgroup_curves_create_sub(), DRW_shgroup_hair_create_sub(), and DRW_shgroup_material_create().
| void DRW_shgroup_barrier | ( | DRWShadingGroup * | shgroup, |
| eGPUBarrier | type ) |
Issue a barrier command.
Definition at line 1115 of file draw_manager_data.cc.
References drw_command_barrier().
| void DRW_shgroup_buffer_texture | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| blender::gpu::VertBuf * | vertex_buffer ) |
Definition at line 596 of file draw_manager_data.cc.
References GPUSamplerState::default_sampler(), drw_shgroup_uniform_create_ex(), DRW_UNIFORM_VERTEX_BUFFER_AS_TEXTURE, GPU_shader_get_sampler_binding(), and DRWShadingGroup::shader.
Referenced by blender::draw::drw_curves_cache_shgrp_attach_resources(), drw_hair_particle_cache_shgrp_attach_resources(), blender::draw::DRW_shgroup_curves_create_sub(), DRW_shgroup_hair_create_sub(), blender::draw::DRW_shgroup_pointcloud_create_sub(), grease_pencil_object_cache_populate(), OVERLAY_outline_grease_pencil(), populate_cache_for_geometry(), and populate_selection_overlay().
| void DRW_shgroup_buffer_texture_ref | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| blender::gpu::VertBuf ** | vertex_buffer ) |
Definition at line 613 of file draw_manager_data.cc.
References GPUSamplerState::default_sampler(), drw_shgroup_uniform_create_ex(), DRW_UNIFORM_VERTEX_BUFFER_AS_TEXTURE_REF, GPU_shader_get_sampler_binding(), and DRWShadingGroup::shader.
Referenced by populate_cache_for_geometry().
| DRWCallBuffer * DRW_shgroup_call_buffer | ( | DRWShadingGroup * | shgroup, |
| GPUVertFormat * | format, | ||
| GPUPrimType | prim_type ) |
Definition at line 1534 of file draw_manager_data.cc.
References GPUVertFormat::attr_len, batch, BLI_assert, BLI_memblock_alloc(), DRWCallBuffer::buf, DRWCallBuffer::buf_select, DRWData::callbuffers, DRWCallBuffer::count, drw_command_draw(), drw_command_set_select_id(), drw_resource_handle(), DRW_temp_batch_request(), DRW_temp_buffer_request(), DST, ELEM, G, G_FLAG_PICKSEL, GPU_COMP_I32, GPU_FETCH_INT, GPU_PRIM_LINES, GPU_PRIM_POINTS, GPU_PRIM_TRI_FAN, GPU_vertformat_attr_add(), DRWData::idatalist, inst_select_format, and DRWManager::vmempool.
| DRWCallBuffer * DRW_shgroup_call_buffer_instance | ( | DRWShadingGroup * | shgroup, |
| GPUVertFormat * | format, | ||
| blender::gpu::Batch * | geom ) |
Definition at line 1565 of file draw_manager_data.cc.
References GPUVertFormat::attr_len, batch, BLI_assert, BLI_memblock_alloc(), DRWCallBuffer::buf, DRWCallBuffer::buf_select, DRWData::callbuffers, DRWCallBuffer::count, drw_command_draw(), drw_command_set_select_id(), drw_resource_handle(), DRW_temp_batch_instance_request(), DRW_temp_buffer_request(), DST, G, G_FLAG_PICKSEL, GPU_COMP_I32, GPU_FETCH_INT, GPU_vertformat_attr_add(), DRWData::idatalist, inst_select_format, and DRWManager::vmempool.
Referenced by custom_bone_instance_shgroup().
| void DRW_shgroup_call_compute | ( | DRWShadingGroup * | shgroup, |
| int | groups_x_len, | ||
| int | groups_y_len, | ||
| int | groups_z_len ) |
Definition at line 1096 of file draw_manager_data.cc.
References BLI_assert, and drw_command_compute().
Referenced by blender::draw::drw_curves_cache_update_compute(), and drw_hair_particle_cache_update_compute().
| void DRW_shgroup_call_compute_indirect | ( | DRWShadingGroup * | shgroup, |
| GPUStorageBuf * | indirect_buf ) |
Definition at line 1110 of file draw_manager_data.cc.
References drw_command_compute_indirect().
| void DRW_shgroup_call_compute_ref | ( | DRWShadingGroup * | shgroup, |
| int | groups_ref[3] ) |
Definition at line 1105 of file draw_manager_data.cc.
References drw_command_compute_ref().
| void DRW_shgroup_call_ex | ( | DRWShadingGroup * | shgroup, |
| const Object * | ob, | ||
| const float(*) | obmat[4], | ||
| blender::gpu::Batch * | geom, | ||
| bool | bypass_culling, | ||
| void * | user_data ) |
Definition at line 1042 of file draw_manager_data.cc.
References BLI_assert, DRWCullingState::bsphere, DRWData::cullstates, drw_command_draw(), drw_command_set_select_id(), DRW_memblock_elem_from_handle(), drw_resource_handle(), DST, G, G_FLAG_PICKSEL, DRWManager::ob_handle, BoundSphere::radius, DRWManager::select_id, DRWCullingState::user_data, and DRWManager::vmempool.
| void DRW_shgroup_call_instance_range | ( | DRWShadingGroup * | shgroup, |
| const Object * | ob, | ||
| blender::gpu::Batch * | geom, | ||
| uint | i_sta, | ||
| uint | i_num ) |
A count of 0 instance will use the default number of instance in the batch.
Definition at line 1084 of file draw_manager_data.cc.
References BLI_assert, drw_command_draw_intance_range(), drw_command_set_select_id(), drw_resource_handle(), DST, G, G_FLAG_PICKSEL, and DRWManager::select_id.
| void DRW_shgroup_call_instances | ( | DRWShadingGroup * | shgroup, |
| const Object * | ob, | ||
| blender::gpu::Batch * | geom, | ||
| uint | count ) |
IN_PLACE_INSTANCES defined. TODO: Should be removed. Definition at line 1190 of file draw_manager_data.cc.
References BLI_assert, count, drw_command_draw_instance(), drw_command_set_select_id(), drw_resource_handle(), DST, G, G_FLAG_PICKSEL, and DRWManager::select_id.
Referenced by OVERLAY_edit_curve_cache_populate().
| void DRW_shgroup_call_instances_with_attrs | ( | DRWShadingGroup * | shgroup, |
| const Object * | ob, | ||
| blender::gpu::Batch * | geom, | ||
| blender::gpu::Batch * | inst_attributes ) |
Definition at line 1204 of file draw_manager_data.cc.
References batch, BLI_assert, drw_command_draw_instance(), drw_command_set_select_id(), drw_resource_handle(), DRW_temp_batch_instance_request(), DST, G, G_FLAG_PICKSEL, DRWData::idatalist, DRWManager::select_id, and DRWManager::vmempool.
Referenced by overlay_edit_mesh_add_ob_to_pass(), OVERLAY_edit_mesh_cache_populate(), and OVERLAY_particle_cache_populate().
| void DRW_shgroup_call_procedural_indirect | ( | DRWShadingGroup * | shgroup, |
| GPUPrimType | primitive_type, | ||
| Object * | ob, | ||
| GPUStorageBuf * | indirect_buf ) |
Definition at line 1157 of file draw_manager_data.cc.
References BLI_assert_msg, drw_cache_procedural_lines_get(), drw_cache_procedural_points_get(), drw_cache_procedural_triangle_strips_get(), drw_cache_procedural_triangles_get(), drw_command_draw_indirect(), drw_command_set_select_id(), drw_resource_handle(), DST, G, G_FLAG_PICKSEL, GPU_PRIM_LINES, GPU_PRIM_POINTS, GPU_PRIM_TRI_STRIP, GPU_PRIM_TRIS, and DRWManager::select_id.
| void DRW_shgroup_call_procedural_lines | ( | DRWShadingGroup * | sh, |
| const Object * | ob, | ||
| uint | line_count ) |
Definition at line 1143 of file draw_manager_data.cc.
References drw_cache_procedural_lines_get(), and drw_shgroup_call_procedural_add_ex().
Referenced by OVERLAY_gpencil_legacy_cache_init(), OVERLAY_grease_pencil_cache_init(), and OVERLAY_volume_extra().
| void DRW_shgroup_call_procedural_points | ( | DRWShadingGroup * | sh, |
| const Object * | ob, | ||
| uint | point_count ) |
Definition at line 1135 of file draw_manager_data.cc.
References drw_cache_procedural_points_get(), and drw_shgroup_call_procedural_add_ex().
Referenced by OVERLAY_edit_gpencil_legacy_cache_init(), and OVERLAY_lightprobe_cache_populate().
| void DRW_shgroup_call_procedural_triangles | ( | DRWShadingGroup * | sh, |
| const Object * | ob, | ||
| uint | tri_count ) |
Definition at line 1149 of file draw_manager_data.cc.
References drw_cache_procedural_triangles_get(), and drw_shgroup_call_procedural_add_ex().
Referenced by GPENCIL_antialiasing_init(), GPENCIL_cache_init(), gpencil_layer_cache_add(), gpencil_vfx_blur(), gpencil_vfx_cache_populate(), gpencil_vfx_colorize(), gpencil_vfx_flip(), gpencil_vfx_glow(), gpencil_vfx_pixelize(), gpencil_vfx_rim(), gpencil_vfx_shadow(), gpencil_vfx_swirl(), gpencil_vfx_wave(), grease_pencil_layer_cache_add(), OVERLAY_antialiasing_cache_init(), OVERLAY_background_cache_init(), OVERLAY_outline_cache_init(), and select_debug_engine_init().
| void DRW_shgroup_call_range | ( | DRWShadingGroup * | shgroup, |
| const Object * | ob, | ||
| blender::gpu::Batch * | geom, | ||
| uint | v_sta, | ||
| uint | v_num ) |
Definition at line 1072 of file draw_manager_data.cc.
References BLI_assert, drw_command_draw_range(), drw_command_set_select_id(), drw_resource_handle(), DST, G, G_FLAG_PICKSEL, and DRWManager::select_id.
Referenced by grease_pencil_object_cache_populate(), motion_path_cache(), and OVERLAY_outline_grease_pencil().
| void DRW_shgroup_call_sculpt | ( | DRWShadingGroup * | shgroup, |
| Object * | ob, | ||
| bool | use_wire, | ||
| bool | use_mask, | ||
| bool | use_fset, | ||
| bool | use_color, | ||
| bool | use_uv ) |
Definition at line 1426 of file draw_manager_data.cc.
References BKE_object_get_original_mesh(), CD_PROP_FLOAT2, CustomData_get_active_layer_name(), blender::draw::pbvh::GenericRequest::domain, drw_sculpt_generate_calls(), and DRWSculptCallbackData::ob.
Referenced by basic_cache_populate(), OVERLAY_facing_cache_populate(), OVERLAY_fade_cache_populate(), OVERLAY_mode_transfer_cache_populate(), OVERLAY_sculpt_cache_populate(), and OVERLAY_wireframe_cache_populate().
| void DRW_shgroup_call_sculpt_with_materials | ( | DRWShadingGroup ** | shgroups, |
| GPUMaterial ** | gpumats, | ||
| int | num_shgroups, | ||
| const Object * | ob ) |
Definition at line 1479 of file draw_manager_data.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::draw::DRW_AttributeRequest::attribute_name, CD_PROP_FLOAT2, blender::draw::DRW_AttributeRequest::cd_type, CustomData_get_layer_index_n(), Object::data, blender::draw::DRW_AttributeRequest::domain, drw_sculpt_generate_calls(), blender::draw::pbvh::GenericRequest::name, blender::draw::DRW_Attributes::num_requests, DRWSculptCallbackData::ob, blender::draw::DRW_Attributes::requests, and blender::draw::DRW_MeshCDMask::uv.
| void DRW_shgroup_clear_framebuffer | ( | DRWShadingGroup * | shgroup, |
| eGPUFrameBufferBits | channels, | ||
| uchar | r, | ||
| uchar | g, | ||
| uchar | b, | ||
| uchar | a, | ||
| float | depth, | ||
| uchar | stencil ) |
Issue a clear command.
Definition at line 1954 of file draw_manager_data.cc.
References b, and drw_command_clear().
Referenced by GPENCIL_antialiasing_init().
| DRWShadingGroup * DRW_shgroup_create | ( | GPUShader * | shader, |
| DRWPass * | pass ) |
Definition at line 1907 of file draw_manager_data.cc.
References drw_shgroup_create_ex(), and drw_shgroup_init().
Referenced by basic_cache_init(), blender::draw::drw_curves_cache_update_compute(), drw_hair_particle_cache_update_compute(), external_cache_init(), GPENCIL_antialiasing_init(), GPENCIL_cache_init(), gpencil_layer_cache_add(), gpencil_vfx_pass_create(), grease_pencil_layer_cache_add(), OVERLAY_antialiasing_cache_init(), OVERLAY_armature_cache_init(), OVERLAY_background_cache_init(), OVERLAY_edit_curve_cache_init(), OVERLAY_edit_curves_cache_init(), OVERLAY_edit_gpencil_legacy_cache_init(), OVERLAY_edit_grease_pencil_cache_init(), OVERLAY_edit_lattice_cache_init(), OVERLAY_edit_mesh_cache_init(), OVERLAY_edit_particle_cache_init(), OVERLAY_edit_text_cache_init(), OVERLAY_edit_uv_cache_init(), OVERLAY_extra_cache_init(), OVERLAY_facing_cache_init(), OVERLAY_fade_cache_init(), OVERLAY_gpencil_legacy_cache_init(), OVERLAY_grease_pencil_cache_init(), OVERLAY_grid_cache_init(), OVERLAY_image_camera_cache_populate(), OVERLAY_image_empty_cache_populate(), OVERLAY_metaball_cache_init(), OVERLAY_mode_transfer_cache_populate(), OVERLAY_motion_path_cache_init(), OVERLAY_outline_cache_init(), OVERLAY_paint_cache_init(), OVERLAY_particle_cache_init(), OVERLAY_sculpt_cache_init(), OVERLAY_sculpt_curves_cache_init(), OVERLAY_viewer_attribute_cache_init(), OVERLAY_volume_cache_init(), OVERLAY_volume_extra(), OVERLAY_wireframe_cache_init(), select_cache_init(), and select_debug_engine_init().
| DRWShadingGroup * DRW_shgroup_create_sub | ( | DRWShadingGroup * | shgroup | ) |
Definition at line 1979 of file draw_manager_data.cc.
References BLI_LINKS_INSERT_AFTER, BLI_memblock_alloc(), DRWShadingGroup::cmd, DRW_memblock_elem_from_handle(), drw_shgroup_init(), DST, DRWShadingGroup::first, DRWShadingGroup::last, DRWShadingGroup::pass_handle, DRWData::passes, DRWShadingGroup::shader, DRWData::shgroups, DRWPass::shgroups, and DRWManager::vmempool.
Referenced by draw_pbvh_nodes(), draw_select_id_edit_mesh(), draw_select_id_mesh(), blender::draw::drw_curves_cache_update_compute(), drw_hair_particle_cache_update_compute(), blender::draw::DRW_shgroup_curves_create_sub(), DRW_shgroup_hair_create_sub(), blender::draw::DRW_shgroup_pointcloud_create_sub(), drw_volume_object_grids_init(), drw_volume_object_mesh_init(), gpencil_vfx_cache_populate(), gpencil_vfx_rim(), grease_pencil_object_cache_populate(), motion_path_cache(), OVERLAY_edit_gpencil_legacy_cache_init(), OVERLAY_extra_cache_init(), OVERLAY_grid_cache_init(), OVERLAY_lightprobe_cache_populate(), OVERLAY_outline_grease_pencil(), OVERLAY_particle_cache_populate(), populate_cache_for_instance(), and wireframe_hair_cache_populate().
| GPUVertFormat * DRW_shgroup_instance_format_array | ( | const DRWInstanceAttrFormat | attrs[], |
| int | arraysize ) |
Definition at line 1880 of file draw_manager_data.cc.
References DRWInstanceAttrFormat::components, DRW_ATTR_INT, GPU_COMP_F32, GPU_COMP_I32, GPU_FETCH_FLOAT, GPU_FETCH_INT, GPU_vertformat_attr_add(), and DRWInstanceAttrFormat::type.
| bool DRW_shgroup_is_empty | ( | DRWShadingGroup * | shgroup | ) |
Definition at line 1966 of file draw_manager_data.cc.
References DRWShadingGroup::cmd, DRWCommandChunk::command_type, command_type_get(), DRWCommandChunk::command_used, DRW_MAX_DRAW_CMD_TYPE, DRWShadingGroup::first, and DRWCommandChunk::next.
Referenced by DRW_pass_is_empty().
| DRWShadingGroup * DRW_shgroup_material_create | ( | GPUMaterial * | material, |
| DRWPass * | pass ) |
Definition at line 1895 of file draw_manager_data.cc.
References DRW_shgroup_add_material_resources(), drw_shgroup_init(), drw_shgroup_material_create_ex(), GPU_material_get_pass(), and GPU_pass_shader_get().
| void DRW_shgroup_state_disable | ( | DRWShadingGroup * | shgroup, |
| DRWState | state ) |
Definition at line 1936 of file draw_manager_data.cc.
References drw_command_set_mutable_state(), DRW_STATE_NO_DRAW, and state.
Referenced by gpencil_layer_cache_add(), gpencil_vfx_cache_populate(), gpencil_vfx_rim(), grease_pencil_layer_cache_add(), OVERLAY_armature_cache_init(), and OVERLAY_extra_cache_init().
| void DRW_shgroup_state_enable | ( | DRWShadingGroup * | shgroup, |
| DRWState | state ) |
State is added to #Pass.state while drawing. Use to temporarily enable draw options.
Definition at line 1931 of file draw_manager_data.cc.
References drw_command_set_mutable_state(), DRW_STATE_NO_DRAW, and state.
Referenced by gpencil_layer_cache_add(), gpencil_vfx_cache_populate(), gpencil_vfx_rim(), grease_pencil_layer_cache_add(), OVERLAY_armature_cache_init(), OVERLAY_edit_curve_cache_init(), OVERLAY_edit_curves_cache_init(), OVERLAY_edit_gpencil_legacy_cache_init(), OVERLAY_edit_mesh_cache_init(), OVERLAY_extra_cache_init(), and OVERLAY_paint_cache_init().
| void DRW_shgroup_stencil_mask | ( | DRWShadingGroup * | shgroup, |
| uint | mask ) |
TODO: remove this function. Obsolete version. mask is actually reference value.
Definition at line 1949 of file draw_manager_data.cc.
References drw_command_set_stencil_mask().
Referenced by gpencil_layer_cache_add(), and grease_pencil_layer_cache_add().
| void DRW_shgroup_stencil_set | ( | DRWShadingGroup * | shgroup, |
| uint | write_mask, | ||
| uint | reference, | ||
| uint | compare_mask ) |
Reminders:
Definition at line 1941 of file draw_manager_data.cc.
References drw_command_set_stencil_mask().
| void DRW_shgroup_storage_block_ex | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const GPUStorageBuf *ssbo | DRW_DEBUG_FILE_LINE_ARGS ) |
Definition at line 343 of file draw_manager_data.cc.
References BLI_assert, GPUSamplerState::default_sampler(), drw_shgroup_uniform_create_ex(), DRW_UNIFORM_STORAGE_BLOCK, GPU_shader_get_ssbo_binding(), printf, and DRWShadingGroup::shader.
| void DRW_shgroup_storage_block_ref_ex | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| GPUStorageBuf **ssbo | DRW_DEBUG_FILE_LINE_ARGS ) |
Definition at line 366 of file draw_manager_data.cc.
References BLI_assert, GPUSamplerState::default_sampler(), drw_shgroup_uniform_create_ex(), DRW_UNIFORM_STORAGE_BLOCK_REF, GPU_shader_get_ssbo_binding(), printf, and DRWShadingGroup::shader.
| DRWShadingGroup * DRW_shgroup_transform_feedback_create | ( | GPUShader * | shader, |
| DRWPass * | pass, | ||
| blender::gpu::VertBuf * | tf_target ) |
Definition at line 1914 of file draw_manager_data.cc.
References BLI_assert, GPUSamplerState::default_sampler(), drw_shgroup_create_ex(), drw_shgroup_init(), drw_shgroup_uniform_create_ex(), and DRW_UNIFORM_TFEEDBACK_TARGET.
| void DRW_shgroup_uniform_block_ex | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const GPUUniformBuf *ubo | DRW_DEBUG_FILE_LINE_ARGS ) |
Definition at line 299 of file draw_manager_data.cc.
References BLI_assert, GPUSamplerState::default_sampler(), drw_shgroup_uniform_create_ex(), DRW_UNIFORM_BLOCK, GPU_shader_get_ubo_binding(), printf, and DRWShadingGroup::shader.
| void DRW_shgroup_uniform_block_ref_ex | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| GPUUniformBuf **ubo | DRW_DEBUG_FILE_LINE_ARGS ) |
Definition at line 321 of file draw_manager_data.cc.
References BLI_assert, GPUSamplerState::default_sampler(), drw_shgroup_uniform_create_ex(), DRW_UNIFORM_BLOCK_REF, GPU_shader_get_ubo_binding(), printf, and DRWShadingGroup::shader.
| void DRW_shgroup_uniform_bool | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const int * | value, | ||
| int | arraysize ) |
Definition at line 389 of file draw_manager_data.cc.
References drw_shgroup_uniform(), and DRW_UNIFORM_INT.
Referenced by GPENCIL_cache_init(), and OVERLAY_edit_uv_cache_init().
| void DRW_shgroup_uniform_bool_copy | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| bool | value ) |
Definition at line 492 of file draw_manager_data.cc.
References drw_shgroup_uniform(), and DRW_UNIFORM_INT_COPY.
Referenced by blender::draw::DRW_shgroup_curves_create_sub(), DRW_shgroup_hair_create_sub(), GPENCIL_antialiasing_init(), gpencil_layer_cache_add(), gpencil_vfx_glow(), gpencil_vfx_rim(), gpencil_vfx_shadow(), grease_pencil_layer_cache_add(), motion_path_cache(), OVERLAY_antialiasing_cache_init(), OVERLAY_armature_cache_init(), OVERLAY_edit_curve_cache_init(), OVERLAY_edit_curves_cache_init(), OVERLAY_edit_gpencil_legacy_cache_init(), OVERLAY_edit_grease_pencil_cache_init(), OVERLAY_edit_mesh_cache_init(), OVERLAY_edit_particle_cache_init(), OVERLAY_edit_uv_cache_init(), OVERLAY_extra_cache_init(), OVERLAY_image_camera_cache_populate(), OVERLAY_image_empty_cache_populate(), OVERLAY_outline_cache_init(), OVERLAY_outline_grease_pencil(), OVERLAY_paint_cache_init(), OVERLAY_volume_extra(), OVERLAY_wireframe_cache_init(), populate_cache_for_geometry(), and populate_selection_overlay().
| void DRW_shgroup_uniform_float | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const float * | value, | ||
| int | arraysize ) |
Definition at line 398 of file draw_manager_data.cc.
References drw_shgroup_uniform(), and DRW_UNIFORM_FLOAT.
Referenced by OVERLAY_edit_uv_cache_init().
| void DRW_shgroup_uniform_float_copy | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| float | value ) |
Definition at line 498 of file draw_manager_data.cc.
References drw_shgroup_uniform(), and DRW_UNIFORM_FLOAT_COPY.
Referenced by blender::draw::DRW_shgroup_curves_create_sub(), DRW_shgroup_hair_create_sub(), GPENCIL_antialiasing_init(), gpencil_layer_cache_add(), gpencil_vfx_colorize(), gpencil_vfx_flip(), gpencil_vfx_shadow(), gpencil_vfx_swirl(), gpencil_vfx_wave(), grease_pencil_layer_cache_add(), grease_pencil_object_cache_populate(), OVERLAY_antialiasing_cache_init(), OVERLAY_armature_cache_init(), OVERLAY_edit_curve_cache_init(), OVERLAY_edit_gpencil_legacy_cache_init(), OVERLAY_edit_mesh_cache_init(), OVERLAY_edit_uv_cache_init(), OVERLAY_outline_cache_init(), OVERLAY_outline_grease_pencil(), OVERLAY_paint_cache_init(), OVERLAY_sculpt_cache_init(), OVERLAY_sculpt_curves_cache_init(), OVERLAY_volume_extra(), OVERLAY_wireframe_cache_init(), populate_cache_for_geometry(), and select_cache_init().
| void DRW_shgroup_uniform_image | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const GPUTexture * | tex ) |
Definition at line 283 of file draw_manager_data.cc.
References BLI_assert, GPUSamplerState::default_sampler(), drw_shgroup_uniform_create_ex(), DRW_UNIFORM_IMAGE, GPU_shader_get_sampler_binding(), DRWShadingGroup::shader, and tex.
| void DRW_shgroup_uniform_image_ref | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| GPUTexture ** | tex ) |
Definition at line 291 of file draw_manager_data.cc.
References BLI_assert, GPUSamplerState::default_sampler(), drw_shgroup_uniform_create_ex(), DRW_UNIFORM_IMAGE_REF, GPU_shader_get_sampler_binding(), DRWShadingGroup::shader, and tex.
| void DRW_shgroup_uniform_int | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const int * | value, | ||
| int | arraysize ) |
Definition at line 430 of file draw_manager_data.cc.
References drw_shgroup_uniform(), and DRW_UNIFORM_INT.
Referenced by blender::draw::drw_curves_cache_shgrp_attach_resources(), drw_hair_particle_cache_shgrp_attach_resources(), blender::draw::DRW_shgroup_curves_create_sub(), and DRW_shgroup_hair_create_sub().
| void DRW_shgroup_uniform_int_copy | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| int | value ) |
Definition at line 472 of file draw_manager_data.cc.
References drw_shgroup_uniform(), and DRW_UNIFORM_INT_COPY.
Referenced by draw_select_id_edit_mesh(), draw_select_id_mesh(), blender::draw::drw_curves_cache_update_compute(), drw_hair_particle_cache_update_compute(), blender::draw::DRW_shgroup_curves_create_sub(), DRW_shgroup_hair_create_sub(), gpencil_layer_cache_add(), gpencil_vfx_blur(), gpencil_vfx_cache_populate(), gpencil_vfx_colorize(), gpencil_vfx_glow(), gpencil_vfx_pixelize(), gpencil_vfx_rim(), gpencil_vfx_shadow(), grease_pencil_layer_cache_add(), grease_pencil_object_cache_populate(), motion_path_cache(), OVERLAY_background_cache_init(), OVERLAY_edit_curve_cache_init(), OVERLAY_edit_gpencil_legacy_cache_init(), OVERLAY_edit_uv_cache_init(), OVERLAY_gpencil_legacy_cache_init(), OVERLAY_grease_pencil_cache_init(), OVERLAY_grid_cache_init(), OVERLAY_volume_extra(), OVERLAY_wireframe_cache_init(), and select_cache_init().
| void DRW_shgroup_uniform_ivec2 | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const int * | value, | ||
| int | arraysize ) |
Definition at line 438 of file draw_manager_data.cc.
References drw_shgroup_uniform(), and DRW_UNIFORM_INT.
| void DRW_shgroup_uniform_ivec2_copy | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const int * | value ) |
Definition at line 477 of file draw_manager_data.cc.
References drw_shgroup_uniform(), and DRW_UNIFORM_INT_COPY.
| void DRW_shgroup_uniform_ivec3 | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const int * | value, | ||
| int | arraysize ) |
Definition at line 446 of file draw_manager_data.cc.
References drw_shgroup_uniform(), and DRW_UNIFORM_INT.
| void DRW_shgroup_uniform_ivec3_copy | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const int * | value ) |
Definition at line 482 of file draw_manager_data.cc.
References drw_shgroup_uniform(), and DRW_UNIFORM_INT_COPY.
Referenced by OVERLAY_volume_extra().
| void DRW_shgroup_uniform_ivec4 | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const int * | value, | ||
| int | arraysize ) |
Definition at line 454 of file draw_manager_data.cc.
References drw_shgroup_uniform(), and DRW_UNIFORM_INT.
Referenced by OVERLAY_edit_mesh_cache_init().
| void DRW_shgroup_uniform_ivec4_copy | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const int * | value ) |
Definition at line 487 of file draw_manager_data.cc.
References drw_shgroup_uniform(), and DRW_UNIFORM_INT_COPY.
Referenced by motion_path_cache(), and OVERLAY_edit_mesh_cache_init().
| void DRW_shgroup_uniform_mat3 | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const float(*) | value[3] ) |
Definition at line 462 of file draw_manager_data.cc.
References drw_shgroup_uniform(), and DRW_UNIFORM_FLOAT.
| void DRW_shgroup_uniform_mat4 | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const float(*) | value[4] ) |
Definition at line 467 of file draw_manager_data.cc.
References drw_shgroup_uniform(), and DRW_UNIFORM_FLOAT.
| void DRW_shgroup_uniform_mat4_copy | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const float(*) | value[4] ) |
Definition at line 518 of file draw_manager_data.cc.
References GPUSamplerState::default_sampler(), drw_shgroup_uniform_create_ex(), DRW_UNIFORM_FLOAT_COPY, GPU_shader_get_uniform(), and DRWShadingGroup::shader.
Referenced by blender::draw::DRW_shgroup_curves_create_sub(), DRW_shgroup_hair_create_sub(), motion_path_cache(), OVERLAY_lightprobe_cache_populate(), and wireframe_hair_cache_populate().
| void DRW_shgroup_uniform_texture | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const GPUTexture * | tex ) |
Definition at line 263 of file draw_manager_data.cc.
References DRW_shgroup_uniform_texture_ex(), GPUSamplerState::internal_sampler(), and tex.
Referenced by DRW_shgroup_add_material_resources(), DRW_shgroup_hair_create_sub(), drw_volume_object_grids_init(), drw_volume_object_mesh_init(), drw_volume_world_grids_init(), GPENCIL_antialiasing_init(), gpencil_layer_cache_add(), grease_pencil_layer_cache_add(), grease_pencil_object_cache_populate(), OVERLAY_edit_gpencil_legacy_cache_init(), OVERLAY_edit_grease_pencil_cache_init(), OVERLAY_edit_lattice_cache_init(), OVERLAY_edit_mesh_cache_init(), OVERLAY_edit_particle_cache_init(), OVERLAY_edit_uv_cache_init(), OVERLAY_extra_cache_init(), OVERLAY_image_camera_cache_populate(), OVERLAY_image_empty_cache_populate(), OVERLAY_paint_cache_init(), OVERLAY_particle_cache_init(), OVERLAY_volume_extra(), and select_debug_engine_init().
| void DRW_shgroup_uniform_texture_ex | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const GPUTexture * | tex, | ||
| GPUSamplerState | sampler_state ) |
Definition at line 253 of file draw_manager_data.cc.
References BLI_assert, drw_shgroup_uniform_create_ex(), DRW_UNIFORM_TEXTURE, GPU_shader_get_sampler_binding(), DRWShadingGroup::shader, and tex.
Referenced by DRW_shgroup_add_material_resources(), drw_shgroup_material_texture(), and DRW_shgroup_uniform_texture().
| void DRW_shgroup_uniform_texture_ref | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| GPUTexture ** | tex ) |
Definition at line 278 of file draw_manager_data.cc.
References DRW_shgroup_uniform_texture_ref_ex(), GPUSamplerState::internal_sampler(), and tex.
Referenced by drw_volume_object_mesh_init(), GPENCIL_cache_init(), gpencil_layer_cache_add(), grease_pencil_layer_cache_add(), OVERLAY_antialiasing_cache_init(), OVERLAY_armature_cache_init(), OVERLAY_background_cache_init(), OVERLAY_edit_mesh_cache_init(), OVERLAY_grid_cache_init(), OVERLAY_outline_cache_init(), and OVERLAY_wireframe_cache_init().
| void DRW_shgroup_uniform_texture_ref_ex | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| GPUTexture ** | tex, | ||
| GPUSamplerState | sampler_state ) |
Definition at line 268 of file draw_manager_data.cc.
References BLI_assert, drw_shgroup_uniform_create_ex(), DRW_UNIFORM_TEXTURE_REF, GPU_shader_get_sampler_binding(), DRWShadingGroup::shader, and tex.
Referenced by DRW_shgroup_uniform_texture_ref(), and gpencil_vfx_pass_create().
| void DRW_shgroup_uniform_vec2 | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const float * | value, | ||
| int | arraysize ) |
Definition at line 406 of file draw_manager_data.cc.
References drw_shgroup_uniform(), and DRW_UNIFORM_FLOAT.
| void DRW_shgroup_uniform_vec2_copy | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const float * | value ) |
Definition at line 503 of file draw_manager_data.cc.
References drw_shgroup_uniform(), and DRW_UNIFORM_FLOAT_COPY.
Referenced by gpencil_vfx_blur(), gpencil_vfx_flip(), gpencil_vfx_glow(), gpencil_vfx_pixelize(), gpencil_vfx_rim(), gpencil_vfx_shadow(), gpencil_vfx_swirl(), gpencil_vfx_wave(), grease_pencil_object_cache_populate(), and OVERLAY_edit_uv_cache_init().
| void DRW_shgroup_uniform_vec3 | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const float * | value, | ||
| int | arraysize ) |
Definition at line 414 of file draw_manager_data.cc.
References drw_shgroup_uniform(), and DRW_UNIFORM_FLOAT.
Referenced by draw_pbvh_nodes(), and OVERLAY_background_cache_init().
| void DRW_shgroup_uniform_vec3_copy | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const float * | value ) |
Definition at line 508 of file draw_manager_data.cc.
References drw_shgroup_uniform(), and DRW_UNIFORM_FLOAT_COPY.
Referenced by gpencil_layer_cache_add(), gpencil_vfx_colorize(), gpencil_vfx_rim(), grease_pencil_layer_cache_add(), motion_path_cache(), OVERLAY_edit_gpencil_legacy_cache_init(), OVERLAY_edit_uv_cache_init(), OVERLAY_gpencil_legacy_cache_init(), OVERLAY_grease_pencil_cache_init(), OVERLAY_grid_cache_init(), OVERLAY_paint_cache_init(), and OVERLAY_volume_extra().
| void DRW_shgroup_uniform_vec4 | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const float * | value, | ||
| int | arraysize ) |
Definition at line 422 of file draw_manager_data.cc.
References drw_shgroup_uniform(), and DRW_UNIFORM_FLOAT.
Referenced by GPENCIL_cache_init(), and OVERLAY_edit_text_cache_init().
| void DRW_shgroup_uniform_vec4_copy | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| const float * | value ) |
Definition at line 513 of file draw_manager_data.cc.
References drw_shgroup_uniform(), and DRW_UNIFORM_FLOAT_COPY.
Referenced by GPENCIL_antialiasing_init(), gpencil_layer_cache_add(), gpencil_vfx_glow(), gpencil_vfx_shadow(), grease_pencil_layer_cache_add(), OVERLAY_armature_cache_init(), OVERLAY_background_cache_init(), OVERLAY_edit_gpencil_legacy_cache_init(), OVERLAY_edit_text_cache_init(), OVERLAY_edit_uv_cache_init(), OVERLAY_extra_cache_init(), OVERLAY_fade_cache_init(), OVERLAY_gpencil_legacy_cache_init(), OVERLAY_grease_pencil_cache_init(), OVERLAY_grid_cache_init(), OVERLAY_image_camera_cache_populate(), OVERLAY_image_empty_cache_populate(), OVERLAY_mode_transfer_cache_populate(), OVERLAY_outline_grease_pencil(), OVERLAY_paint_cache_init(), OVERLAY_particle_cache_populate(), OVERLAY_volume_extra(), and populate_cache_for_instance().
| void DRW_shgroup_vertex_buffer_ex | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| blender::gpu::VertBuf *vertex_buffer | DRW_DEBUG_FILE_LINE_ARGS ) |
Definition at line 545 of file draw_manager_data.cc.
References BLI_assert_msg, GPUSamplerState::default_sampler(), drw_shgroup_uniform_create_ex(), DRW_UNIFORM_VERTEX_BUFFER_AS_STORAGE, GPU_shader_get_ssbo_binding(), printf, and DRWShadingGroup::shader.
| void DRW_shgroup_vertex_buffer_ref_ex | ( | DRWShadingGroup * | shgroup, |
| const char * | name, | ||
| blender::gpu::VertBuf **vertex_buffer | DRW_DEBUG_FILE_LINE_ARGS ) |
Definition at line 570 of file draw_manager_data.cc.
References BLI_assert_msg, GPUSamplerState::default_sampler(), drw_shgroup_uniform_create_ex(), DRW_UNIFORM_VERTEX_BUFFER_AS_STORAGE_REF, GPU_shader_get_ssbo_binding(), printf, and DRWShadingGroup::shader.
| bool DRW_state_draw_background | ( | ) |
Whether we should render the background
Definition at line 3035 of file draw_manager_c.cc.
References DRWManager::draw_background, DST, and DRWManager::options.
Referenced by blender::draw::overlay::Background::begin_sync(), and OVERLAY_background_cache_init().
| bool DRW_state_draw_support | ( | ) |
Should draw support elements Objects center, selection outline, probe data, ...
Definition at line 3028 of file draw_manager_c.cc.
References DRWManager::draw_ctx, DRW_state_is_scene_render(), DST, View3D::flag2, DRWContextState::v3d, and V3D_HIDE_OVERLAYS.
Referenced by blender::eevee::VolumeProbeModule::init(), and blender::eevee::PlanarProbeModule::set_view().
| bool DRW_state_is_depth | ( | ) |
Definition at line 2980 of file draw_manager_c.cc.
References DST, DRWManager::is_depth, and DRWManager::options.
Referenced by DRW_state_is_fbo(), OVERLAY_draw_scene(), OVERLAY_image_empty_cache_populate(), and OVERLAY_wireframe_cache_init().
| bool DRW_state_is_fbo | ( | ) |
When false, drawing doesn't output to a pixel buffer eg: Occlusion queries, or when we have setup a context to draw in already.
Definition at line 2964 of file draw_manager_c.cc.
References DRWManager::default_framebuffer, DRW_state_is_depth(), DRW_state_is_select(), DST, DRWManager::is_image_render, and DRWManager::options.
Referenced by drw_engines_draw_scene(), GPENCIL_draw_scene_depth_only(), GPENCIL_engine_init(), OVERLAY_antialiasing_init(), OVERLAY_antialiasing_start(), OVERLAY_background_draw(), OVERLAY_draw_scene(), OVERLAY_edit_curve_draw(), OVERLAY_edit_curves_draw(), OVERLAY_edit_lattice_draw(), OVERLAY_edit_mesh_draw(), OVERLAY_edit_particle_draw(), OVERLAY_edit_text_draw(), OVERLAY_extra_cache_init(), OVERLAY_grid_cache_init(), OVERLAY_image_scene_background_draw(), OVERLAY_outline_draw(), OVERLAY_outline_init(), OVERLAY_paint_draw(), OVERLAY_pose_draw(), OVERLAY_sculpt_draw(), OVERLAY_wireframe_cache_init(), OVERLAY_xray_depth_copy(), OVERLAY_xray_depth_infront_copy(), and OVERLAY_xray_fade_draw().
| bool DRW_state_is_image_render | ( | ) |
Whether we are rendering for an image
Definition at line 2985 of file draw_manager_c.cc.
References DST, DRWManager::is_image_render, and DRWManager::options.
Referenced by basic_cache_populate(), blender::workbench::AntiAliasingPass::draw(), DRW_object_is_visible_psys_in_active_context(), DRW_shader_from_world(), DRW_shader_queue_optimize_material(), blender::workbench::SceneResources::init(), blender::eevee::Instance::is_image_render(), blender::draw::overlay::Cameras::object_sync(), blender::draw::overlay::Facing::object_sync(), blender::draw::overlay::Fade::object_sync(), blender::draw::overlay::ModeTransfer::object_sync(), blender::draw::overlay::Prepass::object_sync(), blender::workbench::ObjectState::ObjectState(), OVERLAY_camera_cache_populate(), OVERLAY_facing_cache_populate(), OVERLAY_fade_cache_populate(), OVERLAY_mode_transfer_cache_populate(), OVERLAY_wireframe_cache_populate(), and blender::eevee::SyncModule::sync_sculpt().
| bool DRW_state_is_material_select | ( | ) |
Definition at line 2975 of file draw_manager_c.cc.
References DST, DRWManager::is_material_select, and DRWManager::options.
Referenced by basic_cache_init(), and blender::draw::overlay::Prepass::begin_sync().
| bool DRW_state_is_navigating | ( | ) |
Is the user navigating or painting the region.
Definition at line 3010 of file draw_manager_c.cc.
References DRWManager::draw_ctx, DST, RegionView3D::rflag, DRWContextState::rv3d, RV3D_NAVIGATING, and RV3D_PAINTING.
Referenced by blender::workbench::SceneState::init(), and blender::eevee::Instance::is_navigating().
| bool DRW_state_is_painting | ( | ) |
Is the user painting?
Definition at line 3016 of file draw_manager_c.cc.
References DRWManager::draw_ctx, DST, RegionView3D::rflag, DRWContextState::rv3d, and RV3D_PAINTING.
Referenced by blender::eevee::Instance::is_painting().
| bool DRW_state_is_playback | ( | ) |
Definition at line 3001 of file draw_manager_c.cc.
References CTX_wm_manager(), DRWManager::draw_ctx, DST, ED_screen_animation_playing(), and DRWContextState::evil_C.
Referenced by blender::eevee::Instance::draw_viewport(), blender::workbench::SceneState::init(), and blender::eevee::Instance::is_playback().
| bool DRW_state_is_scene_render | ( | ) |
Whether we are rendering only the render engine, or if we should also render the mode engines.
Definition at line 2990 of file draw_manager_c.cc.
References BLI_assert, DST, DRWManager::is_image_render, DRWManager::is_scene_render, and DRWManager::options.
Referenced by blender::workbench::AntiAliasingPass::draw(), DRW_object_visibility_in_active_context(), DRW_state_draw_support(), blender::workbench::SceneState::init(), blender::workbench::Instance::object_sync(), and blender::workbench::ObjectState::ObjectState().
| bool DRW_state_is_select | ( | ) |
For when engines need to know if this is drawing for selection or not.
Definition at line 2970 of file draw_manager_c.cc.
References DST, DRWManager::is_select, and DRWManager::options.
Referenced by armature_context_setup(), basic_cache_init(), camera_stereoscopy_extra(), camera_view3d_reconstruction(), blender::draw::overlay::Armatures::draw_armature_edit(), blender::draw::overlay::Armatures::draw_armature_pose(), DRW_state_is_fbo(), OVERLAY_armature_cache_init(), OVERLAY_armature_in_front_draw(), OVERLAY_cache_populate(), OVERLAY_camera_cache_populate(), OVERLAY_draw_scene(), OVERLAY_edit_metaball_cache_populate(), OVERLAY_extra_cache_init(), OVERLAY_extra_cache_populate(), OVERLAY_image_camera_cache_populate(), OVERLAY_light_cache_populate(), OVERLAY_lightprobe_cache_populate(), OVERLAY_metaball_cache_init(), OVERLAY_volume_cache_init(), OVERLAY_volume_cache_populate(), and OVERLAY_wireframe_cache_init().
| bool DRW_state_is_viewport_image_render | ( | ) |
Whether we are rendering simple opengl render
Definition at line 2996 of file draw_manager_c.cc.
References DST, DRWManager::is_image_render, DRWManager::is_scene_render, and DRWManager::options.
Referenced by blender::draw::overlay::Background::begin_sync(), eevee_draw_scene(), eevee_engine_init(), blender::draw::compositor::Context::get_compositing_region(), blender::eevee::Instance::is_viewport_image_render(), OVERLAY_background_cache_init(), blender::eevee::Camera::sync(), and workbench_draw_scene().
| void DRW_state_lock | ( | DRWState | state | ) |
Use with care, intended so selection code can override passes depth settings, which is important for selection to work properly.
Should be set in main draw loop, cleared afterwards
Definition at line 280 of file draw_manager_exec.cc.
References DRW_STATE_DEPTH_ALWAYS, DRW_STATE_DEPTH_EQUAL, DRW_STATE_DEPTH_GREATER, DRW_STATE_DEPTH_GREATER_EQUAL, DRW_STATE_DEPTH_LESS, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_DEPTH_TEST_ENABLED, DRW_STATE_WRITE_DEPTH, DST, GPU_DEPTH_ALWAYS, GPU_DEPTH_EQUAL, GPU_DEPTH_GREATER, GPU_DEPTH_GREATER_EQUAL, GPU_DEPTH_LESS, GPU_DEPTH_LESS_EQUAL, GPU_depth_mask_get(), GPU_depth_test_get(), SET_FLAG_FROM_TEST, DRWManager::state, state, and DRWManager::state_lock.
Referenced by DRW_draw_select_loop().
| void DRW_state_reset | ( | ) |
Definition at line 317 of file draw_manager_exec.cc.
References DRW_STATE_DEFAULT, DRW_state_reset_ex(), GPU_line_smooth(), GPU_line_width(), GPU_point_size(), GPU_storagebuf_debug_unbind_all(), GPU_texture_image_unbind_all(), GPU_texture_unbind_all(), and GPU_uniformbuf_debug_unbind_all().
Referenced by DRW_draw_callbacks_post_scene(), DRW_draw_callbacks_pre_scene(), DRW_draw_depth_loop(), DRW_draw_render_loop_2d_ex(), DRW_draw_render_loop_ex(), DRW_draw_select_id(), DRW_draw_select_loop(), drw_engines_draw_scene(), DRW_render_gpencil(), DRW_render_to_image(), and external_draw_scene_do_image().
| void DRW_state_reset_ex | ( | DRWState | state | ) |
Reset state to not interfere with other UI draw-call.
Definition at line 262 of file draw_manager_exec.cc.
References drw_state_set(), DST, DRWManager::state, and state.
Referenced by DRW_state_reset(), external_draw_scene_do_image(), and external_draw_scene_do_v3d().
| bool DRW_state_show_text | ( | ) |
Should text draw in this mode?
Definition at line 3022 of file draw_manager_c.cc.
References DRWManager::draw_text, DST, DRWManager::is_depth, DRWManager::is_scene_render, DRWManager::is_select, and DRWManager::options.
Referenced by blender::draw::overlay::Armatures::draw_armature_edit(), blender::draw::overlay::Armatures::draw_armature_pose(), blender::draw::overlay::Meshes::edit_object_sync(), OVERLAY_edit_grease_pencil_cache_populate(), OVERLAY_edit_mesh_cache_populate(), and OVERLAY_extra_cache_populate().
| GPUTexture * DRW_texture_create_1d | ( | int | w, |
| eGPUTextureFormat | format, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 82 of file draw_manager_texture.cc.
References DRW_texture_create_1d_ex(), GPU_TEXTURE_USAGE_GENERAL, and w().
| GPUTexture * DRW_texture_create_1d_ex | ( | int | w, |
| eGPUTextureFormat | format, | ||
| eGPUTextureUsage | usage_flags, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 69 of file draw_manager_texture.cc.
References DRW_TEX_MIPMAP, drw_texture_set_parameters(), GPU_texture_create_1d(), tex, and w().
Referenced by DRW_texture_create_1d().
| GPUTexture * DRW_texture_create_2d | ( | int | w, |
| int | h, | ||
| eGPUTextureFormat | format, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 104 of file draw_manager_texture.cc.
References DRW_texture_create_2d_ex(), GPU_TEXTURE_USAGE_GENERAL, and w().
Referenced by GPENCIL_engine_init(), GPENCIL_render_init(), and OVERLAY_antialiasing_init().
| GPUTexture * DRW_texture_create_2d_array | ( | int | w, |
| int | h, | ||
| int | d, | ||
| eGPUTextureFormat | format, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 126 of file draw_manager_texture.cc.
References DRW_texture_create_2d_array_ex(), GPU_TEXTURE_USAGE_GENERAL, and w().
| GPUTexture * DRW_texture_create_2d_array_ex | ( | int | w, |
| int | h, | ||
| int | d, | ||
| eGPUTextureFormat | format, | ||
| eGPUTextureUsage | usage_flags, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 110 of file draw_manager_texture.cc.
References DRW_TEX_MIPMAP, drw_texture_set_parameters(), GPU_texture_create_2d_array(), tex, and w().
Referenced by DRW_texture_create_2d_array().
| GPUTexture * DRW_texture_create_2d_ex | ( | int | w, |
| int | h, | ||
| eGPUTextureFormat | format, | ||
| eGPUTextureUsage | usage_flags, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 90 of file draw_manager_texture.cc.
References DRW_TEX_MIPMAP, drw_texture_set_parameters(), GPU_texture_create_2d(), tex, and w().
Referenced by DRW_texture_create_2d(), DRW_texture_ensure_2d_ex(), DRW_texture_ensure_fullscreen_2d_ex(), and blender::draw::image_engine::TextureInfo::ensure_gpu_texture().
| GPUTexture * DRW_texture_create_3d | ( | int | w, |
| int | h, | ||
| int | d, | ||
| eGPUTextureFormat | format, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 148 of file draw_manager_texture.cc.
References DRW_texture_create_3d_ex(), GPU_TEXTURE_USAGE_GENERAL, and w().
| GPUTexture * DRW_texture_create_3d_ex | ( | int | w, |
| int | h, | ||
| int | d, | ||
| eGPUTextureFormat | format, | ||
| eGPUTextureUsage | usage_flags, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 133 of file draw_manager_texture.cc.
References DRW_TEX_MIPMAP, drw_texture_set_parameters(), GPU_texture_create_3d(), tex, and w().
Referenced by DRW_texture_create_3d().
| GPUTexture * DRW_texture_create_cube | ( | int | w, |
| eGPUTextureFormat | format, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 166 of file draw_manager_texture.cc.
References DRW_texture_create_cube_ex(), GPU_TEXTURE_USAGE_GENERAL, and w().
| GPUTexture * DRW_texture_create_cube_array | ( | int | w, |
| int | d, | ||
| eGPUTextureFormat | format, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 187 of file draw_manager_texture.cc.
References DRW_texture_create_cube_array_ex(), GPU_TEXTURE_USAGE_GENERAL, and w().
| GPUTexture * DRW_texture_create_cube_array_ex | ( | int | w, |
| int | d, | ||
| eGPUTextureFormat | format, | ||
| eGPUTextureUsage | usage_flags, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 174 of file draw_manager_texture.cc.
References DRW_TEX_MIPMAP, drw_texture_set_parameters(), GPU_texture_create_cube_array(), tex, and w().
Referenced by DRW_texture_create_cube_array().
| GPUTexture * DRW_texture_create_cube_ex | ( | int | w, |
| eGPUTextureFormat | format, | ||
| eGPUTextureUsage | usage_flags, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 154 of file draw_manager_texture.cc.
References DRW_TEX_MIPMAP, drw_texture_set_parameters(), GPU_texture_create_cube(), tex, and w().
Referenced by DRW_texture_create_cube().
| void DRW_texture_ensure_2d | ( | GPUTexture ** | tex, |
| int | w, | ||
| int | h, | ||
| eGPUTextureFormat | format, | ||
| DRWTextureFlag | flags ) |
Definition at line 255 of file draw_manager_texture.cc.
References DRW_texture_ensure_2d_ex(), GPU_TEXTURE_USAGE_GENERAL, tex, and w().
Referenced by GPENCIL_cache_init().
| void DRW_texture_ensure_2d_ex | ( | GPUTexture ** | tex, |
| int | w, | ||
| int | h, | ||
| eGPUTextureFormat | format, | ||
| eGPUTextureUsage | usage, | ||
| DRWTextureFlag | flags ) |
Definition at line 243 of file draw_manager_texture.cc.
References DRW_texture_create_2d_ex(), tex, and w().
Referenced by DRW_texture_ensure_2d().
| void DRW_texture_ensure_fullscreen_2d | ( | GPUTexture ** | tex, |
| eGPUTextureFormat | format, | ||
| DRWTextureFlag | flags ) |
Definition at line 236 of file draw_manager_texture.cc.
References DRW_texture_ensure_fullscreen_2d_ex(), GPU_TEXTURE_USAGE_GENERAL, and tex.
Referenced by blender::draw::overlay::Instance::end_sync(), external_cache_init(), OVERLAY_antialiasing_cache_finish(), OVERLAY_antialiasing_init(), OVERLAY_cache_finish(), and OVERLAY_outline_init().
| void DRW_texture_ensure_fullscreen_2d_ex | ( | GPUTexture ** | tex, |
| eGPUTextureFormat | format, | ||
| eGPUTextureUsage | usage, | ||
| DRWTextureFlag | flags ) |
Definition at line 225 of file draw_manager_texture.cc.
References DRW_texture_create_2d_ex(), DRW_viewport_size_get(), int, and tex.
Referenced by DRW_texture_ensure_fullscreen_2d().
| void DRW_texture_free | ( | GPUTexture * | tex | ) |
Definition at line 266 of file draw_manager_texture.cc.
References GPU_texture_free(), and tex.
| void DRW_texture_generate_mipmaps | ( | GPUTexture * | tex | ) |
Definition at line 261 of file draw_manager_texture.cc.
References GPU_texture_update_mipmap_chain(), and tex.
| GPUTexture * DRW_texture_pool_query_2d | ( | int | w, |
| int | h, | ||
| eGPUTextureFormat | format, | ||
| DrawEngineType * | engine_type ) |
Textures from DRW_texture_pool_query_* have the options DRW_TEX_FILTER for color float textures, and no options for depth textures and integer textures.
Definition at line 203 of file draw_manager_texture.cc.
References DRW_texture_pool_query_2d_ex(), GPU_TEXTURE_USAGE_GENERAL, and w().
Referenced by blender::draw::compositor::TexturePool::allocate_texture(), and GPENCIL_cache_finish().
| GPUTexture * DRW_texture_pool_query_2d_ex | ( | int | w, |
| int | h, | ||
| eGPUTextureFormat | format, | ||
| eGPUTextureUsage | usage, | ||
| DrawEngineType * | engine_type ) |
Definition at line 193 of file draw_manager_texture.cc.
References BLI_assert, drw_texture_format_supports_framebuffer(), DRW_texture_pool_query(), DST, tex, DRWData::texture_pool, DRWManager::vmempool, and w().
Referenced by DRW_texture_pool_query_2d(), DRW_texture_pool_query_fullscreen_ex(), and GPENCIL_antialiasing_init().
| GPUTexture * DRW_texture_pool_query_fullscreen | ( | eGPUTextureFormat | format, |
| DrawEngineType * | engine_type ) |
Definition at line 219 of file draw_manager_texture.cc.
References DRW_texture_pool_query_fullscreen_ex(), and GPU_TEXTURE_USAGE_GENERAL.
| GPUTexture * DRW_texture_pool_query_fullscreen_ex | ( | eGPUTextureFormat | format, |
| eGPUTextureUsage | usage, | ||
| DrawEngineType * | engine_type ) |
Definition at line 211 of file draw_manager_texture.cc.
References DRW_texture_pool_query_2d_ex(), and DRW_viewport_size_get().
Referenced by DRW_texture_pool_query_fullscreen().
This only works if DRWPasses have been tagged with DRW_STATE_CLIP_PLANES, and if the shaders have support for it (see usage of gl_ClipDistance).
Definition at line 2345 of file draw_manager_data.cc.
References BLI_assert, and MAX_CLIP_PLANES.
Referenced by drw_manager_init().
| DRWView * DRW_view_create | ( | const float | viewmat[4][4], |
| const float | winmat[4][4], | ||
| const float(*) | culling_viewmat[4], | ||
| const float(*) | culling_winmat[4], | ||
| DRWCallVisibilityFn * | visibility_fn ) |
Create a view with culling.
Definition at line 2200 of file draw_manager_data.cc.
References BLI_assert, BLI_memblock_alloc(), DRWView::culling_mask, DRW_view_update(), DST, MAX_CULLED_VIEWS, DRWManager::primary_view_num, view, DRWData::views, and DRWManager::vmempool.
Referenced by blender::draw::image_engine::ImageEngine< DrawingMode >::begin_sync(), blender::draw::DRW_curves_update(), drw_manager_init(), GPENCIL_render_init(), and workbench_render_to_image().
| DRWView * DRW_view_create_sub | ( | const DRWView * | parent_view, |
| const float | viewmat[4][4], | ||
| const float | winmat[4][4] ) |
Create a view with culling done by another view.
Definition at line 2224 of file draw_manager_data.cc.
References BLI_memblock_alloc(), DRW_view_update_sub(), DST, DRWView::parent, view, DRWData::views, and DRWManager::vmempool.
Referenced by DRW_view_create_with_zoffset().
| const DRWView * DRW_view_default_get | ( | ) |
Definition at line 2327 of file draw_manager_data.cc.
References DST, and DRWManager::view_default.
Referenced by blender::draw::overlay::Fluids::begin_sync(), blender::draw::overlay::Instance::begin_sync(), blender::eevee::Film::display(), blender::draw::overlay::Instance::draw(), blender::workbench::Instance::draw(), blender::draw::overlay::Armatures::draw_armature_pose(), blender::draw::DRW_curves_update(), drw_sculpt_get_frustum_planes(), eevee_engine_init(), blender::workbench::ShadowPass::object_sync(), OVERLAY_edit_curves_init(), OVERLAY_edit_mesh_init(), OVERLAY_edit_text_cache_init(), OVERLAY_image_init(), OVERLAY_wireframe_init(), blender::draw::sculpt_batches_get_ex(), select_engine_init(), and blender::workbench::AntiAliasingPass::setup_view().
| void DRW_view_default_set | ( | const DRWView * | view | ) |
MUST only be called once per render and only in render mode. Sets default view.
Definition at line 2339 of file draw_manager_data.cc.
References BLI_assert, DST, and DRWManager::view_default.
Referenced by blender::draw::DRW_curves_update(), GPENCIL_render_init(), and workbench_render_to_image().
Definition at line 2382 of file draw_manager_data.cc.
References DRW_view_is_persp_get(), DST, view, and DRWManager::view_default.
Referenced by GPENCIL_render_init(), GPENCIL_render_result_z(), blender::eevee::Camera::sync(), and write_render_z_output().
Definition at line 2354 of file draw_manager_data.cc.
Definition at line 2359 of file draw_manager_data.cc.
Referenced by drw_sculpt_get_frustum_planes(), and blender::draw::sculpt_batches_get_ex().
| const DRWView * DRW_view_get_active | ( | ) |
Definition at line 351 of file draw_manager_exec.cc.
References DST, and DRWManager::view_active.
Referenced by blender::draw::DRW_curves_update(), and external_image_space_matrix_set().
| bool DRW_view_is_persp_get | ( | const DRWView * | view | ) |
Definition at line 2364 of file draw_manager_data.cc.
References DST, DRWView::storage, view, DRWManager::view_default, and ViewMatrices::winmat.
Referenced by blender::draw::overlay::Outline::begin_sync(), blender::draw::overlay::Prepass::begin_sync(), DRW_view_far_distance_get(), DRW_view_near_distance_get(), gpencil_depth_plane(), gpencil_object_cache_add(), GPENCIL_render_init(), GPENCIL_render_result_z(), blender::eevee::Camera::init(), and write_render_z_output().
| void ** DRW_view_layer_engine_data_ensure | ( | DrawEngineType * | engine_type, |
| void(* | callback )(void *storage) ) |
Definition at line 819 of file draw_manager_c.cc.
References callback, DRWManager::draw_ctx, DRW_view_layer_engine_data_ensure_ex(), DST, and DRWContextState::view_layer.
Referenced by GPENCIL_view_layer_data_ensure().
| void ** DRW_view_layer_engine_data_ensure_ex | ( | ViewLayer * | view_layer, |
| DrawEngineType * | engine_type, | ||
| void(* | callback )(void *storage) ) |
Definition at line 798 of file draw_manager_c.cc.
References BLI_addtail(), callback, ViewLayer::drawdata, ViewLayerEngineData::engine_type, ViewLayerEngineData::free, LISTBASE_FOREACH, MEM_callocN, and ViewLayerEngineData::storage.
Referenced by DRW_view_layer_engine_data_ensure().
| void * DRW_view_layer_engine_data_get | ( | DrawEngineType * | engine_type | ) |
Definition at line 788 of file draw_manager_c.cc.
References DRWManager::draw_ctx, ViewLayer::drawdata, DST, LISTBASE_FOREACH, and DRWContextState::view_layer.
These are in view-space, so negative if in perspective. Extract near and far clip distance from the projection matrix.
Definition at line 2370 of file draw_manager_data.cc.
References DRW_view_is_persp_get(), DST, view, and DRWManager::view_default.
Referenced by GPENCIL_render_init(), GPENCIL_render_result_z(), blender::eevee::Camera::sync(), and write_render_z_output().
Definition at line 2408 of file draw_manager_data.cc.
References copy_m4_m4(), DST, inverse(), view, and DRWManager::view_default.
Referenced by gpencil_vfx_blur(), gpencil_vfx_pixelize(), gpencil_vfx_rim(), gpencil_vfx_shadow(), gpencil_vfx_swirl(), gpencil_vfx_wave(), blender::workbench::SceneState::init(), and blender::workbench::AntiAliasingPass::setup_view().
| void DRW_view_reset | ( | ) |
Definition at line 2332 of file draw_manager_data.cc.
References DST, DRWManager::view_active, DRWManager::view_default, and DRWManager::view_previous.
Referenced by DRW_render_gpencil(), and DRW_render_to_image().
| void DRW_view_set_active | ( | const DRWView * | view | ) |
Set active view for rendering.
Definition at line 346 of file draw_manager_exec.cc.
References DST, view, DRWManager::view_active, and DRWManager::view_default.
Referenced by blender::draw::image_engine::ScreenSpaceDrawingMode< TextureMethod >::draw_viewport(), blender::draw::DRW_curves_update(), eevee_draw_scene(), GPENCIL_render_init(), OVERLAY_draw_scene(), OVERLAY_edit_curves_draw(), OVERLAY_edit_mesh_draw(), overlay_edit_mesh_draw_components(), OVERLAY_edit_text_draw(), OVERLAY_image_draw(), OVERLAY_image_in_front_draw(), OVERLAY_wireframe_draw(), OVERLAY_wireframe_in_front_draw(), select_draw_scene(), and workbench_render_to_image().
| void DRW_view_update | ( | DRWView * | view, |
| const float | viewmat[4][4], | ||
| const float | winmat[4][4], | ||
| const float(*) | culling_viewmat[4], | ||
| const float(*) | culling_winmat[4] ) |
Update matrices of a view created with DRW_view_create.
Definition at line 2259 of file draw_manager_data.cc.
References bitscan_forward_uint(), BLI_assert, copy_m4_m4(), draw_frustum_bound_sphere_calc(), draw_frustum_boundbox_calc(), draw_frustum_culling_planes_calc(), draw_view_matrix_state_update(), DRW_debug_bbox(), DRW_debug_sphere(), DST, G, invert_m4_m4(), is_negative_m4(), MAX_CULLED_VIEWS, and DRWManager::view_default.
Referenced by DRW_view_create().
Update matrices of a view created with DRW_view_create_sub.
Definition at line 2249 of file draw_manager_data.cc.
References BLI_assert, draw_view_matrix_state_update(), and is_negative_m4().
Referenced by DRW_view_create_sub().
Definition at line 2394 of file draw_manager_data.cc.
References copy_m4_m4(), DST, inverse(), view, DRWManager::view_default, ViewMatrices::viewinv, and ViewMatrices::viewmat.
Referenced by blender::draw::overlay::Outline::begin_sync(), blender::draw::overlay::Prepass::begin_sync(), DRW_object_axis_orthogonal_to_view(), DRW_view_create_with_zoffset(), external_image_space_matrix_set(), blender::workbench::get_world_shading_rotation_matrix(), gpencil_depth_plane(), GPENCIL_engine_init(), blender::workbench::ShadowPass::init(), OVERLAY_gpencil_legacy_cache_init(), OVERLAY_grease_pencil_cache_init(), OVERLAY_grid_init(), OVERLAY_volume_extra(), blender::workbench::AntiAliasingPass::setup_view(), blender::draw::View::sync(), and blender::eevee::Camera::sync().
Definition at line 2401 of file draw_manager_data.cc.
References copy_m4_m4(), DST, inverse(), view, DRWManager::view_default, ViewMatrices::wininv, and ViewMatrices::winmat.
Referenced by DRW_view_create_with_zoffset(), external_image_space_matrix_set(), GPENCIL_render_result_z(), gpencil_vfx_blur(), gpencil_vfx_pixelize(), gpencil_vfx_rim(), gpencil_vfx_shadow(), gpencil_vfx_swirl(), gpencil_vfx_wave(), OVERLAY_grid_init(), blender::workbench::AntiAliasingPass::setup_view(), blender::draw::View::sync(), and blender::eevee::Camera::sync().
| DefaultFramebufferList * DRW_viewport_framebuffer_list_get | ( | ) |
Definition at line 658 of file draw_manager_c.cc.
References DRW_view_data_default_framebuffer_list_get(), DST, and DRWManager::view_data_active.
Referenced by blender::eevee::Film::accumulate(), blender::eevee::Film::display(), blender::eevee::LookdevModule::display(), blender::draw::overlay::Instance::draw(), blender::draw::image_engine::ScreenSpaceDrawingMode< TextureMethod >::draw_viewport(), blender::eevee::Instance::draw_viewport(), DRW_draw_callbacks_post_scene(), DRW_draw_render_loop_2d_ex(), eevee_draw_scene(), blender::draw::overlay::Instance::end_sync(), external_draw_scene(), external_draw_scene_do_image(), GPENCIL_draw_scene_depth_only(), GPENCIL_engine_init(), GPENCIL_fast_draw_end(), GPENCIL_fast_draw_start(), OVERLAY_antialiasing_end(), OVERLAY_cache_finish(), OVERLAY_draw_scene(), OVERLAY_edit_uv_draw(), OVERLAY_image_scene_background_draw(), OVERLAY_sculpt_draw(), select_draw_scene(), workbench_render_framebuffers_init(), and workbench_render_to_image().
| const float * DRW_viewport_invert_size_get | ( | ) |
Definition at line 297 of file draw_manager_c.cc.
References DST, and DRWManager::inv_size.
Referenced by GPENCIL_antialiasing_init(), gpencil_vfx_pixelize(), gpencil_vfx_rim(), gpencil_vfx_shadow(), gpencil_vfx_wave(), blender::workbench::SceneResources::init(), and blender::workbench::DofPass::sync().
| blender::draw::TextureFromPool & DRW_viewport_pass_texture_get | ( | const char * | pass_name | ) |
Definition at line 668 of file draw_manager_c.cc.
References DRW_view_data_pass_texture_get(), DST, and DRWManager::view_data_active.
Referenced by blender::draw::compositor::Context::get_input_texture(), and blender::eevee::Film::write_viewport_compositor_passes().
| const float * DRW_viewport_pixelsize_get | ( | ) |
Definition at line 302 of file draw_manager_c.cc.
References DST, and DRWManager::pixsize.
Referenced by DRW_globals_update().
| void DRW_viewport_request_redraw | ( | ) |
Definition at line 673 of file draw_manager_c.cc.
References DST, GPU_viewport_tag_update(), and DRWManager::viewport.
Referenced by blender::draw::overlay::ModeTransfer::draw(), blender::eevee::Instance::draw_viewport(), blender::workbench::Instance::draw_viewport(), blender::eevee::PlanarProbeModule::end_sync(), blender::eevee::SphereProbeModule::end_sync(), and OVERLAY_mode_transfer_cache_finish().
| const float * DRW_viewport_size_get | ( | ) |
Definition at line 292 of file draw_manager_c.cc.
References DST, and DRWManager::size.
Referenced by DRW_globals_update(), DRW_texture_ensure_fullscreen_2d_ex(), DRW_texture_pool_query_fullscreen_ex(), eevee_engine_init(), blender::draw::compositor::Context::get_compositing_region(), blender::draw::compositor::Context::get_render_size(), GPENCIL_antialiasing_init(), GPENCIL_cache_finish(), GPENCIL_cache_init(), GPENCIL_render_init(), gpencil_vfx_blur(), gpencil_vfx_pixelize(), gpencil_vfx_rim(), gpencil_vfx_shadow(), gpencil_vfx_swirl(), gpencil_vfx_wave(), blender::draw::image_engine::ScreenTileTextures< Divisions >::gpu_texture_size(), grease_pencil_object_cache_populate(), blender::workbench::SceneResources::init(), blender::workbench::SceneState::init(), and workbench_render_framebuffers_init().
| DefaultTextureList * DRW_viewport_texture_list_get | ( | ) |
Definition at line 663 of file draw_manager_c.cc.
References DRW_view_data_default_texture_list_get(), DST, and DRWManager::view_data_active.
Referenced by blender::eevee::Film::accumulate(), blender::draw::overlay::Instance::draw(), DRW_draw_select_loop(), eevee_engine_init(), blender::draw::overlay::Instance::end_sync(), blender::draw::compositor::Context::get_input_texture(), blender::draw::compositor::Context::get_output_result(), blender::draw::compositor::Context::get_viewer_output_result(), GPENCIL_engine_init(), OVERLAY_antialiasing_cache_finish(), OVERLAY_antialiasing_cache_init(), OVERLAY_antialiasing_init(), OVERLAY_armature_cache_init(), OVERLAY_background_cache_init(), OVERLAY_cache_finish(), OVERLAY_edit_mesh_cache_init(), OVERLAY_extra_cache_init(), OVERLAY_grid_cache_init(), OVERLAY_outline_cache_init(), OVERLAY_outline_init(), OVERLAY_xray_depth_copy(), OVERLAY_xray_depth_infront_copy(), select_engine_framebuffer_setup(), workbench_draw_scene(), workbench_render_framebuffers_init(), and workbench_render_to_image().