Provoke VUID-vkDestroyDevice-device-00378 without #3069. (#3075)

This commit is contained in:
Jim Blandy 2022-10-06 11:06:32 -07:00 committed by GitHub
parent f68a095ecb
commit 58f92cc6b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 0 deletions

View File

@ -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

11
wgpu/tests/encoder.rs Normal file
View File

@ -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);
})
}

View File

@ -5,6 +5,7 @@ mod buffer_copy;
mod buffer_usages;
mod clear_texture;
mod device;
mod encoder;
mod example_wgsl;
mod instance;
mod poll;