Skip to content

Commit 6cbb184

Browse files
committed
Privatize internals
1 parent f0a99fb commit 6cbb184

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

crates/bevy_pbr/src/wireframe.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ fn prepare_wireframes(
115115

116116
/// Internal [`WireframePlugin`] resource.
117117
/// [`GlobalWireframeBindGroup`] stores the [`BindGroup`] of wireframe data that is used on the GPU side.
118-
pub struct GlobalWireframeBindGroup {
119-
pub bind_group: BindGroup,
118+
struct GlobalWireframeBindGroup {
119+
bind_group: BindGroup,
120120
}
121121

122122
fn queue_wireframes_bind_group(
@@ -179,21 +179,21 @@ impl Default for WireframeConfig {
179179
/// [`WireframeUniformOffset`] holds the offset of a [`WireframeUniform`] in the [`GlobalWireframeMeta::uniforms`].
180180
#[derive(Component, Copy, Clone, Debug, Default)]
181181
#[repr(transparent)]
182-
pub struct WireframeUniformOffset(pub u32);
182+
struct WireframeUniformOffset(u32);
183183

184184
/// Internal [`WireframePlugin`] state.
185185
/// [`WireframeUniform`] is the GPU representation of a [`Wireframe`].
186186
#[derive(Debug, AsStd140)]
187-
pub struct WireframeUniform {
188-
pub color: Vec4,
187+
struct WireframeUniform {
188+
color: Vec4,
189189
}
190190

191191
/// Internal [`WireframePlugin`] resource.
192192
/// This is the data required for rendering [`Wireframe`]s.
193193
#[derive(Component)]
194-
pub struct GlobalWireframeMeta {
195-
pub uniforms: DynamicUniformVec<WireframeUniform>,
196-
pub bind_group_layout: BindGroupLayout,
194+
struct GlobalWireframeMeta {
195+
uniforms: DynamicUniformVec<WireframeUniform>,
196+
bind_group_layout: BindGroupLayout,
197197
}
198198

199199
impl FromWorld for GlobalWireframeMeta {
@@ -226,7 +226,7 @@ impl FromWorld for GlobalWireframeMeta {
226226

227227
/// Internal [`WireframePlugin`] resource.
228228
/// [`WireframePipeline`] is the specialized rendering pipeline for wireframes.
229-
pub struct WireframePipeline {
229+
struct WireframePipeline {
230230
mesh_pipeline: MeshPipeline,
231231
wireframe_bind_group_layout: BindGroupLayout,
232232
shader: Handle<Shader>,
@@ -315,7 +315,7 @@ fn queue_wireframes(
315315

316316
/// Internal [`WireframePlugin`] render command.
317317
/// [`SetWireframeBindGroup`]`<bindgroup index>` binds the [`GlobalWireframeBindGroup`] there.
318-
pub struct SetWireframeBindGroup<const I: usize>;
318+
struct SetWireframeBindGroup<const I: usize>;
319319
impl<const I: usize> EntityRenderCommand for SetWireframeBindGroup<I> {
320320
type Param = (
321321
SRes<GlobalWireframeBindGroup>,

0 commit comments

Comments
 (0)