Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_gpu_types.h
| Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | typedef struct GPUSSAOSettings { | ||||
| float factor; | float factor; | ||||
| float color[3]; | float color[3]; | ||||
| float distance_max; | float distance_max; | ||||
| float attenuation; | float attenuation; | ||||
| int samples; /* ray samples, we use presets here for easy control instead of */ | int samples; /* ray samples, we use presets here for easy control instead of */ | ||||
| int pad; | int pad; | ||||
| } GPUSSAOSettings; | } GPUSSAOSettings; | ||||
| typedef struct GPULensDistSettings { | |||||
| char type; /* eGPULensDistType */ | |||||
| char pad[3]; | |||||
| } GPULensDistSettings; | |||||
| typedef struct GPUFXSettings { | typedef struct GPUFXSettings { | ||||
| GPUDOFSettings *dof; | GPUDOFSettings *dof; | ||||
| GPUSSAOSettings *ssao; | GPUSSAOSettings *ssao; | ||||
| GPULensDistSettings *lensdist; | |||||
| char fx_flag; /* eGPUFXFlags */ | char fx_flag; /* eGPUFXFlags */ | ||||
| char pad[7]; | char pad[7]; | ||||
| } GPUFXSettings; | } GPUFXSettings; | ||||
| /* shaderfx enables */ | /* shaderfx enables */ | ||||
| typedef enum eGPUFXFlags { | typedef enum eGPUFXFlags { | ||||
| GPU_FX_FLAG_DOF = (1 << 0), | GPU_FX_FLAG_DOF = (1 << 0), | ||||
| GPU_FX_FLAG_SSAO = (1 << 1), | GPU_FX_FLAG_SSAO = (1 << 1), | ||||
| GPU_FX_FLAG_LensDist = (1 << 2), | |||||
sergey: So far flags are capitals, not camel case. | |||||
| } eGPUFXFlags; | } eGPUFXFlags; | ||||
| #endif /* __DNA_GPU_TYPES_H__ */ | #endif /* __DNA_GPU_TYPES_H__ */ | ||||
So far flags are capitals, not camel case.