1. 11 Aug, 2017 2 commits
  2. 10 Aug, 2017 1 commit
  3. 09 Aug, 2017 2 commits
  4. 08 Aug, 2017 1 commit
  5. 07 Aug, 2017 3 commits
    • Merge pull request #1011 from LoopDawg/pragma-pack-matrix · eaed0682
      John Kessenich authored
      HLSL: implement #pragma pack_matrix(layout)
    • HLSL: implement #pragma pack_matrix(layout) · 6a264bed
      LoopDawg authored
      This adds support for #pragma pack_matrix() to the HLSL front end.
      
      The pragma sets the default matrix layout for subsequent unqualified matrices
      in structs or buffers. Explicit qualification overrides the pragma value. Matrix
      layout is not permitted at the structure level in HLSL, so only leaves which are
      matrix types can be so qualified.
      
      Note that due to the semantic (not layout) difference in first matrix indirections
      between HLSL and SPIR-V, the sense of row and column major are flipped.  That's
      independent of this PR: just a factor to note.  A column_major qualifier appears
      as a RowMajor member decoration in SPIR-V modules, and vice versa.
    • HLSL: Correct which things flattening tracks for linkage, based on caller, not type. · d5aedc19
      John Kessenich authored
      Includes related trackLinkage() code removal and name improvements.
  6. 05 Aug, 2017 1 commit
  7. 04 Aug, 2017 5 commits
  8. 02 Aug, 2017 1 commit
  9. 01 Aug, 2017 1 commit
  10. 31 Jul, 2017 7 commits
  11. 29 Jul, 2017 2 commits
  12. 28 Jul, 2017 3 commits
  13. 27 Jul, 2017 2 commits
  14. 26 Jul, 2017 3 commits
    • Merge pull request #997 from LoopDawg/clipcull-semantic · f1f5058a
      John Kessenich authored
      HLSL: handle multiple clip/cull semantic IDs
    • HLSL: handle multiple clip/cull semantic IDs · 307b6507
      LoopDawg authored
      HLSL allows several variables to be declared.  There are packing rules involved:
      e.g, a float3 and a float1 can be packed into a single array[4], while for a
      float3 and another float3, the second one will skip the third array entry to
      avoid straddling
      
      This is implements that ability.  Because there can be multiple variables involved,
      and the final output array will often be a different type altogether (to fuse
      the values into a single destination), a new variable is synthesized, unlike the prior
      clip/cull support which used the declared variable.  The new variable name is
      taken from one of the declared ones, so the old tests are unchanged.
      
      Several new tests are added to test various packing scenarios.
      
      Only two semantic IDs are supported: 0, and 1, per HLSL rules.  This is
      encapsulated in
      
           static const int maxClipCullRegs = 2;
      
      and the algorithm (probably :) ) generalizes to larger values, although there
      are a few issues around how HLSL would pack (e.g, would 4 scalars be packed into
      a single HLSL float4 out reg?  Probably, and this algorithm assumes so).
  15. 25 Jul, 2017 2 commits
  16. 23 Jul, 2017 2 commits
  17. 21 Jul, 2017 2 commits