Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/metal/mtl_shader.hh
| Show All 30 Lines | |||||
| #include "gpu_shader_private.hh" | #include "gpu_shader_private.hh" | ||||
| namespace blender::gpu { | namespace blender::gpu { | ||||
| class MTLShaderInterface; | class MTLShaderInterface; | ||||
| class MTLContext; | class MTLContext; | ||||
| /* Debug control. */ | /* Debug control. */ | ||||
| #define MTL_SHADER_DEBUG_EXPORT_SOURCE 1 | #define MTL_SHADER_DEBUG_EXPORT_SOURCE 0 | ||||
| #define MTL_SHADER_TRANSLATION_DEBUG_OUTPUT 0 | #define MTL_SHADER_TRANSLATION_DEBUG_OUTPUT 0 | ||||
| /* Separate print used only during development and debugging. */ | /* Separate print used only during development and debugging. */ | ||||
| #if MTL_SHADER_TRANSLATION_DEBUG_OUTPUT | #if MTL_SHADER_TRANSLATION_DEBUG_OUTPUT | ||||
| # define shader_debug_printf printf | # define shader_debug_printf printf | ||||
| #else | #else | ||||
| # define shader_debug_printf(...) /* Null print. */ | # define shader_debug_printf(...) /* Null print. */ | ||||
| #endif | #endif | ||||
| ▲ Show 20 Lines • Show All 1,161 Lines • Show Last 20 Lines | |||||