Merge pull request #2341 from Koranir/premultiply
Allow using the premultiplied alpha wgpu compositor mode
This commit is contained in:
commit
01f38f05a2
1 changed files with 4 additions and 0 deletions
|
|
@ -92,6 +92,10 @@ impl Compositor {
|
|||
.contains(&wgpu::CompositeAlphaMode::PostMultiplied)
|
||||
{
|
||||
wgpu::CompositeAlphaMode::PostMultiplied
|
||||
} else if alpha_modes
|
||||
.contains(&wgpu::CompositeAlphaMode::PreMultiplied)
|
||||
{
|
||||
wgpu::CompositeAlphaMode::PreMultiplied
|
||||
} else {
|
||||
wgpu::CompositeAlphaMode::Auto
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue