mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 15:00:57 +01:00
Add support for gaps in bind group layouts & update relevant validation (#9034)
* [wgpu-core] add support for optional BG & BGL entries * [wgpu] allow gaps in bind group layouts And allow unbinding in the web backend. * adapt tests * add changelog entry * [wgpu] remove generic from `PipelineLayoutDescriptor`
This commit is contained in:
1 parent
aad2a00f4d
commit
e114d2f0a7
90 files changed
+567
-397
No files matched your search
@@ -195,7 +195,7 @@ impl TimestampNormalizer {
|
||||
Some("(wgpu internal) Timestamp normalizer pipeline layout"),
|
||||
device.instance_flags,
|
||||
),
|
||||
bind_group_layouts: &[temporary_bind_group_layout.as_ref()],
|
||||
bind_group_layouts: &[Some(temporary_bind_group_layout.as_ref())],
|
||||
immediate_size: 8,
|
||||
flags: hal::PipelineLayoutFlags::empty(),
|
||||
})
|
||||
@@ -347,7 +347,7 @@ impl TimestampNormalizer {
|
||||
timestamp_writes: None,
|
||||
});
|
||||
encoder.set_compute_pipeline(&*state.pipeline);
|
||||
encoder.set_bind_group(&*state.pipeline_layout, 0, Some(bind_group), &[]);
|
||||
encoder.set_bind_group(&*state.pipeline_layout, 0, bind_group, &[]);
|
||||
encoder.set_immediates(
|
||||
&*state.pipeline_layout,
|
||||
0,
|
||||
|
||||
Reference in new issue
Block a user