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