commit | c5f7e8f0bc9983a9010c5353932601b40bd45ae7 | [log] [tgz] |
---|---|---|

author | Zhaoming Jiang <zhaoming.jiang@intel.com> | Fri Jun 24 17:21:59 2022 +0000 |

committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jun 24 17:21:59 2022 +0000 |

tree | 1131fa9704985cbe30152042be33b8f7990505e1 | |

parent | f47887d2073504bf13152ff5ae142a6653ba322c [diff] |

tint: Fix emitting identity matrix ctor in HLSL This patch fix the issue of identity matrix constructors in HLSL. This patch also fix dawn e2e tests for identity matrix constructors and zero matrix constructors. Bug: tint:1596, tint:1545 Change-Id: I6c41eb299c1d5f89cf18720611f450abae26d3f4 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/94042 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>

- src/tint/writer/hlsl/generator_impl.cc[diff]
- src/tint/writer/hlsl/generator_impl_constructor_test.cc[diff]
- test/tint/expressions/type_ctor/mat2x2/explicit/identity/f32.wgsl[diff]
- test/tint/expressions/type_ctor/mat2x2/explicit/identity/f32.wgsl.expected.glsl[diff]
- test/tint/expressions/type_ctor/mat2x2/explicit/identity/f32.wgsl.expected.hlsl[diff]
- test/tint/expressions/type_ctor/mat2x2/explicit/identity/f32.wgsl.expected.msl[diff]
- test/tint/expressions/type_ctor/mat2x2/explicit/identity/f32.wgsl.expected.spvasm[diff]
- test/tint/expressions/type_ctor/mat2x2/explicit/identity/f32.wgsl.expected.wgsl[diff]
- test/tint/expressions/type_ctor/mat2x2/inferred/identity/f32.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x2/inferred/identity/f32.wgsl.expected.glsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x2/inferred/identity/f32.wgsl.expected.hlsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x2/inferred/identity/f32.wgsl.expected.msl[Added - diff]
- test/tint/expressions/type_ctor/mat2x2/inferred/identity/f32.wgsl.expected.spvasm[Added - diff]
- test/tint/expressions/type_ctor/mat2x2/inferred/identity/f32.wgsl.expected.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x2/zero/f32.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x2/zero/f32.wgsl.expected.glsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x2/zero/f32.wgsl.expected.hlsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x2/zero/f32.wgsl.expected.msl[Added - diff]
- test/tint/expressions/type_ctor/mat2x2/zero/f32.wgsl.expected.spvasm[Added - diff]
- test/tint/expressions/type_ctor/mat2x2/zero/f32.wgsl.expected.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x3/explicit/identity/f32.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x3/explicit/identity/f32.wgsl.expected.glsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x3/explicit/identity/f32.wgsl.expected.hlsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x3/explicit/identity/f32.wgsl.expected.msl[Added - diff]
- test/tint/expressions/type_ctor/mat2x3/explicit/identity/f32.wgsl.expected.spvasm[Added - diff]
- test/tint/expressions/type_ctor/mat2x3/explicit/identity/f32.wgsl.expected.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x3/inferred/identity/f32.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x3/inferred/identity/f32.wgsl.expected.glsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x3/inferred/identity/f32.wgsl.expected.hlsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x3/inferred/identity/f32.wgsl.expected.msl[Added - diff]
- test/tint/expressions/type_ctor/mat2x3/inferred/identity/f32.wgsl.expected.spvasm[Added - diff]
- test/tint/expressions/type_ctor/mat2x3/inferred/identity/f32.wgsl.expected.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x3/zero/f32.wgsl[Renamed from test/tint/expressions/type_ctor/mat2x3/identity/f32.wgsl - diff]
- test/tint/expressions/type_ctor/mat2x3/zero/f32.wgsl.expected.glsl[Renamed from test/tint/expressions/type_ctor/mat2x3/identity/f32.wgsl.expected.glsl - diff]
- test/tint/expressions/type_ctor/mat2x3/zero/f32.wgsl.expected.hlsl[Renamed from test/tint/expressions/type_ctor/mat2x3/identity/f32.wgsl.expected.hlsl - diff]
- test/tint/expressions/type_ctor/mat2x3/zero/f32.wgsl.expected.msl[Renamed from test/tint/expressions/type_ctor/mat2x3/identity/f32.wgsl.expected.msl - diff]
- test/tint/expressions/type_ctor/mat2x3/zero/f32.wgsl.expected.spvasm[Renamed from test/tint/expressions/type_ctor/mat2x3/identity/f32.wgsl.expected.spvasm - diff]
- test/tint/expressions/type_ctor/mat2x3/zero/f32.wgsl.expected.wgsl[Renamed from test/tint/expressions/type_ctor/mat2x3/identity/f32.wgsl.expected.wgsl - diff]
- test/tint/expressions/type_ctor/mat2x4/explicit/identity/f32.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x4/explicit/identity/f32.wgsl.expected.glsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x4/explicit/identity/f32.wgsl.expected.hlsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x4/explicit/identity/f32.wgsl.expected.msl[Added - diff]
- test/tint/expressions/type_ctor/mat2x4/explicit/identity/f32.wgsl.expected.spvasm[Added - diff]
- test/tint/expressions/type_ctor/mat2x4/explicit/identity/f32.wgsl.expected.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x4/inferred/identity/f32.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x4/inferred/identity/f32.wgsl.expected.glsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x4/inferred/identity/f32.wgsl.expected.hlsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x4/inferred/identity/f32.wgsl.expected.msl[Added - diff]
- test/tint/expressions/type_ctor/mat2x4/inferred/identity/f32.wgsl.expected.spvasm[Added - diff]
- test/tint/expressions/type_ctor/mat2x4/inferred/identity/f32.wgsl.expected.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat2x4/zero/f32.wgsl[Renamed from test/tint/expressions/type_ctor/mat2x4/identity/f32.wgsl - diff]
- test/tint/expressions/type_ctor/mat2x4/zero/f32.wgsl.expected.glsl[Renamed from test/tint/expressions/type_ctor/mat2x4/identity/f32.wgsl.expected.glsl - diff]
- test/tint/expressions/type_ctor/mat2x4/zero/f32.wgsl.expected.hlsl[Renamed from test/tint/expressions/type_ctor/mat2x4/identity/f32.wgsl.expected.hlsl - diff]
- test/tint/expressions/type_ctor/mat2x4/zero/f32.wgsl.expected.msl[Renamed from test/tint/expressions/type_ctor/mat2x4/identity/f32.wgsl.expected.msl - diff]
- test/tint/expressions/type_ctor/mat2x4/zero/f32.wgsl.expected.spvasm[Renamed from test/tint/expressions/type_ctor/mat2x4/identity/f32.wgsl.expected.spvasm - diff]
- test/tint/expressions/type_ctor/mat2x4/zero/f32.wgsl.expected.wgsl[Renamed from test/tint/expressions/type_ctor/mat2x4/identity/f32.wgsl.expected.wgsl - diff]
- test/tint/expressions/type_ctor/mat3x2/explicit/identity/f32.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x2/explicit/identity/f32.wgsl.expected.glsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x2/explicit/identity/f32.wgsl.expected.hlsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x2/explicit/identity/f32.wgsl.expected.msl[Added - diff]
- test/tint/expressions/type_ctor/mat3x2/explicit/identity/f32.wgsl.expected.spvasm[Added - diff]
- test/tint/expressions/type_ctor/mat3x2/explicit/identity/f32.wgsl.expected.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x2/inferred/identity/f32.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x2/inferred/identity/f32.wgsl.expected.glsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x2/inferred/identity/f32.wgsl.expected.hlsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x2/inferred/identity/f32.wgsl.expected.msl[Added - diff]
- test/tint/expressions/type_ctor/mat3x2/inferred/identity/f32.wgsl.expected.spvasm[Added - diff]
- test/tint/expressions/type_ctor/mat3x2/inferred/identity/f32.wgsl.expected.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x2/zero/f32.wgsl[Renamed from test/tint/expressions/type_ctor/mat3x2/identity/f32.wgsl - diff]
- test/tint/expressions/type_ctor/mat3x2/zero/f32.wgsl.expected.glsl[Renamed from test/tint/expressions/type_ctor/mat3x2/identity/f32.wgsl.expected.glsl - diff]
- test/tint/expressions/type_ctor/mat3x2/zero/f32.wgsl.expected.hlsl[Renamed from test/tint/expressions/type_ctor/mat3x2/identity/f32.wgsl.expected.hlsl - diff]
- test/tint/expressions/type_ctor/mat3x2/zero/f32.wgsl.expected.msl[Renamed from test/tint/expressions/type_ctor/mat3x2/identity/f32.wgsl.expected.msl - diff]
- test/tint/expressions/type_ctor/mat3x2/zero/f32.wgsl.expected.spvasm[Renamed from test/tint/expressions/type_ctor/mat3x2/identity/f32.wgsl.expected.spvasm - diff]
- test/tint/expressions/type_ctor/mat3x2/zero/f32.wgsl.expected.wgsl[Renamed from test/tint/expressions/type_ctor/mat3x2/identity/f32.wgsl.expected.wgsl - diff]
- test/tint/expressions/type_ctor/mat3x3/explicit/identity/f32.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x3/explicit/identity/f32.wgsl.expected.glsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x3/explicit/identity/f32.wgsl.expected.hlsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x3/explicit/identity/f32.wgsl.expected.msl[Added - diff]
- test/tint/expressions/type_ctor/mat3x3/explicit/identity/f32.wgsl.expected.spvasm[Added - diff]
- test/tint/expressions/type_ctor/mat3x3/explicit/identity/f32.wgsl.expected.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x3/inferred/identity/f32.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x3/inferred/identity/f32.wgsl.expected.glsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x3/inferred/identity/f32.wgsl.expected.hlsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x3/inferred/identity/f32.wgsl.expected.msl[Added - diff]
- test/tint/expressions/type_ctor/mat3x3/inferred/identity/f32.wgsl.expected.spvasm[Added - diff]
- test/tint/expressions/type_ctor/mat3x3/inferred/identity/f32.wgsl.expected.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x3/zero/f32.wgsl[Renamed from test/tint/expressions/type_ctor/mat3x3/identity/f32.wgsl - diff]
- test/tint/expressions/type_ctor/mat3x3/zero/f32.wgsl.expected.glsl[Renamed from test/tint/expressions/type_ctor/mat3x3/identity/f32.wgsl.expected.glsl - diff]
- test/tint/expressions/type_ctor/mat3x3/zero/f32.wgsl.expected.hlsl[Renamed from test/tint/expressions/type_ctor/mat3x3/identity/f32.wgsl.expected.hlsl - diff]
- test/tint/expressions/type_ctor/mat3x3/zero/f32.wgsl.expected.msl[Renamed from test/tint/expressions/type_ctor/mat3x3/identity/f32.wgsl.expected.msl - diff]
- test/tint/expressions/type_ctor/mat3x3/zero/f32.wgsl.expected.spvasm[Renamed from test/tint/expressions/type_ctor/mat3x3/identity/f32.wgsl.expected.spvasm - diff]
- test/tint/expressions/type_ctor/mat3x3/zero/f32.wgsl.expected.wgsl[Renamed from test/tint/expressions/type_ctor/mat3x3/identity/f32.wgsl.expected.wgsl - diff]
- test/tint/expressions/type_ctor/mat3x4/explicit/identity/f32.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x4/explicit/identity/f32.wgsl.expected.glsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x4/explicit/identity/f32.wgsl.expected.hlsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x4/explicit/identity/f32.wgsl.expected.msl[Added - diff]
- test/tint/expressions/type_ctor/mat3x4/explicit/identity/f32.wgsl.expected.spvasm[Added - diff]
- test/tint/expressions/type_ctor/mat3x4/explicit/identity/f32.wgsl.expected.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x4/inferred/identity/f32.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x4/inferred/identity/f32.wgsl.expected.glsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x4/inferred/identity/f32.wgsl.expected.hlsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x4/inferred/identity/f32.wgsl.expected.msl[Added - diff]
- test/tint/expressions/type_ctor/mat3x4/inferred/identity/f32.wgsl.expected.spvasm[Added - diff]
- test/tint/expressions/type_ctor/mat3x4/inferred/identity/f32.wgsl.expected.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat3x4/zero/f32.wgsl[Renamed from test/tint/expressions/type_ctor/mat3x4/identity/f32.wgsl - diff]
- test/tint/expressions/type_ctor/mat3x4/zero/f32.wgsl.expected.glsl[Renamed from test/tint/expressions/type_ctor/mat3x4/identity/f32.wgsl.expected.glsl - diff]
- test/tint/expressions/type_ctor/mat3x4/zero/f32.wgsl.expected.hlsl[Renamed from test/tint/expressions/type_ctor/mat3x4/identity/f32.wgsl.expected.hlsl - diff]
- test/tint/expressions/type_ctor/mat3x4/zero/f32.wgsl.expected.msl[Renamed from test/tint/expressions/type_ctor/mat3x4/identity/f32.wgsl.expected.msl - diff]
- test/tint/expressions/type_ctor/mat3x4/zero/f32.wgsl.expected.spvasm[Renamed from test/tint/expressions/type_ctor/mat3x4/identity/f32.wgsl.expected.spvasm - diff]
- test/tint/expressions/type_ctor/mat3x4/zero/f32.wgsl.expected.wgsl[Renamed from test/tint/expressions/type_ctor/mat3x4/identity/f32.wgsl.expected.wgsl - diff]
- test/tint/expressions/type_ctor/mat4x2/explicit/identity/f32.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x2/explicit/identity/f32.wgsl.expected.glsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x2/explicit/identity/f32.wgsl.expected.hlsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x2/explicit/identity/f32.wgsl.expected.msl[Added - diff]
- test/tint/expressions/type_ctor/mat4x2/explicit/identity/f32.wgsl.expected.spvasm[Added - diff]
- test/tint/expressions/type_ctor/mat4x2/explicit/identity/f32.wgsl.expected.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x2/inferred/identity/f32.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x2/inferred/identity/f32.wgsl.expected.glsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x2/inferred/identity/f32.wgsl.expected.hlsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x2/inferred/identity/f32.wgsl.expected.msl[Added - diff]
- test/tint/expressions/type_ctor/mat4x2/inferred/identity/f32.wgsl.expected.spvasm[Added - diff]
- test/tint/expressions/type_ctor/mat4x2/inferred/identity/f32.wgsl.expected.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x2/zero/f32.wgsl[Renamed from test/tint/expressions/type_ctor/mat4x2/identity/f32.wgsl - diff]
- test/tint/expressions/type_ctor/mat4x2/zero/f32.wgsl.expected.glsl[Renamed from test/tint/expressions/type_ctor/mat4x2/identity/f32.wgsl.expected.glsl - diff]
- test/tint/expressions/type_ctor/mat4x2/zero/f32.wgsl.expected.hlsl[Renamed from test/tint/expressions/type_ctor/mat4x2/identity/f32.wgsl.expected.hlsl - diff]
- test/tint/expressions/type_ctor/mat4x2/zero/f32.wgsl.expected.msl[Renamed from test/tint/expressions/type_ctor/mat4x2/identity/f32.wgsl.expected.msl - diff]
- test/tint/expressions/type_ctor/mat4x2/zero/f32.wgsl.expected.spvasm[Renamed from test/tint/expressions/type_ctor/mat4x2/identity/f32.wgsl.expected.spvasm - diff]
- test/tint/expressions/type_ctor/mat4x2/zero/f32.wgsl.expected.wgsl[Renamed from test/tint/expressions/type_ctor/mat4x2/identity/f32.wgsl.expected.wgsl - diff]
- test/tint/expressions/type_ctor/mat4x3/explicit/identity/f32.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x3/explicit/identity/f32.wgsl.expected.glsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x3/explicit/identity/f32.wgsl.expected.hlsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x3/explicit/identity/f32.wgsl.expected.msl[Added - diff]
- test/tint/expressions/type_ctor/mat4x3/explicit/identity/f32.wgsl.expected.spvasm[Added - diff]
- test/tint/expressions/type_ctor/mat4x3/explicit/identity/f32.wgsl.expected.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x3/inferred/identity/f32.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x3/inferred/identity/f32.wgsl.expected.glsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x3/inferred/identity/f32.wgsl.expected.hlsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x3/inferred/identity/f32.wgsl.expected.msl[Added - diff]
- test/tint/expressions/type_ctor/mat4x3/inferred/identity/f32.wgsl.expected.spvasm[Added - diff]
- test/tint/expressions/type_ctor/mat4x3/inferred/identity/f32.wgsl.expected.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x3/zero/f32.wgsl[Renamed from test/tint/expressions/type_ctor/mat4x3/identity/f32.wgsl - diff]
- test/tint/expressions/type_ctor/mat4x3/zero/f32.wgsl.expected.glsl[Renamed from test/tint/expressions/type_ctor/mat4x3/identity/f32.wgsl.expected.glsl - diff]
- test/tint/expressions/type_ctor/mat4x3/zero/f32.wgsl.expected.hlsl[Renamed from test/tint/expressions/type_ctor/mat4x3/identity/f32.wgsl.expected.hlsl - diff]
- test/tint/expressions/type_ctor/mat4x3/zero/f32.wgsl.expected.msl[Renamed from test/tint/expressions/type_ctor/mat4x3/identity/f32.wgsl.expected.msl - diff]
- test/tint/expressions/type_ctor/mat4x3/zero/f32.wgsl.expected.spvasm[Renamed from test/tint/expressions/type_ctor/mat4x3/identity/f32.wgsl.expected.spvasm - diff]
- test/tint/expressions/type_ctor/mat4x3/zero/f32.wgsl.expected.wgsl[Renamed from test/tint/expressions/type_ctor/mat4x3/identity/f32.wgsl.expected.wgsl - diff]
- test/tint/expressions/type_ctor/mat4x4/explicit/identity/f32.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x4/explicit/identity/f32.wgsl.expected.glsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x4/explicit/identity/f32.wgsl.expected.hlsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x4/explicit/identity/f32.wgsl.expected.msl[Added - diff]
- test/tint/expressions/type_ctor/mat4x4/explicit/identity/f32.wgsl.expected.spvasm[Added - diff]
- test/tint/expressions/type_ctor/mat4x4/explicit/identity/f32.wgsl.expected.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x4/inferred/identity/f32.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x4/inferred/identity/f32.wgsl.expected.glsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x4/inferred/identity/f32.wgsl.expected.hlsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x4/inferred/identity/f32.wgsl.expected.msl[Added - diff]
- test/tint/expressions/type_ctor/mat4x4/inferred/identity/f32.wgsl.expected.spvasm[Added - diff]
- test/tint/expressions/type_ctor/mat4x4/inferred/identity/f32.wgsl.expected.wgsl[Added - diff]
- test/tint/expressions/type_ctor/mat4x4/zero/f32.wgsl[Renamed from test/tint/expressions/type_ctor/mat4x4/identity/f32.wgsl - diff]
- test/tint/expressions/type_ctor/mat4x4/zero/f32.wgsl.expected.glsl[Renamed from test/tint/expressions/type_ctor/mat4x4/identity/f32.wgsl.expected.glsl - diff]
- test/tint/expressions/type_ctor/mat4x4/zero/f32.wgsl.expected.hlsl[Renamed from test/tint/expressions/type_ctor/mat4x4/identity/f32.wgsl.expected.hlsl - diff]
- test/tint/expressions/type_ctor/mat4x4/zero/f32.wgsl.expected.msl[Renamed from test/tint/expressions/type_ctor/mat4x4/identity/f32.wgsl.expected.msl - diff]
- test/tint/expressions/type_ctor/mat4x4/zero/f32.wgsl.expected.spvasm[Renamed from test/tint/expressions/type_ctor/mat4x4/identity/f32.wgsl.expected.spvasm - diff]
- test/tint/expressions/type_ctor/mat4x4/zero/f32.wgsl.expected.wgsl[Renamed from test/tint/expressions/type_ctor/mat4x4/identity/f32.wgsl.expected.wgsl - diff]

164 files changed

tree: 1131fa9704985cbe30152042be33b8f7990505e1

- .vscode/
- build_overrides/
- docs/
- generator/
- include/
- infra/
- scripts/
- src/
- test/
- third_party/
- tools/
- webgpu-cts/
- .clang-format
- .clang-tidy
- .gitattributes
- .gitignore
- .gn
- AUTHORS
- BUILD.gn
- CMakeLists.txt
- CMakeSettings.json
- CODE_OF_CONDUCT.md
- codereview.settings
- CONTRIBUTING.md
- CPPLINT.cfg
- dawn.json
- dawn_wire.json
- DEPS
- DIR_METADATA
- Doxyfile
- go.mod
- go.sum
- LICENSE
- OWNERS
- PRESUBMIT.py
- README.chromium
- README.md
- tint_overrides_with_defaults.gni

README.md

Dawn is an open-source and cross-platform implementation of the work-in-progress WebGPU standard. More precisely it implements `webgpu.h`

that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.

Dawn provides several WebGPU building blocks:

**WebGPU C/C++ headers**that applications and other building blocks use.- The
`webgpu.h`

version that Dawn implements. - A C++ wrapper for the
`webgpu.h`

.

- The
**A “native” implementation of WebGPU**using platforms' GPU APIs:**D3D12**on Windows 10**Metal**on macOS and iOS**Vulkan**on Windows, Linux, ChromeOS, Android and Fuchsia- OpenGL as best effort where available

**A client-server implementation of WebGPU**for applications that are in a sandbox without access to native drivers**Tint**is a compiler for the WebGPU Shader Language (WGSL).

Helpful links:

- Dawn bug tracker if you find issues with Dawn.
- Tint bug tracker if you find issues with Tint.
- Dawn's mailing list for other discussions related to Dawn.
- Dawn's source code
- Dawn's Matrix chatroom for live discussion around contributing or using Dawn.
- WebGPU's Matrix chatroom
- Tint mirror for standalone usage.

Developer documentation:

- Dawn overview
- Building
- Contributing
- Code of Conduct
- Testing Dawn
- Debugging Dawn
- Dawn's infrastructure
- Dawn errors
- Tint experimental extensions

User documentation: (TODO, figure out what overlaps with the webgpu.h docs)

(TODO)

Apache 2.0 Public License, please see LICENSE.

This is not an officially supported Google product.