diff --git a/src/bgfx_shader.sh b/src/bgfx_shader.sh index a62fafefd..e8b57f7b5 100644 --- a/src/bgfx_shader.sh +++ b/src/bgfx_shader.sh @@ -22,7 +22,7 @@ # define UNROLL #endif // BGFX_SHADER_LANGUAGE_HLSL > 300 -#if BGFX_SHADER_LANGUAGE_HLSL > 300 && BGFX_SHADER_TYPE_FRAGMENT +#if (BGFX_SHADER_LANGUAGE_HLSL > 300 || BGFX_SHADER_LANGUAGE_METAL || BGFX_SHADER_LANGUAGE_SPIRV) && BGFX_SHADER_TYPE_FRAGMENT # define EARLY_DEPTH_STENCIL [earlydepthstencil] #else # define EARLY_DEPTH_STENCIL