mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 22:33:49 +00:00
typo: s/StatelessBindGroupSate/StatelessBindGroupState/ (#5810)
This commit is contained in:
parent
c4a8f038ee
commit
d7a35ecda0
@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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()),
|
||||
|
Loading…
Reference in New Issue
Block a user