Skip to content

Commit

Permalink
Make internal struct ShaderData non-pub (bevyengine#5609)
Browse files Browse the repository at this point in the history
# Objective

`ShaderData` is marked as public, but is an internal type only used by one other
internal type, so it should be made private.

## Solution

`ShaderData` is only used in `ShaderCache`, and the latter is private,
so there is no need to make the former public. This change removes the
`pub` keyword from `ShaderData`, hidding it as the implementation detail
it is.

Split from bevyengine#5600
  • Loading branch information
djeedai authored and james7132 committed Oct 28, 2022
1 parent 88ca052 commit 370bbca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/render_resource/pipeline_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl CachedPipelineState {
}

#[derive(Default)]
pub struct ShaderData {
struct ShaderData {
pipelines: HashSet<CachedPipelineId>,
processed_shaders: HashMap<Vec<String>, Arc<ShaderModule>>,
resolved_imports: HashMap<ShaderImport, Handle<Shader>>,
Expand Down

0 comments on commit 370bbca

Please sign in to comment.