summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-11-11 19:29:18 -0800
committerGitHub <noreply@github.com>2024-11-12 11:29:18 +0800
commitea04ad12110df6b958c117f5d92f45813316cd70 (patch)
treefb5c90178425d3fcbd0c92e6d89d0b5835090756 /include
parent3b7d0e01cce61a809757a3fd4c1b9f922a883c8b (diff)
Add wasm binding to get reflection json. (#5536)
Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/slang.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/slang.h b/include/slang.h
index 0e6724373..5e64ce0b9 100644
--- a/include/slang.h
+++ b/include/slang.h
@@ -3322,6 +3322,11 @@ struct ShaderReflection
return (VariableLayoutReflection*)spReflection_getGlobalParamsVarLayout(
(SlangReflection*)this);
}
+
+ SlangResult toJson(ISlangBlob** outBlob)
+ {
+ return spReflection_ToJson((SlangReflection*)this, nullptr, outBlob);
+ }
};