Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/kernel_types.h
| Show First 20 Lines • Show All 1,162 Lines • ▼ Show 20 Lines | typedef struct KernelCamera { | ||||
| int pad; | int pad; | ||||
| } KernelCamera; | } KernelCamera; | ||||
| static_assert_align(KernelCamera, 16); | static_assert_align(KernelCamera, 16); | ||||
| typedef struct KernelFilm { | typedef struct KernelFilm { | ||||
| float exposure; | float exposure; | ||||
| int pass_flag; | int pass_flag; | ||||
| /* viewport rendering options */ | |||||
| int display_pass_stride; | |||||
| int display_pass_components; | |||||
| int display_divide_pass_stride; | |||||
| int use_display_exposure; | |||||
| int use_display_pass_alpha; | |||||
brecht: Move these to the end of the struct. For performance we want flags used together to be adjacent. | |||||
Done Inline ActionsWe could also combine use_display_exposure and use_display_pass_alpha in a display_flags. jbakker: We could also combine `use_display_exposure` and `use_display_pass_alpha` in a `display_flags`. | |||||
| int light_pass_flag; | int light_pass_flag; | ||||
| int pass_stride; | int pass_stride; | ||||
| int use_light_pass; | int use_light_pass; | ||||
| int pass_combined; | int pass_combined; | ||||
| int pass_depth; | int pass_depth; | ||||
| int pass_normal; | int pass_normal; | ||||
| int pass_motion; | int pass_motion; | ||||
| ▲ Show 20 Lines • Show All 465 Lines • Show Last 20 Lines | |||||
Move these to the end of the struct. For performance we want flags used together to be adjacent.