Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/util/debug.h
| Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Lines | struct OptiX { | ||||
| /* Reset flags to their defaults. */ | /* Reset flags to their defaults. */ | ||||
| void reset(); | void reset(); | ||||
| /* Load OptiX module with debug capabilities. Will lower logging verbosity level, enable | /* Load OptiX module with debug capabilities. Will lower logging verbosity level, enable | ||||
| * validations, and lower optimization level. */ | * validations, and lower optimization level. */ | ||||
| bool use_debug; | bool use_debug; | ||||
| }; | }; | ||||
| /* Descriptor of Metal feature-set to be used. */ | |||||
| struct Metal { | |||||
| Metal(); | |||||
| /* Reset flags to their defaults. */ | |||||
| void reset(); | |||||
| /* Whether adaptive feature based runtime compile is enabled or not.*/ | |||||
| bool adaptive_compile; | |||||
| }; | |||||
| /* Get instance of debug flags registry. */ | /* Get instance of debug flags registry. */ | ||||
| static DebugFlags &get() | static DebugFlags &get() | ||||
| { | { | ||||
| static DebugFlags instance; | static DebugFlags instance; | ||||
| return instance; | return instance; | ||||
| } | } | ||||
| /* Reset flags to their defaults. */ | /* Reset flags to their defaults. */ | ||||
| void reset(); | void reset(); | ||||
| /* Requested CPU flags. */ | /* Requested CPU flags. */ | ||||
| CPU cpu; | CPU cpu; | ||||
| /* Requested CUDA flags. */ | /* Requested CUDA flags. */ | ||||
| CUDA cuda; | CUDA cuda; | ||||
| /* Requested OptiX flags. */ | /* Requested OptiX flags. */ | ||||
| OptiX optix; | OptiX optix; | ||||
| /* Requested HIP flags. */ | /* Requested HIP flags. */ | ||||
| HIP hip; | HIP hip; | ||||
| /* Requested Metal flags. */ | |||||
| Metal metal; | |||||
| private: | private: | ||||
| DebugFlags(); | DebugFlags(); | ||||
| #if (__cplusplus > 199711L) | #if (__cplusplus > 199711L) | ||||
| public: | public: | ||||
| explicit DebugFlags(DebugFlags const & /*other*/) = delete; | explicit DebugFlags(DebugFlags const & /*other*/) = delete; | ||||
| void operator=(DebugFlags const & /*other*/) = delete; | void operator=(DebugFlags const & /*other*/) = delete; | ||||
| #else | #else | ||||
| Show All 17 Lines | |||||