|
Blender V4.3
|
Classes | |
| class | DrawCache |
| class | DrawCacheImpl |
| class | GenericRequest |
| struct | OrigMeshData |
| struct | ViewportRequest |
Typedefs | |
| using | AttributeRequest = std::variant<CustomRequest, GenericRequest> |
Enumerations | |
| enum class | CustomRequest : int8_t { Position , Normal , Mask , FaceSet } |
Functions | |
| DrawCache & | ensure_draw_data (std::unique_ptr< bke::pbvh::DrawCache > &ptr) |
| static BLI_NOINLINE void | free_ibos (const MutableSpan< gpu::IndexBuf * > ibos, const IndexMask &node_mask) |
| static BLI_NOINLINE void | free_vbos (const MutableSpan< gpu::VertBuf * > vbos, const IndexMask &node_mask) |
| static BLI_NOINLINE void | free_batches (const MutableSpan< gpu::Batch * > batches, const IndexMask &node_mask) |
| static const GPUVertFormat & | position_format () |
| static const GPUVertFormat & | normal_format () |
| static const GPUVertFormat & | mask_format () |
| static const GPUVertFormat & | face_set_format () |
| static GPUVertFormat | attribute_format (const OrigMeshData &orig_mesh_data, const StringRefNull name, const eCustomDataType data_type) |
| static GPUVertFormat | format_for_request (const OrigMeshData &orig_mesh_data, const AttributeRequest &request) |
| static bool | pbvh_attr_supported (const AttributeRequest &request) |
| short4 | normal_float_to_short (const float3 &value) |
| template<typename T > | |
| void | extract_data_vert_mesh (const OffsetIndices< int > faces, const Span< int > corner_verts, const Span< T > attribute, const Span< int > face_indices, gpu::VertBuf &vbo) |
| template<typename T > | |
| void | extract_data_face_mesh (const OffsetIndices< int > faces, const Span< T > attribute, const Span< int > face_indices, gpu::VertBuf &vbo) |
| template<typename T > | |
| void | extract_data_corner_mesh (const OffsetIndices< int > faces, const Span< T > attribute, const Span< int > face_indices, gpu::VertBuf &vbo) |
| template<typename T > | |
| const T & | bmesh_cd_vert_get (const BMVert &vert, const int offset) |
| template<typename T > | |
| const T & | bmesh_cd_loop_get (const BMLoop &loop, const int offset) |
| template<typename T > | |
| const T & | bmesh_cd_face_get (const BMFace &face, const int offset) |
| template<typename T > | |
| void | extract_data_vert_bmesh (const Set< BMFace *, 0 > &faces, const int cd_offset, gpu::VertBuf &vbo) |
| template<typename T > | |
| void | extract_data_face_bmesh (const Set< BMFace *, 0 > &faces, const int cd_offset, gpu::VertBuf &vbo) |
| template<typename T > | |
| void | extract_data_corner_bmesh (const Set< BMFace *, 0 > &faces, const int cd_offset, gpu::VertBuf &vbo) |
| static const CustomData * | get_cdata (const BMesh &bm, const bke::AttrDomain domain) |
| template<typename T > | |
| T | fallback_value_for_fill () |
| template<> | |
| ColorGeometry4f | fallback_value_for_fill () |
| template<> | |
| ColorGeometry4b | fallback_value_for_fill () |
| static int | count_visible_tris_bmesh (const Set< BMFace *, 0 > &faces) |
| static void | fill_vbo_normal_mesh (const OffsetIndices< int > faces, const Span< int > corner_verts, const Span< bool > sharp_faces, const Span< float3 > vert_normals, const Span< float3 > face_normals, const Span< int > face_indices, gpu::VertBuf &vert_buf) |
| static void | fill_vbo_mask_mesh (const OffsetIndices< int > faces, const Span< int > corner_verts, const Span< float > mask, const Span< int > face_indices, gpu::VertBuf &vbo) |
| static void | fill_vbo_face_set_mesh (const OffsetIndices< int > faces, const Span< int > face_sets, const int color_default, const int color_seed, const Span< int > face_indices, gpu::VertBuf &vert_buf) |
| static void | fill_vbo_attribute_mesh (const OffsetIndices< int > faces, const Span< int > corner_verts, const GSpan attribute, const bke::AttrDomain domain, const Span< int > face_indices, gpu::VertBuf &vert_buf) |
| static void | fill_vbo_position_grids (const CCGKey &key, const Span< float3 > positions, const bool use_flat_layout, const Span< int > grids, gpu::VertBuf &vert_buf) |
| static void | fill_vbo_normal_grids (const CCGKey &key, const Span< float3 > positions, const Span< float3 > normals, const Span< int > grid_to_face_map, const Span< bool > sharp_faces, const bool use_flat_layout, const Span< int > grids, gpu::VertBuf &vert_buf) |
| static void | fill_vbo_mask_grids (const CCGKey &key, const Span< float > masks, const bool use_flat_layout, const Span< int > grids, gpu::VertBuf &vert_buf) |
| static void | fill_vbo_face_set_grids (const CCGKey &key, const Span< int > grid_to_face_map, const Span< int > face_sets, const int color_default, const int color_seed, const bool use_flat_layout, const Span< int > grid_indices, gpu::VertBuf &vert_buf) |
| static void | fill_vbos_grids (const Object &object, const OrigMeshData &orig_mesh_data, const BitSpan use_flat_layout, const IndexMask &node_mask, const AttributeRequest &request, const MutableSpan< gpu::VertBuf * > vbos) |
| static void | fill_vbos_mesh (const Object &object, const OrigMeshData &orig_mesh_data, const IndexMask &node_mask, const AttributeRequest &request, const MutableSpan< gpu::VertBuf * > vbos) |
| static void | fill_vbo_position_bmesh (const Set< BMFace *, 0 > &faces, gpu::VertBuf &vbo) |
| static void | fill_vbo_normal_bmesh (const Set< BMFace *, 0 > &faces, gpu::VertBuf &vbo) |
| static void | fill_vbo_mask_bmesh (const Set< BMFace *, 0 > &faces, const int cd_offset, gpu::VertBuf &vbo) |
| static void | fill_vbo_face_set_bmesh (const Set< BMFace *, 0 > &faces, const int color_default, const int color_seed, const int offset, gpu::VertBuf &vbo) |
| static void | fill_vbo_attribute_bmesh (const Set< BMFace *, 0 > &faces, const eCustomDataType data_type, const bke::AttrDomain domain, const int offset, gpu::VertBuf &vbo) |
| static void | fill_vbos_bmesh (const Object &object, const OrigMeshData &orig_mesh_data, const IndexMask &node_mask, const AttributeRequest &request, const MutableSpan< gpu::VertBuf * > vbos) |
| static gpu::IndexBuf * | create_index_faces (const OffsetIndices< int > faces, const Span< bool > hide_poly, const Span< int > face_indices) |
| static gpu::IndexBuf * | create_index_bmesh (const Set< BMFace *, 0 > &faces, const int visible_faces_num) |
| static void | create_tri_index_grids (const Span< int > grid_indices, const BitGroupVector<> &grid_hidden, const int gridsize, const int skip, const int totgrid, GPUIndexBufBuilder &elb) |
| static void | create_tri_index_grids_flat_layout (const Span< int > grid_indices, const BitGroupVector<> &grid_hidden, const int gridsize, const int skip, const int totgrid, GPUIndexBufBuilder &elb) |
| static void | create_lines_index_grids (const Span< int > grid_indices, int display_gridsize, const BitGroupVector<> &grid_hidden, const int gridsize, const int skip, const int totgrid, GPUIndexBufBuilder &elb_lines) |
| static void | create_lines_index_grids_flat_layout (const Span< int > grid_indices, int display_gridsize, const BitGroupVector<> &grid_hidden, const int gridsize, const int skip, const int totgrid, GPUIndexBufBuilder &elb_lines) |
| static Array< int > | calc_material_indices (const Object &object, const OrigMeshData &orig_mesh_data) |
| static BitVector | calc_use_flat_layout (const Object &object, const OrigMeshData &orig_mesh_data) |
| static gpu::IndexBuf * | create_tri_index_mesh (const OffsetIndices< int > faces, const Span< int3 > corner_tris, const Span< bool > hide_poly, const bke::pbvh::MeshNode &node) |
| static gpu::IndexBuf * | create_tri_index_grids (const CCGKey &key, const BitGroupVector<> &grid_hidden, const bool do_coarse, const Span< int > grid_indices, const bool use_flat_layout) |
| static gpu::IndexBuf * | create_lines_index_grids (const CCGKey &key, const BitGroupVector<> &grid_hidden, const bool do_coarse, const Span< int > grid_indices, const bool use_flat_layout) |
| static BLI_NOINLINE void | ensure_vbos_allocated_mesh (const Object &object, const GPUVertFormat &format, const IndexMask &node_mask, const MutableSpan< gpu::VertBuf * > vbos) |
| static BLI_NOINLINE void | ensure_vbos_allocated_grids (const Object &object, const GPUVertFormat &format, const BitSpan use_flat_layout, const IndexMask &node_mask, const MutableSpan< gpu::VertBuf * > vbos) |
| static BLI_NOINLINE void | ensure_vbos_allocated_bmesh (const Object &object, const GPUVertFormat &format, const IndexMask &node_mask, const MutableSpan< gpu::VertBuf * > vbos) |
| static BLI_NOINLINE void | flush_vbo_data (const Span< gpu::VertBuf * > vbos, const IndexMask &node_mask) |
| using blender::draw::pbvh::AttributeRequest = std::variant<CustomRequest, GenericRequest> |
Definition at line 58 of file DRW_pbvh.hh.
|
strong |
| Enumerator | |
|---|---|
| Position | |
| Normal | |
| Mask | |
| FaceSet | |
Definition at line 51 of file DRW_pbvh.hh.
|
static |
Definition at line 315 of file draw_pbvh.cc.
References blender::draw::pbvh::OrigMeshData::active_color, blender::draw::pbvh::OrigMeshData::active_uv_map, CD_MASK_COLOR_ALL, CD_PROP_FLOAT2, CD_TYPE_AS_MASK, blender::draw::pbvh::OrigMeshData::default_color, blender::draw::pbvh::OrigMeshData::default_uv_map, DRW_cdlayer_attr_aliases_add(), and blender::draw::init_format_for_attribute().
Referenced by format_for_request().
| const T & blender::draw::pbvh::bmesh_cd_face_get | ( | const BMFace & | face, |
| const int | offset ) |
Definition at line 454 of file draw_pbvh.cc.
References POINTER_OFFSET.
Referenced by extract_data_face_bmesh(), and fill_vbo_face_set_bmesh().
| const T & blender::draw::pbvh::bmesh_cd_loop_get | ( | const BMLoop & | loop, |
| const int | offset ) |
Definition at line 449 of file draw_pbvh.cc.
References BMHeader::data, BMLoop::head, and POINTER_OFFSET.
Referenced by extract_data_corner_bmesh().
| const T & blender::draw::pbvh::bmesh_cd_vert_get | ( | const BMVert & | vert, |
| const int | offset ) |
Definition at line 444 of file draw_pbvh.cc.
References BMHeader::data, BMVert::head, and POINTER_OFFSET.
Referenced by extract_data_vert_bmesh(), and fill_vbo_mask_bmesh().
|
static |
Definition at line 1468 of file draw_pbvh.cc.
References blender::draw::pbvh::OrigMeshData::attributes, blender::bke::Face, SubdivCCG::grid_to_face_map, blender::bke::pbvh::Grids, blender::bke::pbvh::Mesh, blender::bke::pbvh::Tree::nodes(), blender::threading::parallel_for(), blender::bke::object::pbvh_get(), SculptSession::subdiv_ccg, and blender::bke::pbvh::Tree::type().
Referenced by blender::draw::pbvh::DrawCacheImpl::ensure_material_indices().
|
static |
Definition at line 1524 of file draw_pbvh.cc.
References blender::draw::pbvh::OrigMeshData::attributes, blender::bke::pbvh::BMesh, blender::bke::Face, SubdivCCG::grid_to_face_map, blender::bke::pbvh::Grids, blender::Span< T >::is_empty(), blender::bke::pbvh::Mesh, blender::bke::pbvh::Tree::nodes(), blender::threading::parallel_for(), blender::bke::object::pbvh_get(), and blender::bke::pbvh::Tree::type().
Definition at line 548 of file draw_pbvh.cc.
Referenced by ensure_vbos_allocated_bmesh().
|
static |
Definition at line 1257 of file draw_pbvh.cc.
References BM_elem_flag_test, BM_ELEM_HIDDEN, faces, GPU_indexbuf_add_line_verts(), GPU_indexbuf_build(), GPU_indexbuf_init(), and GPU_PRIM_LINES.
|
static |
Definition at line 1219 of file draw_pbvh.cc.
References blender::MutableSpan< T >::cast(), GPU_indexbuf_build_in_place_ex(), GPU_indexbuf_calloc(), GPU_indexbuf_get_data(), GPU_indexbuf_init(), GPU_PRIM_LINES, blender::Span< T >::is_empty(), and next.
|
static |
Definition at line 1647 of file draw_pbvh.cc.
References create_lines_index_grids(), create_lines_index_grids_flat_layout(), GPU_indexbuf_build(), GPU_indexbuf_init(), GPU_PRIM_LINES, CCGKey::grid_size, CCGKey::level, and blender::Span< T >::size().
|
static |
Definition at line 1363 of file draw_pbvh.cc.
References CCG_grid_xy_to_index(), GPU_indexbuf_add_line_verts(), blender::bits::BitGroupVector< InlineBufferCapacity, Allocator >::is_empty(), blender::bits::BitSpan::is_empty(), paint_is_grid_face_hidden(), and v2.
Referenced by create_lines_index_grids().
|
static |
Definition at line 1408 of file draw_pbvh.cc.
References GPU_indexbuf_add_line_verts(), blender::bits::BitGroupVector< InlineBufferCapacity, Allocator >::is_empty(), blender::bits::BitSpan::is_empty(), paint_is_grid_face_hidden(), square_uint(), v2, and x.
Referenced by create_lines_index_grids().
|
static |
Definition at line 1612 of file draw_pbvh.cc.
References blender::bke::pbvh::count_grid_quads(), create_tri_index_grids(), create_tri_index_grids_flat_layout(), GPU_indexbuf_build(), GPU_indexbuf_init(), GPU_PRIM_TRIS, CCGKey::grid_size, CCGKey::level, and blender::Span< T >::size().
|
static |
Definition at line 1280 of file draw_pbvh.cc.
References CCG_grid_xy_to_index(), GPU_indexbuf_add_tri_verts(), blender::bits::BitGroupVector< InlineBufferCapacity, Allocator >::is_empty(), blender::bits::BitSpan::is_empty(), paint_is_grid_face_hidden(), and v2.
Referenced by create_tri_index_grids().
|
static |
Definition at line 1314 of file draw_pbvh.cc.
References GPU_indexbuf_add_tri_verts(), blender::bits::BitGroupVector< InlineBufferCapacity, Allocator >::is_empty(), blender::bits::BitSpan::is_empty(), paint_is_grid_face_hidden(), square_uint(), v2, and x.
Referenced by create_tri_index_grids().
|
static |
Definition at line 1565 of file draw_pbvh.cc.
References blender::MutableSpan< T >::cast(), blender::bke::mesh::face_triangles_num(), blender::bke::mesh::face_triangles_range(), GPU_indexbuf_build_in_place_ex(), GPU_indexbuf_calloc(), GPU_indexbuf_get_data(), GPU_indexbuf_init(), GPU_PRIM_TRIS, blender::Span< T >::is_empty(), poly_to_tri_count(), blender::IndexRange::size(), blender::Span< T >::size(), size(), and blender::Span< T >::slice().
| DrawCache & blender::draw::pbvh::ensure_draw_data | ( | std::unique_ptr< bke::pbvh::DrawCache > & | ptr | ) |
Definition at line 247 of file draw_pbvh.cc.
References ptr.
Referenced by blender::draw::sculpt_batches_get_ex().
|
static |
|
static |
Definition at line 1756 of file draw_pbvh.cc.
References BKE_subdiv_ccg_key_top_level(), blender::index_mask::IndexMask::foreach_index(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), CCGKey::grid_size, blender::bke::pbvh::Tree::nodes(), blender::bke::object::pbvh_get(), square_i(), and SculptSession::subdiv_ccg.
|
static |
Definition at line 1741 of file draw_pbvh.cc.
References blender::index_mask::IndexMask::foreach_index(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), blender::bke::pbvh::Tree::nodes(), and blender::bke::object::pbvh_get().
| void blender::draw::pbvh::extract_data_corner_bmesh | ( | const Set< BMFace *, 0 > & | faces, |
| const int | cd_offset, | ||
| gpu::VertBuf & | vbo ) |
Definition at line 497 of file draw_pbvh.cc.
References BM_elem_flag_test, BM_ELEM_HIDDEN, bmesh_cd_loop_get(), blender::gpu::VertBuf::data(), data, faces, l, BMLoop::next, and BMLoop::prev.
Referenced by fill_vbo_attribute_bmesh().
| void blender::draw::pbvh::extract_data_corner_mesh | ( | const OffsetIndices< int > | faces, |
| const Span< T > | attribute, | ||
| const Span< int > | face_indices, | ||
| gpu::VertBuf & | vbo ) |
Definition at line 427 of file draw_pbvh.cc.
References blender::gpu::VertBuf::data(), and data.
| void blender::draw::pbvh::extract_data_face_bmesh | ( | const Set< BMFace *, 0 > & | faces, |
| const int | cd_offset, | ||
| gpu::VertBuf & | vbo ) |
Definition at line 481 of file draw_pbvh.cc.
References BM_elem_flag_test, BM_ELEM_HIDDEN, bmesh_cd_face_get(), blender::gpu::VertBuf::data(), data, and faces.
Referenced by fill_vbo_attribute_bmesh().
| void blender::draw::pbvh::extract_data_face_mesh | ( | const OffsetIndices< int > | faces, |
| const Span< T > | attribute, | ||
| const Span< int > | face_indices, | ||
| gpu::VertBuf & | vbo ) |
Definition at line 410 of file draw_pbvh.cc.
References blender::gpu::VertBuf::data(), and data.
| void blender::draw::pbvh::extract_data_vert_bmesh | ( | const Set< BMFace *, 0 > & | faces, |
| const int | cd_offset, | ||
| gpu::VertBuf & | vbo ) |
Definition at line 460 of file draw_pbvh.cc.
References BM_elem_flag_test, BM_ELEM_HIDDEN, bmesh_cd_vert_get(), blender::gpu::VertBuf::data(), data, faces, l, BMLoop::next, BMLoop::prev, and BMLoop::v.
Referenced by fill_vbo_attribute_bmesh().
| void blender::draw::pbvh::extract_data_vert_mesh | ( | const OffsetIndices< int > | faces, |
| const Span< int > | corner_verts, | ||
| const Span< T > | attribute, | ||
| const Span< int > | face_indices, | ||
| gpu::VertBuf & | vbo ) |
Definition at line 392 of file draw_pbvh.cc.
References blender::gpu::VertBuf::data(), data, and blender::Span< T >::slice().
Referenced by fill_vbos_mesh().
|
static |
Definition at line 306 of file draw_pbvh.cc.
References GPU_COMP_U8, GPU_FETCH_INT_TO_FLOAT_UNIT, and GPU_vertformat_attr_add().
Referenced by format_for_request().
Definition at line 533 of file draw_pbvh.cc.
References T.
Referenced by fallback_value_for_fill(), and fill_vbos_grids().
| ColorGeometry4f blender::draw::pbvh::fallback_value_for_fill | ( | ) |
Definition at line 538 of file draw_pbvh.cc.
| ColorGeometry4b blender::draw::pbvh::fallback_value_for_fill | ( | ) |
Definition at line 543 of file draw_pbvh.cc.
References fallback_value_for_fill().
|
static |
Definition at line 1110 of file draw_pbvh.cc.
References BLI_assert_unreachable, blender::bke::attribute_math::convert_to_static_type(), blender::bke::Corner, extract_data_corner_bmesh(), extract_data_face_bmesh(), extract_data_vert_bmesh(), blender::bke::Face, and blender::bke::Point.
Referenced by fill_vbos_bmesh().
|
static |
Definition at line 675 of file draw_pbvh.cc.
References blender::bke::attribute_math::convert_to_static_type().
Referenced by fill_vbos_mesh().
|
static |
Definition at line 1089 of file draw_pbvh.cc.
References BKE_paint_face_set_overlay_color_get(), BM_elem_flag_test, BM_ELEM_HIDDEN, bmesh_cd_face_get(), blender::gpu::VertBuf::data(), data, and faces.
Referenced by fill_vbos_bmesh().
|
static |
Definition at line 825 of file draw_pbvh.cc.
References BKE_paint_face_set_overlay_color_get(), blender::gpu::VertBuf::data(), data, CCGKey::grid_size, blender::Span< T >::index_range(), and square_i().
Referenced by fill_vbos_grids().
|
static |
Definition at line 649 of file draw_pbvh.cc.
References BKE_paint_face_set_overlay_color_get(), blender::gpu::VertBuf::data(), and data.
Referenced by fill_vbos_mesh().
|
static |
Definition at line 1070 of file draw_pbvh.cc.
References BM_elem_flag_test, BM_ELEM_HIDDEN, bmesh_cd_vert_get(), blender::gpu::VertBuf::data(), data, faces, l, BMLoop::next, BMLoop::prev, and BMLoop::v.
Referenced by fill_vbos_bmesh().
|
static |
Definition at line 791 of file draw_pbvh.cc.
References CCG_grid_xy_to_index(), blender::gpu::VertBuf::data(), blender::Span< T >::data(), data, blender::bke::ccg::grid_range(), CCGKey::grid_size, blender::Span< T >::size(), and blender::Span< T >::slice().
Referenced by fill_vbos_grids().
|
static |
Definition at line 634 of file draw_pbvh.cc.
References blender::gpu::VertBuf::data(), data, and blender::Span< T >::slice().
Referenced by fill_vbos_mesh().
|
static |
Definition at line 1047 of file draw_pbvh.cc.
References BM_elem_flag_test, BM_ELEM_HIDDEN, BM_ELEM_SMOOTH, blender::gpu::VertBuf::data(), data, faces, l, BMLoop::next, BMVert::no, normal_float_to_short(), BMLoop::prev, and BMLoop::v.
Referenced by fill_vbos_bmesh().
|
static |
Definition at line 737 of file draw_pbvh.cc.
References CCG_grid_xy_to_index(), blender::gpu::VertBuf::data(), data, blender::bke::ccg::grid_range(), CCGKey::grid_size, blender::Span< T >::is_empty(), normal_float_to_short(), normal_quad_v3(), and blender::Span< T >::slice().
Referenced by fill_vbos_grids().
|
static |
Definition at line 609 of file draw_pbvh.cc.
References blender::gpu::VertBuf::data(), data, blender::Span< T >::is_empty(), normal_float_to_short(), and blender::Span< T >::slice().
Referenced by fill_vbos_mesh().
|
static |
Definition at line 1030 of file draw_pbvh.cc.
References BM_elem_flag_test, BM_ELEM_HIDDEN, BMVert::co, blender::gpu::VertBuf::data(), data, faces, l, BMLoop::next, BMLoop::prev, and BMLoop::v.
Referenced by fill_vbos_bmesh().
|
static |
Definition at line 703 of file draw_pbvh.cc.
References CCG_grid_xy_to_index(), blender::gpu::VertBuf::data(), blender::Span< T >::data(), data, blender::bke::ccg::grid_range(), CCGKey::grid_size, blender::Span< T >::size(), and blender::Span< T >::slice().
Referenced by fill_vbos_grids().
|
static |
Definition at line 1136 of file draw_pbvh.cc.
References BKE_pbvh_bmesh_node_faces(), bm, SculptSession::bm, CD_PROP_FLOAT, CD_PROP_INT32, CustomData_get_offset_named(), blender::MutableSpan< T >::data(), blender::draw::pbvh::GenericRequest::domain, blender::draw::pbvh::OrigMeshData::face_set_default, blender::draw::pbvh::OrigMeshData::face_set_seed, FaceSet, fill_vbo_attribute_bmesh(), fill_vbo_face_set_bmesh(), fill_vbo_mask_bmesh(), fill_vbo_normal_bmesh(), fill_vbo_position_bmesh(), blender::index_mask::IndexMask::foreach_index(), get_cdata(), Mask, blender::draw::pbvh::GenericRequest::name, blender::bke::pbvh::Tree::nodes(), Normal, blender::bke::object::pbvh_get(), BMesh::pdata, Position, blender::draw::pbvh::GenericRequest::type, and BMesh::vdata.
|
static |
Definition at line 849 of file draw_pbvh.cc.
References blender::draw::pbvh::OrigMeshData::attributes, BKE_subdiv_ccg_key_top_level(), blender::bke::attribute_math::convert_to_static_type(), blender::MutableSpan< T >::data(), blender::bke::Face, blender::draw::pbvh::OrigMeshData::face_set_default, blender::draw::pbvh::OrigMeshData::face_set_seed, FaceSet, fallback_value_for_fill(), fill_vbo_face_set_grids(), fill_vbo_mask_grids(), fill_vbo_normal_grids(), fill_vbo_position_grids(), blender::index_mask::IndexMask::foreach_index(), Mask, blender::bke::pbvh::Tree::nodes(), Normal, blender::bke::object::pbvh_get(), Position, and SculptSession::subdiv_ccg.
|
static |
Definition at line 945 of file draw_pbvh.cc.
References blender::draw::pbvh::OrigMeshData::attributes, blender::MutableSpan< T >::data(), blender::draw::pbvh::GenericRequest::domain, extract_data_vert_mesh(), blender::bke::Face, blender::bke::pbvh::face_normals_eval_from_eval(), blender::draw::pbvh::OrigMeshData::face_set_default, blender::draw::pbvh::OrigMeshData::face_set_seed, faces, FaceSet, fill_vbo_attribute_mesh(), fill_vbo_face_set_mesh(), fill_vbo_mask_mesh(), fill_vbo_normal_mesh(), blender::index_mask::IndexMask::foreach_index(), blender::Span< T >::is_empty(), blender::bke::AttributeAccessor::lookup(), Mask, blender::draw::pbvh::GenericRequest::name, blender::bke::pbvh::Tree::nodes(), Normal, blender::bke::object::pbvh_get(), blender::bke::Point, Position, blender::draw::pbvh::GenericRequest::type, blender::bke::pbvh::vert_normals_eval_from_eval(), and blender::bke::pbvh::vert_positions_eval_from_eval().
|
static |
Definition at line 1797 of file draw_pbvh.cc.
References blender::index_mask::IndexMask::foreach_index(), and GPU_vertbuf_use().
|
static |
Definition at line 339 of file draw_pbvh.cc.
References attribute_format(), BLI_assert_unreachable, face_set_format(), FaceSet, Mask, mask_format(), blender::draw::pbvh::GenericRequest::name, Normal, normal_format(), Position, position_format(), and blender::draw::pbvh::GenericRequest::type.
|
static |
Definition at line 271 of file draw_pbvh.cc.
References blender::index_mask::IndexMask::from_intersection(), GPU_BATCH_DISCARD_SAFE, and blender::MutableSpan< T >::index_range().
Referenced by blender::draw::pbvh::DrawCacheImpl::~DrawCacheImpl().
|
static |
Definition at line 255 of file draw_pbvh.cc.
References blender::index_mask::IndexMask::from_intersection(), GPU_INDEXBUF_DISCARD_SAFE, and blender::MutableSpan< T >::index_range().
Referenced by blender::draw::pbvh::DrawCacheImpl::~DrawCacheImpl().
|
static |
Definition at line 263 of file draw_pbvh.cc.
References blender::index_mask::IndexMask::from_intersection(), GPU_VERTBUF_DISCARD_SAFE, and blender::MutableSpan< T >::index_range().
Referenced by blender::draw::pbvh::DrawCacheImpl::~DrawCacheImpl().
|
static |
Definition at line 519 of file draw_pbvh.cc.
References bm, blender::bke::Corner, blender::bke::Face, BMesh::ldata, BMesh::pdata, blender::bke::Point, and BMesh::vdata.
Referenced by fill_vbos_bmesh().
|
static |
Definition at line 297 of file draw_pbvh.cc.
References GPU_COMP_F32, GPU_FETCH_FLOAT, and GPU_vertformat_attr_add().
Referenced by format_for_request().
Definition at line 384 of file draw_pbvh.cc.
References normal_float_to_short_v3(), and result.
Referenced by fill_vbo_normal_bmesh(), fill_vbo_normal_grids(), and fill_vbo_normal_mesh().
|
static |
Definition at line 288 of file draw_pbvh.cc.
References GPU_COMP_I16, GPU_FETCH_INT_TO_FLOAT_UNIT, and GPU_vertformat_attr_add().
Referenced by format_for_request().
|
static |
Definition at line 362 of file draw_pbvh.cc.
References blender::bke::attribute_math::convert_to_static_type(), blender::bke::Corner, blender::draw::pbvh::GenericRequest::domain, ELEM, blender::bke::Face, blender::bke::Point, and blender::draw::pbvh::GenericRequest::type.
|
static |
Definition at line 279 of file draw_pbvh.cc.
References GPU_COMP_F32, GPU_FETCH_FLOAT, and GPU_vertformat_attr_add().
Referenced by format_for_request().