mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-27 16:49:39 +01:00
Gather the state that `Interface::check_stage` accumulates across all of a pipeline's stages (the bind group layouts, minimum binding sizes, and immediate data usage) into a new `PipelineResources` struct, which `check_stage` takes by `&mut`. Remove `immediates` from `StageIo`, so that `StageIo` holds only the information one stage passes to the next. Use `layout` to refer to the `BindingLayoutSource`, not `layouts`, since that value describes a single pipeline layout. In the derived case, it does hold an array of bind group layouts, but that is only one variant; the value's name should make sense regardless which variant is present.