Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/integrator/state.h
| Show First 20 Lines • Show All 167 Lines • ▼ Show 20 Lines | # define INTEGRATOR_STATE_ARRAY(state, nested_struct, array_index, member) \ | ||||
| ((state)->nested_struct[array_index].member) | ((state)->nested_struct[array_index].member) | ||||
| # define INTEGRATOR_STATE_ARRAY_WRITE(state, nested_struct, array_index, member) \ | # define INTEGRATOR_STATE_ARRAY_WRITE(state, nested_struct, array_index, member) \ | ||||
| ((state)->nested_struct[array_index].member) | ((state)->nested_struct[array_index].member) | ||||
| #else /* __KERNEL_CPU__ */ | #else /* __KERNEL_CPU__ */ | ||||
| /* Array access on GPU with Structure-of-Arrays. */ | /* Array access on GPU with Structure-of-Arrays. */ | ||||
| typedef const int IntegratorState; | typedef int IntegratorState; | ||||
| typedef const int ConstIntegratorState; | typedef int ConstIntegratorState; | ||||
| typedef const int IntegratorShadowState; | typedef int IntegratorShadowState; | ||||
| typedef const int ConstIntegratorShadowState; | typedef int ConstIntegratorShadowState; | ||||
| # define INTEGRATOR_STATE_NULL -1 | # define INTEGRATOR_STATE_NULL -1 | ||||
| # define INTEGRATOR_STATE(state, nested_struct, member) \ | # define INTEGRATOR_STATE(state, nested_struct, member) \ | ||||
| kernel_integrator_state.nested_struct.member[state] | kernel_integrator_state.nested_struct.member[state] | ||||
| # define INTEGRATOR_STATE_WRITE(state, nested_struct, member) \ | # define INTEGRATOR_STATE_WRITE(state, nested_struct, member) \ | ||||
| INTEGRATOR_STATE(state, nested_struct, member) | INTEGRATOR_STATE(state, nested_struct, member) | ||||
| # define INTEGRATOR_STATE_ARRAY(state, nested_struct, array_index, member) \ | # define INTEGRATOR_STATE_ARRAY(state, nested_struct, array_index, member) \ | ||||
| kernel_integrator_state.nested_struct[array_index].member[state] | kernel_integrator_state.nested_struct[array_index].member[state] | ||||
| # define INTEGRATOR_STATE_ARRAY_WRITE(state, nested_struct, array_index, member) \ | # define INTEGRATOR_STATE_ARRAY_WRITE(state, nested_struct, array_index, member) \ | ||||
| INTEGRATOR_STATE_ARRAY(state, nested_struct, array_index, member) | INTEGRATOR_STATE_ARRAY(state, nested_struct, array_index, member) | ||||
| #endif /* __KERNEL_CPU__ */ | #endif /* __KERNEL_CPU__ */ | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||