Skip to content

Commit c11a6f2

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

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
@@ -41,11 +41,17 @@ struct PushConstants
4141

4242
using namespace metal;
4343

44+
#ifdef SPEC_CONSTANTS
4445
constant uint G_SPEC_CONSTANT [[function_constant(0)]];
46+
#endif
4547

4648
uint g_SpecConstants()
4749
{
50+
#ifdef SPEC_CONSTANTS
4851
return G_SPEC_CONSTANT;
52+
#else
53+
return 0;
54+
#endif
4955
}
5056

5157
struct PushConstants

0 commit comments

Comments
 (0)