wgpu/player/tests/data
Brad Werth 9b7a965667 Add an experimental vertex pulling flag to Metal pipelines.
This proves a flag in msl::PipelineOptions that attempts to write all
Metal vertex entry points to use a vertex pulling technique. It does
this by:

1) Forcing the _buffer_sizes structure to be generated for all vertex
entry points. The structure has additional buffer_size members that
contain the byte sizes of the vertex buffers.
2) Adding new args to vertex entry points for the vertex id and/or
the instance id and for the bound buffers. If there is an existing
@builtin(vertex_index) or @builtin(instance_index) param, then no
duplicate arg is created.
3) Adding code at the beginning of the function for vertex entry points
to compare the vertex id or instance id against the lengths of all the
bound buffers, and force an early-exit if the bounds are violated.
4) Extracting the raw bytes from the vertex buffer(s) and unpacking
those bytes into the bound attributes with the expected types.
5) Replacing the varyings input and instead using the unpacked
attributes to fill any structs-as-args that are rebuilt in the entry
point.

A new naga test is added which exercises this flag and demonstrates the
effect of the transform. The msl generated by this test passes
validation.

Eventually this transformation will be the default, always-on behavior
for Metal pipelines, though the flag may remain so that naga
translation tests can be run with and without the tranformation.
2024-05-30 13:08:59 +02:00
..
all.ron Fix and re-enable player tests 2021-12-03 17:11:26 -05:00
bind-group.ron Add an experimental vertex pulling flag to Metal pipelines. 2024-05-30 13:08:59 +02:00
buffer-copy.ron Refactor tests to be feature flag bit-width agnostic (#5155) 2024-01-28 01:42:02 +00:00
clear-buffer-texture.ron Refactor tests to be feature flag bit-width agnostic (#5155) 2024-01-28 01:42:02 +00:00
clear-texture.bin Reintroduce clear_texture Metal/Vulkan/DX12 (#1905) 2021-09-06 21:14:40 -04:00
data1.bin Player-based GPU test framework 2020-07-17 00:08:43 -04:00
empty.wgsl Update to Naga rev 1720725 2022-04-15 22:22:48 +03:00
pipeline-statistics-query.ron Add an experimental vertex pulling flag to Metal pipelines. 2024-05-30 13:08:59 +02:00
quad.bin Add Quad play test 2020-09-01 16:07:24 -04:00
quad.ron Add an experimental vertex pulling flag to Metal pipelines. 2024-05-30 13:08:59 +02:00
quad.wgsl Update to Naga rev 1720725 2022-04-15 22:22:48 +03:00
zero-16k.bin Zero init textures (#1688) 2021-10-28 09:15:53 -04:00
zero-init-buffer-for-binding.wgsl Avoid new WGSL reserved words in wgpu examples. 2022-04-17 21:33:55 -07:00
zero-init-buffer.ron Add an experimental vertex pulling flag to Metal pipelines. 2024-05-30 13:08:59 +02:00
zero-init-texture-binding.ron Add an experimental vertex pulling flag to Metal pipelines. 2024-05-30 13:08:59 +02:00
zero-init-texture-binding.wgsl Update to Naga rev 1720725 2022-04-15 22:22:48 +03:00
zero-init-texture-copytobuffer.ron Refactor tests to be feature flag bit-width agnostic (#5155) 2024-01-28 01:42:02 +00:00
zero-init-texture-rendertarget.ron Refactor tests to be feature flag bit-width agnostic (#5155) 2024-01-28 01:42:02 +00:00