Skip to content
Snippets Groups Projects
  1. Jul 31, 2017
  2. Jul 29, 2017
  3. Jul 28, 2017
  4. Jul 27, 2017
  5. Jul 26, 2017
    • John Kessenich's avatar
      Merge pull request #997 from LoopDawg/clipcull-semantic · f1f5058a
      John Kessenich authored
      HLSL: handle multiple clip/cull semantic IDs
      f1f5058a
    • LoopDawg's avatar
      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).
      307b6507
    • John Kessenich's avatar
  6. Jul 25, 2017
  7. Jul 23, 2017
  8. Jul 21, 2017
  9. Jul 20, 2017
  10. Jul 18, 2017
  11. Jul 16, 2017
  12. Jul 15, 2017
  13. Jul 14, 2017
  14. Jul 13, 2017
  15. Jul 12, 2017
  16. Jul 11, 2017
    • LoopDawg's avatar
      WIP: HLSL: support global const initializers from non-constant rvalues · 0fca0baf
      LoopDawg authored
      Semantic test left over from other source languages is removed, since this is permitted by HLSL.
      Also, to support the functionality, a targeted test is performed for this case and it is
      turned into a EvqGlobal qualifier to create an AST initialization segment when needed.
      
      Constness is now propagated up aggregate chains during initializer construction.  This
      handles hierarchical cases such as the distinction between:
      
          static const float2 a[2] = { { 1, 2 }, { 3, 4} };
      
      vs
      
          static const float2 a[2] = { { 1, 2 }, { cbuffer_member, 4} };
      
      The first of which can use a first class constant initalization, and the second cannot.
      0fca0baf
  17. Jul 07, 2017
Loading