Blender V5.3
blender::SubsurfRuntimeData Struct Reference

#include <BKE_subdiv_modifier.hh>

Public Attributes

bke::subdiv::Settings settings
bke::subdiv::Subdiv * subdiv_cpu
bke::subdiv::Subdiv * subdiv_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 35 of file BKE_subdiv_modifier.hh.

Member Data Documentation

◆ has_gpu_subdiv

bool blender::SubsurfRuntimeData::has_gpu_subdiv

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

Definition at line 51 of file BKE_subdiv_modifier.hh.

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

◆ resolution

int blender::SubsurfRuntimeData::resolution

◆ settings

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

◆ stats_faces_num

int blender::SubsurfRuntimeData::stats_faces_num

◆ stats_totedge

int blender::SubsurfRuntimeData::stats_totedge

◆ stats_totloop

int blender::SubsurfRuntimeData::stats_totloop

◆ stats_totvert

int blender::SubsurfRuntimeData::stats_totvert

Cached from the draw code for stats display.

Definition at line 57 of file BKE_subdiv_modifier.hh.

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

◆ subdiv_cpu

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

◆ subdiv_gpu

◆ use_loop_normals

◆ use_optimal_display

◆ used_cpu

char blender::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 48 of file BKE_subdiv_modifier.hh.

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

◆ used_gpu


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