mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-09 22:00:05 +00:00
Buffer counter modified
This commit is contained in:
parent
742ec49946
commit
20d2b59c8d
@ -1523,6 +1523,7 @@ 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