From efa8d1ab40c24a15678dd4143c9cc7b7b64e04d8 Mon Sep 17 00:00:00 2001 From: dubiousconst282 <87553666+dubiousconst282@users.noreply.github.com> Date: Wed, 24 Jul 2024 18:20:06 -0300 Subject: Add generic descriptor indexing intrinsic (#4389) * Add ResourceArray intrinsic type * Move aliased parameter generation to GLSL legalization * Add DynamicResourceEntry type for proxying layout of GenericResourceArray * Reimplement as DynamicResource * Add reflection test * Don't reuse alias cache between different parameters * Add dynamic cast extensions for buffer types * Minor format fix * Fix VarDecl diagnostics after finding non-appliable initializer candidates --------- Co-authored-by: Yong He --- tools/slang-reflection-test/slang-reflection-test-main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools') diff --git a/tools/slang-reflection-test/slang-reflection-test-main.cpp b/tools/slang-reflection-test/slang-reflection-test-main.cpp index 8866661b8..fb8d4e30a 100644 --- a/tools/slang-reflection-test/slang-reflection-test-main.cpp +++ b/tools/slang-reflection-test/slang-reflection-test-main.cpp @@ -827,6 +827,10 @@ static void emitReflectionTypeInfoJSON( writer.maybeComma(); emitReflectionNameInfoJSON(writer, type->getName()); break; + case slang::TypeReflection::Kind::DynamicResource: + writer.maybeComma(); + writer << "\"kind\": \"DynamicResource\""; + break; default: assert(!"unhandled case"); break; -- cgit v1.2.3