Skip to content

Commit 253c595

Browse files
committed
Make spec constants optional
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
1 parent ce5aeb3 commit 253c595

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

XenosRecomp/shader_common.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,17 @@ struct PushConstants
4242

4343
using namespace metal;
4444

45+
#ifdef SPEC_CONSTANTS
4546
constant uint G_SPEC_CONSTANT [[function_constant(0)]];
47+
#endif
4648

4749
uint g_SpecConstants()
4850
{
51+
#ifdef SPEC_CONSTANTS
4952
return G_SPEC_CONSTANT;
53+
#else
54+
return 0;
55+
#endif
5056
}
5157

5258
struct PushConstants

0 commit comments

Comments
 (0)