- Aug 02, 2015
-
-
John Kessenich authored
The new make-revision script regenerates glslang/Include/revision.h, used as it always has been, but made with a git-tag version and the the number of commits on master. I have a pre-commit hook that will automatically do this on master, likely often enough to work in practice, without needing pull requests to include it.
-
- Aug 01, 2015
-
-
-
John Kessenich authored
-
John Kessenich authored
-
- Jul 31, 2015
-
-
John Kessenich authored
Add mechanism for specifying names for source strings.
-
- Jul 29, 2015
-
-
Lei Zhang authored
Expose a new method setStringsWithLengthsAndNames() in the interface which allows the caller to set descriptive names for source strings. These names can be used in error messages.
-
John Kessenich authored
-
John Kessenich authored
Extend the syntax of #line and __FILE__ to support filename strings. The implementation is done via introducing a new extension GL_GOOGLE_cpp_style_line_directive using the extension framework. The purpose is to support cpp-style #line directives, which is required by #include.
-
- Jul 28, 2015
- Jul 27, 2015
-
-
Lei Zhang authored
According to the GLSL spec, the second parameter to #line should be an integer source string number and __FILE__ will be substituted with the integer source string number currently processed. This patch extends the syntax of #line and __FILE__. Now #line accepts as the second parameter a filename string quoted by double quotation marks. And if such a #line is set, __FILE__ will be substituted with the currently set filename string. The implementation is done via introducing a new extension GL_GOOGLE_cpp_style_line_directive using the extension framework. The purpose is to support cpp-style #line directives, which is required by #include.
-
John Kessenich authored
Scanning: 1) rationalize end-of-input everywhere, 2) prevent infinite loop at end-of-input, 3) use positive chars. Fixes issue #25. (char 255 aliased to -1 and missing tests for end of input). 1) All layers of input scanning now share a single EndOfInput value. This avoids translation of it across layers of encapsulation. 2) Some places looking for end of line were not stopping on EndOfInput. 3) Use of "char" for the input made char values > 127 be negative numbers. This allowed for aliasing of 255 to -1, etc. This is fixed by using unsigned char.
-
- Jul 26, 2015
-
-
John Kessenich authored
-
- Jul 25, 2015
-
-
John Kessenich authored
This is just for '\' that's not before a new line. Note the specification says it has no use other than as line continuation, but #error is a grey area. (There are no escape sequences.)
-
John Kessenich authored
Consolidate all token length limits (1024), including one bad one (80) hardcoded on the stack (issue #40, issue #41).
-
John Kessenich authored
Fix missing const qualifier on TUnorderedMap template type
-
Felix Kaaman authored
-
- Jul 24, 2015
-
-
John Kessenich authored
-
John Kessenich authored
Preprocessing line number handling
-
- Jul 23, 2015
-
-
Lei Zhang authored
Everytime we switch to a new source string, the line are reset. We need to reset lastLine and also output newlines appropriately.
-
Lei Zhang authored
SourceLineSynchronizer is added for keeping track of the last line number and output newlines appropriately if we switch to a new line in the preprocessor.
-
John Kessenich authored
AST -> SPV testing: Update test for using new TbdFunctionality() that is non-fatal and uniquifies printed TBDs.
-
John Kessenich authored
-
John Kessenich authored
-
- Jul 22, 2015
-
-
John Kessenich authored
-
John Kessenich authored
-
John Kessenich authored
-
John Kessenich authored
Only output explicit extension directives in preprocessing.
-
John Kessenich authored
-
John Kessenich authored
spv::Builder::Loop constructor inits all members.
-
David Neto authored
After construction, the Loop is effectively const. This perturbs the IDs in SPIR-V tests because the body block is created before generating any of the loop code, rather than only when the body is first referenced.
-
- Jul 21, 2015
-
-
John Kessenich authored
Issue #28: Correctly handle a single input argument conversion when the input argument is an aggregate.
-
Lei Zhang authored
Preprocessing output shouldn't contain extensions enabled as dependencies.
-
John Kessenich authored
-
John Kessenich authored
-
John Kessenich authored
-
John Kessenich authored
-
John Kessenich authored
Generate correctly structured do-while loops.
-
- Jul 20, 2015
-
-
John Kessenich authored
-
John Kessenich authored
-