Skip to content

Commit

Permalink
Provoke VUID-vkDestroyDevice-device-00378 without #3069. (#3075)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimblandy authored Oct 6, 2022
1 parent f68a095 commit 58f92cc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ Bottom level categories:

## Unreleased

### Bug Fixes

#### General

- Bother to free the `hal::Api::CommandBuffer` when a `wgpu_core::command::CommandEncoder` is dropped. By @jimblandy in [#3069](https://github.com/gfx-rs/wgpu/pull/3069).

## wgpu-0.14.0 (2022-10-05)

### Major Changes
Expand Down
11 changes: 11 additions & 0 deletions wgpu/tests/encoder.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
use crate::common::{initialize_test, TestParameters};

#[test]
fn drop_encoder() {
initialize_test(TestParameters::default(), |ctx| {
let encoder = ctx
.device
.create_command_encoder(&wgpu::CommandEncoderDescriptor::default());
drop(encoder);
})
}
1 change: 1 addition & 0 deletions wgpu/tests/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ mod buffer_copy;
mod buffer_usages;
mod clear_texture;
mod device;
mod encoder;
mod example_wgsl;
mod instance;
mod poll;
Expand Down

0 comments on commit 58f92cc

Please sign in to comment.