dawn-cmake/test/tint/var/uses
dan sinclair 4abf28e29b tint: Add basic support for chromium_experimental_push_constant.
This extension adds support for the push_constant storage class such
that it can be tested with WGSL test files. The real goal is to allow
future transforms that will add push constants that the SPIRV writer
will output.

The extension:

 - Adds the `chromium_experimental_push_constant` enable.
 - Allows the push_constant storage class for global variables.
 - Adds validation that the types are host-shareable for push_constant
   variables, and that they don't contain f16 (must be 32bit types
   only).
 - Validates that at most one push_constant variable is statically used
   per entry-point.
 - Skips validation that the extension has been enabled if
   kIgnoreStorageClass is used.

Tests are added:

 - For parsing of var<push_constant>
   - Caught a missing conversion.
 - For each of the validation rules.
 - For the wrapping of push constants in structs if needed by
   AddSpirvBlockAttribute.
 - For the layout and type rules of the storage class.
 - For a shader with multiple entry-points using various push constants.
    - Caught a missing reset of the previous push constant variable in
      the validation check that at most one is used.
    - Caught the missing wrapping in structs that had to be added to
      AddSpirvBlockAttribute.
    - Caught incorrect logic when adding diagnostics about the call
      graph leading to the reference to push constants.

Bug: tint:1620
Change-Id: I04a5d8e5188c0dcef077f2233ba1359d1575bf51
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/96682
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
2022-08-02 15:55:35 +00:00
..
many_workgroup_vars.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
many_workgroup_vars.wgsl.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
many_workgroup_vars.wgsl.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
many_workgroup_vars.wgsl.expected.glsl
many_workgroup_vars.wgsl.expected.msl tint/writer/msl: Inline constant expressions 2022-06-01 10:08:29 +00:00
many_workgroup_vars.wgsl.expected.spvasm tint/writer/spirv: Inline constant expressions 2022-06-01 15:57:22 +00:00
many_workgroup_vars.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
private.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
private.wgsl.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
private.wgsl.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
private.wgsl.expected.glsl
private.wgsl.expected.msl
private.wgsl.expected.spvasm tint/writer/spirv: Inline constant expressions 2022-06-01 15:57:22 +00:00
private.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
push_constant.wgsl tint: Add basic support for chromium_experimental_push_constant. 2022-08-02 15:55:35 +00:00
push_constant.wgsl.expected.dxc.hlsl tint: Add basic support for chromium_experimental_push_constant. 2022-08-02 15:55:35 +00:00
push_constant.wgsl.expected.fxc.hlsl tint: Add basic support for chromium_experimental_push_constant. 2022-08-02 15:55:35 +00:00
push_constant.wgsl.expected.glsl tint: Add basic support for chromium_experimental_push_constant. 2022-08-02 15:55:35 +00:00
push_constant.wgsl.expected.msl tint: Add basic support for chromium_experimental_push_constant. 2022-08-02 15:55:35 +00:00
push_constant.wgsl.expected.spvasm tint: Add basic support for chromium_experimental_push_constant. 2022-08-02 15:55:35 +00:00
push_constant.wgsl.expected.wgsl tint: Add basic support for chromium_experimental_push_constant. 2022-08-02 15:55:35 +00:00
workgroup.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
workgroup.wgsl.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
workgroup.wgsl.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
workgroup.wgsl.expected.glsl
workgroup.wgsl.expected.msl tint/writer/msl: Inline constant expressions 2022-06-01 10:08:29 +00:00
workgroup.wgsl.expected.spvasm tint/writer/spirv: Inline constant expressions 2022-06-01 15:57:22 +00:00
workgroup.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00