Skip to content
Snippets Groups Projects
  1. Aug 10, 2015
  2. Aug 07, 2015
  3. Aug 06, 2015
  4. Aug 05, 2015
  5. Aug 03, 2015
  6. Aug 02, 2015
    • John Kessenich's avatar
      Version reporting: Restart active use of revision.h, now based on a git tag. · 0da9eaab
      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.
      0da9eaab
  7. Aug 01, 2015
  8. Jul 31, 2015
    • Lei Zhang's avatar
      Output wrapping #line directives for included content. · 1eed969b
      Lei Zhang authored
      Also changed the includer interface to let it return the actual
      full path of the included file.
      1eed969b
    • Lei Zhang's avatar
      Update scanner in TParseContext when changing the input stream. · 2b4ebbb1
      Lei Zhang authored
      After parsing a #include directive, we push a TokenizableString
      which contains the content of the included file into the input
      stack. Henceforth, tokens will be read from the newly pushed
      TokenizableString. However, the scanner in TParseContext still
      points to the previous input stream. We need to update the scanner
      to point to the new input stream inside TokenizableString. Thus,
      the setCurrent{String|Line|..} method in TParseContext updates
      the status of the correct input stream. After finishing the newly
      pushed TokenizableString, we need to restore the scanner to the
      previous input stream.
      2b4ebbb1
    • Lei Zhang's avatar
      Use extension framework to enable #include directive. · 9c1280b2
      Lei Zhang authored
      This patch introduces a new extension, GL_GOOGLE_include_directive,
      to enable support #include directives. It depends on the extension
      GL_GOOGLE_cpp_style_line_directive.
      9c1280b2
    • Dejan Mircevski's avatar
      Add #include processing to glslang (though turned off by default). · 7be4b828
      Dejan Mircevski authored
      When an include directive is recognized by the preprocessor, it
      executes a callback on the filepath argument to obtain the file
      contents.  That way the compilation client can deal with the file
      system, include paths, etc.
      
      Currently only accepts quoted filepaths -- no angle brackets yet.
      7be4b828
    • John Kessenich's avatar
      Merge pull request #45 from google/source-string-name · 1363fcd6
      John Kessenich authored
      Add mechanism for specifying names for source strings.
      1363fcd6
  9. Jul 29, 2015
  10. Jul 28, 2015
  11. Jul 27, 2015
    • Lei Zhang's avatar
      Extend the syntax of #line and __FILE__ to support filename strings. · 5011fbeb
      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.
      5011fbeb
    • John Kessenich's avatar
      Scanning: 1) rationalize end-of-input everywhere, 2) prevent infinite loop at... · c777fc2c
      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.
      c777fc2c
  12. Jul 26, 2015
  13. Jul 25, 2015
  14. Jul 24, 2015
Loading