Split shader compilation logic into new wgpu-shaders crate#9080
Split shader compilation logic into new wgpu-shaders crate#9080inner-daemons wants to merge 27 commits intogfx-rs:trunkfrom
Conversation
|
I'm gonna shout with excitement into the void here: THE REFACTOR NOW WORKS FOR ALL BUT DX12 IN WGPU HAL!!!! ONLY TOOK LIKE 3K LINES |
|
Ok nvm, webassembly 1.0 is unhappy, but I'm counting it |
|
To achieve the goal outlined in #8842 I don't see why there need to be any changes to the |
|
@teoxoy I think this has been answered but just to document that, wgpu-hal may need to use some types that naga uses without depending on naga. |
Connections
Closes #8842
Waiting for #9064
Description
Splits shader compilation into a wgpu-shaders crate so that naga can more easily be removed as a dependency, and the compilation logic can be reused for e.g. precompiling shaders.
Testing
Too early
Squash or Rebase?
Squash
Checklist
cargo fmt.taplo format.cargo clippy --tests. If applicable, add:--target wasm32-unknown-unknowncargo xtask testto run tests.CHANGELOG.mdentry.