Skip to content
Snippets Groups Projects
  1. Feb 22, 2016
    • David Neto's avatar
      Add an example program for simple C++ API usage · 66d409cc
      David Neto authored
      The program demonstrates basic shader compilation using the Shaderc
      C++ API.  For clarity, each method is deliberately self-contained.
      
      Techniques demonstrated:
      - Preprocessing GLSL source text
      - Compiling a shader to SPIR-V assembly text
      - Compliing a shader to a SPIR-V binary module
      - Setting basic options: setting a preprocessor symbol.
      - Checking compilation status and extracting an error message.
      66d409cc
    • Andrew Woloszyn's avatar
      Added third_party license files. · 5f8d7d3f
      Andrew Woloszyn authored
      This lets us keep better track of licenses for our dependencies.
      5f8d7d3f
    • David Neto's avatar
      Use statically typed compilation results in C++ API · 92d05ce5
      David Neto authored
      Class shaderc::CompilationResult is a template over the element type for
      the compilation output. It has three specializations: for a SPIR-V
      binary module (with uint32_t element type), SPIR-V assembly text (char
      element type), and preprocessed source (char element type).
      
      The compilation output is accessed via cbegin(), cend() and begin()
      end() iterators.
      
      Test code updates:
      - Add 'using' declarations for all three compilation result
        classes.
      - Add const to compilation result variables, where possible.
      - IsValidSpv should take an SpvCompilationResult, and should not
        be parameterized over compilation result types.
      - IsValidSpv should take an SpvCompilationResult
      - Test PreprocessingOnlyOption should use a
        PreprocessedSourceCompilationResult variable instead of an
        AssemblyCompilationResult variable.
      
      Remove SetDisassemblyMode and SetPreprocessOnlyMode methods on the
      CompileOptions object so we can't get the wrong output by mixing up
      options with compilation methods.
      
      Removed FileCompiler members disassemble_ and preprocess_only_
      
      Remove Disassembly and PreprocessOnly options on shaderc_util::Compiler
      
      C API changes:
      
      - Use different compile functions in the C API for different output types.
      - Remove disassembly mode and preprocess-only mode calls.
      92d05ce5
  2. Feb 19, 2016
  3. Feb 18, 2016
  4. Feb 17, 2016
  5. Feb 16, 2016
  6. Feb 15, 2016
  7. Feb 14, 2016
  8. Feb 11, 2016
  9. Feb 08, 2016
  10. Feb 04, 2016
  11. Feb 03, 2016
  12. Feb 02, 2016
  13. Feb 01, 2016
  14. Jan 30, 2016
    • Andrew Woloszyn's avatar
      Enabled caching of glsl state. · d080537c
      Andrew Woloszyn authored
      We only Initialize/Finalize process every compile because there
      is a subset of options that interfere with internal glslang
      state. Until this is remedied in glslang, allow re-use of
      state except in the cases where we know state will get broken.
      d080537c
  15. Jan 27, 2016
  16. Jan 26, 2016
Loading