Skip to content

Commit

Permalink
Update for the new wgpu-rs passes
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Feb 18, 2020
1 parent e3114ca commit 9aef574
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 67 deletions.
83 changes: 17 additions & 66 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/render/collision.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ impl<'pass, 'this: 'pass> GpuSession<'pass, 'this> {
let locals = Locals {
indexes: [range_id as u32, self.polygon_id as u32],
};
let offset = (self.object_locals.len() * self.locals_size) as wgpu::BufferAddress;
let offset = (self.object_locals.len() * self.locals_size) as wgpu::DynamicOffset;

self.pass.set_bind_group(2, &shape.bind_group, &[]);
self.pass.set_bind_group(3, self.dynamic_bind_group, &[offset]);
Expand Down

0 comments on commit 9aef574

Please sign in to comment.