From f370947c63bca707b9cfde7b18e67298f5fbace3 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 1 Feb 2024 13:26:03 -0800 Subject: 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 --- source/slang/slang.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/slang/slang.cpp') 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(); -- cgit v1.2.3