diff options
Diffstat (limited to 'tools/render-test/shader-input-layout.cpp')
| -rw-r--r-- | tools/render-test/shader-input-layout.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tools/render-test/shader-input-layout.cpp b/tools/render-test/shader-input-layout.cpp index b5b65f52d..37aa5dab6 100644 --- a/tools/render-test/shader-input-layout.cpp +++ b/tools/render-test/shader-input-layout.cpp @@ -138,7 +138,11 @@ namespace renderer_test { ShaderInputLayoutEntry entry; - if (parser.LookAhead("cbuffer")) + if (parser.LookAhead("array")) + { + entry.type = ShaderInputType::Array; + } + else if (parser.LookAhead("cbuffer")) { entry.type = ShaderInputType::Buffer; entry.bufferDesc.type = InputBufferType::ConstantBuffer; @@ -253,7 +257,15 @@ namespace renderer_test else if (word == "size") { parser.Read("="); - entry.textureDesc.size = parser.ReadInt(); + auto size = parser.ReadInt(); + if (entry.type == ShaderInputType::Array) + { + entry.arrayDesc.size = size; + } + else + { + entry.textureDesc.size = size; + } } else if (word == "random") { |
