diff options
Diffstat (limited to '')
| -rw-r--r-- | src/gpu.rs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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, } } |
