summaryrefslogtreecommitdiffstats
path: root/src/gpu.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu.rs')
-rw-r--r--src/gpu.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu.rs b/src/gpu.rs
index 38c39f3..7f44354 100644
--- a/src/gpu.rs
+++ b/src/gpu.rs
@@ -129,14 +129,14 @@ pub const TSV_FORMAT: ImgFormat = ImgFormat::R8G8B8A8;
/// Convert a TSV ImgFormat to a wgpu TextureFormat.
pub fn img_format_to_wgpu(fmt: ImgFormat) -> wgpu::TextureFormat {
match fmt {
- ImgFormat::R8G8B8A8 => wgpu::TextureFormat::Rgba8UnormSrgb,
- ImgFormat::R8G8B8 => wgpu::TextureFormat::Rgba8UnormSrgb,
- ImgFormat::B8G8R8A8 => wgpu::TextureFormat::Bgra8UnormSrgb,
- ImgFormat::B8G8R8 => wgpu::TextureFormat::Bgra8UnormSrgb,
+ ImgFormat::R8G8B8A8 => wgpu::TextureFormat::Rgba8Unorm,
+ ImgFormat::R8G8B8 => wgpu::TextureFormat::Rgba8Unorm,
+ ImgFormat::B8G8R8A8 => wgpu::TextureFormat::Bgra8Unorm,
+ ImgFormat::B8G8R8 => wgpu::TextureFormat::Bgra8Unorm,
ImgFormat::BC1_RGBA => wgpu::TextureFormat::Bc1RgbaUnorm,
ImgFormat::BC3_RGBA => wgpu::TextureFormat::Bc3RgbaUnorm,
ImgFormat::BC7_RGBA => wgpu::TextureFormat::Bc7RgbaUnorm,
- ImgFormat::Undefined => wgpu::TextureFormat::Rgba8UnormSrgb,
+ ImgFormat::Undefined => wgpu::TextureFormat::Rgba8Unorm,
}
}