Use Srgb
texture format for TextAtlas
This commit is contained in:
parent
2af2f357c5
commit
e457bca108
2 changed files with 2 additions and 3 deletions
|
@ -49,8 +49,7 @@ async fn run() {
|
|||
.await
|
||||
.unwrap();
|
||||
let surface = unsafe { instance.create_surface(&window) };
|
||||
// TODO: handle srgb
|
||||
let swapchain_format = TextureFormat::Bgra8Unorm;
|
||||
let swapchain_format = TextureFormat::Bgra8UnormSrgb;
|
||||
let mut config = SurfaceConfiguration {
|
||||
usage: TextureUsages::RENDER_ATTACHMENT,
|
||||
format: swapchain_format,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue