Use wgpu::Color::TRANSPARENT

This commit is contained in:
Héctor Ramón Jiménez 2020-08-27 19:30:56 +02:00
parent 3eb63762c7
commit 8d605be4e3

View File

@ -341,12 +341,7 @@ impl Pipeline {
( (
attachment, attachment,
Some(resolve_target), Some(resolve_target),
wgpu::LoadOp::Clear(wgpu::Color { wgpu::LoadOp::Clear(wgpu::Color::TRANSPARENT),
r: 0.0,
g: 0.0,
b: 0.0,
a: 0.0,
}),
) )
} else { } else {
(target, None, wgpu::LoadOp::Load) (target, None, wgpu::LoadOp::Load)