Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/types.h
| Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Lines | enum SamplingPattern { | ||||
| SAMPLING_PATTERN_SOBOL = 0, | SAMPLING_PATTERN_SOBOL = 0, | ||||
| SAMPLING_PATTERN_PMJ = 1, | SAMPLING_PATTERN_PMJ = 1, | ||||
| SAMPLING_NUM_PATTERNS, | SAMPLING_NUM_PATTERNS, | ||||
| }; | }; | ||||
| /* These flags values correspond to `raytypes` in `osl.cpp`, so keep them in sync! */ | /* These flags values correspond to `raytypes` in `osl.cpp`, so keep them in sync! */ | ||||
| enum PathRayFlag { | enum PathRayFlag : uint32_t { | ||||
| /* -------------------------------------------------------------------- | /* -------------------------------------------------------------------- | ||||
| * Ray visibility. | * Ray visibility. | ||||
| * | * | ||||
| * NOTE: Recalculated after a surface bounce. | * NOTE: Recalculated after a surface bounce. | ||||
| */ | */ | ||||
| PATH_RAY_CAMERA = (1U << 0U), | PATH_RAY_CAMERA = (1U << 0U), | ||||
| PATH_RAY_REFLECT = (1U << 1U), | PATH_RAY_REFLECT = (1U << 1U), | ||||
| ▲ Show 20 Lines • Show All 169 Lines • ▼ Show 20 Lines | typedef enum PassType { | ||||
| PASS_DIFFUSE_COLOR, | PASS_DIFFUSE_COLOR, | ||||
| PASS_GLOSSY_COLOR, | PASS_GLOSSY_COLOR, | ||||
| PASS_TRANSMISSION_COLOR, | PASS_TRANSMISSION_COLOR, | ||||
| /* No Scatter color since it's tricky to define what it would even mean. */ | /* No Scatter color since it's tricky to define what it would even mean. */ | ||||
| PASS_MIST, | PASS_MIST, | ||||
| PASS_DENOISING_NORMAL, | PASS_DENOISING_NORMAL, | ||||
| PASS_DENOISING_ALBEDO, | PASS_DENOISING_ALBEDO, | ||||
| PASS_DENOISING_DEPTH, | PASS_DENOISING_DEPTH, | ||||
| PASS_DENOISING_PREVIOUS, | |||||
| /* PASS_SHADOW_CATCHER accumulates contribution of shadow catcher object which is not affected by | /* PASS_SHADOW_CATCHER accumulates contribution of shadow catcher object which is not affected by | ||||
| * any other object. The pass accessor will divide the combined pass by the shadow catcher. The | * any other object. The pass accessor will divide the combined pass by the shadow catcher. The | ||||
| * result of this division is then to be multiplied with the backdrop. The alpha channel of this | * result of this division is then to be multiplied with the backdrop. The alpha channel of this | ||||
| * pass contains number of samples which contributed to the color components of the pass. | * pass contains number of samples which contributed to the color components of the pass. | ||||
| * | * | ||||
| * PASS_SHADOW_CATCHER_SAMPLE_COUNT contains number of samples for which the path split | * PASS_SHADOW_CATCHER_SAMPLE_COUNT contains number of samples for which the path split | ||||
| * happened. | * happened. | ||||
| ▲ Show 20 Lines • Show All 1,155 Lines • ▼ Show 20 Lines | |||||
| } DeviceKernel; | } DeviceKernel; | ||||
| enum { | enum { | ||||
| DEVICE_KERNEL_INTEGRATOR_NUM = DEVICE_KERNEL_INTEGRATOR_MEGAKERNEL + 1, | DEVICE_KERNEL_INTEGRATOR_NUM = DEVICE_KERNEL_INTEGRATOR_MEGAKERNEL + 1, | ||||
| }; | }; | ||||
| /* Kernel Features */ | /* Kernel Features */ | ||||
| enum KernelFeatureFlag : unsigned int { | enum KernelFeatureFlag : uint32_t { | ||||
| /* Shader nodes. */ | /* Shader nodes. */ | ||||
| KERNEL_FEATURE_NODE_BSDF = (1U << 0U), | KERNEL_FEATURE_NODE_BSDF = (1U << 0U), | ||||
| KERNEL_FEATURE_NODE_EMISSION = (1U << 1U), | KERNEL_FEATURE_NODE_EMISSION = (1U << 1U), | ||||
| KERNEL_FEATURE_NODE_VOLUME = (1U << 2U), | KERNEL_FEATURE_NODE_VOLUME = (1U << 2U), | ||||
| KERNEL_FEATURE_NODE_HAIR = (1U << 3U), | KERNEL_FEATURE_NODE_HAIR = (1U << 3U), | ||||
| KERNEL_FEATURE_NODE_BUMP = (1U << 4U), | KERNEL_FEATURE_NODE_BUMP = (1U << 4U), | ||||
| KERNEL_FEATURE_NODE_BUMP_STATE = (1U << 5U), | KERNEL_FEATURE_NODE_BUMP_STATE = (1U << 5U), | ||||
| KERNEL_FEATURE_NODE_VORONOI_EXTRA = (1U << 6U), | KERNEL_FEATURE_NODE_VORONOI_EXTRA = (1U << 6U), | ||||
| ▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines | |||||