From 0bb826f8b92aec330875d0b966c1f4a6b99988bf Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 1 May 2024 16:44:22 -0700 Subject: SPIRV: Fix performance issue when handling large arrays. (#4064) * SPIRV: Fix performance issue when handling large arrays. * Add test for packing. * Fix clang. --- tools/render-test/shader-input-layout.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/render-test/shader-input-layout.cpp') diff --git a/tools/render-test/shader-input-layout.cpp b/tools/render-test/shader-input-layout.cpp index 96f5db6e0..3012d45a4 100644 --- a/tools/render-test/shader-input-layout.cpp +++ b/tools/render-test/shader-input-layout.cpp @@ -222,6 +222,11 @@ namespace renderer_test parser.Read("="); val->bufferDesc.stride = parser.ReadInt(); } + else if (word == "count") + { + parser.Read("="); + val->bufferDesc.elementCount = parser.ReadInt(); + } else if (word == "counter") { parser.Read("="); -- cgit v1.2.3