From 9ebc50fc1e7cb48aa60ec6f252a5ec1b8fa3aed7 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Mon, 2 Sep 2024 12:22:12 -0700 Subject: [PATCH] [core] Remove unnecessary `pub(crate)` from `Device` methods. Remove the `pub(crate)` visibility marking from various associated functions of `Device` that are defined in, and not used outside of, the `wgpu_core::device::resource` module. --- wgpu-core/src/device/resource.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/wgpu-core/src/device/resource.rs b/wgpu-core/src/device/resource.rs index f443fb9859..b10c2f63c4 100644 --- a/wgpu-core/src/device/resource.rs +++ b/wgpu-core/src/device/resource.rs @@ -1629,7 +1629,7 @@ impl Device { /// Generate information about late-validated buffer bindings for pipelines. //TODO: should this be combined with `get_introspection_bind_group_layouts` in some way? - pub(crate) fn make_late_sized_buffer_groups( + fn make_late_sized_buffer_groups( shader_binding_sizes: &FastHashMap, layout: &binding_model::PipelineLayout, ) -> ArrayVec { @@ -1881,7 +1881,7 @@ impl Device { Ok(bgl) } - pub(crate) fn create_buffer_binding<'a>( + fn create_buffer_binding<'a>( &self, bb: &'a binding_model::ResolvedBufferBinding, binding: u32, @@ -2068,7 +2068,7 @@ impl Device { Ok(sampler.raw()) } - pub(crate) fn create_texture_binding<'a>( + fn create_texture_binding<'a>( &self, binding: u32, decl: &wgt::BindGroupLayoutEntry, @@ -2325,7 +2325,7 @@ impl Device { Ok(bind_group) } - pub(crate) fn check_array_binding( + fn check_array_binding( features: wgt::Features, count: Option, num_bindings: usize, @@ -2358,7 +2358,7 @@ impl Device { Ok(()) } - pub(crate) fn texture_use_parameters( + fn texture_use_parameters( &self, binding: u32, decl: &wgt::BindGroupLayoutEntry, @@ -3449,7 +3449,7 @@ impl Device { Ok(cache) } - pub(crate) fn get_texture_format_features( + fn get_texture_format_features( &self, format: TextureFormat, ) -> wgt::TextureFormatFeatures { @@ -3466,7 +3466,7 @@ impl Device { format_features } - pub(crate) fn describe_format_features( + fn describe_format_features( &self, format: TextureFormat, ) -> Result {