From d7a35ecda06742acb4cdd5a83c5b9737f375a70b Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Thu, 13 Jun 2024 13:03:00 -0400 Subject: [PATCH] typo: s/StatelessBindGroupSate/StatelessBindGroupState/ (#5810) --- wgpu-core/src/track/mod.rs | 10 +++++----- wgpu-core/src/track/stateless.rs | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) 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()),