Use target format from render state
This commit is contained in:
parent
57f27559b1
commit
b58746fee4
|
@ -71,7 +71,7 @@ impl GameScreen {
|
|||
module: &shader,
|
||||
entry_point: Some(entry_point),
|
||||
targets: &[Some(wgpu::ColorTargetState {
|
||||
format: wgpu::TextureFormat::Bgra8Unorm,
|
||||
format: render_state.target_format,
|
||||
blend: Some(wgpu::BlendState::REPLACE),
|
||||
write_mask: wgpu::ColorWrites::ALL,
|
||||
})],
|
||||
|
|
Loading…
Reference in New Issue