Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/graph.cpp
| Show First 20 Lines • Show All 1,143 Lines • ▼ Show 20 Lines | foreach (ShaderNode *node, nodes) { | ||||
| } | } | ||||
| else if (CLOSURE_IS_BSDF_MULTISCATTER(closure_type)) { | else if (CLOSURE_IS_BSDF_MULTISCATTER(closure_type)) { | ||||
| num_closures += 2; | num_closures += 2; | ||||
| } | } | ||||
| else if (CLOSURE_IS_PRINCIPLED(closure_type)) { | else if (CLOSURE_IS_PRINCIPLED(closure_type)) { | ||||
| num_closures += 8; | num_closures += 8; | ||||
| } | } | ||||
| else if (CLOSURE_IS_VOLUME(closure_type)) { | else if (CLOSURE_IS_VOLUME(closure_type)) { | ||||
| num_closures += VOLUME_STACK_SIZE; | /* TODO(sergey): Verify this is still needed, since we have special minimized volume storage | ||||
| * for the volume steps. */ | |||||
| num_closures += MAX_VOLUME_STACK_SIZE; | |||||
| } | } | ||||
| else if (closure_type == CLOSURE_BSDF_HAIR_PRINCIPLED_ID) { | else if (closure_type == CLOSURE_BSDF_HAIR_PRINCIPLED_ID) { | ||||
| num_closures += 4; | num_closures += 4; | ||||
| } | } | ||||
| else { | else { | ||||
| ++num_closures; | ++num_closures; | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines | |||||