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 /source/slang/slang-reflection-json.cpp | |
| parent | 3b7d0e01cce61a809757a3fd4c1b9f922a883c8b (diff) | |
Add wasm binding to get reflection json. (#5536)
Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>
Diffstat (limited to 'source/slang/slang-reflection-json.cpp')
| -rw-r--r-- | source/slang/slang-reflection-json.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-reflection-json.cpp b/source/slang/slang-reflection-json.cpp index c7d11a6c3..6c00c8f07 100644 --- a/source/slang/slang-reflection-json.cpp +++ b/source/slang/slang-reflection-json.cpp @@ -1071,7 +1071,7 @@ static void emitReflectionEntryPointJSON( } // If code generation has been performed, print out the parameter usage by this entry point. - if ((request->getCompileFlags() & SLANG_COMPILE_FLAG_NO_CODEGEN) == 0) + if (request && (request->getCompileFlags() & SLANG_COMPILE_FLAG_NO_CODEGEN) == 0) { writer << ",\n\"bindings\": [\n"; writer.indent(); |
