Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/data_template.h
| Show All 17 Lines | |||||
| * to ensure consistent padding/alignment across devices. */ | * to ensure consistent padding/alignment across devices. */ | ||||
| KERNEL_STRUCT_MEMBER(background, float4, sun) | KERNEL_STRUCT_MEMBER(background, float4, sun) | ||||
| /* Only shader index. */ | /* Only shader index. */ | ||||
| KERNEL_STRUCT_MEMBER(background, int, surface_shader) | KERNEL_STRUCT_MEMBER(background, int, surface_shader) | ||||
| KERNEL_STRUCT_MEMBER(background, int, volume_shader) | KERNEL_STRUCT_MEMBER(background, int, volume_shader) | ||||
| KERNEL_STRUCT_MEMBER(background, float, volume_step_size) | KERNEL_STRUCT_MEMBER(background, float, volume_step_size) | ||||
| KERNEL_STRUCT_MEMBER(background, int, transparent) | KERNEL_STRUCT_MEMBER(background, int, transparent) | ||||
| KERNEL_STRUCT_MEMBER(background, float, transparent_roughness_squared_threshold) | KERNEL_STRUCT_MEMBER(background, float, transparent_roughness_squared_threshold) | ||||
| /* Portal sampling. */ | |||||
| KERNEL_STRUCT_MEMBER(background, float, portal_weight) | |||||
| KERNEL_STRUCT_MEMBER(background, int, num_portals) | |||||
| KERNEL_STRUCT_MEMBER(background, int, portal_offset) | |||||
| /* Sun sampling. */ | /* Sun sampling. */ | ||||
| KERNEL_STRUCT_MEMBER(background, float, sun_weight) | KERNEL_STRUCT_MEMBER(background, float, sun_weight) | ||||
| /* Importance map sampling. */ | /* Importance map sampling. */ | ||||
| KERNEL_STRUCT_MEMBER(background, float, map_weight) | KERNEL_STRUCT_MEMBER(background, float, map_weight) | ||||
| KERNEL_STRUCT_MEMBER(background, float, portal_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) | ||||
| /* Padding. */ | /* Light Index. */ | ||||
| KERNEL_STRUCT_MEMBER(background, int, pad1) | KERNEL_STRUCT_MEMBER(background, int, light_index) | ||||
| 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 90 Lines • ▼ Show 20 Lines | |||||
| KERNEL_STRUCT_MEMBER(film, int, pad2) | KERNEL_STRUCT_MEMBER(film, int, pad2) | ||||
| 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, use_light_mis) | |||||
| KERNEL_STRUCT_MEMBER(integrator, int, num_lights) | |||||
| KERNEL_STRUCT_MEMBER(integrator, int, num_distant_lights) | |||||
| KERNEL_STRUCT_MEMBER(integrator, int, num_background_lights) | |||||
| /* Portal sampling. */ | |||||
| KERNEL_STRUCT_MEMBER(integrator, int, num_portals) | |||||
| KERNEL_STRUCT_MEMBER(integrator, int, portal_offset) | |||||
| /* Flat light distribution. */ | |||||
| KERNEL_STRUCT_MEMBER(integrator, int, num_distribution) | KERNEL_STRUCT_MEMBER(integrator, int, num_distribution) | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, num_all_lights) | KERNEL_STRUCT_MEMBER(integrator, float, distribution_pdf_triangles) | ||||
| KERNEL_STRUCT_MEMBER(integrator, float, pdf_triangles) | KERNEL_STRUCT_MEMBER(integrator, float, distribution_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) | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, max_glossy_bounce) | KERNEL_STRUCT_MEMBER(integrator, int, max_glossy_bounce) | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, max_transmission_bounce) | KERNEL_STRUCT_MEMBER(integrator, int, max_transmission_bounce) | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, max_volume_bounce) | KERNEL_STRUCT_MEMBER(integrator, int, max_volume_bounce) | ||||
| Show All 10 Lines | |||||
| KERNEL_STRUCT_MEMBER(integrator, int, caustics_reflective) | KERNEL_STRUCT_MEMBER(integrator, int, caustics_reflective) | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, caustics_refractive) | KERNEL_STRUCT_MEMBER(integrator, int, caustics_refractive) | ||||
| KERNEL_STRUCT_MEMBER(integrator, float, filter_glossy) | KERNEL_STRUCT_MEMBER(integrator, float, filter_glossy) | ||||
| /* Seed. */ | /* Seed. */ | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, seed) | KERNEL_STRUCT_MEMBER(integrator, int, seed) | ||||
| /* Clamp. */ | /* Clamp. */ | ||||
| KERNEL_STRUCT_MEMBER(integrator, float, sample_clamp_direct) | KERNEL_STRUCT_MEMBER(integrator, float, sample_clamp_direct) | ||||
| KERNEL_STRUCT_MEMBER(integrator, float, sample_clamp_indirect) | KERNEL_STRUCT_MEMBER(integrator, float, sample_clamp_indirect) | ||||
| /* MIS. */ | |||||
| KERNEL_STRUCT_MEMBER(integrator, int, use_lamp_mis) | |||||
| /* Caustics. */ | /* Caustics. */ | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, use_caustics) | KERNEL_STRUCT_MEMBER(integrator, int, use_caustics) | ||||
| /* Sampling pattern. */ | /* Sampling pattern. */ | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, sampling_pattern) | KERNEL_STRUCT_MEMBER(integrator, int, sampling_pattern) | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, pmj_sequence_size) | KERNEL_STRUCT_MEMBER(integrator, int, pmj_sequence_size) | ||||
| KERNEL_STRUCT_MEMBER(integrator, float, scrambling_distance) | KERNEL_STRUCT_MEMBER(integrator, float, scrambling_distance) | ||||
| /* Volume render. */ | /* Volume render. */ | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, use_volumes) | KERNEL_STRUCT_MEMBER(integrator, int, use_volumes) | ||||
| 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) | ||||
| /* Path Guiding */ | /* Path Guiding */ | ||||
| KERNEL_STRUCT_MEMBER(integrator, float, surface_guiding_probability) | KERNEL_STRUCT_MEMBER(integrator, float, surface_guiding_probability) | ||||
| KERNEL_STRUCT_MEMBER(integrator, float, volume_guiding_probability) | KERNEL_STRUCT_MEMBER(integrator, float, volume_guiding_probability) | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, guiding_distribution_type) | KERNEL_STRUCT_MEMBER(integrator, int, guiding_distribution_type) | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, use_guiding) | KERNEL_STRUCT_MEMBER(integrator, int, use_guiding) | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, train_guiding) | KERNEL_STRUCT_MEMBER(integrator, int, train_guiding) | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, use_surface_guiding) | KERNEL_STRUCT_MEMBER(integrator, int, use_surface_guiding) | ||||
| KERNEL_STRUCT_MEMBER(integrator, int, use_volume_guiding) | KERNEL_STRUCT_MEMBER(integrator, int, use_volume_guiding) | ||||
| Show All 19 Lines | |||||