MSL: Remove some dead code w.r.t. vertex/instance_idx.
This commit is contained in:
parent
d1479f871a
commit
6ca3fe22c3
@ -8695,13 +8695,6 @@ void CompilerMSL::entry_point_args_builtin(string &ep_args)
|
||||
for (auto &var : active_builtins)
|
||||
var.first->basetype = ensure_correct_builtin_type(var.first->basetype, var.second);
|
||||
|
||||
// Vertex and instance index built-ins
|
||||
if (needs_vertex_idx_arg)
|
||||
ep_args += built_in_func_arg(BuiltInVertexIndex, !ep_args.empty());
|
||||
|
||||
if (needs_instance_idx_arg)
|
||||
ep_args += built_in_func_arg(BuiltInInstanceIndex, !ep_args.empty());
|
||||
|
||||
// Handle HLSL-style 0-based vertex/instance index.
|
||||
if (needs_base_vertex_arg > 0)
|
||||
ep_args += built_in_func_arg(BuiltInBaseVertex, !ep_args.empty());
|
||||
|
@ -819,8 +819,6 @@ protected:
|
||||
int32_t needs_base_vertex_arg = 0; // Handle HLSL-style 0-based vertex/instance index.
|
||||
int32_t needs_base_instance_arg = 0; // Handle HLSL-style 0-based vertex/instance index.
|
||||
bool has_sampled_images = false;
|
||||
bool needs_vertex_idx_arg = false;
|
||||
bool needs_instance_idx_arg = false;
|
||||
bool builtin_declaration = false; // Handle HLSL-style 0-based vertex/instance index.
|
||||
bool use_builtin_array = false; // Force the use of C style array declaration.
|
||||
bool is_rasterization_disabled = false;
|
||||
|
Loading…
Reference in New Issue
Block a user