|
Blender V4.3
|
Go to the source code of this file.
Classes | |
| struct | DRWVolumeGrid |
Namespaces | |
| namespace | blender |
| namespace | blender::gpu |
| namespace | blender::draw |
Enumerations | |
| enum | eDRWLevelOfDetail { DRW_LOD_LOW = 0 , DRW_LOD_MEDIUM = 1 , DRW_LOD_HIGH = 2 , DRW_LOD_MAX } |
| enum eDRWLevelOfDetail |
Shape resolution level of detail.
| Enumerator | |
|---|---|
| DRW_LOD_LOW | |
| DRW_LOD_MEDIUM | |
| DRW_LOD_HIGH | |
| DRW_LOD_MAX | |
Definition at line 32 of file draw_cache.hh.
| blender::gpu::Batch * DRW_cache_bone_arrows_get | ( | ) |
Definition at line 2531 of file draw_cache.cc.
References axis_marker, DRWShapeCache::drw_bone_arrows, extra_vert_format(), flag, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), MARKER_FILL_LAYER, MARKER_LEN, mul_v2_v2fl(), SHC, v, VCLASS_EMPTY_AXES, VCLASS_EMPTY_AXES_NAME, VCLASS_SCREENALIGNED, x_axis_name, X_LEN, y_axis_name, Y_LEN, z_axis_name, and Z_LEN.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_bone_box_get | ( | ) |
Definition at line 2104 of file draw_cache.cc.
References attr_id, bone_box_solid_normals, bone_box_solid_tris, bone_box_verts, DRWShapeCache::drw_bone_box, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRIS, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), nor, pos, and SHC.
Referenced by DRW_cache_bone_box_wire_get(), and OVERLAY_armature_cache_init().
| blender::gpu::Batch * DRW_cache_bone_box_wire_get | ( | ) |
Definition at line 2134 of file draw_cache.cc.
References bone_box_wire_lines_adjacency, DRWShapeCache::drw_bone_box_wire, DRW_cache_bone_box_get(), GPU_batch_create_ex(), GPU_BATCH_OWNS_INDEX, GPU_indexbuf_add_line_adj_verts(), GPU_indexbuf_build(), GPU_indexbuf_init(), GPU_PRIM_LINES_ADJ, and SHC.
Referenced by OVERLAY_armature_cache_init().
| blender::gpu::Batch * DRW_cache_bone_dof_lines_get | ( | ) |
Definition at line 2650 of file draw_cache.cc.
References ARRAY_SIZE, attr_id, cosf, DRWShapeCache::drw_bone_dof_lines, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINE_LOOP, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), M_PI, pos, set_vert, SHC, sinf, staticSine, and v.
Referenced by OVERLAY_armature_cache_init().
| blender::gpu::Batch * DRW_cache_bone_dof_sphere_get | ( | ) |
Definition at line 2597 of file draw_cache.cc.
References ARRAY_SIZE, attr_id, DRWShapeCache::drw_bone_dof_sphere, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRIS, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_data_resize(), GPU_vertformat_attr_add(), pos, set_vert, SHC, staticSine, v, x, and z().
Referenced by OVERLAY_armature_cache_init().
| blender::gpu::Batch * DRW_cache_bone_envelope_outline_get | ( | ) |
Definition at line 2219 of file draw_cache.cc.
References attr_id, CIRCLE_RESOL, copy_v2_v2(), cosf, DRWShapeCache::drw_bone_envelope_outline, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINE_STRIP, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), M_PI, SHC, sinf, v, and v2.
Referenced by OVERLAY_armature_cache_init().
| blender::gpu::Batch * DRW_cache_bone_envelope_solid_get | ( | ) |
Definition at line 2168 of file draw_cache.cc.
References attr_id, benv_lat_lon_to_co(), DRWShapeCache::drw_bone_envelope, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRI_STRIP, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), M_PI, pos, and SHC.
Referenced by OVERLAY_armature_cache_init().
| blender::gpu::Batch * DRW_cache_bone_octahedral_get | ( | ) |
Definition at line 2048 of file draw_cache.cc.
References attr_id, bone_octahedral_solid_normals, bone_octahedral_solid_tris, bone_octahedral_verts, DRWShapeCache::drw_bone_octahedral, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRIS, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), nor, pos, and SHC.
Referenced by DRW_cache_bone_octahedral_wire_get(), and OVERLAY_armature_cache_init().
| blender::gpu::Batch * DRW_cache_bone_octahedral_wire_get | ( | ) |
Definition at line 2079 of file draw_cache.cc.
References bone_octahedral_wire_lines_adjacency, DRWShapeCache::drw_bone_octahedral_wire, DRW_cache_bone_octahedral_get(), GPU_batch_create_ex(), GPU_BATCH_OWNS_INDEX, GPU_indexbuf_add_line_adj_verts(), GPU_indexbuf_build(), GPU_indexbuf_init(), GPU_PRIM_LINES_ADJ, and SHC.
Referenced by OVERLAY_armature_cache_init().
| blender::gpu::Batch * DRW_cache_bone_point_get | ( | ) |
Definition at line 2264 of file draw_cache.cc.
References attr_id, CIRCLE_RESOL, cosf, DRWShapeCache::drw_bone_point, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRI_FAN, GPU_PRIM_TRIS, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), M_PI, nor, pos, SHC, sinf, and v.
Referenced by OVERLAY_armature_cache_init().
| blender::gpu::Batch * DRW_cache_bone_point_wire_outline_get | ( | ) |
Definition at line 2339 of file draw_cache.cc.
References attr_id, CIRCLE_RESOL, cosf, DRWShapeCache::drw_bone_point_wire, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINE_STRIP, GPU_PRIM_LINES, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), M_PI, pos, SHC, sinf, sphere_wire_vbo(), and v.
Referenced by OVERLAY_armature_cache_init(), and OVERLAY_metaball_cache_init().
| blender::gpu::Batch * DRW_cache_bone_stick_get | ( | ) |
Definition at line 2388 of file draw_cache.cc.
References attr_id, CIRCLE_RESOL, COL_BONE, COL_HEAD, COL_TAIL, COL_WIRE, copy_v2_fl(), cosf, DRWShapeCache::drw_bone_stick, ELEM, blender::gpu::VertBuf::flag, flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_INDEX, GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_COMP_U32, GPU_FETCH_FLOAT, GPU_FETCH_INT, GPU_indexbuf_add_generic_vert(), GPU_indexbuf_add_primitive_restart(), GPU_indexbuf_build(), GPU_indexbuf_init_ex(), GPU_PRIM_TRI_FAN, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), M_PI, pos, POS_BONE, POS_HEAD, POS_TAIL, SHC, sinf, and v.
Referenced by OVERLAY_armature_cache_init().
| blender::gpu::Batch * DRW_cache_camera_distances_get | ( | ) |
Definition at line 2816 of file draw_cache.cc.
References circle_verts(), DIAMOND_NSEGMENTS, DRWShapeCache::drw_camera_distances, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, VCLASS_CAMERA_DIST, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_camera_frame_get | ( | ) |
Definition at line 2690 of file draw_cache.cc.
References b, DRWShapeCache::drw_camera_frame, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, VCLASS_CAMERA_FRAME, x, and y.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_camera_tria_get | ( | ) |
Definition at line 2796 of file draw_cache.cc.
References DRWShapeCache::drw_camera_tria, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_TRIS, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, and VCLASS_CAMERA_FRAME.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_camera_tria_wire_get | ( | ) |
Definition at line 2771 of file draw_cache.cc.
References b, DRWShapeCache::drw_camera_tria_wire, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, VCLASS_CAMERA_FRAME, x, and y.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_camera_volume_get | ( | ) |
Definition at line 2722 of file draw_cache.cc.
References ARRAY_SIZE, bone_box_solid_tris, bone_box_verts, DRWShapeCache::drw_camera_volume, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_TRIS, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, VCLASS_CAMERA_FRAME, VCLASS_CAMERA_VOLUME, x, y, and z().
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_camera_volume_wire_get | ( | ) |
Definition at line 2747 of file draw_cache.cc.
References ARRAY_SIZE, bone_box_verts, bone_box_wire, DRWShapeCache::drw_camera_volume_wire, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, VCLASS_CAMERA_FRAME, VCLASS_CAMERA_VOLUME, x, y, and z().
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_circle_get | ( | ) |
Definition at line 753 of file draw_cache.cc.
References CIRCLE_RESOL, cosf, DRWShapeCache::drw_circle, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINE_STRIP, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), M_PI, SHC, sinf, v, VCLASS_EMPTY_SCALED, x, y, and z().
Referenced by overlay_edit_mesh_add_ob_to_pass(), and OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_cube_get | ( | ) |
Definition at line 720 of file draw_cache.cc.
References ARRAY_SIZE, bone_box_solid_tris, bone_box_verts, DRWShapeCache::drw_cube, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_INDEX, GPU_BATCH_OWNS_VBO, GPU_indexbuf_add_tri_verts(), GPU_indexbuf_build(), GPU_indexbuf_init(), GPU_PRIM_TRIS, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, VCLASS_EMPTY_SCALED, x, y, and z().
Referenced by blender::draw::overlay::Background::begin_sync(), blender::eevee::ShadowModule::begin_sync(), OVERLAY_background_cache_init(), and blender::eevee::SyncModule::sync_volume().
| blender::gpu::Batch * DRW_cache_cursor_get | ( | bool | crosshair_lines | ) |
Definition at line 3219 of file draw_cache.cc.
References attr_id, color, cosf, DRWShapeCache::drw_cursor, DRWShapeCache::drw_cursor_only_circle, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_INDEX, GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_COMP_U8, GPU_FETCH_FLOAT, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_indexbuf_add_generic_vert(), GPU_indexbuf_add_primitive_restart(), GPU_indexbuf_build(), GPU_indexbuf_init_ex(), GPU_PRIM_LINE_STRIP, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), M_PI, pos, red, SHC, sinf, TH_VIEW_OVERLAY, UI_GetThemeColor3ubv(), and v.
Referenced by DRW_draw_cursor(), and DRW_draw_cursor_2d_ex().
| blender::gpu::Batch * DRW_cache_curve_edge_normal_get | ( | Object * | ob | ) |
Definition at line 2979 of file draw_cache.cc.
References BLI_assert, Object::data, OB_CURVES_LEGACY, and Object::type.
Referenced by blender::draw::overlay::Curves::edit_object_sync_legacy(), and OVERLAY_edit_curve_cache_populate().
| blender::gpu::Batch * DRW_cache_curve_edge_overlay_get | ( | Object * | ob | ) |
Definition at line 2987 of file draw_cache.cc.
References BLI_assert, Object::data, ELEM, OB_CURVES_LEGACY, OB_SURF, and Object::type.
Referenced by blender::draw::overlay::Curves::edit_object_sync_legacy(), OVERLAY_edit_curve_cache_populate(), and OVERLAY_edit_surf_cache_populate().
| blender::gpu::Batch * DRW_cache_curve_edge_wire_get | ( | Object * | ob | ) |
Definition at line 2963 of file draw_cache.cc.
References BLI_assert, Object::data, OB_CURVES_LEGACY, and Object::type.
Referenced by drw_shgroup_custom_bone_curve(), blender::draw::overlay::Curves::edit_object_sync_legacy(), blender::draw::overlay::Wireframe::object_sync(), OVERLAY_edit_curve_cache_populate(), OVERLAY_wireframe_cache_populate(), and populate_cache_for_instance().
| blender::gpu::Batch * DRW_cache_curve_edge_wire_viewer_attribute_get | ( | Object * | ob | ) |
Definition at line 2971 of file draw_cache.cc.
References BLI_assert, Object::data, OB_CURVES_LEGACY, and Object::type.
Referenced by populate_cache_for_geometry().
| blender::gpu::Batch * DRW_cache_curve_vert_overlay_get | ( | Object * | ob | ) |
Definition at line 2996 of file draw_cache.cc.
References BLI_assert, Object::data, ELEM, OB_CURVES_LEGACY, OB_SURF, and Object::type.
Referenced by blender::draw::overlay::Curves::edit_object_sync_legacy(), OVERLAY_edit_curve_cache_populate(), and OVERLAY_edit_surf_cache_populate().
| blender::gpu::Batch * DRW_cache_curves_edge_detection_get | ( | Object * | ob, |
| bool * | r_is_manifold ) |
| blender::gpu::Batch * DRW_cache_curves_face_wireframe_get | ( | Object * | ob | ) |
| blender::gpu::Batch * DRW_cache_curves_surface_get | ( | Object * | ob | ) |
| blender::gpu::Batch ** DRW_cache_curves_surface_shaded_get | ( | Object * | ob, |
| GPUMaterial ** | gpumat_array, | ||
| uint | gpumat_array_len ) |
| blender::gpu::Batch * DRW_cache_empty_capsule_body_get | ( | ) |
Definition at line 1156 of file draw_cache.cc.
References attr_id, DRWShapeCache::drw_empty_capsule_body, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_vertbuf_attr_fill(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), pos, and SHC.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_empty_capsule_cap_get | ( | ) |
Definition at line 1189 of file draw_cache.cc.
References attr_id, copy_v2_v2(), copy_v3_fl3(), cosf, DRWShapeCache::drw_empty_capsule_cap, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), M_PI, NSEGMENTS, pos, SHC, sinf, and v.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_empty_cone_get | ( | ) |
Definition at line 1076 of file draw_cache.cc.
References cosf, DRWShapeCache::drw_empty_cone, extra_vert_format(), flag, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), M_PI, NSEGMENTS, SHC, sinf, v, and VCLASS_EMPTY_SCALED.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_empty_cube_get | ( | ) |
Definition at line 1009 of file draw_cache.cc.
References ARRAY_SIZE, bone_box_verts, bone_box_wire, DRWShapeCache::drw_empty_cube, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, VCLASS_EMPTY_SCALED, x, y, and z().
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_empty_cylinder_get | ( | ) |
Definition at line 1115 of file draw_cache.cc.
References cosf, DRWShapeCache::drw_empty_cylinder, extra_vert_format(), flag, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), M_PI, NSEGMENTS, SHC, sinf, v, and VCLASS_EMPTY_SCALED.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_empty_sphere_get | ( | ) |
Definition at line 1067 of file draw_cache.cc.
References DRWShapeCache::drw_empty_sphere, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, SHC, sphere_wire_vbo(), and VCLASS_EMPTY_SCALED.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_field_cone_limit_get | ( | ) |
Definition at line 1377 of file draw_cache.cc.
References circle_dashed_verts(), CIRCLE_RESOL, cosf, DRWShapeCache::drw_field_cone_limit, extra_vert_format(), flag, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), M_PI, SHC, SIDE_STIPPLE, sinf, v, VCLASS_EMPTY_SIZE, and z().
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_field_curve_get | ( | ) |
Definition at line 1322 of file draw_cache.cc.
References CIRCLE_RESOL, circle_verts(), DRWShapeCache::drw_field_curve, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), SHC, v, VCLASS_EMPTY_SIZE, and VCLASS_SCREENALIGNED.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_field_force_get | ( | ) |
Definition at line 1269 of file draw_cache.cc.
References CIRCLE_RESOL, circle_verts(), DRWShapeCache::drw_field_force, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), SHC, v, VCLASS_EMPTY_SIZE, and VCLASS_SCREENALIGNED.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_field_sphere_limit_get | ( | ) |
Definition at line 1412 of file draw_cache.cc.
References circle_dashed_verts(), CIRCLE_RESOL, DRWShapeCache::drw_field_sphere_limit, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), SHC, v, VCLASS_EMPTY_SIZE, and VCLASS_SCREENALIGNED.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_field_tube_limit_get | ( | ) |
Definition at line 1342 of file draw_cache.cc.
References circle_dashed_verts(), CIRCLE_RESOL, cosf, DRWShapeCache::drw_field_tube_limit, extra_vert_format(), flag, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), M_PI, SHC, SIDE_STIPPLE, sinf, v, VCLASS_EMPTY_SIZE, and z().
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_field_vortex_get | ( | ) |
Definition at line 1292 of file draw_cache.cc.
References cosf, DRWShapeCache::drw_field_vortex, extra_vert_format(), flag, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINE_STRIP, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), M_PI, SHC, sinf, SPIRAL_RESOL, v, and VCLASS_EMPTY_SIZE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_field_wind_get | ( | ) |
Definition at line 1246 of file draw_cache.cc.
References CIRCLE_RESOL, circle_verts(), DRWShapeCache::drw_field_wind, extra_vert_format(), flag, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), SHC, v, VCLASS_EMPTY_SIZE, and z().
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_fullscreen_quad_get | ( | ) |
Use this one for rendering full-screen passes. For 3D objects use DRW_cache_quad_get().
Definition at line 391 of file draw_cache.cc.
References attr_id, DRWShapeCache::drw_fullscreen_quad, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRIS, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_alias_add(), GPU_vertformat_attr_add(), pos, and SHC.
Referenced by DRW_transform_none().
| blender::gpu::Batch * DRW_cache_grid_get | ( | ) |
Definition at line 465 of file draw_cache.cc.
References attr_id, DRWShapeCache::drw_grid, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRIS, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), madd_v2_v2v2fl(), pos, and SHC.
Referenced by OVERLAY_grid_cache_init().
| blender::gpu::Batch * DRW_cache_groundline_get | ( | ) |
Definition at line 1463 of file draw_cache.cc.
References circle_verts(), DIAMOND_NSEGMENTS, DRWShapeCache::drw_ground_line, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, and v.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_lattice_vert_overlay_get | ( | Object * | ob | ) |
Definition at line 3063 of file draw_cache.cc.
References BLI_assert, Object::data, OB_LATTICE, and Object::type.
Referenced by blender::draw::overlay::Lattices::edit_object_sync(), and OVERLAY_edit_lattice_cache_populate().
| blender::gpu::Batch * DRW_cache_lattice_verts_get | ( | Object * | ob | ) |
Definition at line 3039 of file draw_cache.cc.
References BLI_assert, Object::data, OB_LATTICE, and Object::type.
| blender::gpu::Batch * DRW_cache_lattice_wire_get | ( | Object * | ob, |
| bool | use_weight ) |
Definition at line 3048 of file draw_cache.cc.
References BLI_assert, BLI_listbase_is_empty(), Object::data, Lattice::dvert, Lattice::editlatt, EditLatt::latt, OB_LATTICE, Object::type, Lattice::vertex_group_active_index, and Lattice::vertex_group_names.
Referenced by blender::draw::overlay::Lattices::edit_object_sync(), blender::draw::overlay::Lattices::object_sync(), OVERLAY_edit_lattice_cache_populate(), and OVERLAY_lattice_cache_populate().
| blender::gpu::Batch * DRW_cache_light_area_disk_lines_get | ( | ) |
Definition at line 1668 of file draw_cache.cc.
References CIRCLE_NSEGMENTS, circle_verts(), DIAMOND_NSEGMENTS, DRWShapeCache::drw_light_area_disk_lines, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), light_distance_z_get(), SHC, v, VCLASS_LIGHT_AREA_SHAPE, VCLASS_LIGHT_DIST, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_light_area_square_lines_get | ( | ) |
Definition at line 1695 of file draw_cache.cc.
References b, circle_verts(), DIAMOND_NSEGMENTS, DRWShapeCache::drw_light_area_square_lines, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), light_distance_z_get(), SHC, v, VCLASS_LIGHT_AREA_SHAPE, VCLASS_LIGHT_DIST, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_light_icon_inner_lines_get | ( | ) |
Definition at line 1484 of file draw_cache.cc.
References circle_dashed_verts(), circle_verts(), DIAMOND_NSEGMENTS, DRWShapeCache::drw_light_icon_inner_lines, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), INNER_NSEGMENTS, SHC, v, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_light_icon_outer_lines_get | ( | ) |
Definition at line 1505 of file draw_cache.cc.
References circle_dashed_verts(), DRWShapeCache::drw_light_icon_outer_lines, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), OUTER_NSEGMENTS, SHC, v, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_light_icon_sun_rays_get | ( | ) |
Definition at line 1525 of file draw_cache.cc.
References cosf, DRWShapeCache::drw_light_icon_sun_rays, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), M_PI, SHC, sinf, v, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_light_point_lines_get | ( | ) |
Definition at line 1557 of file draw_cache.cc.
References CIRCLE_NSEGMENTS, circle_verts(), DRWShapeCache::drw_light_point_lines, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), SHC, v, VCLASS_LIGHT_AREA_SHAPE, and VCLASS_SCREENALIGNED.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_light_spot_lines_get | ( | ) |
Definition at line 1599 of file draw_cache.cc.
References CIRCLE_NSEGMENTS, circle_verts(), cosf, DIAMOND_NSEGMENTS, DRWShapeCache::drw_light_spot_lines, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), light_distance_z_get(), M_PI, SHC, sinf, v, VCLASS_LIGHT_AREA_SHAPE, VCLASS_LIGHT_DIST, VCLASS_LIGHT_SPOT_BLEND, VCLASS_LIGHT_SPOT_CONE, VCLASS_LIGHT_SPOT_SHAPE, VCLASS_SCREENALIGNED, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_light_spot_volume_get | ( | ) |
Definition at line 1641 of file draw_cache.cc.
References CIRCLE_NSEGMENTS, cosf, DRWShapeCache::drw_light_spot_volume, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_TRI_FAN, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), M_PI, SHC, sinf, v, and VCLASS_LIGHT_SPOT_SHAPE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_light_sun_lines_get | ( | ) |
Definition at line 1578 of file draw_cache.cc.
References DRWShapeCache::drw_light_sun_lines, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, and v.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_lightprobe_cube_get | ( | ) |
Definition at line 1805 of file draw_cache.cc.
References circle_verts(), copy_v2_v2(), DIAMOND_NSEGMENTS, DRWShapeCache::drw_lightprobe_cube, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), light_distance_z_get(), SHC, v, VCLASS_LIGHT_DIST, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_lightprobe_grid_get | ( | ) |
Definition at line 1860 of file draw_cache.cc.
References add_v2_v2v2(), circle_verts(), copy_v2_v2(), DIAMOND_NSEGMENTS, DRWShapeCache::drw_lightprobe_grid, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), light_distance_z_get(), mul_v2_v2fl(), SHC, v, VCLASS_LIGHT_DIST, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_lightprobe_planar_get | ( | ) |
Definition at line 1923 of file draw_cache.cc.
References DRWShapeCache::drw_lightprobe_planar, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, VCLASS_SCREENSPACE, x, and y.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_mesh_all_edges_get | ( | Object * | ob | ) |
Definition at line 2856 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by DRW_cache_object_all_edges_get().
| blender::gpu::Batch * DRW_cache_mesh_all_verts_get | ( | Object * | ob | ) |
Definition at line 2849 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by blender::draw::overlay::Paints::object_sync(), blender::draw::overlay::Wireframe::object_sync(), OVERLAY_paint_vertex_cache_populate(), and OVERLAY_wireframe_cache_populate().
| blender::gpu::Batch * DRW_cache_mesh_edge_detection_get | ( | Object * | ob, |
| bool * | r_is_manifold ) |
Definition at line 2870 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by DRW_cache_object_edge_detection_get(), and blender::draw::overlay::Outline::object_sync().
| blender::gpu::Batch * DRW_cache_mesh_face_wireframe_get | ( | Object * | ob | ) |
Definition at line 2936 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by DRW_cache_object_face_wireframe_get(), and blender::draw::overlay::Wireframe::object_sync().
| blender::gpu::Batch * DRW_cache_mesh_loose_edges_get | ( | Object * | ob | ) |
Definition at line 2863 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by DRW_cache_object_loose_edges_get(), blender::draw::overlay::Wireframe::object_sync(), OVERLAY_wireframe_cache_populate(), and populate_cache_for_instance().
| blender::gpu::Batch * DRW_cache_mesh_surface_edges_get | ( | Object * | ob | ) |
Definition at line 2884 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by blender::draw::overlay::Paints::object_sync(), and OVERLAY_paint_vertex_cache_populate().
| blender::gpu::Batch * DRW_cache_mesh_surface_get | ( | Object * | ob | ) |
Definition at line 2877 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by DRW_cache_object_surface_get(), blender::draw::overlay::Meshes::edit_object_sync(), blender::draw::overlay::Outline::object_sync(), blender::draw::overlay::Paints::object_sync(), blender::draw::overlay::Prepass::object_sync(), OVERLAY_edit_mesh_cache_populate(), OVERLAY_paint_texture_cache_populate(), OVERLAY_paint_vertex_cache_populate(), and populate_cache_for_instance().
| blender::gpu::Batch * DRW_cache_mesh_surface_mesh_analysis_get | ( | Object * | ob | ) |
Definition at line 2943 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by blender::draw::overlay::Meshes::edit_object_sync(), and OVERLAY_edit_mesh_cache_populate().
| blender::gpu::Batch * DRW_cache_mesh_surface_sculptcolors_get | ( | Object * | ob | ) |
Definition at line 2922 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by blender::workbench::Instance::mesh_sync().
| blender::gpu::Batch ** DRW_cache_mesh_surface_shaded_get | ( | Object * | ob, |
| GPUMaterial ** | gpumat_array, | ||
| uint | gpumat_array_len ) |
Return list of batches with length equal to max(1, totcol).
Definition at line 2891 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by DRW_cache_object_surface_material_get(), and blender::draw::overlay::Prepass::object_sync().
| blender::gpu::Batch ** DRW_cache_mesh_surface_texpaint_get | ( | Object * | ob | ) |
Return list of batches with length equal to max(1, totcol).
Definition at line 2901 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by blender::workbench::Instance::mesh_sync().
| blender::gpu::Batch * DRW_cache_mesh_surface_texpaint_single_get | ( | Object * | ob | ) |
Definition at line 2908 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by blender::workbench::Instance::mesh_sync(), blender::draw::overlay::Paints::object_sync(), and OVERLAY_paint_texture_cache_populate().
| blender::gpu::Batch * DRW_cache_mesh_surface_vertpaint_get | ( | Object * | ob | ) |
Definition at line 2915 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by blender::workbench::Instance::mesh_sync().
| blender::gpu::Batch * DRW_cache_mesh_surface_viewer_attribute_get | ( | Object * | ob | ) |
Definition at line 2950 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by populate_cache_for_geometry().
| blender::gpu::Batch * DRW_cache_mesh_surface_weights_get | ( | Object * | ob | ) |
Definition at line 2929 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by blender::draw::overlay::Meshes::edit_object_sync(), blender::draw::overlay::Paints::object_sync(), and OVERLAY_paint_vertex_cache_populate().
| blender::gpu::Batch * DRW_cache_normal_arrow_get | ( | ) |
Definition at line 776 of file draw_cache.cc.
References DRWShapeCache::drw_normal_arrow, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), and SHC.
Referenced by OVERLAY_edit_mesh_cache_populate().
| blender::gpu::Batch * DRW_cache_object_all_edges_get | ( | Object * | ob | ) |
Definition at line 863 of file draw_cache.cc.
References DRW_cache_mesh_all_edges_get(), OB_MESH, and Object::type.
Referenced by basic_cache_populate().
| blender::gpu::Batch * DRW_cache_object_edge_detection_get | ( | Object * | ob, |
| bool * | r_is_manifold ) |
Definition at line 874 of file draw_cache.cc.
References DRW_cache_mesh_edge_detection_get(), OB_MESH, and Object::type.
Referenced by blender::workbench::ShadowPass::object_sync(), and OVERLAY_outline_cache_populate().
Definition at line 884 of file draw_cache.cc.
References DRW_cache_mesh_face_wireframe_get(), OB_GREASE_PENCIL, OB_MESH, OB_POINTCLOUD, OB_VOLUME, and Object::type.
Referenced by OVERLAY_wireframe_cache_populate().
| blender::gpu::Batch * DRW_cache_object_loose_edges_get | ( | Object * | ob | ) |
Definition at line 901 of file draw_cache.cc.
References DRW_cache_mesh_loose_edges_get(), OB_MESH, and Object::type.
Definition at line 936 of file draw_cache.cc.
References BKE_object_get_evaluated_mesh_no_subsurf_unchecked(), BLI_assert, Object::data, OB_CURVES, OB_CURVES_LEGACY, OB_FONT, OB_MESH, OB_POINTCLOUD, OB_SURF, OB_VOLUME, and Object::type.
Referenced by basic_cache_populate(), basic_object_surface_material_get(), blender::eevee::MaterialModule::material_array_get(), blender::workbench::Instance::mesh_sync(), and blender::draw::overlay::Prepass::object_sync().
| blender::gpu::VertBuf * DRW_cache_object_pos_vertbuf_get | ( | Object * | ob | ) |
Returns the vertbuf used by shaded surface batch.
Definition at line 921 of file draw_cache.cc.
References BKE_object_get_evaluated_mesh_no_subsurf_unchecked(), Object::data, OB_MESH, and Object::type.
Referenced by blender::eevee::VelocityModule::step_object_sync().
| blender::gpu::Batch * DRW_cache_object_surface_get | ( | Object * | ob | ) |
Definition at line 911 of file draw_cache.cc.
References DRW_cache_mesh_surface_get(), OB_MESH, and Object::type.
Referenced by basic_cache_populate(), external_cache_populate(), blender::workbench::Instance::mesh_sync(), blender::draw::overlay::Facing::object_sync(), blender::draw::overlay::Fade::object_sync(), blender::draw::overlay::ModeTransfer::object_sync(), blender::workbench::ShadowPass::object_sync(), OVERLAY_facing_cache_populate(), OVERLAY_fade_cache_populate(), OVERLAY_mode_transfer_cache_populate(), OVERLAY_outline_cache_populate(), and OVERLAY_pose_cache_populate().
| blender::gpu::Batch ** DRW_cache_object_surface_material_get | ( | Object * | ob, |
| GPUMaterial ** | gpumat_array, | ||
| uint | gpumat_array_len ) |
Definition at line 969 of file draw_cache.cc.
References DRW_cache_mesh_surface_shaded_get(), OB_MESH, and Object::type.
Referenced by basic_object_surface_material_get(), blender::workbench::Instance::mesh_sync(), and blender::eevee::SyncModule::sync_mesh().
| blender::gpu::Batch * DRW_cache_particles_get_dots | ( | Object * | object, |
| ParticleSystem * | psys ) |
Definition at line 3114 of file draw_cache.cc.
Referenced by blender::draw::overlay::Particles::object_sync(), and OVERLAY_particle_cache_populate().
| blender::gpu::Batch * DRW_cache_particles_get_edit_inner_points | ( | Object * | object, |
| ParticleSystem * | psys, | ||
| PTCacheEdit * | edit ) |
Definition at line 3129 of file draw_cache.cc.
Referenced by blender::draw::overlay::Particles::edit_object_sync(), and OVERLAY_edit_particle_cache_populate().
| blender::gpu::Batch * DRW_cache_particles_get_edit_strands | ( | Object * | object, |
| ParticleSystem * | psys, | ||
| PTCacheEdit * | edit, | ||
| bool | use_weight ) |
Definition at line 3120 of file draw_cache.cc.
Referenced by blender::draw::overlay::Particles::edit_object_sync(), and OVERLAY_edit_particle_cache_populate().
| blender::gpu::Batch * DRW_cache_particles_get_edit_tip_points | ( | Object * | object, |
| ParticleSystem * | psys, | ||
| PTCacheEdit * | edit ) |
Definition at line 3137 of file draw_cache.cc.
Referenced by blender::draw::overlay::Particles::edit_object_sync(), and OVERLAY_edit_particle_cache_populate().
| blender::gpu::Batch * DRW_cache_particles_get_hair | ( | Object * | object, |
| ParticleSystem * | psys, | ||
| ModifierData * | md ) |
Definition at line 3106 of file draw_cache.cc.
Referenced by basic_cache_populate_particles(), external_cache_populate(), blender::draw::overlay::Particles::object_sync(), blender::draw::overlay::Prepass::particle_sync(), and wireframe_hair_cache_populate().
| blender::gpu::Batch * DRW_cache_particles_get_prim | ( | int | type | ) |
Definition at line 3145 of file draw_cache.cc.
References BLI_assert, CIRCLE_RESOL, cosf, DRWShapeCache::drw_particle_axis, DRWShapeCache::drw_particle_circle, DRWShapeCache::drw_particle_cross, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINE_STRIP, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), M_PI, PART_DRAW_AXIS, PART_DRAW_CIRC, PART_DRAW_CROSS, SHC, sinf, v, VCLASS_EMPTY_AXES, VCLASS_SCREENALIGNED, x, and y.
Referenced by OVERLAY_particle_cache_populate().
| blender::gpu::Batch * DRW_cache_plain_axes_get | ( | ) |
Definition at line 987 of file draw_cache.cc.
References DRWShapeCache::drw_plain_axes, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, and VCLASS_EMPTY_SCALED.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_quad_get | ( | ) |
Definition at line 424 of file draw_cache.cc.
References DRWShapeCache::drw_quad, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_TRI_STRIP, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, and VCLASS_EMPTY_SCALED.
Referenced by blender::gpu::tests::blend_test(), edit_text_cache_populate_cursor(), edit_text_cache_populate_select(), external_cache_image_add(), OVERLAY_edit_uv_cache_init(), OVERLAY_extra_cache_init(), OVERLAY_grid_cache_init(), OVERLAY_image_camera_cache_populate(), and OVERLAY_image_empty_cache_populate().
| blender::gpu::Batch * DRW_cache_quad_wires_get | ( | ) |
Definition at line 444 of file draw_cache.cc.
References DRWShapeCache::drw_quad_wires, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINE_STRIP, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, and VCLASS_EMPTY_SCALED.
Referenced by OVERLAY_edit_uv_cache_init(), OVERLAY_extra_cache_init(), and OVERLAY_grid_cache_init().
| blender::gpu::Batch * DRW_cache_single_arrow_get | ( | ) |
Definition at line 1029 of file draw_cache.cc.
References DRWShapeCache::drw_single_arrow, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, and VCLASS_EMPTY_SCALED.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_speaker_get | ( | ) |
Definition at line 1740 of file draw_cache.cc.
References attr_id, copy_v3_fl3(), cosf, DRWShapeCache::drw_speaker, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), M_PI, pos, SHC, sinf, v, and z().
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_sphere_get | ( | eDRWLevelOfDetail | level_of_detail | ) |
Definition at line 518 of file draw_cache.cc.
References BLI_assert, DRW_LOD_HIGH, DRW_LOD_LOW, DRW_LOD_MAX, DRW_LOD_MEDIUM, DRWShapeCache::drw_sphere_lod, DRW_SPHERE_SHAPE_LATITUDE_HIGH, DRW_SPHERE_SHAPE_LATITUDE_LOW, DRW_SPHERE_SHAPE_LATITUDE_MEDIUM, DRW_SPHERE_SHAPE_LONGITUDE_HIGH, DRW_SPHERE_SHAPE_LONGITUDE_LOW, DRW_SPHERE_SHAPE_LONGITUDE_MEDIUM, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRIS, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), M_PI, SHC, sphere_lat_lon_vert(), and v.
Referenced by OVERLAY_extra_cache_init(), and blender::eevee::LookdevModule::sync().
| blender::gpu::Batch * DRW_cache_surf_edge_wire_get | ( | Object * | ob | ) |
Definition at line 3025 of file draw_cache.cc.
References BLI_assert, Object::data, OB_SURF, and Object::type.
Referenced by blender::draw::overlay::Wireframe::object_sync(), and OVERLAY_wireframe_cache_populate().
| blender::gpu::Batch * DRW_cache_text_edge_wire_get | ( | Object * | ob | ) |
Definition at line 3011 of file draw_cache.cc.
References BLI_assert, Object::data, OB_FONT, and Object::type.
Referenced by drw_shgroup_custom_bone_curve(), blender::draw::overlay::Wireframe::object_sync(), OVERLAY_edit_text_cache_populate(), and OVERLAY_wireframe_cache_populate().
| blender::gpu::Batch * DRW_gpencil_dummy_buffer_get | ( | ) |
Definition at line 838 of file draw_cache.cc.
References DRWShapeCache::drw_gpencil_dummy_quad, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_U32, GPU_FETCH_INT, GPU_PRIM_TRI_FAN, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), and SHC.
| void DRW_shape_cache_free | ( | ) |
Definition at line 170 of file draw_cache.cc.
References batch, GPU_BATCH_DISCARD_SAFE, and SHC.
Referenced by blender::gpu::tests::blend_test(), DRW_engines_free(), blender::draw::test_draw_pass_all_commands(), blender::draw::test_draw_pass_multi_draw(), blender::draw::test_draw_pass_simple_draw(), blender::draw::test_draw_pass_sortable(), blender::draw::test_draw_resource_id_gen(), and blender::draw::test_draw_visibility().