mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 15:31:03 +01:00
Co-authored-by: Connor Fitzgerald <connor@modyfi.io>
14 lines
340 B
Rust
14 lines
340 B
Rust
use wasm_bindgen_test::*;
|
|
use wgpu_test::{initialize_test, TestParameters};
|
|
|
|
#[test]
|
|
#[wasm_bindgen_test]
|
|
fn drop_encoder() {
|
|
initialize_test(TestParameters::default(), |ctx| {
|
|
let encoder = ctx
|
|
.device
|
|
.create_command_encoder(&wgpu::CommandEncoderDescriptor::default());
|
|
drop(encoder);
|
|
})
|
|
}
|