Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/data_template.h
| Show All 31 Lines | |||||
| /* Importance map sampling. */ | /* Importance map sampling. */ | ||||
| KERNEL_STRUCT_MEMBER(background, float, map_weight) | KERNEL_STRUCT_MEMBER(background, float, map_weight) | ||||
| KERNEL_STRUCT_MEMBER(background, int, map_res_x) | KERNEL_STRUCT_MEMBER(background, int, map_res_x) | ||||
| KERNEL_STRUCT_MEMBER(background, int, map_res_y) | KERNEL_STRUCT_MEMBER(background, int, map_res_y) | ||||
| /* Multiple importance sampling. */ | /* Multiple importance sampling. */ | ||||
| KERNEL_STRUCT_MEMBER(background, int, use_mis) | KERNEL_STRUCT_MEMBER(background, int, use_mis) | ||||
| /* Lightgroup. */ | /* Lightgroup. */ | ||||
| KERNEL_STRUCT_MEMBER(background, int, lightgroup) | KERNEL_STRUCT_MEMBER(background, int, lightgroup) | ||||
| /* Light Index. */ | |||||
| KERNEL_STRUCT_MEMBER(background, int, light_index) | |||||
| /* Padding. */ | /* Padding. */ | ||||
| KERNEL_STRUCT_MEMBER(background, int, pad1) | KERNEL_STRUCT_MEMBER(background, int, pad1) | ||||
| KERNEL_STRUCT_MEMBER(background, int, pad2) | KERNEL_STRUCT_MEMBER(background, int, pad2) | ||||
| KERNEL_STRUCT_MEMBER(background, int, pad3) | |||||
| KERNEL_STRUCT_END(KernelBackground) | KERNEL_STRUCT_END(KernelBackground) | ||||
| /* BVH: own BVH2 if no native device acceleration struct used. */ | /* BVH: own BVH2 if no native device acceleration struct used. */ | ||||
| KERNEL_STRUCT_BEGIN(KernelBVH, bvh) | KERNEL_STRUCT_BEGIN(KernelBVH, bvh) | ||||
| KERNEL_STRUCT_MEMBER(bvh, int, root) | KERNEL_STRUCT_MEMBER(bvh, int, root) | ||||
| KERNEL_STRUCT_MEMBER(bvh, int, have_motion) | KERNEL_STRUCT_MEMBER(bvh, int, have_motion) | ||||
| KERNEL_STRUCT_MEMBER(bvh, int, have_curves) | KERNEL_STRUCT_MEMBER(bvh, int, have_curves) | ||||
| ▲ Show 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | |||||
| KERNEL_STRUCT_END(KernelFilm) | KERNEL_STRUCT_END(KernelFilm) | ||||
| /* Integrator. */ | /* Integrator. */ | ||||
| KERNEL_STRUCT_BEGIN(KernelIntegrator, integrator) | KERNEL_STRUCT_BEGIN(KernelIntegrator, integrator) | ||||
| /* Emission. */ | /* Emission. */ | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, use_direct_light) | KERNEL_STRUCT_MEMBER(integrator, int, use_direct_light) | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, num_distribution) | KERNEL_STRUCT_MEMBER(integrator, int, num_distribution) | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, num_distant_lights) | |||||
| KERNEL_STRUCT_MEMBER(integrator, int, num_all_lights) | KERNEL_STRUCT_MEMBER(integrator, int, num_all_lights) | ||||
| KERNEL_STRUCT_MEMBER(integrator, float, pdf_triangles) | KERNEL_STRUCT_MEMBER(integrator, float, pdf_triangles) | ||||
| KERNEL_STRUCT_MEMBER(integrator, float, pdf_lights) | KERNEL_STRUCT_MEMBER(integrator, float, pdf_lights) | ||||
| KERNEL_STRUCT_MEMBER(integrator, float, light_inv_rr_threshold) | KERNEL_STRUCT_MEMBER(integrator, float, light_inv_rr_threshold) | ||||
| /* Bounces. */ | /* Bounces. */ | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, min_bounce) | KERNEL_STRUCT_MEMBER(integrator, int, min_bounce) | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, max_bounce) | KERNEL_STRUCT_MEMBER(integrator, int, max_bounce) | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, max_diffuse_bounce) | KERNEL_STRUCT_MEMBER(integrator, int, max_diffuse_bounce) | ||||
| Show All 30 Lines | |||||
| KERNEL_STRUCT_MEMBER(integrator, int, volume_max_steps) | KERNEL_STRUCT_MEMBER(integrator, int, volume_max_steps) | ||||
| KERNEL_STRUCT_MEMBER(integrator, float, volume_step_rate) | KERNEL_STRUCT_MEMBER(integrator, float, volume_step_rate) | ||||
| /* Shadow catcher. */ | /* Shadow catcher. */ | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, has_shadow_catcher) | KERNEL_STRUCT_MEMBER(integrator, int, has_shadow_catcher) | ||||
| /* Closure filter. */ | /* Closure filter. */ | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, filter_closures) | KERNEL_STRUCT_MEMBER(integrator, int, filter_closures) | ||||
| /* MIS debugging. */ | /* MIS debugging. */ | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, direct_light_sampling_type) | KERNEL_STRUCT_MEMBER(integrator, int, direct_light_sampling_type) | ||||
| /* Light tree. */ | |||||
| KERNEL_STRUCT_MEMBER(integrator, int, use_light_tree) | |||||
| KERNEL_STRUCT_MEMBER(integrator, float, splitting_threshold) | |||||
| /* Padding */ | /* Padding */ | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, pad1) | KERNEL_STRUCT_MEMBER(integrator, int, pad1) | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, pad2) | |||||
| KERNEL_STRUCT_END(KernelIntegrator) | KERNEL_STRUCT_END(KernelIntegrator) | ||||
| /* SVM. For shader specialization. */ | /* SVM. For shader specialization. */ | ||||
| KERNEL_STRUCT_BEGIN(KernelSVMUsage, svm_usage) | KERNEL_STRUCT_BEGIN(KernelSVMUsage, svm_usage) | ||||
| #define SHADER_NODE_TYPE(type) KERNEL_STRUCT_MEMBER(svm_usage, int, type) | #define SHADER_NODE_TYPE(type) KERNEL_STRUCT_MEMBER(svm_usage, int, type) | ||||
| #include "kernel/svm/node_types_template.h" | #include "kernel/svm/node_types_template.h" | ||||
| KERNEL_STRUCT_END(KernelSVMUsage) | KERNEL_STRUCT_END(KernelSVMUsage) | ||||
| #undef KERNEL_STRUCT_BEGIN | #undef KERNEL_STRUCT_BEGIN | ||||
| #undef KERNEL_STRUCT_MEMBER | #undef KERNEL_STRUCT_MEMBER | ||||
| #undef KERNEL_STRUCT_END | #undef KERNEL_STRUCT_END | ||||