1. 15 May, 2017 3 commits
    • WIP: track declared builtin type [proposal] · a4bfed12
      steve-lunarg authored
      Marking as WIP since it might deserve discussion or at least explicit consideration.
      
      During type sanitization, the TQualifier's TBuiltInVariable type is lost.  However,
      sometimes it's needed downstream.  There were already two methods in use to track
      it through to places it was needed: one in the TParameter, and one in a map in the
      HlslParseContext used for structured buffers.
      
      The latter was going to be insufficient when SB types with counters are passed to
      user functions, and it's proving awkward to track the data to where it's needed.
      This PR holds a proposal: track the original declared builtin type in the TType,
      so it's trivially available where needed.
      
      This lets the other two mechanisms be removed (and they are in this PR).  There's a
      side benefit of not losing certain types of information before the reflection interface.
      
      This PR is only that proposal, so it changes no test results.  If it's acceptable,
      I'll use it for the last piece of SB counter functionality.
    • Merge pull request #890 from LoopDawg/mip-operator · 1a010b83
      John Kessenich authored
      HLSL: add .mips[][] operator for texture types
    • HLSL: add .mips[][] operator for texture types · 726bf96a
      LoopDawg authored
      This implements mytex.mips[mip][coord] for texture types.  There is
      some error testing, but not comprehensive.  The constructs can be
      nested, e.g in this case the inner .mips is parsed before the completion
      of the outer [][] operator.
      
         tx.mips[tx.mips[a][b].x][c]
  2. 13 May, 2017 4 commits
  3. 12 May, 2017 3 commits
  4. 10 May, 2017 6 commits
  5. 08 May, 2017 2 commits
  6. 05 May, 2017 1 commit
  7. 04 May, 2017 1 commit
  8. 03 May, 2017 3 commits
  9. 02 May, 2017 2 commits
  10. 30 Apr, 2017 1 commit
  11. 29 Apr, 2017 4 commits
  12. 28 Apr, 2017 6 commits
  13. 27 Apr, 2017 2 commits
  14. 26 Apr, 2017 1 commit
    • HLSL: add standard sample position return form of GetSamplePosition method · d4d0b297
      steve-lunarg authored
      Multisample textures support a GetSamplePosition() method intended to query
      positions given a sample index.  This cannot be truly implemented in SPIR-V,
      but #753 requested returning standard positions for the 1..16 cases, which
      this PR adds.  Anything besides that returns (0,0).  If the standard positions
      are not used, this will be wrong.
      
      This should be revisited when there is a real query available.
  15. 25 Apr, 2017 1 commit