From 32d3b09a96502728f06f8849778dad8990b7e799 Mon Sep 17 00:00:00 2001 From: Robert Smith Date: Thu, 6 Feb 2025 19:16:30 -0500 Subject: [PATCH 1/2] depreceated generate_view_layouts in favor of layout_entries --- crates/bevy_pbr/src/render/mesh_view_bindings.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/bevy_pbr/src/render/mesh_view_bindings.rs b/crates/bevy_pbr/src/render/mesh_view_bindings.rs index bd759a1296..d719eedb09 100644 --- a/crates/bevy_pbr/src/render/mesh_view_bindings.rs +++ b/crates/bevy_pbr/src/render/mesh_view_bindings.rs @@ -195,7 +195,7 @@ pub(crate) fn buffer_layout( } /// Returns the appropriate bind group layout vec based on the parameters -fn layout_entries( +pub fn layout_entries( clustered_forward_buffer_binding_type: BufferBindingType, visibility_ranges_buffer_binding_type: BufferBindingType, layout_key: MeshPipelineViewLayoutKey, @@ -470,6 +470,7 @@ impl MeshPipelineViewLayouts { /// Generates all possible view layouts for the mesh pipeline, based on all combinations of /// [`MeshPipelineViewLayoutKey`] flags. +#[deprecated(since = "0.16.0", note = "Use layout_entries instead")] pub fn generate_view_layouts( render_device: &RenderDevice, render_adapter: &RenderAdapter, From b371bccea4455d25153b3f8a63dbde91995b4f1c Mon Sep 17 00:00:00 2001 From: Robert Smith Date: Wed, 5 Mar 2025 13:01:55 -0500 Subject: [PATCH 2/2] added backticks --- crates/bevy_pbr/src/render/mesh_view_bindings.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_pbr/src/render/mesh_view_bindings.rs b/crates/bevy_pbr/src/render/mesh_view_bindings.rs index d719eedb09..e58e0335e7 100644 --- a/crates/bevy_pbr/src/render/mesh_view_bindings.rs +++ b/crates/bevy_pbr/src/render/mesh_view_bindings.rs @@ -470,7 +470,7 @@ impl MeshPipelineViewLayouts { /// Generates all possible view layouts for the mesh pipeline, based on all combinations of /// [`MeshPipelineViewLayoutKey`] flags. -#[deprecated(since = "0.16.0", note = "Use layout_entries instead")] +#[deprecated(since = "0.16.0", note = "Use `layout_entries` instead")] pub fn generate_view_layouts( render_device: &RenderDevice, render_adapter: &RenderAdapter,