Fix resolve target changes

This commit is contained in:
hodasemi 2023-01-22 18:28:17 +01:00
parent 7182d73e60
commit 18d8d32af6

View file

@ -60,7 +60,7 @@ impl BackgroundGenerator {
clear_value: ClearValue::Color([0.0, 0.0, 0.0, 0.0]), clear_value: ClearValue::Color([0.0, 0.0, 0.0, 0.0]),
}) })
.set_sample_count(max_supported_sample_count) .set_sample_count(max_supported_sample_count)
.add_resolve_targets(vec![image.clone()]) .add_resolve_targets((vec![image.clone()], true))
.use_queue(queue.clone()) .use_queue(queue.clone())
.build(&device)?, .build(&device)?,
) )