summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-reflection-json.cpp
diff options
context:
space:
mode:
authorDevon <devonrutledge03@gmail.com>2025-02-27 18:52:14 -0700
committerGitHub <noreply@github.com>2025-02-27 17:52:14 -0800
commitcd20e94af9f384c03e8be69f6c8ce9e97212cc9b (patch)
tree6e67aab570d8e87ca92ff989126abf3613fc97c1 /source/slang/slang-reflection-json.cpp
parent6f2ce72b038b34e84819ddfc5d658166ed879eaa (diff)
Add inner texture type to reflection json (#6416)
* Add inner texture type to reflection json * Add expected result of test * Adjust test expected results * Fix ci test result --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/slang/slang-reflection-json.cpp')
-rw-r--r--source/slang/slang-reflection-json.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/slang-reflection-json.cpp b/source/slang/slang-reflection-json.cpp
index 993832ad6..4e8b6b2a4 100644
--- a/source/slang/slang-reflection-json.cpp
+++ b/source/slang/slang-reflection-json.cpp
@@ -514,6 +514,10 @@ static void emitReflectionTypeInfoJSON(PrettyWriter& writer, slang::TypeReflecti
break;
case SLANG_STRUCTURED_BUFFER:
+ case SLANG_TEXTURE_1D:
+ case SLANG_TEXTURE_2D:
+ case SLANG_TEXTURE_3D:
+ case SLANG_TEXTURE_CUBE:
if (auto resultType = type->getResourceResultType())
{
writer.maybeComma();