Skip to content
  1. Sep 19, 2021
  2. Sep 17, 2021
  3. Sep 16, 2021
  4. Sep 15, 2021
  5. Sep 14, 2021
    • Jim Blandy's avatar
      [wgsl-in] Rework Load Rule handling and indirection. · 3fdd8592
      Jim Blandy authored
      Make the parser code more closely follow the spec's grammar around
      `unary_expression`, `postfix_expression`, and `singular_expression`.
      
      Change the handling of postfix expressions (indexing, member/component access,
      and swizzling) to apply the indirection at the appropriate time, resulting in
      code improvements on all output formats. For example, where we used to generate
      the following MSL:
      
          metal::float4 _e13 = bar.matrix[3];
          float b = _e13.x;
      
      we now generate, simply:
      
          float b = bar.matrix[3].x;
      
      Propagate WGSL reference types correctly, so that parenthesizing expressions no
      longer causes the Load Rule to be applied.
      
      Together with #1332 (already landed), this is a replacement for #1312, and
      unblocks #1352.
      
      Fixes #1351.
      3fdd8592
    • Dzmitry Malyshau's avatar
      Fix warnings in snapshots and spv-in · db80ed4f
      Dzmitry Malyshau authored
      db80ed4f
    • Jim Blandy's avatar
      c03427b1
  6. Sep 13, 2021
  7. Sep 12, 2021
  8. Sep 10, 2021
  9. Sep 09, 2021
  10. Sep 08, 2021