From 29e47125a15df02c85a512a8f73a6c70d6d92801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kurt=20K=C3=BChnert?= Date: Fri, 26 Aug 2022 23:31:38 +0200 Subject: [PATCH 1/2] added Rg16Unorm to pixel_info --- crates/bevy_render/src/texture/image.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/bevy_render/src/texture/image.rs b/crates/bevy_render/src/texture/image.rs index bb7138bddf022..9da4bdfe82c73 100644 --- a/crates/bevy_render/src/texture/image.rs +++ b/crates/bevy_render/src/texture/image.rs @@ -537,9 +537,10 @@ impl TextureFormatPixelInfo for TextureFormat { TextureFormat::R16Uint | TextureFormat::R16Sint | TextureFormat::R16Float + | TextureFormat::R16Unorm | TextureFormat::Rg16Uint | TextureFormat::Rg16Sint - | TextureFormat::R16Unorm + | TextureFormat::Rg16Unorm | TextureFormat::Rg16Float | TextureFormat::Rgba16Uint | TextureFormat::Rgba16Sint @@ -585,6 +586,7 @@ impl TextureFormatPixelInfo for TextureFormat { | TextureFormat::Rg8Sint | TextureFormat::Rg16Uint | TextureFormat::Rg16Sint + | TextureFormat::Rg16Unorm | TextureFormat::Rg16Float | TextureFormat::Rg32Uint | TextureFormat::Rg32Sint From a9b396b0b102f6086b0db2b49445295719c39522 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kurt=20K=C3=BChnert?= Date: Fri, 26 Aug 2022 23:54:51 +0200 Subject: [PATCH 2/2] derived resource for SpecializedComputePipelines --- crates/bevy_render/src/render_resource/pipeline_specializer.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/bevy_render/src/render_resource/pipeline_specializer.rs b/crates/bevy_render/src/render_resource/pipeline_specializer.rs index c8faa95a7ca58..d685ca7f228a5 100644 --- a/crates/bevy_render/src/render_resource/pipeline_specializer.rs +++ b/crates/bevy_render/src/render_resource/pipeline_specializer.rs @@ -49,6 +49,7 @@ pub trait SpecializedComputePipeline { fn specialize(&self, key: Self::Key) -> ComputePipelineDescriptor; } +#[derive(Resource)] pub struct SpecializedComputePipelines { cache: HashMap, }