From eee68205636f26ac8060dbb2b1725fd3c80e54a8 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Wed, 27 Feb 2019 15:17:13 -0500 Subject: Hotfix/fix stdlib error reporting (#866) * * Add 'identity' version of bit casts (asint, asuint, asfloat) for scalar and vector * Added identity bit casts for matrix (cos no op). We don't support matrix asint on glsl targets * Added tests in bit-cast.slang * Use kIRPseudoOp_Pos for identity asuint/asint/asfloat casts. * * Stop crash if error in stdlib * Use the buildin source manager when compiling stdlib - fixes that line numbers are displayed * Typo fix * Output line directives for 'meta' slang souce files into stdlib * Improve comments and function names. --- source/slang/emit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/emit.cpp') diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp index 6260ac218..815f27bfe 100644 --- a/source/slang/emit.cpp +++ b/source/slang/emit.cpp @@ -6970,8 +6970,8 @@ String emitEntryPoint( String code = sharedContext.sb.ProduceString(); sharedContext.sb.Clear(); - // Now that we've emitted the code for all the declaratiosn in the file, - // it is time to stich together the final output. + // Now that we've emitted the code for all the declarations in the file, + // it is time to stitch together the final output. // There may be global-scope modifiers that we should emit now visitor.emitGLSLPreprocessorDirectives(); -- cgit v1.2.3