diff --git a/core/shader/recompiler/ShaderDiskCache.cpp b/core/shader/recompiler/ShaderDiskCache.cpp index fc52ad4be..cbc0d4566 100644 --- a/core/shader/recompiler/ShaderDiskCache.cpp +++ b/core/shader/recompiler/ShaderDiskCache.cpp @@ -416,7 +416,7 @@ void decodeLayout(Reader& reader, IrBindingLayout& layout) { reader.Value(layout.dispatchThreadLimit); reader.Value(layout.runtimeImageCount); reader.Values(layout.userDataRegisters); - reader.List(layout.descriptors, static_cast(RuntimeAbi::Binding::Count), [](Reader& in, IrDescriptorBinding& descriptor) { + reader.List(layout.descriptors, 12, [](Reader& in, IrDescriptorBinding& descriptor) { in.Value(descriptor.kind); in.Values(descriptor.resources); });