mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-28 00:59:12 +01:00
Panic on unrecognized composite alpha mode on Metal in HAL (#10070)
This commit is contained in:
1 parent
6d1bb1959b
commit
48d3a109b6
1 file changed
+1
-1
@@ -267,7 +267,7 @@ impl crate::Surface for super::Surface {
|
||||
match config.composite_alpha_mode {
|
||||
wgt::CompositeAlphaMode::Opaque => render_layer.setOpaque(true),
|
||||
wgt::CompositeAlphaMode::PreMultiplied => render_layer.setOpaque(false),
|
||||
_ => (),
|
||||
m => unreachable!("Unsupported alpha mode: {m:?}"),
|
||||
}
|
||||
|
||||
let device_raw = &device.shared.device;
|
||||
|
||||
Reference in new issue
Block a user