Blender V5.0
SubsurfRuntimeData Struct Reference

#include <BKE_subdiv_modifier.hh>

Public Attributes

blender::bke::subdiv::Settings settings
blender::bke::subdiv::Subdivsubdiv_cpu
blender::bke::subdiv::Subdivsubdiv_gpu
char used_cpu
char used_gpu
bool has_gpu_subdiv
int resolution
bool use_optimal_display
bool use_loop_normals
int stats_totvert
int stats_totedge
int stats_faces_num
int stats_totloop

Detailed Description

Runtime subsurf modifier data, cached in modifier on evaluated meshes.

Definition at line 33 of file BKE_subdiv_modifier.hh.

Member Data Documentation

◆ has_gpu_subdiv

bool SubsurfRuntimeData::has_gpu_subdiv

Cached mesh wrapper data, to be used for GPU subdiv or lazy evaluation on CPU.

Definition at line 49 of file BKE_subdiv_modifier.hh.

Referenced by BKE_subsurf_modifier_has_gpu_subdiv(), blender::draw::draw_subdiv_create_requested_buffers(), stats_mesheval(), and subdiv_cache_mesh_wrapper_settings().

◆ resolution

int SubsurfRuntimeData::resolution

◆ settings

blender::bke::subdiv::Settings SubsurfRuntimeData::settings

Subdivision settings, exists before descriptor or mesh wrapper is created.

Definition at line 35 of file BKE_subdiv_modifier.hh.

Referenced by BKE_subsurf_modifier_runtime_init(), BKE_subsurf_modifier_subdiv_descriptor_ensure(), blender::draw::draw_subdiv_create_requested_buffers(), and mesh_wrapper_ensure_subdivision().

◆ stats_faces_num

int SubsurfRuntimeData::stats_faces_num

◆ stats_totedge

int SubsurfRuntimeData::stats_totedge

◆ stats_totloop

int SubsurfRuntimeData::stats_totloop

◆ stats_totvert

int SubsurfRuntimeData::stats_totvert

Cached from the draw code for stats display.

Definition at line 55 of file BKE_subdiv_modifier.hh.

Referenced by blender::draw::draw_subdiv_create_requested_buffers(), and stats_mesheval().

◆ subdiv_cpu

blender::bke::subdiv::Subdiv* SubsurfRuntimeData::subdiv_cpu

Cached subdivision surface descriptor, with topology and settings.

Definition at line 38 of file BKE_subdiv_modifier.hh.

Referenced by BKE_subsurf_modifier_subdiv_descriptor_ensure(), deform_matrices(), free_runtime_data(), mesh_wrapper_ensure_subdivision(), and modify_mesh().

◆ subdiv_gpu

◆ use_loop_normals

◆ use_optimal_display

bool SubsurfRuntimeData::use_optimal_display

◆ used_cpu

char SubsurfRuntimeData::used_cpu

Recent usage markers for UI diagnostics. To avoid UI flicker due to races between evaluation and UI redraw, they are set to 2 when an evaluator is used, and count down every frame.

Definition at line 46 of file BKE_subdiv_modifier.hh.

Referenced by BKE_subsurf_modifier_runtime_init(), BKE_subsurf_modifier_subdiv_descriptor_ensure(), modify_mesh(), and panel_draw().

◆ used_gpu

char SubsurfRuntimeData::used_gpu

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