mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-15 16:30:08 +00:00
Punt on DrawIndex in MSL for now.
Metal doesn't properly support this.
This commit is contained in:
parent
3dc23615dd
commit
97d01b6450
@ -3891,8 +3891,7 @@ string CompilerMSL::builtin_qualifier(BuiltIn builtin)
|
||||
case BuiltInBaseInstance:
|
||||
return "base_instance";
|
||||
case BuiltInDrawIndex:
|
||||
// FIXME: Metal needs real support for this.
|
||||
return "buffer(15)";
|
||||
SPIRV_CROSS_THROW("DrawIndex is not supported in MSL.");
|
||||
|
||||
// Vertex function out
|
||||
case BuiltInClipDistance:
|
||||
@ -3965,7 +3964,7 @@ string CompilerMSL::builtin_type_decl(BuiltIn builtin)
|
||||
case BuiltInBaseInstance:
|
||||
return "uint";
|
||||
case BuiltInDrawIndex:
|
||||
return "device uint *";
|
||||
SPIRV_CROSS_THROW("DrawIndex is not supported in MSL.");
|
||||
|
||||
// Vertex function out
|
||||
case BuiltInClipDistance:
|
||||
|
Loading…
Reference in New Issue
Block a user