diff --git a/crates/bevy_render/src/render_resource/pipeline_specializer.rs b/crates/bevy_render/src/render_resource/pipeline_specializer.rs index c8faa95a7ca58c..d685ca7f228a53 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, } diff --git a/crates/bevy_render/src/texture/image.rs b/crates/bevy_render/src/texture/image.rs index 132bcceea45f90..36a0708a992b89 100644 --- a/crates/bevy_render/src/texture/image.rs +++ b/crates/bevy_render/src/texture/image.rs @@ -539,9 +539,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 @@ -587,6 +588,7 @@ impl TextureFormatPixelInfo for TextureFormat { | TextureFormat::Rg8Sint | TextureFormat::Rg16Uint | TextureFormat::Rg16Sint + | TextureFormat::Rg16Unorm | TextureFormat::Rg16Float | TextureFormat::Rg32Uint | TextureFormat::Rg32Sint