Skip to content

Commit 9ebc50f

Browse files
jimblandyErichDonGubler
authored andcommitted
[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.
1 parent 9d24406 commit 9ebc50f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

wgpu-core/src/device/resource.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,7 @@ impl Device {
16291629

16301630
/// Generate information about late-validated buffer bindings for pipelines.
16311631
//TODO: should this be combined with `get_introspection_bind_group_layouts` in some way?
1632-
pub(crate) fn make_late_sized_buffer_groups(
1632+
fn make_late_sized_buffer_groups(
16331633
shader_binding_sizes: &FastHashMap<naga::ResourceBinding, wgt::BufferSize>,
16341634
layout: &binding_model::PipelineLayout,
16351635
) -> ArrayVec<pipeline::LateSizedBufferGroup, { hal::MAX_BIND_GROUPS }> {
@@ -1881,7 +1881,7 @@ impl Device {
18811881
Ok(bgl)
18821882
}
18831883

1884-
pub(crate) fn create_buffer_binding<'a>(
1884+
fn create_buffer_binding<'a>(
18851885
&self,
18861886
bb: &'a binding_model::ResolvedBufferBinding,
18871887
binding: u32,
@@ -2068,7 +2068,7 @@ impl Device {
20682068
Ok(sampler.raw())
20692069
}
20702070

2071-
pub(crate) fn create_texture_binding<'a>(
2071+
fn create_texture_binding<'a>(
20722072
&self,
20732073
binding: u32,
20742074
decl: &wgt::BindGroupLayoutEntry,
@@ -2325,7 +2325,7 @@ impl Device {
23252325
Ok(bind_group)
23262326
}
23272327

2328-
pub(crate) fn check_array_binding(
2328+
fn check_array_binding(
23292329
features: wgt::Features,
23302330
count: Option<NonZeroU32>,
23312331
num_bindings: usize,
@@ -2358,7 +2358,7 @@ impl Device {
23582358
Ok(())
23592359
}
23602360

2361-
pub(crate) fn texture_use_parameters(
2361+
fn texture_use_parameters(
23622362
&self,
23632363
binding: u32,
23642364
decl: &wgt::BindGroupLayoutEntry,
@@ -3449,7 +3449,7 @@ impl Device {
34493449
Ok(cache)
34503450
}
34513451

3452-
pub(crate) fn get_texture_format_features(
3452+
fn get_texture_format_features(
34533453
&self,
34543454
format: TextureFormat,
34553455
) -> wgt::TextureFormatFeatures {
@@ -3466,7 +3466,7 @@ impl Device {
34663466
format_features
34673467
}
34683468

3469-
pub(crate) fn describe_format_features(
3469+
fn describe_format_features(
34703470
&self,
34713471
format: TextureFormat,
34723472
) -> Result<wgt::TextureFormatFeatures, MissingFeatures> {

0 commit comments

Comments
 (0)