Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/kernel_types.h
| Show First 20 Lines • Show All 383 Lines • ▼ Show 20 Lines | #endif | ||||
| PASS_TRANSMISSION_COLOR, | PASS_TRANSMISSION_COLOR, | ||||
| PASS_SUBSURFACE_DIRECT, | PASS_SUBSURFACE_DIRECT, | ||||
| PASS_SUBSURFACE_INDIRECT, | PASS_SUBSURFACE_INDIRECT, | ||||
| PASS_SUBSURFACE_COLOR, | PASS_SUBSURFACE_COLOR, | ||||
| PASS_VOLUME_DIRECT, | PASS_VOLUME_DIRECT, | ||||
| PASS_VOLUME_INDIRECT, | PASS_VOLUME_INDIRECT, | ||||
| /* 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_CATEGORY_LIGHT_END = 63, | PASS_CATEGORY_LIGHT_END = 63, | ||||
| PASS_BAKE_PRIMITIVE, | |||||
| PASS_BAKE_DIFFERENTIAL, | |||||
| PASS_CATEGORY_BAKE_END = 95 | |||||
| } PassType; | } PassType; | ||||
| #define PASS_ANY (~0) | #define PASS_ANY (~0) | ||||
| typedef enum CryptomatteType { | typedef enum CryptomatteType { | ||||
| CRYPT_NONE = 0, | CRYPT_NONE = 0, | ||||
| CRYPT_OBJECT = (1 << 0), | CRYPT_OBJECT = (1 << 0), | ||||
| CRYPT_MATERIAL = (1 << 1), | CRYPT_MATERIAL = (1 << 1), | ||||
| ▲ Show 20 Lines • Show All 819 Lines • ▼ Show 20 Lines | typedef struct KernelFilm { | ||||
| /* XYZ to rendering color space transform. float4 instead of float3 to | /* XYZ to rendering color space transform. float4 instead of float3 to | ||||
| * ensure consistent padding/alignment across devices. */ | * ensure consistent padding/alignment across devices. */ | ||||
| float4 xyz_to_r; | float4 xyz_to_r; | ||||
| float4 xyz_to_g; | float4 xyz_to_g; | ||||
| float4 xyz_to_b; | float4 xyz_to_b; | ||||
| float4 rgb_to_y; | float4 rgb_to_y; | ||||
| int pass_bake_primitive; | |||||
| int pass_bake_differential; | |||||
| int pad; | |||||
| #ifdef __KERNEL_DEBUG__ | #ifdef __KERNEL_DEBUG__ | ||||
| int pass_bvh_traversed_nodes; | int pass_bvh_traversed_nodes; | ||||
| int pass_bvh_traversed_instances; | int pass_bvh_traversed_instances; | ||||
| int pass_bvh_intersections; | int pass_bvh_intersections; | ||||
| int pass_ray_bounces; | int pass_ray_bounces; | ||||
| #endif | #endif | ||||
| } KernelFilm; | } KernelFilm; | ||||
| static_assert_align(KernelFilm, 16); | static_assert_align(KernelFilm, 16); | ||||
| ▲ Show 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | |||||
| static_assert_align(KernelCurves, 16); | static_assert_align(KernelCurves, 16); | ||||
| typedef struct KernelTables { | typedef struct KernelTables { | ||||
| int beckmann_offset; | int beckmann_offset; | ||||
| int pad1, pad2, pad3; | int pad1, pad2, pad3; | ||||
| } KernelTables; | } KernelTables; | ||||
| static_assert_align(KernelTables, 16); | static_assert_align(KernelTables, 16); | ||||
| typedef struct KernelBake { | |||||
| int object_index; | |||||
| int tri_offset; | |||||
| int type; | |||||
| int pass_filter; | |||||
| } KernelBake; | |||||
| static_assert_align(KernelBake, 16); | |||||
| typedef struct KernelData { | typedef struct KernelData { | ||||
| KernelCamera cam; | KernelCamera cam; | ||||
| KernelFilm film; | KernelFilm film; | ||||
| KernelBackground background; | KernelBackground background; | ||||
| KernelIntegrator integrator; | KernelIntegrator integrator; | ||||
| KernelBVH bvh; | KernelBVH bvh; | ||||
| KernelCurves curve; | KernelCurves curve; | ||||
| KernelTables tables; | KernelTables tables; | ||||
| KernelBake bake; | |||||
| } KernelData; | } KernelData; | ||||
| static_assert_align(KernelData, 16); | static_assert_align(KernelData, 16); | ||||
| /* Kernel data structures. */ | /* Kernel data structures. */ | ||||
| typedef struct KernelObject { | typedef struct KernelObject { | ||||
| Transform tfm; | Transform tfm; | ||||
| Transform itfm; | Transform itfm; | ||||
| ▲ Show 20 Lines • Show All 238 Lines • Show Last 20 Lines | |||||