mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-26 01:11:22 +01:00
Make bind group an Option for set_bind_group calls. (#6216)
This is just an API change for all the "set_bind_group" calls. Calls that pass a Some() argument should have unchanged behavior. The None cases are left as TODOs.
This commit is contained in:
1 parent
c87717b814
commit
9b36a3e129
59 files changed
+283
-169
No files matched your search
@@ -127,7 +127,7 @@ async fn run() {
|
||||
timestamp_writes: None,
|
||||
});
|
||||
compute_pass.set_pipeline(&pipeline);
|
||||
compute_pass.set_bind_group(0, &bind_group, &[]);
|
||||
compute_pass.set_bind_group(0, Some(&bind_group), &[]);
|
||||
/* Note that since each workgroup will cover both arrays, we only need to
|
||||
cover the length of one array. */
|
||||
compute_pass.dispatch_workgroups(local_a.len() as u32, 1, 1);
|
||||
|
||||
Reference in new issue
Block a user