mirror of
https://github.com/hedge-dev/XenosRecomp.git
synced 2025-10-30 07:12:17 +00:00
Make spec constants optional
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
This commit is contained in:
parent
8752326f1c
commit
c11a6f28b5
1 changed files with 6 additions and 0 deletions
|
|
@ -41,11 +41,17 @@ struct PushConstants
|
||||||
|
|
||||||
using namespace metal;
|
using namespace metal;
|
||||||
|
|
||||||
|
#ifdef SPEC_CONSTANTS
|
||||||
constant uint G_SPEC_CONSTANT [[function_constant(0)]];
|
constant uint G_SPEC_CONSTANT [[function_constant(0)]];
|
||||||
|
#endif
|
||||||
|
|
||||||
uint g_SpecConstants()
|
uint g_SpecConstants()
|
||||||
{
|
{
|
||||||
|
#ifdef SPEC_CONSTANTS
|
||||||
return G_SPEC_CONSTANT;
|
return G_SPEC_CONSTANT;
|
||||||
|
#else
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
struct PushConstants
|
struct PushConstants
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue