Skip to content

Commit

Permalink
Make internal struct ShaderData non-pub (#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 #5600
  • Loading branch information
djeedai committed Aug 8, 2022
1 parent b80636b commit a9634c7
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 a9634c7

Please sign in to comment.