diff --git a/wgpu-core/src/track/mod.rs b/wgpu-core/src/track/mod.rs index dba34aa38..1e4f4ca7e 100644 --- a/wgpu-core/src/track/mod.rs +++ b/wgpu-core/src/track/mod.rs @@ -115,7 +115,7 @@ use thiserror::Error; pub(crate) use buffer::{BufferBindGroupState, BufferTracker, BufferUsageScope}; use metadata::{ResourceMetadata, ResourceMetadataProvider}; -pub(crate) use stateless::{StatelessBindGroupSate, StatelessTracker}; +pub(crate) use stateless::{StatelessBindGroupState, StatelessTracker}; pub(crate) use texture::{ TextureBindGroupState, TextureSelector, TextureTracker, TextureUsageScope, }; @@ -447,8 +447,8 @@ impl fmt::Display for InvalidUse { pub(crate) struct BindGroupStates { pub buffers: BufferBindGroupState, pub textures: TextureBindGroupState, - pub views: StatelessBindGroupSate>, - pub samplers: StatelessBindGroupSate>, + pub views: StatelessBindGroupState>, + pub samplers: StatelessBindGroupState>, } impl BindGroupStates { @@ -456,8 +456,8 @@ impl BindGroupStates { Self { buffers: BufferBindGroupState::new(), textures: TextureBindGroupState::new(), - views: StatelessBindGroupSate::new(), - samplers: StatelessBindGroupSate::new(), + views: StatelessBindGroupState::new(), + samplers: StatelessBindGroupState::new(), } } diff --git a/wgpu-core/src/track/stateless.rs b/wgpu-core/src/track/stateless.rs index 25ffc027e..937525e38 100644 --- a/wgpu-core/src/track/stateless.rs +++ b/wgpu-core/src/track/stateless.rs @@ -22,11 +22,11 @@ type Pair = (Id<::Marker>, Arc); /// Stores all the resources that a bind group stores. #[derive(Debug)] -pub(crate) struct StatelessBindGroupSate { +pub(crate) struct StatelessBindGroupState { resources: Mutex>>, } -impl StatelessBindGroupSate { +impl StatelessBindGroupState { pub fn new() -> Self { Self { resources: Mutex::new(rank::STATELESS_BIND_GROUP_STATE_RESOURCES, Vec::new()),