diff --git a/XenosRecomp/shader_common.h b/XenosRecomp/shader_common.h index b55f30f..f480042 100644 --- a/XenosRecomp/shader_common.h +++ b/XenosRecomp/shader_common.h @@ -41,11 +41,17 @@ struct PushConstants using namespace metal; +#ifdef SPEC_CONSTANTS constant uint G_SPEC_CONSTANT [[function_constant(0)]]; +#endif uint g_SpecConstants() { +#ifdef SPEC_CONSTANTS return G_SPEC_CONSTANT; +#else + return 0; +#endif } struct PushConstants