summaryrefslogtreecommitdiffstats
path: root/source/core
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-08-12 13:14:15 -0700
committerGitHub <noreply@github.com>2021-08-12 13:14:15 -0700
commit6406523511037987d8b8ab881aea41389afd57eb (patch)
tree79f24b6cba377340c2f4d3dcf9fed78fc586f3e0 /source/core
parent389d21d982da34815b65b10cae63088c397eecc8 (diff)
Further implementation of SPIRV direct emit. (#1920)
* Further implementation of SPIRV direct emit. This change implements: - Struct, Vector, Matrix and Unsized Array types. - Basic arithmetic opcodes, vector construct, swizzle etc. - getElementPtr, getElement, fieldAddress, extractField. - SPIRV target intrinsics with SPIRV asm code in stdlib. - RWStructuredBuffer and StructuredBuffer. - Pointer storage class propagation. - Control flow. * Fix.
Diffstat (limited to 'source/core')
-rw-r--r--source/core/slang-token-reader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/slang-token-reader.h b/source/core/slang-token-reader.h
index 0d59eea76..26539732c 100644
--- a/source/core/slang-token-reader.h
+++ b/source/core/slang-token-reader.h
@@ -73,7 +73,7 @@ namespace Misc {
TokenType Type = TokenType::Unknown;
String Content;
CodePosition Position;
- TokenFlags flags;
+ TokenFlags flags = 0;
Token() = default;
Token(TokenType type, const String & content, int line, int col, int pos, String fileName, TokenFlags flags = 0)
: flags(flags)