From ea04ad12110df6b958c117f5d92f45813316cd70 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 11 Nov 2024 19:29:18 -0800 Subject: Add wasm binding to get reflection json. (#5536) Co-authored-by: Ellie Hermaszewska --- include/slang.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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); + } }; -- cgit v1.2.3