Use target format from render state

This commit is contained in:
Simon Gellis 2025-03-29 10:23:03 -04:00
parent 57f27559b1
commit b58746fee4
1 changed files with 1 additions and 1 deletions

View File

@ -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,
})], })],