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