summaryrefslogtreecommitdiffstats
path: root/source/slang/emit.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2019-02-27 15:17:13 -0500
committerGitHub <noreply@github.com>2019-02-27 15:17:13 -0500
commiteee68205636f26ac8060dbb2b1725fd3c80e54a8 (patch)
treeb07d0be17046a763d80b04b211dd6869bff2bd9d /source/slang/emit.cpp
parent8ac4452754292b74fa6bf2713dd9f1458ce5243d (diff)
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.
Diffstat (limited to 'source/slang/emit.cpp')
-rw-r--r--source/slang/emit.cpp4
1 files changed, 2 insertions, 2 deletions
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();