From ca40b70b60222293d33889cacfef89426c505c18 Mon Sep 17 00:00:00 2001 From: boykopovar Date: Wed, 7 Oct 2026 09:00:36 +0300 Subject: [PATCH] fix(shader): correct descriptor size check in disk cache decoder --- core/shader/recompiler/ShaderDiskCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); });