diff options
| author | Yong He <yonghe@outlook.com> | 2024-11-11 19:29:18 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-12 11:29:18 +0800 |
| commit | ea04ad12110df6b958c117f5d92f45813316cd70 (patch) | |
| tree | fb5c90178425d3fcbd0c92e6d89d0b5835090756 /include | |
| parent | 3b7d0e01cce61a809757a3fd4c1b9f922a883c8b (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.h | 5 |
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); + } }; |
