/dports/graphics/blender/blender-2.91.0/source/blender/editors/gizmo_library/ |
H A D | gizmo_draw_utils.c | 66 GPU_indexbuf_init(&elb, GPU_PRIM_TRIS, info->ntris, info->nverts); in wm_gizmo_geometryinfo_draw() 78 batch = GPU_batch_create_ex(GPU_PRIM_TRIS, vbo, el, GPU_BATCH_OWNS_VBO | GPU_BATCH_OWNS_INDEX); in wm_gizmo_geometryinfo_draw()
|
/dports/graphics/blender/blender-2.91.0/source/blender/draw/intern/ |
H A D | draw_cache_impl_pointcloud.c | 228 GPU_PRIM_TRIS, in pointcloud_batch_cache_ensure_geom() 261 cache->surface = GPU_batch_create(GPU_PRIM_TRIS, cache->geom, cache->geom_indices); in DRW_pointcloud_batch_cache_get_surface() 281 cache->surface_per_mat[0] = GPU_batch_create(GPU_PRIM_TRIS, cache->geom, cache->geom_indices); in DRW_cache_pointcloud_surface_shaded_get()
|
H A D | draw_cache_impl_mesh.c | 1336 if (DRW_batch_requested(cache->batch.surface, GPU_PRIM_TRIS)) { in DRW_mesh_batch_cache_create_requested() 1351 if (DRW_batch_requested(cache->batch.sculpt_overlays, GPU_PRIM_TRIS)) { in DRW_mesh_batch_cache_create_requested() 1369 if (DRW_batch_requested(cache->batch.surface_weights, GPU_PRIM_TRIS)) { in DRW_mesh_batch_cache_create_requested() 1392 if (DRW_batch_requested(cache->batch.edit_mesh_analysis, GPU_PRIM_TRIS)) { in DRW_mesh_batch_cache_create_requested() 1400 if (DRW_batch_requested(cache->surface_per_mat[i], GPU_PRIM_TRIS)) { in DRW_mesh_batch_cache_create_requested() 1423 if (DRW_batch_requested(cache->batch.edit_triangles, GPU_PRIM_TRIS)) { in DRW_mesh_batch_cache_create_requested() 1467 if (DRW_batch_requested(cache->batch.edit_selection_faces, GPU_PRIM_TRIS)) { in DRW_mesh_batch_cache_create_requested() 1486 if (DRW_batch_requested(cache->batch.edituv_faces, GPU_PRIM_TRIS)) { in DRW_mesh_batch_cache_create_requested() 1491 if (DRW_batch_requested(cache->batch.edituv_faces_stretch_area, GPU_PRIM_TRIS)) { in DRW_mesh_batch_cache_create_requested() 1497 if (DRW_batch_requested(cache->batch.edituv_faces_stretch_angle, GPU_PRIM_TRIS)) { in DRW_mesh_batch_cache_create_requested()
|
H A D | draw_cache_impl_volume.c | 237 GPU_indexbuf_init(&elb, GPU_PRIM_TRIS, tottris, totvert); in drw_volume_selection_surface_cb() 244 GPU_PRIM_TRIS, vbo_surface, ibo_surface, GPU_BATCH_OWNS_VBO | GPU_BATCH_OWNS_INDEX); in drw_volume_selection_surface_cb()
|
H A D | draw_cache_impl_gpencil.c | 401 GPU_indexbuf_init(&iter.ibo, GPU_PRIM_TRIS, iter.tri_len, iter.vert_len); in gpencil_batches_ensure() 415 cache->fill_batch = GPU_batch_create(GPU_PRIM_TRIS, cache->vbo, cache->ibo); in gpencil_batches_ensure() 580 GPU_indexbuf_init(&ibo_builder, GPU_PRIM_TRIS, gps->tot_triangles, vert_len); in gpencil_sbuffer_stroke_ensure() 606 GPUBatch *batch = GPU_batch_create_ex(GPU_PRIM_TRIS, vbo, ibo, GPU_BATCH_OWNS_INDEX); in gpencil_sbuffer_stroke_ensure()
|
H A D | draw_cache.c | 196 SHC.drw_procedural_tris = GPU_batch_create_ex(GPU_PRIM_TRIS, vbo, NULL, GPU_BATCH_OWNS_VBO); in drw_cache_procedural_triangles_get() 375 SHC.drw_fullscreen_quad = GPU_batch_create_ex(GPU_PRIM_TRIS, vbo, NULL, GPU_BATCH_OWNS_VBO); in DRW_cache_fullscreen_quad_get() 461 SHC.drw_grid = GPU_batch_create_ex(GPU_PRIM_TRIS, vbo, NULL, GPU_BATCH_OWNS_VBO); in DRW_cache_grid_get() 511 SHC.drw_sphere = GPU_batch_create_ex(GPU_PRIM_TRIS, vbo, NULL, GPU_BATCH_OWNS_VBO); in DRW_cache_sphere_get() 681 GPU_indexbuf_init(&elb, GPU_PRIM_TRIS, tri_len, vert_len); in DRW_cache_cube_get() 697 GPU_PRIM_TRIS, vbo, GPU_indexbuf_build(&elb), GPU_BATCH_OWNS_VBO | GPU_BATCH_OWNS_INDEX); in DRW_cache_cube_get() 2023 SHC.drw_bone_octahedral = GPU_batch_create_ex(GPU_PRIM_TRIS, vbo, NULL, GPU_BATCH_OWNS_VBO); in DRW_cache_bone_octahedral_get() 2081 SHC.drw_bone_box = GPU_batch_create_ex(GPU_PRIM_TRIS, vbo, NULL, GPU_BATCH_OWNS_VBO); in DRW_cache_bone_box_get() 2259 SHC.drw_bone_point = GPU_batch_create_ex(GPU_PRIM_TRIS, vbo, NULL, GPU_BATCH_OWNS_VBO); in DRW_cache_bone_point_get() 2692 SHC.drw_camera_volume = GPU_batch_create_ex(GPU_PRIM_TRIS, vbo, NULL, GPU_BATCH_OWNS_VBO); in DRW_cache_camera_volume_get() [all …]
|
H A D | draw_cache_impl_metaball.c | 192 cache->batch = GPU_batch_create_ex(GPU_PRIM_TRIS, in DRW_metaball_batch_cache_get_triangles_with_normals()
|
H A D | draw_cache_impl_displist.c | 263 GPU_indexbuf_init(&elb, GPU_PRIM_TRIS, tri_len, vert_len); in DRW_displist_indexbuf_create_triangles_in_order() 288 GPU_indexbuf_init(&elb[i], GPU_PRIM_TRIS, tri_len * 3, tri_len * 3); in DRW_displist_indexbuf_create_triangles_loop_split_by_material()
|
H A D | draw_cache_impl_curve.c | 965 if (DRW_batch_requested(cache->batch.surfaces, GPU_PRIM_TRIS)) { in DRW_curve_batch_cache_create_requested() 997 if (DRW_batch_requested(cache->surf_per_mat[i], GPU_PRIM_TRIS)) { in DRW_curve_batch_cache_create_requested()
|
H A D | draw_manager_exec.c | 697 if (batch->prim_type == GPU_PRIM_TRIS) { in draw_select_buffer()
|
/dports/graphics/blender/blender-2.91.0/source/blender/gpu/ |
H A D | GPU_primitive.h | 37 GPU_PRIM_TRIS, enumerator
|
/dports/graphics/blender/blender-2.91.0/source/blender/gpu/opengl/ |
H A D | gl_primitive.hh | 49 case GPU_PRIM_TRIS: in to_gl()
|
/dports/graphics/blender/blender-2.91.0/source/blender/gpu/intern/ |
H A D | gpu_index_buffer.cc | 109 assert(builder->prim_type == GPU_PRIM_TRIS); in GPU_indexbuf_add_tri_verts() 157 BLI_assert(builder->prim_type == GPU_PRIM_TRIS); in GPU_indexbuf_set_tri_verts() 196 BLI_assert(builder->prim_type == GPU_PRIM_TRIS); in GPU_indexbuf_set_tri_restart()
|
H A D | gpu_batch_utils.c | 121 GPU_indexbuf_init(&elb, GPU_PRIM_TRIS, tris_len, verts_len); in GPU_batch_tris_from_poly_2d_encoded() 131 GPU_PRIM_TRIS, vbo, indexbuf, GPU_BATCH_OWNS_VBO | GPU_BATCH_OWNS_INDEX); in GPU_batch_tris_from_poly_2d_encoded()
|
H A D | gpu_index_buffer_private.hh | 116 case GPU_PRIM_TRIS: in indices_per_primitive()
|
H A D | gpu_buffers.c | 328 gpu_pbvh_batch_init(buffers, GPU_PRIM_TRIS); in GPU_pbvh_mesh_buffers_update() 446 GPU_indexbuf_init(&elb, GPU_PRIM_TRIS, 2 * visible_quad_len, INT_MAX); in gpu_pbvh_grid_fill_index_buffers() 447 GPU_indexbuf_init(&elb_fast, GPU_PRIM_TRIS, 2 * totgrid, INT_MAX); in gpu_pbvh_grid_fill_index_buffers() 753 gpu_pbvh_batch_init(buffers, GPU_PRIM_TRIS); in GPU_pbvh_grid_buffers_update() 933 GPU_indexbuf_init(&elb, GPU_PRIM_TRIS, tottri, totvert); in GPU_pbvh_bmesh_buffers_update() 1042 gpu_pbvh_batch_init(buffers, GPU_PRIM_TRIS); in GPU_pbvh_bmesh_buffers_update()
|
H A D | gpu_immediate_util.c | 402 immBegin(GPU_PRIM_TRIS, ARRAY_SIZE(cube_quad_index) * 3 * 2); in imm_draw_cube_fill_3d() 446 immBegin(GPU_PRIM_TRIS, 6 * slices * stacks); in imm_draw_cylinder_fill_normal_3d() 540 immBegin(GPU_PRIM_TRIS, 6 * slices * stacks); in imm_draw_cylinder_fill_3d()
|
H A D | gpu_batch_presets.c | 193 return GPU_batch_create_ex(GPU_PRIM_TRIS, vbo, NULL, GPU_BATCH_OWNS_VBO); in gpu_batch_sphere() 302 return GPU_batch_create_ex(GPU_PRIM_TRIS, vbo, NULL, GPU_BATCH_OWNS_VBO); in gpu_batch_preset_panel_drag_widget()
|
H A D | gpu_immediate.cc | 116 case GPU_PRIM_TRIS: in vertex_count_makes_sense_for_primitive()
|
/dports/graphics/blender/blender-2.91.0/source/blender/editors/space_view3d/ |
H A D | drawobject.c | 203 GPUBatch *draw_batch = GPU_batch_create(GPU_PRIM_TRIS, vbo_pos, NULL); in ED_draw_object_facemap()
|
/dports/graphics/blender/blender-2.91.0/source/blender/editors/mesh/ |
H A D | editmesh_preselect_elem.c | 148 immBegin(GPU_PRIM_TRIS, psel->preview_tris_len * 3); in EDBM_preselect_elem_draw()
|
/dports/graphics/blender/blender-2.91.0/source/blender/windowmanager/intern/ |
H A D | wm_gesture.c | 232 immBegin(GPU_PRIM_TRIS, 6); in wm_gesture_draw_line_active_side()
|
/dports/graphics/blender/blender-2.91.0/source/blender/editors/sculpt_paint/ |
H A D | sculpt_multiplane_scrape.c | 452 immBegin(GPU_PRIM_TRIS, 12); in SCULPT_multiplane_scrape_preview_draw()
|
/dports/graphics/blender/blender-2.91.0/source/blender/editors/space_action/ |
H A D | action_draw.c | 514 immBeginAtMost(GPU_PRIM_TRIS, segments_count * 6); in timeline_cache_draw_cached_segments()
|
/dports/graphics/blender/blender-2.91.0/source/blender/editors/interface/ |
H A D | interface_widgets.c | 453 GPU_indexbuf_init(&ibuf, GPU_PRIM_TRIS, 6, 12); in ui_batch_roundbox_widget_get() 465 GPU_PRIM_TRIS, vbo, GPU_indexbuf_build(&ibuf), GPU_BATCH_OWNS_INDEX | GPU_BATCH_OWNS_VBO); in ui_batch_roundbox_widget_get() 535 immBegin(GPU_PRIM_TRIS, 3 * WIDGET_AA_JITTER); in UI_draw_anti_tria() 3062 immBegin(GPU_PRIM_TRIS, steps * 3 * 6); in ui_draw_gradient() 3873 immBegin(GPU_PRIM_TRIS, 3); in widget_swatch() 4958 immBegin(GPU_PRIM_TRIS, 3); in ui_draw_popover_back_impl() 4968 immBegin(GPU_PRIM_TRIS, 3); in ui_draw_popover_back_impl() 4976 immBegin(GPU_PRIM_TRIS, 3); in ui_draw_popover_back_impl()
|