Skip to content

Commit

Permalink
Provoke VUID-vkDestroyDevice-device-00378 without gfx-rs#3069.
Browse files Browse the repository at this point in the history
This test should have been included in gfx-rs#3069.
  • Loading branch information
jimblandy committed Oct 6, 2022
1 parent f68a095 commit 0ee6600
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
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 0ee6600

Please sign in to comment.