Skip to content

Commit 58f92cc

Browse files
authored
Provoke VUID-vkDestroyDevice-device-00378 without #3069. (#3075)
1 parent f68a095 commit 58f92cc

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ Bottom level categories:
4040

4141
## Unreleased
4242

43+
### Bug Fixes
44+
45+
#### General
46+
47+
- 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).
48+
4349
## wgpu-0.14.0 (2022-10-05)
4450

4551
### Major Changes

wgpu/tests/encoder.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
use crate::common::{initialize_test, TestParameters};
2+
3+
#[test]
4+
fn drop_encoder() {
5+
initialize_test(TestParameters::default(), |ctx| {
6+
let encoder = ctx
7+
.device
8+
.create_command_encoder(&wgpu::CommandEncoderDescriptor::default());
9+
drop(encoder);
10+
})
11+
}

wgpu/tests/root.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ mod buffer_copy;
55
mod buffer_usages;
66
mod clear_texture;
77
mod device;
8+
mod encoder;
89
mod example_wgsl;
910
mod instance;
1011
mod poll;

0 commit comments

Comments
 (0)