Skip to content

Commit

Permalink
Merge branch 'trunk' into eliemichel/timestamp-queries
Browse files Browse the repository at this point in the history
  • Loading branch information
eliemichel committed Sep 30, 2023
2 parents 42e6f57 + 064624c commit 6020389
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1012,11 +1012,9 @@ pub unsafe extern "C" fn wgpuCommandEncoderBeginComputePass(
}).flatten();

let desc = match descriptor {
Some(descriptor) => {
wgc::command::ComputePassDescriptor {
label: ptr_into_label(descriptor.label),
timestamp_writes: timestamp_writes.as_ref(),
}
Some(descriptor) => wgc::command::ComputePassDescriptor {
label: ptr_into_label(descriptor.label),
timestamp_writes: timestamp_writes.as_ref(),
},
None => wgc::command::ComputePassDescriptor::default(),
};
Expand Down

0 comments on commit 6020389

Please sign in to comment.