Blender V4.3
blender::draw::SortedFaceData Struct Reference

#include <draw_cache_extract.hh>

Public Attributes

int visible_tris_num
 
Array< inttris_num_by_material
 
std::optional< Array< int > > face_tri_offsets
 

Detailed Description

Definition at line 201 of file draw_cache_extract.hh.

Member Data Documentation

◆ face_tri_offsets

std::optional<Array<int> > blender::draw::SortedFaceData::face_tri_offsets

The first triangle index for each face, sorted into slices by material. May be empty if the mesh only has a single material.

Definition at line 210 of file draw_cache_extract.hh.

Referenced by blender::draw::extract_tris_bmesh(), blender::draw::extract_tris_mesh(), and blender::draw::mesh_render_data_faces_sorted_build().

◆ tris_num_by_material

Array<int> blender::draw::SortedFaceData::tris_num_by_material

The number of visible triangles assigned to each material.

Definition at line 205 of file draw_cache_extract.hh.

Referenced by blender::draw::create_material_subranges(), and blender::draw::mesh_render_data_faces_sorted_build().

◆ visible_tris_num


The documentation for this struct was generated from the following file: