mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-15 00:11:06 +00:00
Remove hard-coded case
This commit is contained in:
parent
945494d211
commit
3289043729
@ -1393,8 +1393,6 @@ uint32_t CompilerMSL::get_metal_resource_index(SPIRVariable &var, SPIRType::Base
|
||||
switch (basetype)
|
||||
{
|
||||
case SPIRType::Struct:
|
||||
if (execution.model == ExecutionModelVertex && next_metal_resource_index.msl_buffer == 0)
|
||||
next_metal_resource_index.msl_buffer = 1;
|
||||
return next_metal_resource_index.msl_buffer++;
|
||||
case SPIRType::Image:
|
||||
return next_metal_resource_index.msl_texture++;
|
||||
|
Loading…
Reference in New Issue
Block a user