summaryrefslogtreecommitdiffstats
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-02-01 13:26:03 -0800
committerGitHub <noreply@github.com>2024-02-01 13:26:03 -0800
commitf370947c63bca707b9cfde7b18e67298f5fbace3 (patch)
tree1180cdb722529c8157f673fc68a2d45f00b5e827 /source/slang/slang.cpp
parenta2d2018a8be41aecd2c1810db8556e0c07595fb9 (diff)
FP16 atomics for RWByteAddresBuffer, fp32 atomics for images. (#3536)
* FP16 atomics for RWByteAddresBuffer, fp32 atomics for images. * Fix spelling. * Add overload. * Fix test failures. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang.cpp')
-rw-r--r--source/slang/slang.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index a027340b5..4ce78ee96 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -4866,6 +4866,9 @@ void Session::addBuiltinSource(
SLANG_UNEXPECTED("error in Slang standard library");
}
+ // Compiling stdlib should not yield any warnings.
+ SLANG_ASSERT(sink.outputBuffer.getLength() == 0);
+
// Extract the AST for the code we just parsed
auto module = compileRequest->translationUnits[translationUnitIndex]->getModule();
auto moduleDecl = module->getModuleDecl();