List `color_blend` first in `wgpu::quad`

This commit is contained in:
Héctor Ramón Jiménez 2021-02-06 15:55:03 +01:00
parent 15c4901aba
commit 7eefad34fc
1 changed files with 4 additions and 4 deletions

View File

@ -130,13 +130,13 @@ impl Pipeline {
entry_point: "main",
targets: &[wgpu::ColorTargetState {
format,
alpha_blend: wgpu::BlendState {
src_factor: wgpu::BlendFactor::One,
color_blend: wgpu::BlendState {
src_factor: wgpu::BlendFactor::SrcAlpha,
dst_factor: wgpu::BlendFactor::OneMinusSrcAlpha,
operation: wgpu::BlendOperation::Add,
},
color_blend: wgpu::BlendState {
src_factor: wgpu::BlendFactor::SrcAlpha,
alpha_blend: wgpu::BlendState {
src_factor: wgpu::BlendFactor::One,
dst_factor: wgpu::BlendFactor::OneMinusSrcAlpha,
operation: wgpu::BlendOperation::Add,
},