Skip to content

Commit

Permalink
Update experimental builders
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikKlein committed Mar 10, 2019
1 parent 0197c76 commit 2635e86
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ash/src/extensions/experimental/amd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -665,8 +665,9 @@ impl<'a> PhysicalDeviceWaveLimitPropertiesAmdBuilder<'a> {
T: ExtendsPhysicalDeviceWaveLimitPropertiesAmd,
{
unsafe {
let next_ptr = next as *mut _ as *mut BaseOutStructure;
(*next_ptr).p_next = self.inner.p_next as _;
let next_ptr = next as *mut T as *mut BaseOutStructure;
let last_next = ptr_chain_iter(next).last().unwrap();
(*last_next).p_next = self.inner.p_next as _;
self.inner.p_next = next_ptr as _;
}
self
Expand Down

0 comments on commit 2635e86

Please sign in to comment.