From e74bb9b3b0f6cd91cffa4427d2e67bce71d3e0ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kurt=20K=C3=BChnert?= Date: Fri, 8 Jul 2022 09:54:50 +0200 Subject: [PATCH 1/2] added TextureFormat::R16Unorm support to Image --- crates/bevy_render/src/texture/image.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/bevy_render/src/texture/image.rs b/crates/bevy_render/src/texture/image.rs index 589e8667497b8..1b5b0f6c495cf 100644 --- a/crates/bevy_render/src/texture/image.rs +++ b/crates/bevy_render/src/texture/image.rs @@ -519,6 +519,7 @@ impl TextureFormatPixelInfo for TextureFormat { | TextureFormat::R16Float | TextureFormat::Rg16Uint | TextureFormat::Rg16Sint + | TextureFormat::R16Unorm | TextureFormat::Rg16Float | TextureFormat::Rgba16Uint | TextureFormat::Rgba16Sint @@ -563,6 +564,7 @@ impl TextureFormatPixelInfo for TextureFormat { | TextureFormat::Rg8Sint | TextureFormat::Rg16Uint | TextureFormat::Rg16Sint + | TextureFormat::R16Unorm | TextureFormat::Rg16Float | TextureFormat::Rg32Uint | TextureFormat::Rg32Sint From 662a4cc3d4b5146b0fbb03598ee47d89711b0c57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kurt=20K=C3=BChnert?= Date: Fri, 8 Jul 2022 10:02:33 +0200 Subject: [PATCH 2/2] fix --- crates/bevy_render/src/texture/image.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_render/src/texture/image.rs b/crates/bevy_render/src/texture/image.rs index 1b5b0f6c495cf..9df55dbf0af2f 100644 --- a/crates/bevy_render/src/texture/image.rs +++ b/crates/bevy_render/src/texture/image.rs @@ -553,6 +553,7 @@ impl TextureFormatPixelInfo for TextureFormat { | TextureFormat::R8Sint | TextureFormat::R16Uint | TextureFormat::R16Sint + | TextureFormat::R16Unorm | TextureFormat::R16Float | TextureFormat::R32Uint | TextureFormat::R32Sint @@ -564,7 +565,6 @@ impl TextureFormatPixelInfo for TextureFormat { | TextureFormat::Rg8Sint | TextureFormat::Rg16Uint | TextureFormat::Rg16Sint - | TextureFormat::R16Unorm | TextureFormat::Rg16Float | TextureFormat::Rg32Uint | TextureFormat::Rg32Sint