Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/integrator/integrator_state.h
| Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
| #include "kernel/kernel_types.h" | #include "kernel/kernel_types.h" | ||||
| #include "util/util_types.h" | #include "util/util_types.h" | ||||
| #pragma once | #pragma once | ||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| /* Constants | |||||
| * | |||||
| * TODO: these could be made dynamic depending on the features used in the scene. */ | |||||
| #define INTEGRATOR_SHADOW_ISECT_SIZE_CPU 1024 | |||||
| #define INTEGRATOR_SHADOW_ISECT_SIZE_GPU 4 | |||||
| #ifdef __KERNEL_CPU__ | |||||
| # define INTEGRATOR_SHADOW_ISECT_SIZE INTEGRATOR_SHADOW_ISECT_SIZE_CPU | |||||
| #else | |||||
| # define INTEGRATOR_SHADOW_ISECT_SIZE INTEGRATOR_SHADOW_ISECT_SIZE_GPU | |||||
| #endif | |||||
| /* Data structures */ | /* Data structures */ | ||||
| /* Integrator State | /* Integrator State | ||||
| * | * | ||||
| * CPU rendering path state with AoS layout. */ | * CPU rendering path state with AoS layout. */ | ||||
| typedef struct IntegratorStateCPU { | typedef struct IntegratorStateCPU { | ||||
| #define KERNEL_STRUCT_BEGIN(name) struct { | #define KERNEL_STRUCT_BEGIN(name) struct { | ||||
| #define KERNEL_STRUCT_MEMBER(parent_struct, type, name, feature) type name; | #define KERNEL_STRUCT_MEMBER(parent_struct, type, name, feature) type name; | ||||
| ▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines | |||||