Merge pull request #1663 from billhollings/metal-arg-buff-padding-patch

MSL: Minor last minute patch for MoltenVK Vulkan SDK release tomorrow (Tuesday) - RUSH
This commit is contained in:
Hans-Kristian Arntzen 2021-04-26 20:43:33 +02:00 committed by GitHub
commit 995c7981cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15583,10 +15583,6 @@ void CompilerMSL::analyze_argument_buffers()
if (elem_cnt == 0)
elem_cnt = get_resource_array_size(var.self);
// And if the member is a combined image sampler, it takes double the slots
if (type.basetype == SPIRType::SampledImage)
elem_cnt *= 2;
next_arg_buff_index += elem_cnt;
}