typo: s/StatelessBindGroupSate/StatelessBindGroupState/ (#5810)

This commit is contained in:
Erich Gubler 2024-06-13 13:03:00 -04:00 committed by GitHub
parent c4a8f038ee
commit d7a35ecda0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View File

@ -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<T: ResourceUses> fmt::Display for InvalidUse<T> {
pub(crate) struct BindGroupStates<A: HalApi> {
pub buffers: BufferBindGroupState<A>,
pub textures: TextureBindGroupState<A>,
pub views: StatelessBindGroupSate<resource::TextureView<A>>,
pub samplers: StatelessBindGroupSate<resource::Sampler<A>>,
pub views: StatelessBindGroupState<resource::TextureView<A>>,
pub samplers: StatelessBindGroupState<resource::Sampler<A>>,
}
impl<A: HalApi> BindGroupStates<A> {
@ -456,8 +456,8 @@ impl<A: HalApi> BindGroupStates<A> {
Self {
buffers: BufferBindGroupState::new(),
textures: TextureBindGroupState::new(),
views: StatelessBindGroupSate::new(),
samplers: StatelessBindGroupSate::new(),
views: StatelessBindGroupState::new(),
samplers: StatelessBindGroupState::new(),
}
}

View File

@ -22,11 +22,11 @@ type Pair<T> = (Id<<T as Resource>::Marker>, Arc<T>);
/// Stores all the resources that a bind group stores.
#[derive(Debug)]
pub(crate) struct StatelessBindGroupSate<T: Resource> {
pub(crate) struct StatelessBindGroupState<T: Resource> {
resources: Mutex<Vec<Pair<T>>>,
}
impl<T: Resource> StatelessBindGroupSate<T> {
impl<T: Resource> StatelessBindGroupState<T> {
pub fn new() -> Self {
Self {
resources: Mutex::new(rank::STATELESS_BIND_GROUP_STATE_RESOURCES, Vec::new()),