forked from gfx-rs/wgpu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a not-yet-working vertex pulling flag to Metal pipelines.
This is an early effort to add infrastructure to support vertex pulling transformation of Metal shaders. It is *not* a working transformation that generates valid, useful shaders. It includes: 1) It adds a experimental_vertex_pulling_transform flag to msl::PipelineOptions. This flag defaults to false but can be forcibly set to true by naga tests. 2) When the flag is set, generated msl vertex shaders are passed an additional vertex id parameter, plus an additional parameter for each bound vertex buffer, plus the _mslBufferSizes struct which is normally only used for dynamically sized buffers. 3) A new naga test is added which exercises this flag and demonstrates the effect of the transform. Future work will make the transformed shaders valid, and add tests that transformed shaders produce correct results.
- Loading branch information
Showing
9 changed files
with
1,152 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.