Skip to content

Commit

Permalink
Merge #109
Browse files Browse the repository at this point in the history
109: Update for the new wgpu-rs passes r=kvark a=kvark

Blocked on gfx-rs/wgpu-rs#155

Co-authored-by: Dzmitry Malyshau <[email protected]>
  • Loading branch information
bors[bot] and kvark authored Feb 18, 2020
2 parents e3114ca + 9aef574 commit 1712fe4
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 1712fe4

Please sign in to comment.