Blender
V3.3
|
Namespaces | |
color_management | |
detail | |
image_engine | |
Typedefs | |
Mesh Elements Extract Struct | |
using | TaskId = int |
using | TaskLen = int |
using blender::draw::TaskId = typedef int |
Definition at line 45 of file draw_cache_extract_mesh.cc.
using blender::draw::TaskLen = typedef int |
Definition at line 46 of file draw_cache_extract_mesh.cc.
BLI_INLINE float blender::draw::area_ratio_get | ( | float | area, |
float | uvarea | ||
) |
Definition at line 37 of file extract_mesh_vbo_edituv_stretch_area.cc.
References blender::compositor::area().
Referenced by compute_area_ratio().
BLI_INLINE float blender::draw::area_ratio_to_stretch | ( | float | ratio, |
float | tot_ratio | ||
) |
Definition at line 45 of file extract_mesh_vbo_edituv_stretch_area.cc.
Definition at line 40 of file extract_mesh_vbo_mesh_analysis.cc.
Referenced by statvis_calc_overhang().
|
static |
Definition at line 267 of file extract_mesh_vbo_mesh_analysis.cc.
References MVert::co, data, ELEM, isect_tri_tri_v3(), len_squared_v3v3(), Mesh::mloop, Mesh::mvert, MLoopTri::poly, MLoopTri::tri, UNLIKELY, UNPACK3, and MLoop::v.
Referenced by statvis_calc_intersect().
|
static |
Definition at line 51 of file extract_mesh_vbo_edituv_stretch_area.cc.
References blender::compositor::area(), area_ratio_get(), BKE_mesh_calc_poly_area(), BKE_mesh_calc_poly_uv_area(), BLI_assert, MeshRenderData::bm, BM_face_calc_area(), BM_face_calc_area_uv(), BM_FACES_OF_MESH, BM_ITER_MESH_INDEX, CD_MLOOPUV, CustomData_get_layer(), CustomData_get_offset(), ELEM, MeshRenderData::extract_type, BMesh::ldata, Mesh::ldata, MPoly::loopstart, MeshRenderData::me, MeshRenderData::mloop, MeshRenderData::mpoly, MR_EXTRACT_BMESH, MR_EXTRACT_MAPPED, MR_EXTRACT_MESH, MeshRenderData::mvert, and MeshRenderData::poly_len.
Referenced by extract_edituv_stretch_area_finish(), and extract_edituv_stretch_area_init_subdiv().
|
static |
Definition at line 35 of file extract_mesh_vbo_edituv_stretch_angle.cc.
References copy_v2_v2(), copy_v3_v3(), normalize_v2(), normalize_v3(), sub_v2_v2v2(), and sub_v3_v3v3().
Referenced by extract_edituv_stretch_angle_iter_poly_bm(), and extract_edituv_stretch_angle_iter_poly_mesh().
|
constexpr |
Definition at line 424 of file extract_mesh_vbo_attributes.cc.
References MeshBufferList::attr, MeshExtract::data_size, MeshExtract::data_type, MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, and MeshExtract::use_threading.
|
constexpr |
Definition at line 284 of file extract_mesh_vbo_edge_fac.cc.
References MeshExtract::data_size, MeshExtract::data_type, MeshBufferList::edge_fac, extract_edge_fac_finish(), extract_edge_fac_init(), extract_edge_fac_init_subdiv(), extract_edge_fac_iter_ledge_bm(), extract_edge_fac_iter_ledge_mesh(), extract_edge_fac_iter_poly_bm(), extract_edge_fac_iter_poly_mesh(), extract_edge_fac_loose_geom_subdiv(), MeshExtract::finish, MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_ledge_bm, MeshExtract::iter_ledge_mesh, MeshExtract::iter_loose_geom_subdiv, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_POLY_NOR, and MeshExtract::use_threading.
|
constexpr |
Definition at line 332 of file extract_mesh_vbo_select_idx.cc.
References MeshExtract::data_size, MeshExtract::data_type, MeshBufferList::edge_idx, extract_edge_idx_init_subdiv(), extract_edge_idx_iter_ledge_bm(), extract_edge_idx_iter_ledge_mesh(), extract_edge_idx_iter_poly_bm(), extract_edge_idx_iter_poly_mesh(), extract_edge_idx_loose_geom_subdiv(), extract_select_idx_init(), MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_ledge_bm, MeshExtract::iter_ledge_mesh, MeshExtract::iter_loose_geom_subdiv, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, and MeshExtract::use_threading.
|
constexpr |
Definition at line 345 of file extract_mesh_vbo_edit_data.cc.
References MeshExtract::data_size, MeshExtract::data_type, MeshBufferList::edit_data, extract_edit_data_init(), extract_edit_data_init_subdiv(), extract_edit_data_iter_ledge_bm(), extract_edit_data_iter_ledge_mesh(), extract_edit_data_iter_lvert_bm(), extract_edit_data_iter_lvert_mesh(), extract_edit_data_iter_poly_bm(), extract_edit_data_iter_poly_mesh(), extract_edit_data_iter_subdiv_bm(), extract_edit_data_iter_subdiv_mesh(), extract_edit_data_loose_geom_subdiv(), MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_ledge_bm, MeshExtract::iter_ledge_mesh, MeshExtract::iter_loose_geom_subdiv, MeshExtract::iter_lvert_bm, MeshExtract::iter_lvert_mesh, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::iter_subdiv_bm, MeshExtract::iter_subdiv_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, and MeshExtract::use_threading.
|
constexpr |
Definition at line 182 of file extract_mesh_vbo_edituv_data.cc.
References MeshExtract::data_size, MeshExtract::data_type, MeshBufferList::edituv_data, extract_edituv_data_init(), extract_edituv_data_init_subdiv(), extract_edituv_data_iter_poly_bm(), extract_edituv_data_iter_poly_mesh(), extract_edituv_data_iter_subdiv_bm(), extract_edituv_data_iter_subdiv_mesh(), MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::iter_subdiv_bm, MeshExtract::iter_subdiv_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, and MeshExtract::use_threading.
|
constexpr |
Definition at line 277 of file extract_mesh_vbo_edituv_stretch_angle.cc.
References MeshExtract::data_size, MeshExtract::data_type, MeshBufferList::edituv_stretch_angle, extract_edituv_stretch_angle_init(), extract_edituv_stretch_angle_init_subdiv(), extract_edituv_stretch_angle_iter_poly_bm(), extract_edituv_stretch_angle_iter_poly_mesh(), MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, and MeshExtract::use_threading.
|
constexpr |
Definition at line 587 of file extract_mesh_ibo_edituv.cc.
References MeshExtract::data_size, MeshExtract::data_type, MeshBufferList::edituv_fdots, extract_edituv_fdots_finish(), extract_edituv_fdots_init(), extract_edituv_fdots_iter_poly_bm(), extract_edituv_fdots_iter_poly_mesh(), MeshExtract::finish, MeshExtract::init, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, and MeshExtract::use_threading.
|
constexpr |
Definition at line 332 of file extract_mesh_ibo_edituv.cc.
References MeshExtract::data_size, MeshExtract::data_type, MeshBufferList::edituv_lines, extract_edituv_lines_finish(), extract_edituv_lines_finish_subdiv(), extract_edituv_lines_init(), extract_edituv_lines_init_subdiv(), extract_edituv_lines_iter_poly_bm(), extract_edituv_lines_iter_poly_mesh(), extract_edituv_lines_iter_subdiv_bm(), extract_edituv_lines_iter_subdiv_mesh(), MeshExtract::finish, MeshExtract::finish_subdiv, MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::iter_subdiv_bm, MeshExtract::iter_subdiv_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, and MeshExtract::use_threading.
|
constexpr |
Definition at line 489 of file extract_mesh_ibo_edituv.cc.
References MeshExtract::data_size, MeshExtract::data_type, MeshBufferList::edituv_points, extract_edituv_points_finish(), extract_edituv_points_finish_subdiv(), extract_edituv_points_init(), extract_edituv_points_init_subdiv(), extract_edituv_points_iter_poly_bm(), extract_edituv_points_iter_poly_mesh(), extract_edituv_points_iter_subdiv_bm(), extract_edituv_points_iter_subdiv_mesh(), MeshExtract::finish, MeshExtract::finish_subdiv, MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::iter_subdiv_bm, MeshExtract::iter_subdiv_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, and MeshExtract::use_threading.
|
constexpr |
Definition at line 159 of file extract_mesh_vbo_edituv_stretch_area.cc.
References MeshExtract::data_size, MeshExtract::data_type, MeshBufferList::edituv_stretch_area, extract_edituv_stretch_area_finish(), extract_edituv_stretch_area_init(), extract_edituv_stretch_area_init_subdiv(), MeshExtract::finish, MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, and MeshExtract::use_threading.
|
constexpr |
Definition at line 145 of file extract_mesh_ibo_edituv.cc.
References MeshExtract::data_size, MeshExtract::data_type, MeshBufferList::edituv_tris, extract_edituv_tris_finish(), extract_edituv_tris_finish_subdiv(), extract_edituv_tris_init(), extract_edituv_tris_init_subdiv(), extract_edituv_tris_iter_looptri_bm(), extract_edituv_tris_iter_looptri_mesh(), extract_edituv_tris_iter_subdiv_bm(), extract_edituv_tris_iter_subdiv_mesh(), MeshExtract::finish, MeshExtract::finish_subdiv, MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_looptri_bm, MeshExtract::iter_looptri_mesh, MeshExtract::iter_subdiv_bm, MeshExtract::iter_subdiv_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, and MeshExtract::use_threading.
|
constexpr |
Definition at line 397 of file extract_mesh_vbo_select_idx.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_fdot_idx_init(), extract_fdot_idx_iter_poly_bm(), extract_fdot_idx_iter_poly_mesh(), MeshBufferList::fdot_idx, MeshExtract::init, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, and MeshExtract::use_threading.
|
constexpr |
Definition at line 80 of file extract_mesh_ibo_fdots.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_fdots_finish(), extract_fdots_init(), extract_fdots_iter_poly_bm(), extract_fdots_iter_poly_mesh(), MeshBufferList::fdots, MeshExtract::finish, MeshExtract::init, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, and MeshExtract::use_threading.
|
constexpr |
Definition at line 67 of file extract_mesh_vbo_fdots_edituv_data.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_fdots_edituv_data_init(), extract_fdots_edituv_data_iter_poly_bm(), extract_fdots_edituv_data_iter_poly_mesh(), MeshBufferList::fdots_edituv_data, MeshExtract::init, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, and MeshExtract::use_threading.
|
constexpr |
Definition at line 85 of file extract_mesh_vbo_fdots_nor.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_fdots_nor_finish(), extract_fdots_nor_init(), MeshBufferList::fdots_nor, MeshExtract::finish, MeshExtract::init, MeshExtract::mesh_buffer_offset, MR_DATA_LOOP_NOR, and MeshExtract::use_threading.
|
constexpr |
Definition at line 167 of file extract_mesh_vbo_fdots_nor.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_fdots_nor_hq_finish(), extract_fdots_nor_hq_init(), MeshBufferList::fdots_nor, MeshExtract::finish, MeshExtract::init, MeshExtract::mesh_buffer_offset, MR_DATA_LOOP_NOR, and MeshExtract::use_threading.
|
constexpr |
Definition at line 124 of file extract_mesh_vbo_fdots_pos.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_fdots_init_subdiv(), extract_fdots_pos_init(), extract_fdots_pos_iter_poly_bm(), extract_fdots_pos_iter_poly_mesh(), MeshBufferList::fdots_pos, float(), MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, and MeshExtract::use_threading.
|
constexpr |
Definition at line 95 of file extract_mesh_vbo_fdots_uv.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_fdots_uv_init(), extract_fdots_uv_iter_poly_bm(), extract_fdots_uv_iter_poly_mesh(), MeshBufferList::fdots_uv, MeshExtract::init, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, and MeshExtract::use_threading.
|
constexpr |
Definition at line 233 of file extract_mesh_ibo_lines.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_lines_finish(), extract_lines_init(), extract_lines_init_subdiv(), extract_lines_iter_ledge_bm(), extract_lines_iter_ledge_mesh(), extract_lines_iter_poly_bm(), extract_lines_iter_poly_mesh(), extract_lines_loose_geom_subdiv(), extract_lines_task_reduce(), MeshExtract::finish, MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_ledge_bm, MeshExtract::iter_ledge_mesh, MeshExtract::iter_loose_geom_subdiv, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshBufferList::lines, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, MeshExtract::task_reduce, and MeshExtract::use_threading.
|
constexpr |
Definition at line 234 of file extract_mesh_ibo_lines_adjacency.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_lines_adjacency_finish(), extract_lines_adjacency_finish_subdiv(), extract_lines_adjacency_init(), extract_lines_adjacency_init_subdiv(), extract_lines_adjacency_iter_looptri_bm(), extract_lines_adjacency_iter_looptri_mesh(), extract_lines_adjacency_iter_subdiv_bm(), extract_lines_adjacency_iter_subdiv_mesh(), MeshExtract::finish, MeshExtract::finish_subdiv, MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_looptri_bm, MeshExtract::iter_looptri_mesh, MeshExtract::iter_subdiv_bm, MeshExtract::iter_subdiv_mesh, MeshBufferList::lines_adjacency, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, and MeshExtract::use_threading.
|
constexpr |
Definition at line 341 of file extract_mesh_ibo_lines.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_lines_loose_only_init(), extract_lines_loose_only_init_subdiv(), MeshExtract::init, MeshExtract::init_subdiv, MeshBufferList::lines_loose, MeshExtract::mesh_buffer_offset, MR_DATA_LOOSE_GEOM, and MeshExtract::use_threading.
|
constexpr |
Definition at line 165 of file extract_mesh_ibo_lines_paint_mask.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_lines_paint_mask_finish(), extract_lines_paint_mask_finish_subdiv(), extract_lines_paint_mask_init(), extract_lines_paint_mask_init_subdiv(), extract_lines_paint_mask_iter_poly_mesh(), extract_lines_paint_mask_iter_subdiv_mesh(), MeshExtract::finish, MeshExtract::finish_subdiv, MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_poly_mesh, MeshExtract::iter_subdiv_mesh, MeshBufferList::lines_paint_mask, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, and MeshExtract::use_threading.
|
constexpr |
Definition at line 294 of file extract_mesh_ibo_lines.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_lines_init(), extract_lines_init_subdiv(), extract_lines_iter_ledge_bm(), extract_lines_iter_ledge_mesh(), extract_lines_iter_poly_bm(), extract_lines_iter_poly_mesh(), extract_lines_loose_geom_subdiv(), extract_lines_task_reduce(), extract_lines_with_lines_loose_finish(), extract_lines_with_lines_loose_finish_subdiv(), MeshExtract::finish, MeshExtract::finish_subdiv, MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_ledge_bm, MeshExtract::iter_ledge_mesh, MeshExtract::iter_loose_geom_subdiv, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshBufferList::lines, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, MeshExtract::task_reduce, and MeshExtract::use_threading.
|
constexpr |
Definition at line 119 of file extract_mesh_vbo_lnor.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_lnor_init(), extract_lnor_init_subdiv(), extract_lnor_iter_poly_bm(), extract_lnor_iter_poly_mesh(), MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshBufferList::lnor, MeshExtract::mesh_buffer_offset, MR_DATA_LOOP_NOR, and MeshExtract::use_threading.
|
constexpr |
Definition at line 219 of file extract_mesh_vbo_lnor.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_lnor_hq_init(), extract_lnor_hq_iter_poly_bm(), extract_lnor_hq_iter_poly_mesh(), extract_lnor_init_subdiv(), MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshBufferList::lnor, MeshExtract::mesh_buffer_offset, MR_DATA_LOOP_NOR, and MeshExtract::use_threading.
|
constexpr |
Definition at line 618 of file extract_mesh_vbo_mesh_analysis.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_analysis_iter_finish_mesh(), extract_mesh_analysis_init(), MeshExtract::finish, MeshExtract::init, MeshBufferList::mesh_analysis, MeshExtract::mesh_buffer_offset, MR_DATA_LOOPTRI, MR_DATA_POLY_NOR, and MeshExtract::use_threading.
|
constexpr |
Definition at line 80 of file extract_mesh_vbo_orco.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_orco_init(), extract_orco_iter_poly_bm(), extract_orco_iter_poly_mesh(), MeshExtract::init, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, MeshBufferList::orco, and MeshExtract::use_threading.
|
constexpr |
Definition at line 297 of file extract_mesh_ibo_points.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_points_finish(), extract_points_finish_subdiv(), extract_points_init(), extract_points_init_subdiv(), extract_points_iter_ledge_bm(), extract_points_iter_ledge_mesh(), extract_points_iter_lvert_bm(), extract_points_iter_lvert_mesh(), extract_points_iter_poly_bm(), extract_points_iter_poly_mesh(), extract_points_iter_subdiv_bm(), extract_points_iter_subdiv_mesh(), extract_points_loose_geom_subdiv(), extract_points_task_reduce(), MeshExtract::finish, MeshExtract::finish_subdiv, MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_ledge_bm, MeshExtract::iter_ledge_mesh, MeshExtract::iter_loose_geom_subdiv, MeshExtract::iter_lvert_bm, MeshExtract::iter_lvert_mesh, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::iter_subdiv_bm, MeshExtract::iter_subdiv_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, MeshBufferList::points, MeshExtract::task_reduce, and MeshExtract::use_threading.
|
constexpr |
Definition at line 318 of file extract_mesh_vbo_select_idx.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_poly_idx_init_subdiv(), extract_poly_idx_iter_poly_bm(), extract_poly_idx_iter_poly_mesh(), extract_select_idx_init(), MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, MeshBufferList::poly_idx, and MeshExtract::use_threading.
|
constexpr |
Definition at line 338 of file extract_mesh_vbo_pos_nor.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_pos_nor_finish(), extract_pos_nor_init(), extract_pos_nor_init_subdiv(), extract_pos_nor_iter_ledge_bm(), extract_pos_nor_iter_ledge_mesh(), extract_pos_nor_iter_lvert_bm(), extract_pos_nor_iter_lvert_mesh(), extract_pos_nor_iter_poly_bm(), extract_pos_nor_iter_poly_mesh(), extract_pos_nor_loose_geom_subdiv(), MeshExtract::finish, MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_ledge_bm, MeshExtract::iter_ledge_mesh, MeshExtract::iter_loose_geom_subdiv, MeshExtract::iter_lvert_bm, MeshExtract::iter_lvert_mesh, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, MeshBufferList::pos_nor, and MeshExtract::use_threading.
|
constexpr |
Definition at line 532 of file extract_mesh_vbo_pos_nor.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_pos_nor_hq_finish(), extract_pos_nor_hq_init(), extract_pos_nor_hq_iter_ledge_bm(), extract_pos_nor_hq_iter_ledge_mesh(), extract_pos_nor_hq_iter_lvert_bm(), extract_pos_nor_hq_iter_lvert_mesh(), extract_pos_nor_hq_iter_poly_bm(), extract_pos_nor_hq_iter_poly_mesh(), extract_pos_nor_init_subdiv(), MeshExtract::finish, MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_ledge_bm, MeshExtract::iter_ledge_mesh, MeshExtract::iter_lvert_bm, MeshExtract::iter_lvert_mesh, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, MeshBufferList::pos_nor, and MeshExtract::use_threading.
|
constexpr |
Definition at line 202 of file extract_mesh_vbo_sculpt_data.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_sculpt_data_init(), extract_sculpt_data_init_subdiv(), MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, MeshBufferList::sculpt_data, and MeshExtract::use_threading.
|
constexpr |
Definition at line 60 of file extract_mesh_vbo_skin_roots.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_skin_roots_init(), MeshExtract::init, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, MeshBufferList::skin_roots, and MeshExtract::use_threading.
|
constexpr |
Definition at line 328 of file extract_mesh_vbo_tan.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_tan_init(), extract_tan_init_subdiv(), MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::mesh_buffer_offset, MR_DATA_LOOPTRI, MR_DATA_POLY_NOR, MR_DATA_TAN_LOOP_NOR, MeshBufferList::tan, and MeshExtract::use_threading.
|
constexpr |
Definition at line 355 of file extract_mesh_vbo_tan.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_tan_hq_init(), MeshExtract::init, MeshExtract::mesh_buffer_offset, MR_DATA_LOOPTRI, MR_DATA_POLY_NOR, MR_DATA_TAN_LOOP_NOR, MeshBufferList::tan, and MeshExtract::use_threading.
|
constexpr |
Definition at line 138 of file extract_mesh_ibo_tris.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_tris_finish(), extract_tris_init(), extract_tris_init_subdiv(), extract_tris_iter_poly_bm(), extract_tris_iter_poly_mesh(), extract_tris_mat_task_reduce(), MeshExtract::finish, MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_LOOPTRI, MR_DATA_POLYS_SORTED, MeshExtract::task_reduce, MeshBufferList::tris, and MeshExtract::use_threading.
|
constexpr |
Definition at line 226 of file extract_mesh_ibo_tris.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_tris_init_subdiv(), extract_tris_mat_task_reduce(), extract_tris_single_mat_finish(), extract_tris_single_mat_init(), extract_tris_single_mat_iter_looptri_bm(), extract_tris_single_mat_iter_looptri_mesh(), MeshExtract::finish, MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_looptri_bm, MeshExtract::iter_looptri_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, MeshExtract::task_reduce, MeshBufferList::tris, and MeshExtract::use_threading.
|
constexpr |
Definition at line 155 of file extract_mesh_vbo_uv.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_uv_init(), extract_uv_init_subdiv(), MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, MeshExtract::use_threading, and MeshBufferList::uv.
|
constexpr |
Definition at line 349 of file extract_mesh_vbo_select_idx.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_select_idx_init(), extract_vert_idx_init_subdiv(), extract_vert_idx_iter_ledge_bm(), extract_vert_idx_iter_ledge_mesh(), extract_vert_idx_iter_lvert_bm(), extract_vert_idx_iter_lvert_mesh(), extract_vert_idx_iter_poly_bm(), extract_vert_idx_iter_poly_mesh(), extract_vert_idx_loose_geom_subdiv(), MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_ledge_bm, MeshExtract::iter_ledge_mesh, MeshExtract::iter_loose_geom_subdiv, MeshExtract::iter_lvert_bm, MeshExtract::iter_lvert_mesh, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, MeshExtract::use_threading, and MeshBufferList::vert_idx.
|
constexpr |
Definition at line 193 of file extract_mesh_vbo_weights.cc.
References MeshExtract::data_size, MeshExtract::data_type, extract_weights_init(), extract_weights_init_subdiv(), extract_weights_iter_poly_bm(), extract_weights_iter_poly_mesh(), MeshExtract::init, MeshExtract::init_subdiv, MeshExtract::iter_poly_bm, MeshExtract::iter_poly_mesh, MeshExtract::mesh_buffer_offset, MR_DATA_NONE, MeshExtract::use_threading, and MeshBufferList::weights.
BLI_INLINE float blender::draw::distort_remap | ( | float | fac, |
float | min, | ||
float | UNUSEDmax, | ||
float | minmax_irange | ||
) |
Definition at line 369 of file extract_mesh_vbo_mesh_analysis.cc.
Referenced by statvis_calc_distort().
BLI_INLINE void blender::draw::edituv_edge_add | ( | MeshExtract_EditUvElem_Data * | data, |
bool | hidden, | ||
bool | selected, | ||
int | v1, | ||
int | v2 | ||
) |
Definition at line 179 of file extract_mesh_ibo_edituv.cc.
References data, GPU_indexbuf_add_line_verts(), v1, and v2.
Referenced by extract_edituv_lines_iter_poly_bm(), extract_edituv_lines_iter_poly_mesh(), extract_edituv_lines_iter_subdiv_bm(), and extract_edituv_lines_iter_subdiv_mesh().
BLI_INLINE void blender::draw::edituv_facedot_add | ( | MeshExtract_EditUvElem_Data * | data, |
bool | hidden, | ||
bool | selected, | ||
int | face_index | ||
) |
Definition at line 523 of file extract_mesh_ibo_edituv.cc.
References data, GPU_indexbuf_set_point_restart(), and GPU_indexbuf_set_point_vert().
Referenced by extract_edituv_fdots_iter_poly_bm(), and extract_edituv_fdots_iter_poly_mesh().
|
static |
Definition at line 58 of file extract_mesh_vbo_edituv_stretch_angle.cc.
References blender::draw::UVStretchAngle::angle, angle_normalized_v2v2(), angle_normalized_v3v3(), fabsf, float(), M_1_PI, M_PI, pow2f(), blender::draw::UVStretchAngle::uv_angles, and v2_to_short_angle().
Referenced by extract_edituv_stretch_angle_iter_poly_bm(), and extract_edituv_stretch_angle_iter_poly_mesh().
BLI_INLINE void blender::draw::edituv_point_add | ( | MeshExtract_EditUvElem_Data * | data, |
bool | hidden, | ||
bool | selected, | ||
int | v1 | ||
) |
Definition at line 366 of file extract_mesh_ibo_edituv.cc.
References data, GPU_indexbuf_add_point_vert(), and v1.
Referenced by extract_edituv_points_iter_poly_bm(), extract_edituv_points_iter_poly_mesh(), extract_edituv_points_iter_subdiv_bm(), and extract_edituv_points_iter_subdiv_mesh().
BLI_INLINE void blender::draw::edituv_tri_add | ( | MeshExtract_EditUvElem_Data * | data, |
bool | hidden, | ||
bool | selected, | ||
int | v1, | ||
int | v2, | ||
int | v3 | ||
) |
Definition at line 34 of file extract_mesh_ibo_edituv.cc.
References data, GPU_indexbuf_add_tri_verts(), v1, and v2.
Referenced by extract_edituv_tris_iter_looptri_bm(), extract_edituv_tris_iter_looptri_mesh(), extract_edituv_tris_iter_subdiv_bm(), and extract_edituv_tris_iter_subdiv_mesh().
|
static |
Definition at line 28 of file extract_mesh_vbo_weights.cc.
References DRW_MeshWeightState::alert_mode, BKE_defvert_find_weight(), BKE_defvert_is_weight_zero(), BKE_defvert_lock_relative_weight(), BKE_defvert_multipaint_collective_weight(), CLAMP, DRW_MeshWeightState::defgroup_active, DRW_MeshWeightState::defgroup_len, DRW_MeshWeightState::defgroup_locked, DRW_MeshWeightState::defgroup_sel, DRW_MeshWeightState::defgroup_sel_count, DRW_MeshWeightState::defgroup_unlocked, DRW_MESH_WEIGHT_STATE_AUTO_NORMALIZE, DRW_MESH_WEIGHT_STATE_LOCK_RELATIVE, DRW_MESH_WEIGHT_STATE_MULTIPAINT, DRW_MeshWeightState::flags, input, OB_DRAW_GROUPUSER_ACTIVE, OB_DRAW_GROUPUSER_ALL, and OB_DRAW_GROUPUSER_NONE.
Referenced by extract_weights_iter_poly_bm(), and extract_weights_iter_poly_mesh().
|
static |
Definition at line 589 of file extract_mesh_vbo_mesh_analysis.cc.
References BLI_assert, MeshRenderData::edit_bmesh, GPU_vertbuf_get_data(), SCE_STATVIS_DISTORT, SCE_STATVIS_INTERSECT, SCE_STATVIS_OVERHANG, SCE_STATVIS_SHARP, SCE_STATVIS_THICKNESS, ToolSettings::statvis, statvis_calc_distort(), statvis_calc_intersect(), statvis_calc_overhang(), statvis_calc_sharp(), statvis_calc_thickness(), MeshRenderData::toolsettings, and MeshStatVis::type.
Referenced by create_extractor_mesh_analysis().
|
static |
Definition at line 267 of file extract_mesh_vbo_attributes.cc.
References MeshRenderData::extract_type, GPU_vertbuf_get_data(), and MR_EXTRACT_BMESH.
|
static |
Definition at line 281 of file extract_mesh_vbo_attributes.cc.
References MeshBatchCache::attr_used, BLI_assert_unreachable, CD_PROP_BOOL, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT32, CD_PROP_INT8, DRW_AttributeRequest::cd_type, init_vbo_for_attribute(), MeshRenderData::loop_len, and DRW_Attributes::requests.
|
static |
Definition at line 325 of file extract_mesh_vbo_attributes.cc.
References MeshBatchCache::attr_used, BLI_assert_unreachable, buffer, CD_PROP_BOOL, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT32, CD_PROP_INT8, DRW_AttributeRequest::cd_type, draw_subdiv_interp_custom_data(), ELEM, GPU_COMP_F32, gpu_component_size_for_attribute_type(), GPU_FETCH_FLOAT, GPU_USAGE_STATIC, GPU_vertbuf_calloc(), GPU_vertbuf_data_alloc(), GPU_vertbuf_discard(), GPU_vertbuf_init_with_format_ex(), GPU_vertbuf_tag_dirty(), GPU_vertformat_attr_add(), init_vbo_for_attribute(), DRWSubdivCache::mesh, DRWSubdivCache::num_subdiv_loops, DRW_Attributes::requests, and Mesh::totloop.
|
static |
Definition at line 169 of file extract_mesh_vbo_edge_fac.cc.
References data, GPU_COMP_F32, GPU_crappy_amd_driver(), GPU_FETCH_FLOAT, GPU_vertbuf_clear(), GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertbuf_init_with_format, GPU_vertbuf_steal_data(), GPU_vertformat_attr_add(), MeshRenderData::loop_len, MeshRenderData::loop_loose_len, MEM_freeN, and MEM_SAFE_FREE.
Referenced by create_extractor_edge_fac().
|
static |
Definition at line 45 of file extract_mesh_vbo_edge_fac.cc.
References data, MeshRenderData::edge_len, MeshRenderData::extract_type, MEdge::flag, GPU_COMP_U8, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertbuf_init_with_format, GPU_vertformat_attr_add(), MeshRenderData::loop_len, MeshRenderData::loop_loose_len, ME_EDGERENDER, MeshRenderData::medge, MEM_callocN, and MR_EXTRACT_MESH.
Referenced by create_extractor_edge_fac().
|
static |
Definition at line 219 of file extract_mesh_vbo_edge_fac.cc.
References MeshBufferCache::buff, buffer, draw_subdiv_build_edge_fac_buffer(), draw_subdiv_init_origindex_buffer(), MeshBufferList::edge_idx, DRWSubdivCache::edges_orig_index, MeshBatchCache::final, get_subdiv_edge_fac_format(), GPU_vertbuf_calloc(), GPU_vertbuf_discard(), GPU_vertbuf_get_data(), GPU_vertbuf_init_build_on_device(), DRWSubdivLooseGeom::loop_len, DRWSubdivCache::loose_geom, DRWSubdivCache::num_subdiv_loops, MeshBufferList::pos_nor, and MeshBufferList::vbo.
Referenced by create_extractor_edge_fac().
|
static |
Definition at line 148 of file extract_mesh_vbo_edge_fac.cc.
References data, and MeshRenderData::loop_len.
Referenced by create_extractor_edge_fac().
|
static |
Definition at line 158 of file extract_mesh_vbo_edge_fac.cc.
References data, and MeshRenderData::loop_len.
Referenced by create_extractor_edge_fac().
|
static |
Definition at line 83 of file extract_mesh_vbo_edge_fac.cc.
References BM_edge_is_manifold(), BM_elem_index_get, BM_FACE_FIRST_LOOP, bm_face_no_get(), bm_vert_co_get(), bm_vert_no_get(), data, BMLoop::e, loop_edge_factor_get(), BMLoop::next, and BMLoop::v.
Referenced by create_extractor_edge_fac().
|
static |
Definition at line 107 of file extract_mesh_vbo_edge_fac.cc.
References BMVert::co, data, MLoop::e, MEdge::flag, loop_edge_factor_get(), MPoly::loopstart, ME_EDGERENDER, MeshRenderData::medge, MeshRenderData::mloop, MeshRenderData::mvert, MeshRenderData::poly_normals, MPoly::totloop, MLoop::v, v1, v2, and MeshRenderData::vert_normals.
Referenced by create_extractor_edge_fac().
|
static |
Definition at line 254 of file extract_mesh_vbo_edge_fac.cc.
References buffer, DRWSubdivLooseGeom::edge_len, GPU_crappy_amd_driver(), GPU_vertbuf_update_sub(), GPU_vertbuf_use(), DRWSubdivCache::loose_geom, DRWSubdivCache::num_subdiv_loops, and offset.
Referenced by create_extractor_edge_fac().
|
static |
Definition at line 256 of file extract_mesh_vbo_select_idx.cc.
References draw_subdiv_init_origindex_buffer(), DRWSubdivLooseGeom::edge_len, DRWSubdivCache::edges_orig_index, GPU_vertbuf_get_data(), DRWSubdivCache::loose_geom, and DRWSubdivCache::num_subdiv_loops.
Referenced by create_extractor_edge_idx().
|
static |
Definition at line 84 of file extract_mesh_vbo_select_idx.cc.
References BM_elem_index_get, data, and MeshRenderData::loop_len.
Referenced by create_extractor_edge_idx().
|
static |
Definition at line 149 of file extract_mesh_vbo_select_idx.cc.
References data, MeshRenderData::e_origindex, MeshRenderData::ledges, and MeshRenderData::loop_len.
Referenced by create_extractor_edge_idx().
|
static |
Definition at line 58 of file extract_mesh_vbo_select_idx.cc.
References BM_elem_index_get, BM_FACE_FIRST_LOOP, data, BMLoop::e, and BMLoop::next.
Referenced by create_extractor_edge_idx().
|
static |
Definition at line 123 of file extract_mesh_vbo_select_idx.cc.
References data, MLoop::e, MeshRenderData::e_origindex, MPoly::loopstart, MeshRenderData::mloop, and MPoly::totloop.
Referenced by create_extractor_edge_idx().
|
static |
Definition at line 271 of file extract_mesh_vbo_select_idx.cc.
References buffer, draw_subdiv_cache_get_loose_edges(), MeshRenderData::e_origindex, DRWSubdivLooseGeom::edge_len, GPU_vertbuf_get_data(), DRWSubdivCache::loose_geom, DRWSubdivCache::num_subdiv_loops, and offset.
Referenced by create_extractor_edge_idx().
|
static |
Definition at line 114 of file extract_mesh_vbo_edit_data.cc.
References get_edit_data_format(), GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertbuf_init_with_format, MeshRenderData::loop_len, and MeshRenderData::loop_loose_len.
Referenced by create_extractor_edit_data().
|
static |
Definition at line 242 of file extract_mesh_vbo_edit_data.cc.
References data, get_edit_data_format(), GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertbuf_init_with_format, DRWSubdivLooseGeom::loop_len, DRWSubdivCache::loose_geom, and DRWSubdivCache::num_subdiv_loops.
Referenced by create_extractor_edit_data().
|
static |
Definition at line 175 of file extract_mesh_vbo_edit_data.cc.
References data, MeshRenderData::loop_len, mesh_render_data_edge_flag(), mesh_render_data_vert_flag(), BMEdge::v1, and BMEdge::v2.
Referenced by create_extractor_edit_data().
|
static |
Definition at line 189 of file extract_mesh_vbo_edit_data.cc.
References bm_original_edge_get(), bm_original_vert_get(), data, MeshRenderData::ledges, MeshRenderData::loop_len, mesh_render_data_edge_flag(), mesh_render_data_vert_flag(), MEdge::v1, and MEdge::v2.
Referenced by create_extractor_edit_data().
|
static |
Definition at line 213 of file extract_mesh_vbo_edit_data.cc.
References data, MeshRenderData::edge_loose_len, MeshRenderData::loop_len, mesh_render_data_vert_flag(), and offset.
Referenced by create_extractor_edit_data().
|
static |
Definition at line 225 of file extract_mesh_vbo_edit_data.cc.
References bm_original_vert_get(), data, MeshRenderData::edge_loose_len, MeshRenderData::loop_len, MeshRenderData::lverts, mesh_render_data_vert_flag(), and offset.
Referenced by create_extractor_edit_data().
|
static |
Definition at line 127 of file extract_mesh_vbo_edit_data.cc.
References BM_elem_index_get, BM_FACE_FIRST_LOOP, data, BMLoop::e, mesh_render_data_edge_flag(), mesh_render_data_face_flag(), mesh_render_data_vert_flag(), BMLoop::next, and BMLoop::v.
Referenced by create_extractor_edit_data().
|
static |
Definition at line 147 of file extract_mesh_vbo_edit_data.cc.
References bm_original_edge_get(), bm_original_face_get(), bm_original_vert_get(), data, MLoop::e, MPoly::loopstart, mesh_render_data_edge_flag(), mesh_render_data_face_flag(), mesh_render_data_vert_flag(), MeshRenderData::mloop, MPoly::totloop, and MLoop::v.
Referenced by create_extractor_edit_data().
|
static |
Definition at line 256 of file extract_mesh_vbo_edit_data.cc.
References MeshRenderData::bm, BM_edge_at_index(), bm_original_vert_get(), BM_vert_at_index(), DRWSubdivCache::edges_orig_index, GPU_vertbuf_get_data(), mesh_render_data_edge_flag(), mesh_render_data_face_flag(), mesh_render_data_vert_flag(), MeshRenderData::v_origindex, and DRWSubdivCache::verts_orig_index.
Referenced by create_extractor_edit_data(), and extract_edit_data_iter_subdiv_mesh().
|
static |
Definition at line 297 of file extract_mesh_vbo_edit_data.cc.
References bm_original_face_get(), extract_edit_data_iter_subdiv_bm(), and MeshRenderData::mpoly.
Referenced by create_extractor_edit_data().
|
static |
Definition at line 308 of file extract_mesh_vbo_edit_data.cc.
References MeshRenderData::bm, BM_edge_at_index(), bm_original_edge_get(), data, draw_subdiv_cache_get_loose_edges(), MeshRenderData::e_origindex, DRWSubdivLooseGeom::edge_len, DRWSubdivCache::loose_geom, mesh_render_data_edge_flag(), mesh_render_data_vert_flag(), DRWSubdivCache::num_subdiv_loops, offset, BMEdge::v1, v1, BMEdge::v2, v2, and DRWSubdivLooseGeom::verts.
Referenced by create_extractor_edit_data().
|
static |
Definition at line 45 of file extract_mesh_vbo_edituv_data.cc.
References data, extract_edituv_data_init_common(), and MeshRenderData::loop_len.
Referenced by create_extractor_edituv_data().
|
static |
Definition at line 25 of file extract_mesh_vbo_edituv_data.cc.
References MeshRenderData::bm, CD_MLOOPUV, CustomData_get_offset(), data, MeshRenderData::extract_type, GPU_COMP_U8, GPU_FETCH_INT, GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertbuf_init_with_format, GPU_vertformat_alias_add(), GPU_vertformat_attr_add(), BMesh::ldata, Mesh::ldata, MeshRenderData::me, and MR_EXTRACT_BMESH.
Referenced by extract_edituv_data_init(), and extract_edituv_data_init_subdiv().
|
static |
Definition at line 115 of file extract_mesh_vbo_edituv_data.cc.
References data, extract_edituv_data_init_common(), and DRWSubdivCache::num_subdiv_loops.
Referenced by create_extractor_edituv_data().
|
static |
Definition at line 55 of file extract_mesh_vbo_edituv_data.cc.
References BM_elem_index_get, BM_FACE_FIRST_LOOP, data, mesh_render_data_face_flag(), mesh_render_data_loop_edge_flag(), mesh_render_data_loop_flag(), and BMLoop::next.
Referenced by create_extractor_edituv_data().
|
static |
Definition at line 73 of file extract_mesh_vbo_edituv_data.cc.
References BM_face_edge_share_loop(), bm_original_edge_get(), bm_original_face_get(), bm_original_vert_get(), data, MLoop::e, l, MPoly::loopstart, mesh_render_data_loop_edge_flag(), mesh_render_data_loop_flag(), MeshRenderData::mloop, MPoly::totloop, and MLoop::v.
Referenced by create_extractor_edituv_data().
|
static |
Definition at line 126 of file extract_mesh_vbo_edituv_data.cc.
References MeshRenderData::bm, BM_edge_at_index(), BM_face_edge_share_loop(), data, DRWSubdivCache::edges_orig_index, GPU_vertbuf_get_data(), l, mesh_render_data_face_flag(), mesh_render_data_loop_edge_flag(), mesh_render_data_loop_flag(), and DRWSubdivCache::verts_orig_index.
Referenced by create_extractor_edituv_data(), and extract_edituv_data_iter_subdiv_mesh().
|
static |
Definition at line 171 of file extract_mesh_vbo_edituv_data.cc.
References bm_original_face_get(), extract_edituv_data_iter_subdiv_bm(), and MeshRenderData::mpoly.
Referenced by create_extractor_edituv_data().
|
static |
Definition at line 577 of file extract_mesh_ibo_edituv.cc.
References data, and GPU_indexbuf_build_in_place().
Referenced by create_extractor_edituv_fdots().
|
static |
Definition at line 513 of file extract_mesh_ibo_edituv.cc.
References data, GPU_indexbuf_init(), GPU_PRIM_POINTS, MeshRenderData::poly_len, MeshRenderData::toolsettings, ToolSettings::uv_flag, and UV_SYNC_SELECTION.
Referenced by create_extractor_edituv_fdots().
|
static |
Definition at line 536 of file extract_mesh_ibo_edituv.cc.
References BM_elem_flag_test_bool, BM_ELEM_HIDDEN, BM_ELEM_SELECT, data, and edituv_facedot_add().
Referenced by create_extractor_edituv_fdots().
|
static |
Definition at line 548 of file extract_mesh_ibo_edituv.cc.
References BLI_BITMAP_TEST, BM_elem_flag_test_bool, BM_ELEM_HIDDEN, BM_ELEM_SELECT, bm_original_face_get(), data, edituv_facedot_add(), MPoly::loopstart, MeshRenderData::me, MeshRenderData::mloop, ORIGINDEX_NONE, MeshRenderData::p_origindex, Mesh::runtime, Mesh_Runtime::subsurf_face_dot_tags, MPoly::totloop, MeshRenderData::use_subsurf_fdots, and MLoop::v.
Referenced by create_extractor_edituv_fdots().
|
static |
Definition at line 237 of file extract_mesh_ibo_edituv.cc.
References data, and GPU_indexbuf_build_in_place().
Referenced by create_extractor_edituv_lines().
|
static |
Definition at line 321 of file extract_mesh_ibo_edituv.cc.
References data, and GPU_indexbuf_build_in_place().
Referenced by create_extractor_edituv_lines().
|
static |
Definition at line 169 of file extract_mesh_ibo_edituv.cc.
References data, GPU_indexbuf_init(), GPU_PRIM_LINES, MeshRenderData::loop_len, MeshRenderData::toolsettings, ToolSettings::uv_flag, and UV_SYNC_SELECTION.
Referenced by create_extractor_edituv_lines().
|
static |
Definition at line 247 of file extract_mesh_ibo_edituv.cc.
References data, GPU_indexbuf_init(), GPU_PRIM_LINES, DRWSubdivCache::num_subdiv_loops, MeshRenderData::toolsettings, ToolSettings::uv_flag, and UV_SYNC_SELECTION.
Referenced by create_extractor_edituv_lines().
|
static |
Definition at line 187 of file extract_mesh_ibo_edituv.cc.
References BM_elem_flag_test_bool, BM_ELEM_HIDDEN, BM_elem_index_get, BM_ELEM_SELECT, BM_FACE_FIRST_LOOP, data, edituv_edge_add(), and BMLoop::next.
Referenced by create_extractor_edituv_lines().
|
static |
Definition at line 206 of file extract_mesh_ibo_edituv.cc.
References MeshRenderData::bm, BM_elem_flag_test_bool, BM_ELEM_HIDDEN, BM_ELEM_SELECT, bm_original_face_get(), data, MLoop::e, MeshRenderData::e_origindex, edituv_edge_add(), MPoly::flag, MPoly::loopstart, ME_FACE_SEL, ME_HIDE, MeshRenderData::mloop, ORIGINDEX_NONE, and MPoly::totloop.
Referenced by create_extractor_edituv_lines().
|
static |
Definition at line 259 of file extract_mesh_ibo_edituv.cc.
References BM_elem_flag_test_bool, BM_ELEM_HIDDEN, BM_ELEM_SELECT, data, MeshRenderData::e_origindex, DRWSubdivCache::edges_orig_index, edituv_edge_add(), GPU_vertbuf_get_data(), and ORIGINDEX_NONE.
Referenced by create_extractor_edituv_lines().
|
static |
Definition at line 286 of file extract_mesh_ibo_edituv.cc.
References MeshRenderData::bm, BM_elem_flag_test_bool, BM_ELEM_HIDDEN, BM_ELEM_SELECT, bm_original_face_get(), data, MeshRenderData::e_origindex, DRWSubdivCache::edges_orig_index, edituv_edge_add(), MPoly::flag, GPU_vertbuf_get_data(), ME_FACE_SEL, ME_HIDE, MeshRenderData::mpoly, and ORIGINDEX_NONE.
Referenced by create_extractor_edituv_lines().
|
static |
Definition at line 413 of file extract_mesh_ibo_edituv.cc.
References data, and GPU_indexbuf_build_in_place().
Referenced by create_extractor_edituv_points().
|
static |
Definition at line 478 of file extract_mesh_ibo_edituv.cc.
References data, and GPU_indexbuf_build_in_place().
Referenced by create_extractor_edituv_points().
|
static |
Definition at line 356 of file extract_mesh_ibo_edituv.cc.
References data, GPU_indexbuf_init(), GPU_PRIM_POINTS, MeshRenderData::loop_len, MeshRenderData::toolsettings, ToolSettings::uv_flag, and UV_SYNC_SELECTION.
Referenced by create_extractor_edituv_points().
|
static |
Definition at line 423 of file extract_mesh_ibo_edituv.cc.
References data, GPU_indexbuf_init(), GPU_PRIM_POINTS, DRWSubdivCache::num_subdiv_loops, MeshRenderData::toolsettings, ToolSettings::uv_flag, and UV_SYNC_SELECTION.
Referenced by create_extractor_edituv_points().
|
static |
Definition at line 376 of file extract_mesh_ibo_edituv.cc.
References BM_elem_flag_test, BM_ELEM_HIDDEN, BM_elem_index_get, BM_ELEM_SELECT, BM_FACE_FIRST_LOOP, data, edituv_point_add(), and BMLoop::next.
Referenced by create_extractor_edituv_points().
|
static |
Definition at line 392 of file extract_mesh_ibo_edituv.cc.
References BM_elem_flag_test_bool, BM_ELEM_HIDDEN, BM_ELEM_SELECT, bm_original_face_get(), data, edituv_point_add(), MPoly::loopstart, MeshRenderData::mloop, ORIGINDEX_NONE, MPoly::totloop, MLoop::v, and MeshRenderData::v_origindex.
Referenced by create_extractor_edituv_points().
|
static |
Definition at line 435 of file extract_mesh_ibo_edituv.cc.
References BM_elem_flag_test, BM_ELEM_HIDDEN, BM_ELEM_SELECT, data, edituv_point_add(), GPU_vertbuf_get_data(), and DRWSubdivCache::verts_orig_index.
Referenced by create_extractor_edituv_points().
|
static |
Definition at line 455 of file extract_mesh_ibo_edituv.cc.
References BM_elem_flag_test_bool, BM_ELEM_HIDDEN, BM_ELEM_SELECT, bm_original_face_get(), data, edituv_point_add(), GPU_vertbuf_get_data(), MeshRenderData::mpoly, ORIGINDEX_NONE, MeshRenderData::v_origindex, and DRWSubdivCache::verts_orig_index.
Referenced by create_extractor_edituv_points().
|
static |
Definition at line 76 of file extract_mesh_vbo_edituv_stretch_angle.cc.
References BLI_assert, MeshRenderData::bm, CD_MLOOPUV, CustomData_get_layer(), CustomData_get_offset(), data, ELEM, MeshRenderData::extract_type, GPU_COMP_I16, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertbuf_init_with_format, GPU_vertformat_attr_add(), BMesh::ldata, Mesh::ldata, MeshRenderData::loop_len, MeshRenderData::me, MR_EXTRACT_BMESH, MR_EXTRACT_MAPPED, and MR_EXTRACT_MESH.
Referenced by create_extractor_edituv_edituv_stretch_angle().
|
static |
Definition at line 213 of file extract_mesh_vbo_edituv_stretch_angle.cc.
References MeshRenderData::bm, MeshBufferCache::buff, buffer, CD_MLOOPUV, MeshBatchCache::cd_used, CustomData_get_active_layer(), draw_subdiv_build_edituv_stretch_angle_buffer(), draw_subdiv_extract_pos_nor(), draw_subdiv_get_pos_nor_format(), DRW_MeshCDMask::edit_uv, MeshRenderData::extract_type, MeshBatchCache::final, get_edituv_stretch_angle_format_subdiv(), GPU_vertbuf_calloc(), GPU_vertbuf_discard(), GPU_vertbuf_init_build_on_device(), if(), BMesh::ldata, Mesh::ldata, DRWSubdivLooseGeom::loop_len, DRWSubdivCache::loose_geom, MAX_MTFACE, MeshRenderData::me, MR_EXTRACT_BMESH, MR_EXTRACT_MESH, DRWSubdivCache::num_subdiv_loops, MeshBufferList::pos_nor, DRW_MeshCDMask::uv, MeshBufferList::uv, and MeshBufferList::vbo.
Referenced by create_extractor_edituv_edituv_stretch_angle().
|
static |
Definition at line 105 of file extract_mesh_vbo_edituv_stretch_angle.cc.
References BM_ELEM_CD_GET_VOID_P, BM_elem_index_get, BM_FACE_FIRST_LOOP, bm_vert_co_get(), compute_normalize_edge_vectors(), copy_v2_v2(), copy_v3_v3(), data, edituv_get_edituv_stretch_angle(), float(), BMLoop::next, BMLoop::prev, MLoopUV::uv, and BMLoop::v.
Referenced by create_extractor_edituv_edituv_stretch_angle().
|
static |
Definition at line 158 of file extract_mesh_vbo_edituv_stretch_angle.cc.
References BMVert::co, MVert::co, compute_normalize_edge_vectors(), copy_v2_v2(), copy_v3_v3(), data, edituv_get_edituv_stretch_angle(), float(), MPoly::loopstart, MeshRenderData::mloop, MeshRenderData::mvert, MPoly::totloop, v, and MLoop::v.
Referenced by create_extractor_edituv_edituv_stretch_angle().
|
static |
Definition at line 90 of file extract_mesh_vbo_edituv_stretch_area.cc.
References BLI_assert, MeshRenderData::bm, BM_FACES_OF_MESH, BM_ITER_MESH_INDEX, compute_area_ratio(), ELEM, MeshRenderData::extract_type, GPU_vertbuf_get_data(), BMFace::len, MEM_freeN, MEM_mallocN, MeshRenderData::mpoly, MR_EXTRACT_BMESH, MR_EXTRACT_MAPPED, MR_EXTRACT_MESH, MeshRenderData::poly_len, MeshBatchCache::tot_area, MeshBatchCache::tot_uv_area, and MPoly::totloop.
Referenced by create_extractor_edituv_stretch_area().
|
static |
Definition at line 22 of file extract_mesh_vbo_edituv_stretch_area.cc.
References GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_vertbuf_data_alloc(), GPU_vertbuf_init_with_format, GPU_vertformat_attr_add(), and MeshRenderData::loop_len.
Referenced by create_extractor_edituv_stretch_area().
|
static |
Definition at line 125 of file extract_mesh_vbo_edituv_stretch_area.cc.
References buffer, compute_area_ratio(), draw_subdiv_build_edituv_stretch_area_buffer(), GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_vertbuf_calloc(), GPU_vertbuf_data_alloc(), GPU_vertbuf_discard(), GPU_vertbuf_get_data(), GPU_vertbuf_init_build_on_device(), GPU_vertbuf_init_with_format, GPU_vertformat_attr_add(), MeshRenderData::loop_len, DRWSubdivCache::num_subdiv_loops, MeshBatchCache::tot_area, and MeshBatchCache::tot_uv_area.
Referenced by create_extractor_edituv_stretch_area().
|
static |
Definition at line 69 of file extract_mesh_ibo_edituv.cc.
References data, and GPU_indexbuf_build_in_place().
Referenced by create_extractor_edituv_tris().
|
static |
Definition at line 134 of file extract_mesh_ibo_edituv.cc.
References data, and GPU_indexbuf_build_in_place().
Referenced by create_extractor_edituv_tris().
|
static |
Definition at line 24 of file extract_mesh_ibo_edituv.cc.
References data, GPU_indexbuf_init(), GPU_PRIM_TRIS, MeshRenderData::loop_len, MeshRenderData::toolsettings, MeshRenderData::tri_len, ToolSettings::uv_flag, and UV_SYNC_SELECTION.
Referenced by create_extractor_edituv_tris().
|
static |
Definition at line 79 of file extract_mesh_ibo_edituv.cc.
References data, GPU_indexbuf_init(), GPU_PRIM_TRIS, DRWSubdivCache::num_subdiv_loops, DRWSubdivCache::num_subdiv_triangles, MeshRenderData::toolsettings, ToolSettings::uv_flag, and UV_SYNC_SELECTION.
Referenced by create_extractor_edituv_tris().
|
static |
Definition at line 42 of file extract_mesh_ibo_edituv.cc.
References BM_elem_flag_test, BM_ELEM_HIDDEN, BM_elem_index_get, BM_ELEM_SELECT, data, and edituv_tri_add().
Referenced by create_extractor_edituv_tris().
|
static |
Definition at line 56 of file extract_mesh_ibo_edituv.cc.
References BM_elem_flag_test_bool, BM_ELEM_HIDDEN, BM_ELEM_SELECT, bm_original_face_get(), data, edituv_tri_add(), MLoopTri::poly, and MLoopTri::tri.
Referenced by create_extractor_edituv_tris().
|
static |
Definition at line 93 of file extract_mesh_ibo_edituv.cc.
References BM_elem_flag_test, BM_ELEM_HIDDEN, BM_ELEM_SELECT, data, and edituv_tri_add().
Referenced by create_extractor_edituv_tris().
|
static |
Definition at line 117 of file extract_mesh_ibo_edituv.cc.
References BM_elem_flag_test_bool, BM_ELEM_HIDDEN, BM_ELEM_SELECT, bm_original_face_get(), data, edituv_tri_add(), and MeshRenderData::mpoly.
Referenced by create_extractor_edituv_tris().
|
static |
Definition at line 368 of file extract_mesh_vbo_select_idx.cc.
References extract_select_idx_init_impl(), and MeshRenderData::poly_len.
Referenced by create_extractor_fdot_idx().
|
static |
Definition at line 376 of file extract_mesh_vbo_select_idx.cc.
References data.
Referenced by create_extractor_fdot_idx().
|
static |
Definition at line 384 of file extract_mesh_vbo_select_idx.cc.
References data, and MeshRenderData::p_origindex.
Referenced by create_extractor_fdot_idx().
|
static |
Definition at line 23 of file extract_mesh_vbo_fdots_edituv_data.cc.
References MeshRenderData::bm, CD_MLOOPUV, CustomData_get_offset(), data, GPU_COMP_U8, GPU_FETCH_INT, GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertbuf_init_with_format, GPU_vertformat_attr_add(), BMesh::ldata, and MeshRenderData::poly_len.
Referenced by create_extractor_fdots_edituv_data().
|
static |
Definition at line 42 of file extract_mesh_vbo_fdots_edituv_data.cc.
References BM_elem_index_get, data, and mesh_render_data_face_flag().
Referenced by create_extractor_fdots_edituv_data().
|
static |
Definition at line 53 of file extract_mesh_vbo_fdots_edituv_data.cc.
References bm_original_face_get(), data, and mesh_render_data_face_flag().
Referenced by create_extractor_fdots_edituv_data().
|
static |
Definition at line 70 of file extract_mesh_ibo_fdots.cc.
References GPU_indexbuf_build_in_place().
Referenced by create_extractor_fdots().
|
static |
Definition at line 17 of file extract_mesh_ibo_fdots.cc.
References GPU_indexbuf_init(), GPU_PRIM_POINTS, and MeshRenderData::poly_len.
Referenced by create_extractor_fdots().
|
static |
Definition at line 102 of file extract_mesh_vbo_fdots_pos.cc.
References MeshBufferCache::buff, buffer, draw_subdiv_build_fdots_buffers(), MeshBufferList::fdots, MeshBufferList::fdots_nor, MeshBatchCache::final, get_fdots_nor_format_subdiv(), get_fdots_pos_format(), GPU_indexbuf_init_build_on_device(), GPU_vertbuf_init_build_on_device(), MeshBufferList::ibo, DRWSubdivCache::num_coarse_poly, and MeshBufferList::vbo.
Referenced by create_extractor_fdots_pos().
|
static |
Definition at line 26 of file extract_mesh_ibo_fdots.cc.
References BM_elem_flag_test, BM_ELEM_HIDDEN, GPU_indexbuf_set_point_restart(), and GPU_indexbuf_set_point_vert().
Referenced by create_extractor_fdots().
|
static |
Definition at line 40 of file extract_mesh_ibo_fdots.cc.
References BLI_BITMAP_TEST, MPoly::flag, GPU_indexbuf_set_point_restart(), GPU_indexbuf_set_point_vert(), MPoly::loopstart, MeshRenderData::me, ME_HIDE, MeshRenderData::mloop, Mesh::runtime, Mesh_Runtime::subsurf_face_dot_tags, MPoly::totloop, MeshRenderData::use_hide, MeshRenderData::use_subsurf_fdots, and MLoop::v.
Referenced by create_extractor_fdots().
|
static |
Definition at line 36 of file extract_mesh_vbo_fdots_nor.cc.
References MeshRenderData::bm, BM_elem_flag_test, BM_ELEM_HIDDEN, BM_ELEM_SELECT, BM_face_at_index(), bm_face_no_get(), bm_original_face_get(), MeshRenderData::efa_act, MeshRenderData::extract_type, GPU_normal_convert_i10_v3(), GPU_vertbuf_get_data(), MR_EXTRACT_BMESH, MR_EXTRACT_MAPPED, nor, NOR_AND_FLAG_ACTIVE, NOR_AND_FLAG_DEFAULT, NOR_AND_FLAG_HIDDEN, NOR_AND_FLAG_SELECT, ORIGINDEX_NONE, MeshRenderData::p_origindex, and MeshRenderData::poly_len.
Referenced by create_extractor_fdots_nor().
|
static |
Definition at line 118 of file extract_mesh_vbo_fdots_nor.cc.
References MeshRenderData::bm, BM_elem_flag_test, BM_ELEM_HIDDEN, BM_ELEM_SELECT, BM_face_at_index(), bm_face_no_get(), bm_original_face_get(), MeshRenderData::efa_act, MeshRenderData::extract_type, GPU_vertbuf_get_data(), MR_EXTRACT_BMESH, MR_EXTRACT_MAPPED, nor, NOR_AND_FLAG_ACTIVE, NOR_AND_FLAG_DEFAULT, NOR_AND_FLAG_HIDDEN, NOR_AND_FLAG_SELECT, normal_float_to_short_v3(), ORIGINDEX_NONE, MeshRenderData::p_origindex, and MeshRenderData::poly_len.
Referenced by create_extractor_fdots_nor_hq().
|
static |
Definition at line 103 of file extract_mesh_vbo_fdots_nor.cc.
References GPU_COMP_I16, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_vertbuf_data_alloc(), GPU_vertbuf_init_with_format, GPU_vertformat_attr_add(), and MeshRenderData::poly_len.
Referenced by create_extractor_fdots_nor_hq().
|
static |
Definition at line 21 of file extract_mesh_vbo_fdots_nor.cc.
References GPU_COMP_I10, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_vertbuf_data_alloc(), GPU_vertbuf_init_with_format, GPU_vertformat_attr_add(), and MeshRenderData::poly_len.
Referenced by create_extractor_fdots_nor().
|
static |
Definition at line 38 of file extract_mesh_vbo_fdots_pos.cc.
References float(), get_fdots_pos_format(), GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertbuf_init_with_format, and MeshRenderData::poly_len.
Referenced by create_extractor_fdots_pos().
|
static |
Definition at line 51 of file extract_mesh_vbo_fdots_pos.cc.
References add_v3_v3(), BM_FACE_FIRST_LOOP, bm_vert_co_get(), center, data, float(), BMFace::len, mul_v3_fl(), BMLoop::next, BMLoop::v, and zero_v3().
Referenced by create_extractor_fdots_pos().
|
static |
Definition at line 69 of file extract_mesh_vbo_fdots_pos.cc.
References add_v3_v3(), BLI_BITMAP_TEST, center, MVert::co, copy_v3_v3(), data, float(), MPoly::loopstart, MeshRenderData::me, MeshRenderData::mloop, mul_v3_fl(), MeshRenderData::mvert, Mesh::runtime, Mesh_Runtime::subsurf_face_dot_tags, MPoly::totloop, MeshRenderData::use_subsurf_fdots, MLoop::v, and zero_v3().
Referenced by create_extractor_fdots_pos().
|
static |
Definition at line 24 of file extract_mesh_vbo_fdots_uv.cc.
References MeshRenderData::bm, CD_MLOOPUV, CustomData_get_layer(), CustomData_get_offset(), data, MeshRenderData::extract_type, float(), GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertbuf_get_format(), GPU_vertbuf_init_with_format, GPU_vertformat_alias_add(), GPU_vertformat_attr_add(), BMesh::ldata, Mesh::ldata, MeshRenderData::me, MR_EXTRACT_BMESH, MeshRenderData::poly_len, stride, and MeshRenderData::use_subsurf_fdots.
Referenced by create_extractor_fdots_uv().
|
static |
Definition at line 56 of file extract_mesh_vbo_fdots_uv.cc.
References BM_ELEM_CD_GET_VOID_P, BM_elem_index_get, BM_FACE_FIRST_LOOP, data, float(), BMFace::len, madd_v2_v2fl(), BMLoop::next, and w().
Referenced by create_extractor_fdots_uv().
|
static |
Definition at line 71 of file extract_mesh_vbo_fdots_uv.cc.
References BLI_BITMAP_TEST, copy_v2_v2(), data, float(), MPoly::loopstart, madd_v2_v2fl(), MeshRenderData::me, MeshRenderData::mloop, Mesh::runtime, Mesh_Runtime::subsurf_face_dot_tags, MPoly::totloop, MeshRenderData::use_subsurf_fdots, MLoop::v, and w().
Referenced by create_extractor_fdots_uv().
BLI_INLINE void blender::draw::extract_finish | ( | const MeshRenderData * | mr, |
MeshBatchCache * | cache, | ||
const ExtractorRunDatas & | extractors, | ||
void * | data_stack | ||
) |
Definition at line 211 of file draw_cache_extract_mesh.cc.
References MeshExtract::finish, and POINTER_OFFSET.
Referenced by extract_task_range_run().
BLI_INLINE void blender::draw::extract_init | ( | const MeshRenderData * | mr, |
MeshBatchCache * | cache, | ||
ExtractorRunDatas & | extractors, | ||
MeshBufferList * | mbuflist, | ||
void * | data_stack | ||
) |
Definition at line 195 of file draw_cache_extract_mesh.cc.
References MeshExtract::data_size, MeshExtract::init, mesh_extract_buffer_get(), and POINTER_OFFSET.
Referenced by extract_task_range_run().
|
static |
Definition at line 134 of file extract_mesh_ibo_lines_adjacency.cc.
References blender::math::abs(), BLI_edgehash_free(), BLI_edgehashIterator_free(), BLI_edgehashIterator_getKey(), BLI_edgehashIterator_getValue(), BLI_edgehashIterator_isDone(), BLI_edgehashIterator_new(), BLI_edgehashIterator_step(), data, GPU_indexbuf_add_line_adj_verts(), GPU_indexbuf_build_in_place(), MeshBatchCache::is_manifold, MEM_freeN, NO_EDGE, POINTER_AS_INT, SWAP, and v2.
Referenced by create_extractor_lines_adjacency(), and extract_lines_adjacency_finish_subdiv().
|
static |
Definition at line 223 of file extract_mesh_ibo_lines_adjacency.cc.
References extract_lines_adjacency_finish().
Referenced by create_extractor_lines_adjacency().
|
static |
Definition at line 44 of file extract_mesh_ibo_lines_adjacency.cc.
References data, line_adjacency_data_init(), MeshRenderData::loop_len, MeshRenderData::poly_len, MeshRenderData::tri_len, and MeshRenderData::vert_len.
Referenced by create_extractor_lines_adjacency().
|
static |
Definition at line 167 of file extract_mesh_ibo_lines_adjacency.cc.
References data, line_adjacency_data_init(), DRWSubdivCache::num_subdiv_loops, DRWSubdivCache::num_subdiv_quads, and DRWSubdivCache::num_subdiv_verts.
Referenced by create_extractor_lines_adjacency().
|
static |
Definition at line 99 of file extract_mesh_ibo_lines_adjacency.cc.
References BM_elem_flag_test, BM_ELEM_HIDDEN, BM_elem_index_get, data, lines_adjacency_triangle(), and v.
Referenced by create_extractor_lines_adjacency().
|
static |
Definition at line 116 of file extract_mesh_ibo_lines_adjacency.cc.
References data, MPoly::flag, lines_adjacency_triangle(), ME_HIDE, MeshRenderData::mloop, MeshRenderData::mpoly, MLoopTri::poly, MLoopTri::tri, MeshRenderData::use_hide, and MLoop::v.
Referenced by create_extractor_lines_adjacency().
|
static |
Definition at line 183 of file extract_mesh_ibo_lines_adjacency.cc.
References data, lines_adjacency_triangle(), DRWSubdivCache::subdiv_loop_subdiv_vert_index, v1, and v2.
Referenced by extract_lines_adjacency_iter_subdiv_bm(), and extract_lines_adjacency_iter_subdiv_mesh().
|
static |
Definition at line 205 of file extract_mesh_ibo_lines_adjacency.cc.
References extract_lines_adjacency_iter_subdiv().
Referenced by create_extractor_lines_adjacency().
|
static |
Definition at line 214 of file extract_mesh_ibo_lines_adjacency.cc.
References extract_lines_adjacency_iter_subdiv().
Referenced by create_extractor_lines_adjacency().
|
static |
Definition at line 134 of file extract_mesh_ibo_lines.cc.
References data, and GPU_indexbuf_build_in_place().
Referenced by create_extractor_lines().
|
static |
Definition at line 20 of file extract_mesh_ibo_lines.cc.
References MeshRenderData::edge_len, MeshRenderData::edge_loose_len, GPU_indexbuf_init(), GPU_PRIM_LINES, MeshRenderData::loop_len, and MeshRenderData::loop_loose_len.
Referenced by create_extractor_lines(), and create_extractor_lines_with_lines_loose().
|
static |
Definition at line 144 of file extract_mesh_ibo_lines.cc.
References buffer, draw_subdiv_build_lines_buffer(), DRWSubdivLooseGeom::edge_len, GPU_indexbuf_init_build_on_device(), DRWSubdivCache::loose_geom, and DRWSubdivCache::num_subdiv_loops.
Referenced by create_extractor_lines(), and create_extractor_lines_with_lines_loose().
|
static |
Definition at line 88 of file extract_mesh_ibo_lines.cc.
References BM_elem_flag_test, BM_ELEM_HIDDEN, BM_elem_index_get, data, MeshRenderData::edge_len, GPU_indexbuf_set_line_restart(), GPU_indexbuf_set_line_verts(), and MeshRenderData::loop_len.
Referenced by create_extractor_lines(), and create_extractor_lines_with_lines_loose().
|
static |
Definition at line 106 of file extract_mesh_ibo_lines.cc.
References data, MeshRenderData::e_origindex, MeshRenderData::edge_len, MeshRenderData::extract_type, MEdge::flag, GPU_indexbuf_set_line_restart(), GPU_indexbuf_set_line_verts(), MeshRenderData::ledges, MeshRenderData::loop_len, ME_HIDE, MR_EXTRACT_MAPPED, ORIGINDEX_NONE, and MeshRenderData::use_hide.
Referenced by create_extractor_lines(), and create_extractor_lines_with_lines_loose().
|
static |
Definition at line 31 of file extract_mesh_ibo_lines.cc.
References BM_elem_flag_test, BM_ELEM_HIDDEN, BM_elem_index_get, BM_FACE_FIRST_LOOP, data, BMLoop::e, GPU_indexbuf_set_line_restart(), GPU_indexbuf_set_line_verts(), and BMLoop::next.
Referenced by create_extractor_lines(), and create_extractor_lines_with_lines_loose().
|
static |
Definition at line 53 of file extract_mesh_ibo_lines.cc.
References data, MLoop::e, MeshRenderData::e_origindex, MeshRenderData::extract_type, MEdge::flag, GPU_indexbuf_set_line_restart(), GPU_indexbuf_set_line_verts(), MPoly::loopstart, ME_HIDE, MeshRenderData::medge, MeshRenderData::mloop, MR_EXTRACT_MAPPED, ORIGINDEX_NONE, MPoly::totloop, and MeshRenderData::use_hide.
Referenced by create_extractor_lines(), and create_extractor_lines_with_lines_loose().
|
static |
Definition at line 162 of file extract_mesh_ibo_lines.cc.
References bm, MeshRenderData::bm, BM_edge_at_index(), BM_elem_flag_test_bool, BM_ELEM_HIDDEN, bm_original_edge_get(), buffer, draw_subdiv_build_lines_loose_buffer(), draw_subdiv_cache_get_loose_edges(), e, MeshRenderData::e_origindex, DRWSubdivLooseGeom::edge_len, MeshRenderData::extract_type, MEdge::flag, GPU_COMP_U32, GPU_FETCH_INT, GPU_vertbuf_calloc(), GPU_vertbuf_data_alloc(), GPU_vertbuf_discard(), GPU_vertbuf_get_data(), GPU_vertbuf_init_with_format, GPU_vertformat_attr_add(), DRWSubdivCache::loose_geom, ME_HIDE, MeshRenderData::medge, MR_EXTRACT_BMESH, MR_EXTRACT_MAPPED, MR_EXTRACT_MESH, ORIGINDEX_NONE, and blender::Span< T >::size().
Referenced by create_extractor_lines(), and create_extractor_lines_with_lines_loose().
|
static |
Definition at line 320 of file extract_mesh_ibo_lines.cc.
References BLI_assert, MeshBufferCache::buff, extract_lines_loose_subbuffer(), MeshBatchCache::final, MeshBufferList::ibo, MeshBufferList::lines_loose, and UNUSED_VARS_NDEBUG.
Referenced by create_extractor_lines_loose_only().
|
static |
Definition at line 330 of file extract_mesh_ibo_lines.cc.
References BLI_assert, MeshBufferCache::buff, buffer, extract_lines_loose_subbuffer(), MeshBatchCache::final, MeshBufferList::ibo, MeshBufferList::lines_loose, and UNUSED_VARS_NDEBUG.
Referenced by create_extractor_lines_loose_only().
|
static |
Definition at line 258 of file extract_mesh_ibo_lines.cc.
References BLI_assert, MeshBufferCache::buff, MeshRenderData::edge_len, MeshRenderData::edge_loose_len, MeshBatchCache::final, GPU_indexbuf_create_subrange_in_place(), MeshBufferList::ibo, len, MeshBufferList::lines, MeshBufferList::lines_loose, and MeshBatchCache::no_loose_wire.
Referenced by extract_lines_loose_only_init(), extract_lines_loose_only_init_subdiv(), and extract_lines_with_lines_loose_finish().
|
static |
Definition at line 80 of file extract_mesh_ibo_lines_paint_mask.cc.
References data, GPU_indexbuf_build_in_place(), and MEM_freeN.
Referenced by create_extractor_lines_paint_mask(), and extract_lines_paint_mask_finish_subdiv().
|
static |
Definition at line 155 of file extract_mesh_ibo_lines_paint_mask.cc.
References extract_lines_paint_mask_finish().
Referenced by create_extractor_lines_paint_mask().
|
static |
Definition at line 28 of file extract_mesh_ibo_lines_paint_mask.cc.
References BLI_BITMAP_NEW, data, MeshRenderData::edge_len, GPU_indexbuf_init(), GPU_PRIM_LINES, and MeshRenderData::loop_len.
Referenced by create_extractor_lines_paint_mask().
|
static |
Definition at line 91 of file extract_mesh_ibo_lines_paint_mask.cc.
References BLI_BITMAP_NEW, data, MeshRenderData::edge_len, GPU_indexbuf_init(), GPU_PRIM_LINES, DRWSubdivCache::num_subdiv_edges, and DRWSubdivCache::num_subdiv_loops.
Referenced by create_extractor_lines_paint_mask().
|
static |
Definition at line 38 of file extract_mesh_ibo_lines_paint_mask.cc.
References BLI_BITMAP_TEST, BLI_BITMAP_TEST_AND_SET_ATOMIC, data, MLoop::e, MeshRenderData::e_origindex, MeshRenderData::extract_type, MEdge::flag, MPoly::flag, GPU_indexbuf_set_line_restart(), GPU_indexbuf_set_line_verts(), MPoly::loopstart, ME_FACE_SEL, ME_HIDE, MeshRenderData::medge, MeshRenderData::mloop, MR_EXTRACT_MAPPED, ORIGINDEX_NONE, MPoly::totloop, and MeshRenderData::use_hide.
Referenced by create_extractor_lines_paint_mask().
|
static |
Definition at line 105 of file extract_mesh_ibo_lines_paint_mask.cc.
References BLI_BITMAP_TEST, BLI_BITMAP_TEST_AND_SET_ATOMIC, data, MeshRenderData::e_origindex, DRWSubdivCache::edges_orig_index, MeshRenderData::extract_type, MEdge::flag, MPoly::flag, GPU_indexbuf_set_line_restart(), GPU_indexbuf_set_line_verts(), GPU_vertbuf_get_data(), ME_FACE_SEL, ME_HIDE, MeshRenderData::medge, MR_EXTRACT_MAPPED, ORIGINDEX_NONE, DRWSubdivCache::subdiv_loop_subdiv_edge_index, and MeshRenderData::use_hide.
Referenced by create_extractor_lines_paint_mask().
|
static |
Definition at line 127 of file extract_mesh_ibo_lines.cc.
References GPU_indexbuf_join().
Referenced by create_extractor_lines(), and create_extractor_lines_with_lines_loose().
|
static |
Definition at line 269 of file extract_mesh_ibo_lines.cc.
References data, extract_lines_loose_subbuffer(), and GPU_indexbuf_build_in_place().
Referenced by create_extractor_lines_with_lines_loose().
|
static |
Definition at line 280 of file extract_mesh_ibo_lines.cc.
References MeshBufferCache::buff, DRWSubdivLooseGeom::edge_len, MeshBatchCache::final, GPU_indexbuf_create_subrange_in_place(), MeshBufferList::ibo, len, MeshBufferList::lines, MeshBufferList::lines_loose, DRWSubdivCache::loose_geom, MeshBatchCache::no_loose_wire, and DRWSubdivCache::num_subdiv_loops.
Referenced by create_extractor_lines_with_lines_loose().
|
static |
Definition at line 143 of file extract_mesh_vbo_lnor.cc.
References GPU_COMP_I16, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertbuf_init_with_format, GPU_vertformat_alias_add(), GPU_vertformat_attr_add(), and MeshRenderData::loop_len.
Referenced by create_extractor_lnor_hq().
|
static |
Definition at line 160 of file extract_mesh_vbo_lnor.cc.
References BM_elem_flag_test, BM_elem_index_get, BM_ELEM_SMOOTH, BM_FACE_FIRST_LOOP, bm_face_no_get(), bm_vert_no_get(), data, MeshRenderData::loop_normals, BMLoop::next, normal_float_to_short_v3(), BMLoop::v, and x.
Referenced by create_extractor_lnor_hq().
|
static |
Definition at line 183 of file extract_mesh_vbo_lnor.cc.
References data, MeshRenderData::edit_bmesh, MeshRenderData::extract_type, MPoly::flag, MeshRenderData::loop_normals, MPoly::loopstart, ME_FACE_SEL, ME_HIDE, ME_SMOOTH, MeshRenderData::mloop, MR_EXTRACT_MAPPED, normal_float_to_short_v3(), ORIGINDEX_NONE, MeshRenderData::poly_normals, MPoly::totloop, MLoop::v, MeshRenderData::v_origindex, MeshRenderData::vert_normals, blender::draw::gpuHQNor::w, and blender::draw::gpuHQNor::x.
Referenced by create_extractor_lnor_hq().
|
static |
Definition at line 18 of file extract_mesh_vbo_lnor.cc.
References GPU_COMP_I10, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertbuf_init_with_format, GPU_vertformat_alias_add(), GPU_vertformat_attr_add(), and MeshRenderData::loop_len.
Referenced by create_extractor_lnor().
|
static |
Definition at line 106 of file extract_mesh_vbo_lnor.cc.
References BLI_assert, MeshBufferCache::buff, buffer, draw_subdiv_build_lnor_buffer(), MeshBatchCache::final, get_subdiv_lnor_format(), GPU_vertbuf_init_build_on_device(), DRWSubdivCache::num_subdiv_loops, MeshBufferList::pos_nor, and MeshBufferList::vbo.
Referenced by create_extractor_lnor(), and create_extractor_lnor_hq().
|
static |
Definition at line 35 of file extract_mesh_vbo_lnor.cc.
References BM_elem_flag_test, BM_ELEM_HIDDEN, BM_elem_index_get, BM_ELEM_SMOOTH, BM_FACE_FIRST_LOOP, bm_face_no_get(), bm_vert_no_get(), data, GPU_normal_convert_i10_v3(), MeshRenderData::loop_normals, BMLoop::next, and BMLoop::v.
Referenced by create_extractor_lnor().
|
static |
Definition at line 60 of file extract_mesh_vbo_lnor.cc.
References data, MeshRenderData::edit_bmesh, MeshRenderData::extract_type, MPoly::flag, GPU_normal_convert_i10_v3(), MeshRenderData::loop_normals, MPoly::loopstart, ME_FACE_SEL, ME_HIDE, ME_SMOOTH, MeshRenderData::mloop, MR_EXTRACT_MAPPED, ORIGINDEX_NONE, MeshRenderData::poly_normals, MPoly::totloop, MLoop::v, MeshRenderData::v_origindex, MeshRenderData::vert_normals, and GPUPackedNormal::w.
Referenced by create_extractor_lnor().
|
static |
Definition at line 25 of file extract_mesh_vbo_mesh_analysis.cc.
References GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_vertbuf_data_alloc(), GPU_vertbuf_init_with_format, GPU_vertformat_attr_add(), and MeshRenderData::loop_len.
Referenced by create_extractor_mesh_analysis().
|
static |
Definition at line 21 of file extract_mesh_vbo_orco.cc.
References BLI_assert, CD_ORCO, CustomData_get_layer(), data, float(), GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertbuf_init_with_format, GPU_vertformat_attr_add(), MeshRenderData::loop_len, MeshRenderData::me, and Mesh::vdata.
Referenced by create_extractor_orco().
|
static |
Definition at line 48 of file extract_mesh_vbo_orco.cc.
References BM_elem_index_get, BM_FACE_FIRST_LOOP, copy_v3_v3(), data, BMLoop::next, blender::draw::MeshExtract_Orco_Data::orco, BMLoop::v, and blender::draw::MeshExtract_Orco_Data::vbo_data.
Referenced by create_extractor_orco().
|
static |
Definition at line 64 of file extract_mesh_vbo_orco.cc.
References copy_v3_v3(), data, MPoly::loopstart, MeshRenderData::mloop, blender::draw::MeshExtract_Orco_Data::orco, MPoly::totloop, MLoop::v, and blender::draw::MeshExtract_Orco_Data::vbo_data.
Referenced by create_extractor_orco().
|
static |
Definition at line 133 of file extract_mesh_ibo_points.cc.
References GPU_indexbuf_build_in_place().
Referenced by create_extractor_points().
|
static |
Definition at line 286 of file extract_mesh_ibo_points.cc.
References GPU_indexbuf_build_in_place().
Referenced by create_extractor_points().
|
static |
Definition at line 21 of file extract_mesh_ibo_points.cc.
References GPU_indexbuf_init(), GPU_PRIM_POINTS, MeshRenderData::loop_len, MeshRenderData::loop_loose_len, and MeshRenderData::vert_len.
Referenced by create_extractor_points().
|
static |
Definition at line 143 of file extract_mesh_ibo_points.cc.
References data, GPU_indexbuf_init(), GPU_PRIM_POINTS, DRWSubdivLooseGeom::loop_len, DRWSubdivCache::loose_geom, DRWSubdivCache::num_subdiv_loops, and MeshRenderData::vert_len.
Referenced by create_extractor_points().
|
static |
Definition at line 86 of file extract_mesh_ibo_points.cc.
References MeshRenderData::loop_len, BMEdge::v1, BMEdge::v2, and vert_set_bm().
Referenced by create_extractor_points().
|
static |
Definition at line 96 of file extract_mesh_ibo_points.cc.
References MeshRenderData::loop_len, MEdge::v1, MEdge::v2, and vert_set_mesh().
Referenced by create_extractor_points().
|
static |
Definition at line 106 of file extract_mesh_ibo_points.cc.
References MeshRenderData::edge_loose_len, MeshRenderData::loop_len, offset, and vert_set_bm().
Referenced by create_extractor_points().
|
static |
Definition at line 116 of file extract_mesh_ibo_points.cc.
References MeshRenderData::edge_loose_len, MeshRenderData::loop_len, MeshRenderData::lverts, offset, and vert_set_mesh().
Referenced by create_extractor_points().
|
static |
Definition at line 57 of file extract_mesh_ibo_points.cc.
References BM_elem_index_get, BM_FACE_FIRST_LOOP, BMLoop::next, BMLoop::v, and vert_set_bm().
Referenced by create_extractor_points().
|
static |
Definition at line 72 of file extract_mesh_ibo_points.cc.
References MPoly::loopstart, MeshRenderData::mloop, MPoly::totloop, MLoop::v, and vert_set_mesh().
Referenced by create_extractor_points().
|
static |
Definition at line 195 of file extract_mesh_ibo_points.cc.
References extract_points_iter_subdiv_common().
Referenced by create_extractor_points().
|
static |
Definition at line 156 of file extract_mesh_ibo_points.cc.
References MeshRenderData::bm, BM_elem_flag_test, BM_ELEM_HIDDEN, BM_vert_at_index(), GPU_indexbuf_set_point_restart(), GPU_indexbuf_set_point_vert(), GPU_vertbuf_get_data(), ME_HIDE, MeshRenderData::mvert, MeshRenderData::use_hide, MeshRenderData::v_origindex, and DRWSubdivCache::verts_orig_index.
Referenced by extract_points_iter_subdiv_bm(), and extract_points_iter_subdiv_mesh().
|
static |
Definition at line 205 of file extract_mesh_ibo_points.cc.
References extract_points_iter_subdiv_common().
Referenced by create_extractor_points().
|
static |
Definition at line 215 of file extract_mesh_ibo_points.cc.
References MeshRenderData::bm, bm_original_vert_get(), BM_vert_at_index(), data, draw_subdiv_cache_get_loose_edges(), draw_subdiv_cache_get_loose_verts(), MeshRenderData::extract_type, DRWSubdivLooseGeom::loop_len, DRWSubdivCache::loose_geom, MR_EXTRACT_BMESH, DRWSubdivCache::num_subdiv_loops, offset, v1, v2, MeshRenderData::v_origindex, vert_set_bm(), vert_set_mesh(), and DRWSubdivLooseGeom::verts.
Referenced by create_extractor_points().
|
static |
Definition at line 126 of file extract_mesh_ibo_points.cc.
References GPU_indexbuf_join().
Referenced by create_extractor_points().
|
static |
Definition at line 295 of file extract_mesh_vbo_select_idx.cc.
References draw_subdiv_init_origindex_buffer(), GPU_vertbuf_get_data(), DRWSubdivCache::num_subdiv_loops, MeshRenderData::p_origindex, and DRWSubdivCache::subdiv_loop_poly_index.
Referenced by create_extractor_poly_idx().
|
static |
Definition at line 45 of file extract_mesh_vbo_select_idx.cc.
References BM_elem_index_get, BM_FACE_FIRST_LOOP, data, and BMLoop::next.
Referenced by create_extractor_poly_idx().
|
static |
Definition at line 112 of file extract_mesh_vbo_select_idx.cc.
References data, MPoly::loopstart, MeshRenderData::p_origindex, and MPoly::totloop.
Referenced by create_extractor_poly_idx().
|
static |
Definition at line 173 of file extract_mesh_vbo_pos_nor.cc.
References data, and MEM_freeN.
Referenced by create_extractor_pos_nor().
|
static |
Definition at line 523 of file extract_mesh_vbo_pos_nor.cc.
References data, and MEM_freeN.
Referenced by create_extractor_pos_nor_hq().
|
static |
Definition at line 374 of file extract_mesh_vbo_pos_nor.cc.
References MeshRenderData::bm, BM_ITER_MESH_INDEX, bm_vert_no_get(), BM_VERTS_OF_MESH, data, MeshRenderData::extract_type, GPU_COMP_F32, GPU_COMP_I16, GPU_FETCH_FLOAT, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertbuf_init_with_format, GPU_vertformat_alias_add(), GPU_vertformat_attr_add(), MeshRenderData::loop_len, MeshRenderData::loop_loose_len, MEM_mallocN, MR_EXTRACT_BMESH, normal_float_to_short_v3(), v, MeshRenderData::vert_len, and MeshRenderData::vert_normals.
Referenced by create_extractor_pos_nor_hq().
|
static |
Definition at line 460 of file extract_mesh_vbo_pos_nor.cc.
References BM_elem_index_get, bm_vert_co_get(), copy_v3_v3(), copy_v3_v3_short(), data, MeshRenderData::loop_len, blender::draw::PosNorHQLoop::nor, nor, pos, BMEdge::v1, and BMEdge::v2.
Referenced by create_extractor_pos_nor_hq().
|
static |
Definition at line 476 of file extract_mesh_vbo_pos_nor.cc.
References MVert::co, copy_v3_v3(), copy_v3_v3_short(), data, MeshRenderData::loop_len, MeshRenderData::mvert, blender::draw::PosNorHQLoop::nor, nor, pos, MEdge::v1, and MEdge::v2.
Referenced by create_extractor_pos_nor_hq().
|
static |
Definition at line 492 of file extract_mesh_vbo_pos_nor.cc.
References BM_elem_index_get, bm_vert_co_get(), copy_v3_v3(), copy_v3_v3_short(), data, MeshRenderData::edge_loose_len, high(), MeshRenderData::loop_len, blender::draw::PosNorHQLoop::nor, offset, and blender::draw::PosNorHQLoop::pos.
Referenced by create_extractor_pos_nor_hq().
|
static |
Definition at line 507 of file extract_mesh_vbo_pos_nor.cc.
References copy_v3_v3(), copy_v3_v3_short(), data, MeshRenderData::edge_loose_len, MeshRenderData::loop_len, MeshRenderData::lverts, blender::draw::PosNorHQLoop::nor, offset, and blender::draw::PosNorHQLoop::pos.
Referenced by create_extractor_pos_nor_hq().
|
static |
Definition at line 411 of file extract_mesh_vbo_pos_nor.cc.
References BM_elem_flag_test, BM_ELEM_HIDDEN, BM_elem_index_get, BM_FACE_FIRST_LOOP, bm_vert_co_get(), copy_v3_v3(), copy_v3_v3_short(), data, BMLoop::next, blender::draw::PosNorHQLoop::nor, blender::draw::PosNorHQLoop::pos, and BMLoop::v.
Referenced by create_extractor_pos_nor_hq().
|
static |
Definition at line 429 of file extract_mesh_vbo_pos_nor.cc.
References copy_v3_v3(), copy_v3_v3_short(), data, MeshRenderData::extract_type, MPoly::flag, MPoly::loopstart, ME_HIDE, MeshRenderData::mloop, MR_EXTRACT_MAPPED, MeshRenderData::mvert, blender::draw::PosNorHQLoop::nor, ORIGINDEX_NONE, blender::draw::PosNorHQLoop::pos, SELECT, MPoly::totloop, MLoop::v, and MeshRenderData::v_origindex.
Referenced by create_extractor_pos_nor_hq().
|
static |
Definition at line 30 of file extract_mesh_vbo_pos_nor.cc.
References MeshRenderData::bm, BM_ITER_MESH_INDEX, bm_vert_no_get(), BM_VERTS_OF_MESH, data, MeshRenderData::extract_type, GPU_COMP_F32, GPU_COMP_I10, GPU_FETCH_FLOAT, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_normal_convert_i10_v3(), GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertbuf_init_with_format, GPU_vertformat_alias_add(), GPU_vertformat_attr_add(), MeshRenderData::loop_len, MeshRenderData::loop_loose_len, MEM_mallocN, MR_EXTRACT_BMESH, v, MeshRenderData::vert_len, and MeshRenderData::vert_normals.
Referenced by create_extractor_pos_nor().
|
static |
Definition at line 202 of file extract_mesh_vbo_pos_nor.cc.
References BLI_assert, MeshBufferCache::buff, buffer, CD_NORMAL, CustomData_get_layer(), draw_subdiv_accumulate_normals(), draw_subdiv_build_origindex_buffer(), draw_subdiv_extract_pos_nor(), draw_subdiv_finalize_custom_normals(), draw_subdiv_finalize_normals(), draw_subdiv_get_pos_nor_format(), draw_subdiv_interp_custom_data(), MeshBatchCache::final, float(), get_custom_normals_format(), get_normals_format(), GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_vertbuf_calloc(), GPU_vertbuf_data_alloc(), GPU_vertbuf_discard(), GPU_vertbuf_get_data(), GPU_vertbuf_init_build_on_device(), GPU_vertbuf_init_with_format, GPU_vertformat_attr_add(), Mesh::ldata, DRWSubdivLooseGeom::loop_len, DRWSubdivCache::loose_geom, DRWSubdivCache::mesh, DRWSubdivCache::num_subdiv_loops, DRWSubdivCache::num_subdiv_verts, MeshBufferList::orco, DRWSubdivCache::subdiv_loop_subdiv_vert_index, DRWSubdivCache::subdiv_vertex_face_adjacency, DRWSubdivCache::subdiv_vertex_face_adjacency_offsets, Mesh::totloop, DRWSubdivCache::use_custom_loop_normals, and MeshBufferList::vbo.
Referenced by create_extractor_pos_nor(), and create_extractor_pos_nor_hq().
|
static |
Definition at line 115 of file extract_mesh_vbo_pos_nor.cc.
References BM_elem_index_get, bm_vert_co_get(), copy_v3_v3(), data, MeshRenderData::loop_len, blender::draw::PosNorLoop::nor, pos, BMEdge::v1, and BMEdge::v2.
Referenced by create_extractor_pos_nor().
|
static |
Definition at line 130 of file extract_mesh_vbo_pos_nor.cc.
References MVert::co, copy_v3_v3(), data, MeshRenderData::loop_len, MeshRenderData::mvert, blender::draw::PosNorLoop::nor, pos, MEdge::v1, and MEdge::v2.
Referenced by create_extractor_pos_nor().
|
static |
Definition at line 144 of file extract_mesh_vbo_pos_nor.cc.
References BM_elem_index_get, bm_vert_co_get(), copy_v3_v3(), data, MeshRenderData::edge_loose_len, MeshRenderData::loop_len, blender::draw::PosNorLoop::nor, offset, and blender::draw::PosNorLoop::pos.
Referenced by create_extractor_pos_nor().
|
static |
Definition at line 158 of file extract_mesh_vbo_pos_nor.cc.
References copy_v3_v3(), data, MeshRenderData::edge_loose_len, MeshRenderData::loop_len, MeshRenderData::lverts, blender::draw::PosNorLoop::nor, offset, and blender::draw::PosNorLoop::pos.
Referenced by create_extractor_pos_nor().
|
static |
Definition at line 67 of file extract_mesh_vbo_pos_nor.cc.
References BM_elem_flag_test, BM_ELEM_HIDDEN, BM_elem_index_get, BM_FACE_FIRST_LOOP, bm_vert_co_get(), copy_v3_v3(), data, BMLoop::next, blender::draw::PosNorLoop::nor, blender::draw::PosNorLoop::pos, BMLoop::v, and GPUPackedNormal::w.
Referenced by create_extractor_pos_nor().
|
static |
Definition at line 84 of file extract_mesh_vbo_pos_nor.cc.
References copy_v3_v3(), data, MeshRenderData::extract_type, MPoly::flag, MPoly::loopstart, ME_HIDE, MeshRenderData::mloop, MR_EXTRACT_MAPPED, MeshRenderData::mvert, blender::draw::PosNorLoop::nor, ORIGINDEX_NONE, blender::draw::PosNorLoop::pos, SELECT, MPoly::totloop, MLoop::v, MeshRenderData::v_origindex, and GPUPackedNormal::w.
Referenced by create_extractor_pos_nor().
|
static |
Definition at line 283 of file extract_mesh_vbo_pos_nor.cc.
References buffer, BMVert::co, copy_v3_v3(), draw_subdiv_cache_get_loose_edges(), draw_subdiv_cache_get_loose_verts(), GPU_vertbuf_update_sub(), GPU_vertbuf_use(), DRWSubdivLooseGeom::loop_len, DRWSubdivCache::loose_geom, nor, DRWSubdivCache::num_subdiv_loops, offset, pos, v1, v2, and DRWSubdivLooseGeom::verts.
Referenced by create_extractor_pos_nor().
|
static |
Definition at line 315 of file draw_cache_extract_mesh.cc.
References data, blender::draw::ExtractorRunData::data_offset, blender::draw::ExtractorRunData::extractor, MeshExtract::iter_ledge_bm, and POINTER_OFFSET.
Referenced by extract_task_range_run_iter().
|
static |
Definition at line 331 of file draw_cache_extract_mesh.cc.
References data, blender::draw::ExtractorRunData::data_offset, blender::draw::ExtractorRunData::extractor, MeshExtract::iter_ledge_mesh, and POINTER_OFFSET.
Referenced by extract_task_range_run_iter().
|
static |
Definition at line 256 of file draw_cache_extract_mesh.cc.
References data, blender::draw::ExtractorRunData::data_offset, blender::draw::ExtractorRunData::extractor, MeshExtract::iter_looptri_bm, and POINTER_OFFSET.
Referenced by extract_task_range_run_iter().
|
static |
Definition at line 270 of file draw_cache_extract_mesh.cc.
References data, blender::draw::ExtractorRunData::data_offset, blender::draw::ExtractorRunData::extractor, MeshExtract::iter_looptri_mesh, and POINTER_OFFSET.
Referenced by extract_task_range_run_iter().
|
static |
Definition at line 347 of file draw_cache_extract_mesh.cc.
References data, blender::draw::ExtractorRunData::data_offset, blender::draw::ExtractorRunData::extractor, MeshExtract::iter_lvert_bm, and POINTER_OFFSET.
Referenced by extract_task_range_run_iter().
|
static |
Definition at line 363 of file draw_cache_extract_mesh.cc.
References data, blender::draw::ExtractorRunData::data_offset, blender::draw::ExtractorRunData::extractor, MeshExtract::iter_lvert_mesh, and POINTER_OFFSET.
Referenced by extract_task_range_run_iter().
|
static |
Definition at line 285 of file draw_cache_extract_mesh.cc.
References data, blender::draw::ExtractorRunData::data_offset, blender::draw::ExtractorRunData::extractor, MeshExtract::iter_poly_bm, and POINTER_OFFSET.
Referenced by extract_task_range_run_iter().
|
static |
Definition at line 300 of file draw_cache_extract_mesh.cc.
References data, blender::draw::ExtractorRunData::data_offset, blender::draw::ExtractorRunData::extractor, MeshExtract::iter_poly_mesh, and POINTER_OFFSET.
Referenced by extract_task_range_run_iter().
|
static |
Definition at line 33 of file extract_mesh_vbo_sculpt_data.cc.
References BKE_paint_face_set_overlay_color_get(), MeshRenderData::bm, BM_ELEM_CD_GET_FLOAT, BM_ELEM_CD_GET_INT, BM_FACE_FIRST_LOOP, BM_FACES_OF_MESH, BM_ITER_MESH, CD_MLOOP, CD_PAINT_MASK, CD_SCULPT_FACE_SETS, copy_v3_v3_uchar(), CustomData_get_layer(), CustomData_get_offset(), MeshRenderData::extract_type, BMLoop::f, Mesh::face_sets_color_default, Mesh::face_sets_color_seed, get_sculpt_data_format(), GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertbuf_init_with_format, l, BMesh::ldata, Mesh::ldata, MeshRenderData::loop_len, mask(), MeshRenderData::me, MeshRenderData::mpoly, MR_EXTRACT_BMESH, BMLoop::next, BMesh::pdata, Mesh::pdata, MeshRenderData::poly_len, MPoly::totloop, BMLoop::v, MLoop::v, BMesh::vdata, and Mesh::vdata.
Referenced by create_extractor_sculpt_data().
|
static |
Definition at line 114 of file extract_mesh_vbo_sculpt_data.cc.
References BKE_paint_face_set_overlay_color_get(), buffer, CD_PAINT_MASK, CD_SCULPT_FACE_SETS, color, copy_v3_v3_uchar(), CustomData_get_layer(), draw_subdiv_build_sculpt_data_buffer(), draw_subdiv_interp_custom_data(), Mesh::face_sets_color_default, Mesh::face_sets_color_seed, get_sculpt_data_format(), GPU_COMP_F32, GPU_COMP_U8, GPU_FETCH_FLOAT, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_vertbuf_calloc(), GPU_vertbuf_data_alloc(), GPU_vertbuf_discard(), GPU_vertbuf_get_data(), GPU_vertbuf_init_build_on_device(), GPU_vertbuf_init_with_format, GPU_vertformat_attr_add(), MPoly::loopstart, MeshRenderData::me, Mesh::mloop, Mesh::mpoly, DRWSubdivCache::num_subdiv_loops, Mesh::pdata, DRWSubdivCache::subdiv_loop_poly_index, Mesh::totloop, MPoly::totloop, Mesh::totpoly, MLoop::v, and Mesh::vdata.
Referenced by create_extractor_sculpt_data().
|
static |
Definition at line 32 of file extract_mesh_vbo_select_idx.cc.
References extract_select_idx_init_impl(), MeshRenderData::loop_len, and MeshRenderData::loop_loose_len.
Referenced by create_extractor_edge_idx(), create_extractor_poly_idx(), and create_extractor_vert_idx().
|
static |
Definition at line 17 of file extract_mesh_vbo_select_idx.cc.
References GPU_COMP_I32, GPU_FETCH_INT, GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertbuf_init_with_format, GPU_vertformat_attr_add(), and len.
Referenced by extract_fdot_idx_init(), and extract_select_idx_init().
|
static |
Definition at line 21 of file extract_mesh_vbo_skin_roots.cc.
References BLI_assert, MeshRenderData::bm, BM_ELEM_CD_GET_VOID_P, BM_ITER_MESH, bm_vert_co_get(), BM_VERTS_OF_MESH, CD_MVERT_SKIN, copy_v3_v3(), CustomData_get_offset(), MVertSkin::flag, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_vertbuf_data_alloc(), GPU_vertbuf_data_len_set(), GPU_vertbuf_get_data(), GPU_vertbuf_init_with_format, GPU_vertformat_attr_add(), blender::draw::SkinRootData::local_pos, MVERT_SKIN_ROOT, MVertSkin::radius, blender::draw::SkinRootData::size, BMesh::totvert, and BMesh::vdata.
Referenced by create_extractor_skin_roots().
|
static |
Definition at line 163 of file extract_mesh_vbo_tan.cc.
References CD_TANGENT, CustomData_free(), CustomData_get_layer_n(), CustomData_get_layer_named(), extract_tan_init_common(), float(), GPU_COMP_I10, GPU_COMP_I16, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_normal_convert_i10_v3(), GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertbuf_init_with_format, MeshRenderData::loop_len, MAX_CUSTOMDATA_LAYER_NAME, MAX_MTFACE, normal_float_to_short_v3(), and GPUPackedNormal::w.
Referenced by extract_tan_hq_init(), and extract_tan_init().
|
static |
Definition at line 346 of file extract_mesh_vbo_tan.cc.
References extract_tan_ex_init().
Referenced by create_extractor_tan_hq().
|
static |
Definition at line 237 of file extract_mesh_vbo_tan.cc.
References extract_tan_ex_init().
Referenced by create_extractor_tan().
|
static |
Definition at line 27 of file extract_mesh_vbo_tan.cc.
References BKE_editmesh_loop_tangent_calc(), BKE_mesh_calc_loop_tangent_ex(), BKE_mesh_orco_verts_transform(), BLI_snprintf(), BLI_strncpy(), bm, MeshRenderData::bm, BM_vert_at_index(), CD_MLOOPUV, CD_ORCO, CD_TANGENT, MeshBatchCache::cd_used, BMVert::co, copy_v3_v3(), CustomData_get_active_layer(), CustomData_get_layer(), CustomData_get_layer_index(), CustomData_get_layer_name(), CustomData_get_render_layer(), CustomData_reset(), MeshRenderData::edit_bmesh, MeshRenderData::extract_type, float(), GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_MAX_SAFE_ATTR_NAME, GPU_vertformat_alias_add(), GPU_vertformat_attr_add(), GPU_vertformat_deinterleave(), GPU_vertformat_safe_attr_name(), BMesh::ldata, Mesh::ldata, MeshRenderData::loop_len, MeshRenderData::loop_normals, MAX_CUSTOMDATA_LAYER_NAME, MAX_MTFACE, MeshRenderData::me, MEM_mallocN, MEM_SAFE_FREE, MeshRenderData::mloop, MeshRenderData::mlooptri, MeshRenderData::mpoly, MR_EXTRACT_BMESH, MeshRenderData::mvert, MeshRenderData::poly_len, MeshRenderData::poly_normals, DRW_MeshCDMask::tan, DRW_MeshCDMask::tan_orco, MeshRenderData::tri_len, v, BMesh::vdata, Mesh::vdata, MeshRenderData::vert_len, and MeshRenderData::vert_normals.
Referenced by extract_tan_ex_init(), and extract_tan_init_subdiv().
|
static |
Definition at line 255 of file extract_mesh_vbo_tan.cc.
References buffer, CD_TANGENT, copy_v3_v3(), CustomData_free(), CustomData_get_layer_n(), CustomData_get_layer_named(), draw_subdiv_interp_custom_data(), extract_tan_init_common(), float(), get_coarse_tan_format(), GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_USAGE_DYNAMIC, GPU_vertbuf_calloc(), GPU_vertbuf_data_alloc(), GPU_vertbuf_discard(), GPU_vertbuf_get_data(), GPU_vertbuf_init_build_on_device(), GPU_vertbuf_init_with_format_ex(), GPU_vertbuf_tag_dirty(), MeshRenderData::loop_len, MAX_CUSTOMDATA_LAYER_NAME, MAX_MTFACE, and DRWSubdivCache::num_subdiv_loops.
Referenced by create_extractor_tan().
Definition at line 183 of file draw_cache_extract_mesh.cc.
References data.
Referenced by extract_task_node_create().
|
static |
Definition at line 464 of file draw_cache_extract_mesh.cc.
References BLI_task_graph_node_create(), extract_task_data_free(), and extract_task_range_run().
Referenced by mesh_buffer_cache_create_requested().
Definition at line 422 of file draw_cache_extract_mesh.cc.
References BLI_parallel_range_settings_defaults(), data, extract_finish(), extract_init(), extract_task_range_run_iter(), extract_task_reduce(), TaskParallelSettings::func_reduce, MEM_callocN, MEM_freeN, TaskParallelSettings::min_iter_per_thread, MIN_RANGE_LEN, MR_EXTRACT_BMESH, TaskParallelSettings::use_threading, TaskParallelSettings::userdata_chunk, and TaskParallelSettings::userdata_chunk_size.
Referenced by extract_task_node_create().
BLI_INLINE void blender::draw::extract_task_range_run_iter | ( | const MeshRenderData * | mr, |
ExtractorRunDatas * | extractors, | ||
const eMRIterType | iter_type, | ||
bool | is_mesh, | ||
TaskParallelSettings * | settings | ||
) |
Definition at line 379 of file draw_cache_extract_mesh.cc.
References BLI_assert, BLI_task_parallel_range(), MeshRenderData::bm, MeshRenderData::edge_loose_len, MeshRenderData::edit_bmesh, blender::draw::ExtractorIterData::elems, BMesh::etable, extract_range_iter_ledge_bm(), extract_range_iter_ledge_mesh(), extract_range_iter_looptri_bm(), extract_range_iter_looptri_mesh(), extract_range_iter_lvert_bm(), extract_range_iter_lvert_mesh(), extract_range_iter_poly_bm(), extract_range_iter_poly_mesh(), blender::draw::ExtractorIterData::extractors, blender::draw::ExtractorRunDatas::filter_into(), BMesh::ftable, MeshRenderData::ledges, BMEditMesh::looptris, blender::draw::ExtractorIterData::loose_elems, MeshRenderData::lverts, MeshRenderData::medge, MeshRenderData::mlooptri, MeshRenderData::mpoly, blender::draw::ExtractorIterData::mr, MeshRenderData::mvert, MeshRenderData::poly_len, MeshRenderData::tri_len, MeshRenderData::vert_loose_len, and BMesh::vtable.
Referenced by extract_task_range_run().
|
static |
Definition at line 242 of file draw_cache_extract_mesh.cc.
References data, blender::draw::ExtractorRunData::data_offset, blender::draw::ExtractorRunData::extractor, POINTER_OFFSET, and MeshExtract::task_reduce.
Referenced by extract_task_range_run().
|
static |
Definition at line 83 of file extract_mesh_ibo_tris.cc.
References GPU_indexbuf_build_in_place(), GPU_indexbuf_calloc(), GPU_indexbuf_create_subrange_in_place(), len, MeshRenderData::mat_len, MeshRenderData::mat_tri_len, MeshRenderData::poly_sorted, MeshBatchCache::tris_per_mat, and MeshRenderData::use_final_mesh.
Referenced by create_extractor_tris().
|
static |
Definition at line 27 of file extract_mesh_ibo_tris.cc.
References GPU_indexbuf_init(), GPU_PRIM_TRIS, MeshRenderData::loop_len, MeshRenderData::poly_sorted, and MeshRenderData::visible_tri_len.
Referenced by create_extractor_tris().
|
static |
Definition at line 112 of file extract_mesh_ibo_tris.cc.
References buffer, draw_subdiv_build_tris_buffer(), GPU_indexbuf_calloc(), GPU_indexbuf_create_subrange_in_place(), GPU_indexbuf_init_build_on_device(), len, DRWSubdivCache::mat_end, MeshBatchCache::mat_len, DRWSubdivCache::mat_start, DRWSubdivCache::num_subdiv_triangles, and MeshBatchCache::tris_per_mat.
Referenced by create_extractor_tris(), and create_extractor_tris_single_mat().
|
static |
Definition at line 36 of file extract_mesh_ibo_tris.cc.
References BM_elem_index_get, MeshRenderData::edit_bmesh, BMLoop::f, GPU_indexbuf_set_tri_verts(), BMFace::l_first, BMFace::len, BMEditMesh::looptris, MeshRenderData::poly_sorted, poly_to_tri_count(), and MeshRenderData::tri_first_index.
Referenced by create_extractor_tris().
|
static |
Definition at line 62 of file extract_mesh_ibo_tris.cc.
References GPU_indexbuf_set_tri_verts(), MPoly::loopstart, MeshRenderData::mlooptri, MeshRenderData::poly_sorted, poly_to_tri_count(), MPoly::totloop, MLoopTri::tri, and MeshRenderData::tri_first_index.
Referenced by create_extractor_tris().
|
static |
Definition at line 16 of file extract_mesh_ibo_tris.cc.
References GPU_indexbuf_join().
Referenced by create_extractor_tris(), and create_extractor_tris_single_mat().
|
static |
Definition at line 201 of file extract_mesh_ibo_tris.cc.
References GPU_indexbuf_build_in_place(), GPU_indexbuf_calloc(), GPU_indexbuf_create_subrange_in_place(), len, MeshRenderData::mat_len, MeshRenderData::tri_len, MeshBatchCache::tris_per_mat, and MeshRenderData::use_final_mesh.
Referenced by create_extractor_tris_single_mat().
|
static |
Definition at line 159 of file extract_mesh_ibo_tris.cc.
References GPU_indexbuf_init(), GPU_PRIM_TRIS, MeshRenderData::loop_len, and MeshRenderData::tri_len.
Referenced by create_extractor_tris_single_mat().
|
static |
Definition at line 168 of file extract_mesh_ibo_tris.cc.
References BM_elem_flag_test, BM_ELEM_HIDDEN, BM_elem_index_get, BMLoop::f, GPU_indexbuf_set_tri_restart(), and GPU_indexbuf_set_tri_verts().
Referenced by create_extractor_tris_single_mat().
|
static |
Definition at line 186 of file extract_mesh_ibo_tris.cc.
References MPoly::flag, GPU_indexbuf_set_tri_restart(), GPU_indexbuf_set_tri_verts(), ME_HIDE, MeshRenderData::mpoly, MLoopTri::poly, MLoopTri::tri, and MeshRenderData::use_hide.
Referenced by create_extractor_tris_single_mat().
|
static |
Definition at line 74 of file extract_mesh_vbo_uv.cc.
References MeshRenderData::bm, BM_ELEM_CD_GET_VOID_P, BM_FACE_FIRST_LOOP, BM_FACES_OF_MESH, BM_ITER_MESH, CD_MLOOPUV, MeshBatchCache::cd_used, CustomData_get_layer_n(), CustomData_get_n_offset(), MeshRenderData::extract_type, float(), GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertbuf_init_with_format, if(), BMesh::ldata, Mesh::ldata, MeshRenderData::loop_len, MAX_MTFACE, MeshRenderData::me, mesh_extract_uv_format_init(), MR_EXTRACT_BMESH, BMLoop::next, DRW_MeshCDMask::uv, and MLoopUV::uv.
Referenced by create_extractor_uv().
|
static |
Definition at line 121 of file extract_mesh_vbo_uv.cc.
References buffer, draw_subdiv_extract_uvs(), GPU_vertbuf_init_build_on_device(), Mesh::ldata, MAX_MTFACE, DRWSubdivCache::mesh, mesh_extract_uv_format_init(), MR_EXTRACT_MESH, DRWSubdivCache::num_subdiv_loops, and offset.
Referenced by create_extractor_uv().
|
static |
Definition at line 183 of file extract_mesh_vbo_select_idx.cc.
References draw_subdiv_init_origindex_buffer(), GPU_vertbuf_get_data(), DRWSubdivLooseGeom::loop_len, DRWSubdivCache::loose_geom, DRWSubdivCache::num_subdiv_loops, MeshRenderData::v_origindex, and DRWSubdivCache::verts_orig_index.
Referenced by create_extractor_vert_idx().
|
static |
Definition at line 93 of file extract_mesh_vbo_select_idx.cc.
References BM_elem_index_get, data, MeshRenderData::loop_len, BMEdge::v1, and BMEdge::v2.
Referenced by create_extractor_vert_idx().
|
static |
Definition at line 160 of file extract_mesh_vbo_select_idx.cc.
References data, MeshRenderData::loop_len, MEdge::v1, MEdge::v2, and MeshRenderData::v_origindex.
Referenced by create_extractor_vert_idx().
|
static |
Definition at line 102 of file extract_mesh_vbo_select_idx.cc.
References BM_elem_index_get, data, MeshRenderData::edge_loose_len, MeshRenderData::loop_len, and offset.
Referenced by create_extractor_vert_idx().
|
static |
Definition at line 171 of file extract_mesh_vbo_select_idx.cc.
References data, MeshRenderData::edge_loose_len, MeshRenderData::loop_len, MeshRenderData::lverts, offset, and MeshRenderData::v_origindex.
Referenced by create_extractor_vert_idx().
|
static |
Definition at line 71 of file extract_mesh_vbo_select_idx.cc.
References BM_elem_index_get, BM_FACE_FIRST_LOOP, data, BMLoop::next, and BMLoop::v.
Referenced by create_extractor_vert_idx().
|
static |
Definition at line 136 of file extract_mesh_vbo_select_idx.cc.
References data, MPoly::loopstart, MeshRenderData::mloop, MPoly::totloop, MLoop::v, and MeshRenderData::v_origindex.
Referenced by create_extractor_vert_idx().
|
static |
Definition at line 213 of file extract_mesh_vbo_select_idx.cc.
References buffer, draw_subdiv_cache_get_loose_edges(), draw_subdiv_cache_get_loose_verts(), GPU_vertbuf_get_data(), DRWSubdivLooseGeom::loop_len, DRWSubdivCache::loose_geom, DRWSubdivCache::num_subdiv_loops, offset, v1, v2, MeshRenderData::v_origindex, and DRWSubdivLooseGeom::verts.
Referenced by create_extractor_vert_idx().
|
static |
Definition at line 81 of file extract_mesh_vbo_weights.cc.
References MeshRenderData::bm, CD_MDEFORMVERT, CustomData_get_layer(), CustomData_get_offset(), data, MeshRenderData::extract_type, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertbuf_init_with_format, GPU_vertformat_attr_add(), MeshRenderData::loop_len, MeshRenderData::loop_loose_len, MeshRenderData::me, MR_EXTRACT_BMESH, BMesh::vdata, Mesh::vdata, and MeshBatchCache::weight_state.
Referenced by create_extractor_weights(), and extract_weights_init_subdiv().
|
static |
Definition at line 155 of file extract_mesh_vbo_weights.cc.
References MeshRenderData::bm, BM_FACES_OF_MESH, BM_ITER_MESH_INDEX, buffer, draw_subdiv_interp_custom_data(), MeshRenderData::extract_type, extract_weights_init(), extract_weights_iter_poly_bm(), extract_weights_iter_poly_mesh(), GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_vertbuf_calloc(), GPU_vertbuf_discard(), GPU_vertbuf_init_build_on_device(), GPU_vertformat_attr_add(), DRWSubdivCache::mesh, Mesh::mpoly, MR_EXTRACT_BMESH, DRWSubdivCache::num_subdiv_loops, and Mesh::totpoly.
Referenced by create_extractor_weights().
|
static |
Definition at line 113 of file extract_mesh_vbo_weights.cc.
References BM_ELEM_CD_GET_VOID_P, BM_elem_index_get, BM_FACE_FIRST_LOOP, data, evaluate_vertex_weight(), BMLoop::next, and BMLoop::v.
Referenced by create_extractor_weights(), and extract_weights_init_subdiv().
|
static |
Definition at line 134 of file extract_mesh_vbo_weights.cc.
References data, evaluate_vertex_weight(), MPoly::loopstart, MeshRenderData::mloop, MPoly::totloop, and MLoop::v.
Referenced by create_extractor_weights(), and extract_weights_init_subdiv().
|
static |
Definition at line 177 of file extract_mesh_vbo_attributes.cc.
References ATTR_DOMAIN_CORNER, ATTR_DOMAIN_EDGE, ATTR_DOMAIN_FACE, ATTR_DOMAIN_POINT, BLI_assert, BLI_assert_unreachable, DRW_AttributeRequest::cd_type, CustomData_get_layer_n(), DRW_AttributeRequest::domain, MLoop::e, get_custom_data_for_domain(), l, DRW_AttributeRequest::layer_index, MeshRenderData::loop_len, MeshRenderData::mloop, MeshRenderData::mpoly, MeshRenderData::poly_len, MPoly::totloop, and MLoop::v.
|
static |
Definition at line 225 of file extract_mesh_vbo_attributes.cc.
References ATTR_DOMAIN_CORNER, ATTR_DOMAIN_EDGE, ATTR_DOMAIN_FACE, ATTR_DOMAIN_POINT, BLI_assert, BLI_assert_unreachable, MeshRenderData::bm, BM_ELEM_CD_GET_VOID_P, BM_FACE_FIRST_LOOP, BM_FACES_OF_MESH, BM_ITER_MESH, DRW_AttributeRequest::cd_type, CustomData_get_n_offset(), DRW_AttributeRequest::domain, BMLoop::e, get_custom_data_for_domain(), DRW_AttributeRequest::layer_index, BMLoop::next, and BMLoop::v.
|
static |
Definition at line 246 of file extract_mesh_vbo_tan.cc.
References GPU_COMP_F32, GPU_FETCH_FLOAT, and GPU_vertformat_attr_add().
Referenced by extract_tan_init_subdiv().
|
static |
Definition at line 126 of file extract_mesh_vbo_attributes.cc.
References CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_INT32, GPU_COMP_F32, GPU_COMP_I32, GPU_COMP_U16, and type.
Referenced by init_vbo_for_attribute().
|
static |
Definition at line 28 of file extract_mesh_vbo_attributes.cc.
References ATTR_DOMAIN_CORNER, ATTR_DOMAIN_EDGE, ATTR_DOMAIN_FACE, ATTR_DOMAIN_POINT, MeshRenderData::bm, BMesh::edata, Mesh::edata, MeshRenderData::extract_type, BMesh::ldata, Mesh::ldata, MeshRenderData::me, MR_EXTRACT_BMESH, BMesh::pdata, Mesh::pdata, BMesh::vdata, and Mesh::vdata.
Referenced by fill_vertbuf_with_attribute(), and fill_vertbuf_with_attribute_bm().
|
static |
Definition at line 192 of file extract_mesh_vbo_pos_nor.cc.
References GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_vertformat_alias_add(), and GPU_vertformat_attr_add().
Referenced by extract_pos_nor_init_subdiv().
|
static |
Definition at line 103 of file extract_mesh_vbo_edit_data.cc.
References GPU_COMP_U8, GPU_FETCH_INT, GPU_vertformat_alias_add(), and GPU_vertformat_attr_add().
Referenced by extract_edit_data_init(), and extract_edit_data_init_subdiv().
|
static |
Definition at line 202 of file extract_mesh_vbo_edituv_stretch_angle.cc.
References GPU_COMP_F32, GPU_FETCH_FLOAT, and GPU_vertformat_attr_add().
Referenced by extract_edituv_stretch_angle_init_subdiv().
|
static |
Definition at line 29 of file extract_mesh_vbo_fdots_pos.cc.
References GPU_COMP_F32, GPU_FETCH_FLOAT, and GPU_vertformat_attr_add().
Referenced by extract_fdots_init_subdiv().
|
static |
Definition at line 20 of file extract_mesh_vbo_fdots_pos.cc.
References GPU_COMP_F32, GPU_FETCH_FLOAT, and GPU_vertformat_attr_add().
Referenced by extract_fdots_init_subdiv(), and extract_fdots_pos_init().
|
static |
Definition at line 113 of file extract_mesh_vbo_attributes.cc.
References CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_INT32, GPU_FETCH_FLOAT, GPU_FETCH_INT_TO_FLOAT, GPU_FETCH_INT_TO_FLOAT_UNIT, and type.
Referenced by init_vbo_for_attribute().
|
static |
Definition at line 182 of file extract_mesh_vbo_pos_nor.cc.
References GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_vertformat_alias_add(), and GPU_vertformat_attr_add().
Referenced by extract_pos_nor_init_subdiv().
|
static |
Definition at line 23 of file extract_mesh_vbo_sculpt_data.cc.
References GPU_COMP_F32, GPU_COMP_U8, GPU_FETCH_FLOAT, GPU_FETCH_INT_TO_FLOAT_UNIT, and GPU_vertformat_attr_add().
Referenced by extract_sculpt_data_init(), and extract_sculpt_data_init_subdiv().
|
static |
Definition at line 205 of file extract_mesh_vbo_edge_fac.cc.
References GPU_COMP_F32, GPU_COMP_U8, GPU_crappy_amd_driver(), GPU_FETCH_FLOAT, GPU_FETCH_INT_TO_FLOAT_UNIT, and GPU_vertformat_attr_add().
Referenced by extract_edge_fac_init_subdiv().
|
static |
Definition at line 96 of file extract_mesh_vbo_lnor.cc.
References GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_vertformat_alias_add(), and GPU_vertformat_attr_add().
Referenced by extract_lnor_init_subdiv().
|
static |
Definition at line 91 of file extract_mesh_vbo_attributes.cc.
References CD_PROP_BOOL, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT32, CD_PROP_INT8, and type.
Referenced by extract_attr_init_subdiv(), and init_vbo_for_attribute().
|
static |
Definition at line 139 of file extract_mesh_vbo_attributes.cc.
References MeshRenderData::active_color_name, DRW_AttributeRequest::attribute_name, BLI_assert, BLI_snprintf(), DRW_AttributeRequest::cd_type, comp_size(), MeshRenderData::default_color_name, get_comp_type_for_type(), get_fetch_mode_for_type(), gpu_component_size_for_attribute_type(), GPU_MAX_SAFE_ATTR_NAME, GPU_vertbuf_data_alloc(), GPU_vertbuf_init_build_on_device(), GPU_vertbuf_init_with_format, GPU_vertformat_alias_add(), GPU_vertformat_attr_add(), GPU_vertformat_deinterleave(), GPU_vertformat_safe_attr_name(), len, and STREQ.
Referenced by extract_attr_init(), and extract_attr_init_subdiv().
|
static |
Definition at line 32 of file extract_mesh_ibo_lines_adjacency.cc.
References BLI_edgehash_new_ex(), data, GPU_indexbuf_init(), GPU_PRIM_LINES_ADJ, and MEM_callocN.
Referenced by extract_lines_adjacency_init(), and extract_lines_adjacency_init_subdiv().
BLI_INLINE void blender::draw::lines_adjacency_triangle | ( | uint | v1, |
uint | v2, | ||
uint | v3, | ||
uint | l1, | ||
uint | l2, | ||
uint | l3, | ||
MeshExtract_LineAdjacency_Data * | data | ||
) |
Definition at line 58 of file extract_mesh_ibo_lines_adjacency.cc.
References blender::math::abs(), BLI_edgehash_ensure_p(), data, e, GPU_indexbuf_add_line_adj_verts(), NO_EDGE, POINTER_AS_INT, POINTER_FROM_INT, SHIFT3, v1, and v2.
Referenced by extract_lines_adjacency_iter_looptri_bm(), extract_lines_adjacency_iter_looptri_mesh(), and extract_lines_adjacency_iter_subdiv().
|
static |
Definition at line 29 of file extract_mesh_vbo_edge_fac.cc.
References CLAMP, cross_v3_v3v3(), dot_v3v3(), fabsf, normalize_v3(), and sub_v3_v3v3().
Referenced by extract_edge_fac_iter_poly_bm(), and extract_edge_fac_iter_poly_mesh().
void blender::draw::mesh_buffer_cache_create_requested | ( | TaskGraph * | task_graph, |
MeshBatchCache * | cache, | ||
MeshBufferCache * | mbc, | ||
Object * | object, | ||
Mesh * | me, | ||
bool | is_editmode, | ||
bool | is_paint_mode, | ||
bool | is_mode_active, | ||
const float | obmat[4][4], | ||
bool | do_final, | ||
bool | do_uvedit, | ||
const Scene * | scene, | ||
const ToolSettings * | ts, | ||
bool | use_hide | ||
) |
Definition at line 554 of file draw_cache_extract_mesh.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BLI_task_graph_edge_create(), BLI_task_graph_node_push_work(), BLI_task_graph_work_and_wait(), MeshBufferCache::buff, blender::draw::ExtractorRunDatas::data_types(), DRW_ibo_request(), DRW_ibo_requested(), EXTRACT_ADD_REQUESTED, extract_lines, extract_lines_loose_only, extract_lines_with_lines_loose, extract_task_node_create(), GPU_MAX_ATTR, GPU_use_hq_normals_workaround(), MeshBufferList::ibo, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::draw::ExtractorRunDatas::iter_types(), MeshBufferList::lines, MeshBufferList::lines_loose, MeshRenderData::loop_len, MeshRenderData::loop_loose_len, MeshRenderData::me, mesh_extract_render_data_node_create(), mesh_render_data_create(), mesh_render_mat_len_get(), MIN_RANGE_LEN, RenderData::perf_flag, PIL_check_seconds_timer(), Scene::r, Mesh::runtime, SCE_PERF_HQ_NORMALS, scene, Mesh_Runtime::subsurf_face_dot_tags, KDL::tan(), MeshRenderData::use_final_mesh, MeshRenderData::use_hide, MeshRenderData::use_subsurf_fdots, and MeshExtract::use_threading.
Referenced by DRW_mesh_batch_cache_create_requested().
void blender::draw::mesh_buffer_cache_create_requested_subdiv | ( | MeshBatchCache * | cache, |
MeshBufferCache * | mbc, | ||
DRWSubdivCache * | subdiv_cache, | ||
MeshRenderData * | mr | ||
) |
Definition at line 774 of file draw_cache_extract_mesh.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), MeshRenderData::bm, BM_face_at_index(), MeshBufferCache::buff, buffer, data, blender::draw::ExtractorRunDatas::data_size_total(), DRW_ibo_request(), DRW_ibo_requested(), DRW_subdivide_loose_geom(), DRW_vbo_requested(), EXTRACT_ADD_REQUESTED, extract_fdots_pos, extract_lines, extract_lines_loose_only, extract_lines_with_lines_loose, extract_pos_nor, MeshRenderData::extract_type, MeshBufferList::fdots, MeshBufferList::fdots_nor, MeshBufferList::fdots_pos, MeshExtract::finish_subdiv, GPU_MAX_ATTR, MeshBufferList::ibo, MeshExtract::init_subdiv, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), MeshExtract::iter_loose_geom_subdiv, MeshExtract::iter_subdiv_bm, MeshExtract::iter_subdiv_mesh, MeshBufferList::lines, MeshBufferList::lines_loose, MEM_freeN, MEM_mallocN, mesh_extract_buffer_get(), mesh_render_data_update_looptris(), mesh_render_data_update_loose_geom(), mesh_render_data_update_normals(), MeshRenderData::mpoly, MR_DATA_LOOPTRI, MR_DATA_LOOSE_GEOM, MR_DATA_TAN_LOOP_NOR, MR_EXTRACT_BMESH, DRWSubdivCache::num_subdiv_quads, MeshBufferList::orco, POINTER_OFFSET, MeshBufferList::pos_nor, DRWSubdivCache::subdiv_loop_poly_index, KDL::tan(), and MeshBufferList::vbo.
Referenced by draw_subdiv_create_requested_buffers().
|
static |
Definition at line 531 of file draw_cache_extract_mesh.cc.
References BLI_task_graph_node_create(), mesh_extract_render_data_node_exec(), mesh_render_data_update_task_data_free(), and TaskNode::task_data.
Referenced by mesh_buffer_cache_create_requested().
Definition at line 517 of file draw_cache_extract_mesh.cc.
References blender::draw::MeshRenderDataUpdateTaskData::cache, blender::draw::MeshRenderDataUpdateTaskData::data_flag, blender::draw::MeshRenderDataUpdateTaskData::iter_type, mesh_render_data_update_looptris(), mesh_render_data_update_loose_geom(), mesh_render_data_update_normals(), mesh_render_data_update_polys_sorted(), and blender::draw::MeshRenderDataUpdateTaskData::mr.
Referenced by mesh_extract_render_data_node_create().
|
static |
Definition at line 21 of file extract_mesh_vbo_uv.cc.
References BLI_snprintf(), CD_MLOOPUV, MeshBatchCache::cd_used, CustomData_get_active_layer(), CustomData_get_layer_name(), CustomData_get_render_layer(), CustomData_get_stencil_layer(), DRW_MeshCDMask::edit_uv, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_MAX_SAFE_ATTR_NAME, GPU_vertformat_alias_add(), GPU_vertformat_attr_add(), GPU_vertformat_deinterleave(), GPU_vertformat_safe_attr_name(), MAX_MTFACE, MR_EXTRACT_BMESH, and DRW_MeshCDMask::uv.
Referenced by extract_uv_init(), and extract_uv_init_subdiv().
|
static |
Definition at line 20 of file extract_mesh_vbo_edit_data.cc.
References BM_edge_in_face(), BM_ELEM_CD_GET_FLOAT, BM_ELEM_CD_GET_VOID_P, BM_elem_flag_test, BM_ELEM_SEAM, BM_ELEM_SELECT, BM_ELEM_SMOOTH, EditLoopData::bweight, MeshRenderData::bweight_ofs, ceil(), EditLoopData::crease, EditLoopData::e_flag, MeshRenderData::edge_crease_ofs, MeshRenderData::eed_act, MeshRenderData::efa_act, FreestyleEdge::flag, FREESTYLE_EDGE_MARK, MeshRenderData::freestyle_edge_ofs, SCE_SELECT_FACE, SCE_SELECT_VERTEX, ToolSettings::selectmode, MeshRenderData::toolsettings, BMEdge::v1, BMEdge::v2, VFLAG_EDGE_ACTIVE, VFLAG_EDGE_FREESTYLE, VFLAG_EDGE_SEAM, VFLAG_EDGE_SELECTED, VFLAG_EDGE_SHARP, and VFLAG_VERT_SELECTED.
Referenced by extract_edit_data_iter_ledge_bm(), extract_edit_data_iter_ledge_mesh(), extract_edit_data_iter_poly_bm(), extract_edit_data_iter_poly_mesh(), extract_edit_data_iter_subdiv_bm(), and extract_edit_data_loose_geom_subdiv().
Definition at line 510 of file draw_cache_extract_mesh.cc.
References BLI_assert, and data.
Referenced by mesh_extract_render_data_node_create().
|
static |
Definition at line 84 of file extract_mesh_vbo_edit_data.cc.
References BM_ELEM_CD_GET_FLOAT, BM_elem_flag_test, BM_ELEM_SELECT, ceil(), EditLoopData::crease, EditLoopData::e_flag, MeshRenderData::eve_act, MeshRenderData::vert_crease_ofs, VFLAG_VERT_ACTIVE, and VFLAG_VERT_SELECTED.
Referenced by extract_edit_data_iter_ledge_bm(), extract_edit_data_iter_ledge_mesh(), extract_edit_data_iter_lvert_bm(), extract_edit_data_iter_lvert_mesh(), extract_edit_data_iter_poly_bm(), extract_edit_data_iter_poly_mesh(), extract_edit_data_iter_subdiv_bm(), and extract_edit_data_loose_geom_subdiv().
BLI_INLINE float blender::draw::overhang_remap | ( | float | fac, |
float | min, | ||
float | max, | ||
float | minmax_irange | ||
) |
Definition at line 51 of file extract_mesh_vbo_mesh_analysis.cc.
References CLAMP, max, and min.
Referenced by statvis_calc_overhang().
BLI_INLINE float blender::draw::sharp_remap | ( | float | fac, |
float | min, | ||
float | UNUSEDmax, | ||
float | minmax_irange | ||
) |
Definition at line 476 of file extract_mesh_vbo_mesh_analysis.cc.
Referenced by statvis_calc_sharp().
|
static |
Definition at line 382 of file extract_mesh_vbo_mesh_analysis.cc.
References angle_normalized_v3v3(), BKE_editmesh_cache_ensure_poly_normals(), BMEditMesh::bm, bm, BM_FACE_FIRST_LOOP, BM_FACES_OF_MESH, BM_ITER_MESH_INDEX, BM_loop_calc_face_normal_safe(), BM_loop_calc_face_normal_safe_vcos(), BM_mesh_elem_index_ensure(), MeshRenderData::bm_poly_normals, BM_VERT, MeshRenderData::bm_vert_coords, MVert::co, MeshStatVis::distort_max, MeshStatVis::distort_min, distort_remap(), dot_v3v3(), MeshRenderData::edit_bmesh, MeshRenderData::edit_data, MeshRenderData::extract_type, BMFace::len, MPoly::loopstart, max, max_ff(), min, MeshRenderData::mloop, MeshRenderData::mpoly, MR_EXTRACT_BMESH, MeshRenderData::mvert, negate_v3(), BMLoop::next, BMFace::no, normal_tri_v3(), MeshRenderData::poly_len, MeshRenderData::poly_normals, ToolSettings::statvis, MeshRenderData::toolsettings, MPoly::totloop, and MLoop::v.
Referenced by extract_analysis_iter_finish_mesh().
|
static |
Definition at line 301 of file extract_mesh_vbo_mesh_analysis.cc.
References BKE_bmbvh_free(), BKE_bmbvh_new_from_editmesh(), BKE_bmbvh_overlap_self(), BKE_bvhtree_from_mesh_get(), BLI_bvhtree_get_epsilon(), BLI_bvhtree_overlap(), BMEditMesh::bm, bm, BM_elem_index_get, BM_FACE, BM_FACE_FIRST_LOOP, BM_mesh_elem_index_ensure(), bvh_overlap_cb(), BVHTREE_FROM_LOOPTRI, data, MeshRenderData::edit_bmesh, MeshRenderData::extract_type, BMLoop::f, BVHTreeOverlap::indexA, BVHTreeOverlap::indexB, BMFace::len, MeshRenderData::loop_len, MPoly::loopstart, BMEditMesh::looptris, MeshRenderData::me, MEM_freeN, MeshRenderData::mlooptri, MeshRenderData::mpoly, MR_EXTRACT_BMESH, MLoopTri::poly, MPoly::totloop, and tree.
Referenced by extract_analysis_iter_finish_mesh().
|
static |
Definition at line 67 of file extract_mesh_vbo_mesh_analysis.cc.
References angle_normalized_v3v3(), axis_from_enum_v3(), BLI_assert, BMEditMesh::bm, bm, bm_face_no_get(), BM_FACES_OF_MESH, BM_ITER_MESH, MeshRenderData::edit_bmesh, MeshRenderData::extract_type, float(), BMFace::len, M_PI, max, min, MeshRenderData::mpoly, MR_EXTRACT_BMESH, mul_transposed_mat3_m4_v3(), normalize_v3(), MeshRenderData::obmat, MeshStatVis::overhang_axis, MeshStatVis::overhang_max, MeshStatVis::overhang_min, overhang_remap(), MeshRenderData::poly_len, MeshRenderData::poly_normals, ToolSettings::statvis, MeshRenderData::toolsettings, and MPoly::totloop.
Referenced by extract_analysis_iter_finish_mesh().
|
static |
Definition at line 490 of file extract_mesh_vbo_mesh_analysis.cc.
References angle(), angle_normalized_v3v3(), BLI_edgehash_ensure_p(), BLI_edgehash_free(), BLI_edgehash_new_ex(), BLI_edgehashIterator_free(), BLI_edgehashIterator_getKey(), BLI_edgehashIterator_getValue(), BLI_edgehashIterator_isDone(), BLI_edgehashIterator_new(), BLI_edgehashIterator_step(), BMEditMesh::bm, bm, BM_edge_calc_face_angle_signed(), BM_EDGES_OF_MESH, BM_elem_index_get, BM_FACE_FIRST_LOOP, BM_FACES_OF_MESH, BM_ITER_MESH, MVert::co, copy_vn_fl(), DEG2RADF, e, MeshRenderData::edge_len, MeshRenderData::edit_bmesh, MeshRenderData::extract_type, is_edge_convex_v3(), MeshRenderData::loop_len, MPoly::loopstart, M_PI, max, max_ff(), MEM_freeN, MEM_mallocN, min, MeshRenderData::mloop, MeshRenderData::mpoly, MR_EXTRACT_BMESH, MeshRenderData::mvert, BMLoop::next, MeshRenderData::poly_len, MeshRenderData::poly_normals, MeshStatVis::sharp_max, MeshStatVis::sharp_min, sharp_remap(), ToolSettings::statvis, MeshRenderData::toolsettings, MPoly::totloop, BMLoop::v, MLoop::v, v1, v2, and MeshRenderData::vert_len.
Referenced by extract_analysis_iter_finish_mesh().
|
static |
Definition at line 139 of file extract_mesh_vbo_mesh_analysis.cc.
References BKE_bmbvh_free(), BKE_bmbvh_new_from_editmesh(), BKE_bmbvh_ray_cast(), BKE_bvhtree_from_mesh_get(), BLI_assert, BLI_bvhtree_ray_cast(), BLI_jitter_init(), bm, BM_elem_index_get, BM_FACE, bm_face_no_get(), BM_FACES_OF_MESH, BM_ITER_MESH, BM_mesh_elem_index_ensure(), bm_vert_co_get(), BVHTREE_FROM_LOOPTRI, MVert::co, copy_vn_fl(), KDL::cos(), BVHTreeRayHit::dist, dot_v3v3(), MeshRenderData::edit_bmesh, MeshRenderData::extract_type, BMLoop::f, fabsf, BVHTreeRayHit::index, interp_v3_v3v3v3_uv(), BMFace::len, MeshRenderData::loop_len, madd_v3_v3fl(), mat4_to_scale(), max, MeshRenderData::me, min, MeshRenderData::mloop, MeshRenderData::mlooptri, MeshRenderData::mpoly, MR_EXTRACT_BMESH, MeshRenderData::mvert, BVHTreeRayHit::no, normal_tri_v3(), MeshRenderData::obmat, MLoopTri::poly, MeshRenderData::poly_len, MeshRenderData::poly_normals, BVHTreeFromMesh::raycast_callback, ToolSettings::statvis, MeshStatVis::thickness_max, MeshStatVis::thickness_min, thickness_remap(), MeshStatVis::thickness_samples, MeshRenderData::toolsettings, MPoly::totloop, tree, MLoopTri::tri, MeshRenderData::tri_len, uv_from_jitter_v2(), v, and MLoop::v.
Referenced by extract_analysis_iter_finish_mesh().
|
static |
Definition at line 396 of file shaders_test.cc.
References BASIC_shaders_curves_depth_sh_get(), BASIC_shaders_depth_conservative_sh_get(), BASIC_shaders_depth_sh_get(), BASIC_shaders_free(), BASIC_shaders_pointcloud_depth_conservative_sh_get(), BASIC_shaders_pointcloud_depth_sh_get(), and GPU_SHADER_CFG_LEN.
|
static |
Definition at line 386 of file shaders_test.cc.
References PART_REFINE_SHADER_COMPUTE, PART_REFINE_SHADER_TRANSFORM_FEEDBACK, PART_REFINE_SHADER_TRANSFORM_FEEDBACK_WORKAROUND, and test_draw_shaders().
|
static |
Definition at line 379 of file shaders_test.cc.
References DRW_shader_hair_refine_get(), DRW_shaders_free(), and PART_REFINE_CATMULL_ROM.
Referenced by test_draw_glsl_shaders().
|
static |
Definition at line 288 of file shaders_test.cc.
References DOF_GATHER_BACKGROUND, DOF_GATHER_FOREGROUND, DOF_GATHER_HOLEFILL, EEVEE_shaders_bloom_blit_get(), EEVEE_shaders_bloom_downsample_get(), EEVEE_shaders_bloom_resolve_get(), EEVEE_shaders_bloom_upsample_get(), EEVEE_shaders_cryptomatte_sh_get(), EEVEE_shaders_depth_of_field_bokeh_get(), EEVEE_shaders_depth_of_field_dilate_tiles_get(), EEVEE_shaders_depth_of_field_downsample_get(), EEVEE_shaders_depth_of_field_filter_get(), EEVEE_shaders_depth_of_field_flatten_tiles_get(), EEVEE_shaders_depth_of_field_gather_get(), EEVEE_shaders_depth_of_field_reduce_get(), EEVEE_shaders_depth_of_field_resolve_get(), EEVEE_shaders_depth_of_field_scatter_get(), EEVEE_shaders_depth_of_field_setup_get(), EEVEE_shaders_effect_ambient_occlusion_debug_sh_get(), EEVEE_shaders_effect_ambient_occlusion_sh_get(), EEVEE_shaders_effect_downsample_cube_sh_get(), EEVEE_shaders_effect_downsample_sh_get(), EEVEE_shaders_effect_maxz_copydepth_layer_sh_get(), EEVEE_shaders_effect_maxz_copydepth_sh_get(), EEVEE_shaders_effect_maxz_downdepth_layer_sh_get(), EEVEE_shaders_effect_maxz_downdepth_sh_get(), EEVEE_shaders_effect_maxz_downlevel_sh_get(), EEVEE_shaders_effect_minz_copydepth_sh_get(), EEVEE_shaders_effect_minz_downdepth_layer_sh_get(), EEVEE_shaders_effect_minz_downdepth_sh_get(), EEVEE_shaders_effect_minz_downlevel_sh_get(), EEVEE_shaders_effect_mist_sh_get(), EEVEE_shaders_effect_motion_blur_hair_sh_get(), EEVEE_shaders_effect_motion_blur_object_sh_get(), EEVEE_shaders_effect_motion_blur_sh_get(), EEVEE_shaders_effect_motion_blur_velocity_tiles_expand_sh_get(), EEVEE_shaders_effect_motion_blur_velocity_tiles_sh_get(), EEVEE_shaders_effect_reflection_resolve_sh_get(), EEVEE_shaders_effect_reflection_trace_sh_get(), EEVEE_shaders_free(), EEVEE_shaders_ggx_lut_sh_get(), EEVEE_shaders_ggx_refraction_lut_sh_get(), EEVEE_shaders_material_shaders_init(), EEVEE_shaders_probe_cube_display_sh_get(), EEVEE_shaders_probe_filter_diffuse_sh_get(), EEVEE_shaders_probe_filter_glossy_sh_get(), EEVEE_shaders_probe_filter_visibility_sh_get(), EEVEE_shaders_probe_grid_display_sh_get(), EEVEE_shaders_probe_grid_fill_sh_get(), EEVEE_shaders_probe_planar_display_sh_get(), EEVEE_shaders_probe_planar_downsample_sh_get(), EEVEE_shaders_renderpasses_post_process_sh_get(), EEVEE_shaders_shadow_accum_sh_get(), EEVEE_shaders_shadow_sh_get(), EEVEE_shaders_studiolight_background_sh_get(), EEVEE_shaders_studiolight_probe_sh_get(), EEVEE_shaders_subsurface_first_pass_sh_get(), EEVEE_shaders_subsurface_second_pass_sh_get(), EEVEE_shaders_taa_resolve_sh_get(), EEVEE_shaders_update_noise_sh_get(), EEVEE_shaders_velocity_resolve_sh_get(), EEVEE_shaders_volumes_accum_sh_get(), EEVEE_shaders_volumes_clear_sh_get(), EEVEE_shaders_volumes_integration_sh_get(), EEVEE_shaders_volumes_resolve_sh_get(), EEVEE_shaders_volumes_scatter_sh_get(), EEVEE_shaders_volumes_scatter_with_lights_sh_get(), EFFECT_TAA, and EFFECT_TAA_REPROJECT.
|
static |
Definition at line 161 of file shaders_test.cc.
References GPENCIL_shader_antialiasing(), GPENCIL_shader_depth_merge_get(), GPENCIL_shader_free(), GPENCIL_shader_fx_blur_get(), GPENCIL_shader_fx_colorize_get(), GPENCIL_shader_fx_composite_get(), GPENCIL_shader_fx_glow_get(), GPENCIL_shader_fx_pixelize_get(), GPENCIL_shader_fx_rim_get(), GPENCIL_shader_fx_shadow_get(), GPENCIL_shader_fx_transform_get(), GPENCIL_shader_geometry_get(), GPENCIL_shader_layer_blend_get(), and GPENCIL_shader_mask_invert_get().
|
static |
Definition at line 184 of file shaders_test.cc.
References blender::draw::image_engine::IMAGE_shader_depth_get(), blender::draw::image_engine::IMAGE_shader_free(), and blender::draw::image_engine::IMAGE_shader_image_get().
|
static |
Definition at line 193 of file shaders_test.cc.
References GPU_SHADER_CFG_CLIPPED, GPU_SHADER_CFG_DEFAULT, OVERLAY_shader_antialiasing(), 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_background(), OVERLAY_shader_clipbound(), OVERLAY_shader_depth_only(), OVERLAY_shader_edit_curve_handle(), OVERLAY_shader_edit_curve_point(), OVERLAY_shader_edit_curve_wire(), 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_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_edit_uv_edges_get(), OVERLAY_shader_edit_uv_face_dots_get(), OVERLAY_shader_edit_uv_face_get(), OVERLAY_shader_edit_uv_mask_image(), OVERLAY_shader_edit_uv_stencil_image(), OVERLAY_shader_edit_uv_stretching_angle_get(), OVERLAY_shader_edit_uv_stretching_area_get(), OVERLAY_shader_edit_uv_tiled_image_borders_get(), OVERLAY_shader_edit_uv_verts_get(), 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_free(), OVERLAY_shader_gpencil_canvas(), OVERLAY_shader_grid(), OVERLAY_shader_grid_image(), OVERLAY_shader_image(), OVERLAY_shader_motion_path_line(), OVERLAY_shader_motion_path_vert(), OVERLAY_shader_outline_detect(), 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_selection(), OVERLAY_shader_sculpt_mask(), OVERLAY_shader_uniform_color(), OVERLAY_shader_volume_velocity(), OVERLAY_shader_wireframe(), OVERLAY_shader_wireframe_select(), and OVERLAY_shader_xray_fade().
|
static |
Definition at line 28 of file shaders_test.cc.
References dof_blur1_sh, dof_blur2_sh, dof_downsample_sh, dof_prepare_sh, dof_resolve_sh, GPU_SHADER_CFG_CLIPPED, GPU_SHADER_CFG_DEFAULT, View3DShading::light, WORKBENCH_PrivateData::sh_cfg, WORKBENCH_PrivateData::shading, V3D_LIGHTING_FLAT, V3D_LIGHTING_MATCAP, V3D_LIGHTING_STUDIO, WORKBENCH_DATATYPE_HAIR, WORKBENCH_DATATYPE_MESH, WORKBENCH_DATATYPE_POINTCLOUD, workbench_shader_antialiasing_accumulation_get(), workbench_shader_antialiasing_get(), workbench_shader_cavity_get(), workbench_shader_composite_get(), workbench_shader_depth_of_field_get(), workbench_shader_free(), workbench_shader_merge_infront_get(), workbench_shader_opaque_get(), workbench_shader_opaque_image_get(), workbench_shader_outline_get(), workbench_shader_shadow_fail_get(), workbench_shader_shadow_pass_get(), workbench_shader_transparent_get(), workbench_shader_transparent_image_get(), workbench_shader_transparent_resolve_get(), workbench_shader_volume_get(), WORKBENCH_VOLUME_INTERP_CLOSEST, WORKBENCH_VOLUME_INTERP_CUBIC, and WORKBENCH_VOLUME_INTERP_LINEAR.
BLI_INLINE float blender::draw::thickness_remap | ( | float | fac, |
float | min, | ||
float | max, | ||
float | minmax_irange | ||
) |
Definition at line 125 of file extract_mesh_vbo_mesh_analysis.cc.
References CLAMP, max, and min.
Referenced by statvis_calc_thickness().
Needed so we can use jitter values for face interpolation.
Definition at line 113 of file extract_mesh_vbo_mesh_analysis.cc.
References clamp_v2().
Referenced by statvis_calc_thickness().
|
static |
Definition at line 53 of file extract_mesh_vbo_edituv_stretch_angle.cc.
References atan2f, float(), M_1_PI, and v.
Referenced by edituv_get_edituv_stretch_angle().
BLI_INLINE void blender::draw::vert_set_bm | ( | GPUIndexBufBuilder * | elb, |
const BMVert * | eve, | ||
int | l_index | ||
) |
Definition at line 30 of file extract_mesh_ibo_points.cc.
References BM_elem_flag_test, BM_ELEM_HIDDEN, BM_elem_index_get, GPU_indexbuf_set_point_restart(), and GPU_indexbuf_set_point_vert().
Referenced by extract_points_iter_ledge_bm(), extract_points_iter_lvert_bm(), extract_points_iter_poly_bm(), and extract_points_loose_geom_subdiv().
BLI_INLINE void blender::draw::vert_set_mesh | ( | GPUIndexBufBuilder * | elb, |
const MeshRenderData * | mr, | ||
const int | v_index, | ||
const int | l_index | ||
) |
Definition at line 41 of file extract_mesh_ibo_points.cc.
References MeshRenderData::extract_type, GPU_indexbuf_set_point_restart(), GPU_indexbuf_set_point_vert(), ME_HIDE, MR_EXTRACT_MAPPED, MeshRenderData::mvert, ORIGINDEX_NONE, MeshRenderData::use_hide, and MeshRenderData::v_origindex.
Referenced by extract_points_iter_ledge_mesh(), extract_points_iter_lvert_mesh(), extract_points_iter_poly_mesh(), and extract_points_loose_geom_subdiv().