summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
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);
+ }
};