Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_cache_extract_mesh.cc
| Show First 20 Lines • Show All 864 Lines • ▼ Show 20 Lines | |||||
| #undef EXTRACT_ADD_REQUESTED | #undef EXTRACT_ADD_REQUESTED | ||||
| if (extractors.is_empty()) { | if (extractors.is_empty()) { | ||||
| return; | return; | ||||
| } | } | ||||
| mesh_render_data_update_looptris(mr, MR_ITER_LOOPTRI, MR_DATA_LOOPTRI); | mesh_render_data_update_looptris(mr, MR_ITER_LOOPTRI, MR_DATA_LOOPTRI); | ||||
| mesh_render_data_update_normals(mr, MR_DATA_TAN_LOOP_NOR); | |||||
| mesh_render_data_update_loose_geom(mr, mbc, MR_ITER_LEDGE | MR_ITER_LVERT, MR_DATA_LOOSE_GEOM); | mesh_render_data_update_loose_geom(mr, mbc, MR_ITER_LEDGE | MR_ITER_LVERT, MR_DATA_LOOSE_GEOM); | ||||
| DRW_subdivide_loose_geom(subdiv_cache, mbc); | DRW_subdivide_loose_geom(subdiv_cache, mbc); | ||||
| void *data_stack = MEM_mallocN(extractors.data_size_total(), __func__); | void *data_stack = MEM_mallocN(extractors.data_size_total(), __func__); | ||||
| uint32_t data_offset = 0; | uint32_t data_offset = 0; | ||||
| for (const ExtractorRunData &run_data : extractors) { | for (const ExtractorRunData &run_data : extractors) { | ||||
| const MeshExtract *extractor = run_data.extractor; | const MeshExtract *extractor = run_data.extractor; | ||||
| void *buffer = mesh_extract_buffer_get(extractor, mbuflist); | void *buffer = mesh_extract_buffer_get(extractor, mbuflist); | ||||
| ▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines | |||||