Skip to content

Commit 402a479

Browse files
[metal] Retain references with command buffers (#7842)
1 parent 0c05dbf commit 402a479

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

wgpu-hal/src/metal/mod.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,19 @@ struct PrivateDisabilities {
309309
broken_layered_clear_image: bool,
310310
}
311311

312-
#[derive(Debug, Default)]
312+
#[derive(Debug)]
313313
struct Settings {
314314
retain_command_buffer_references: bool,
315315
}
316316

317+
impl Default for Settings {
318+
fn default() -> Self {
319+
Self {
320+
retain_command_buffer_references: true,
321+
}
322+
}
323+
}
324+
317325
struct AdapterShared {
318326
device: Mutex<metal::Device>,
319327
disabilities: PrivateDisabilities,

0 commit comments

Comments
 (0)