mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 08:13:27 +00:00
remove unnecessary PhantomData
This commit is contained in:
parent
a270577dc4
commit
152a7e7dd0
@ -15,20 +15,18 @@ use crate::{
|
||||
track::{StatelessTracker, TrackerIndex},
|
||||
FastHashMap,
|
||||
};
|
||||
use std::{iter, marker::PhantomData, sync::Arc};
|
||||
use std::{iter, sync::Arc};
|
||||
use thiserror::Error;
|
||||
use wgt::BufferAddress;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct QueryResetMap<A: HalApi> {
|
||||
map: FastHashMap<TrackerIndex, (Vec<bool>, Arc<QuerySet<A>>)>,
|
||||
_phantom: PhantomData<A>,
|
||||
}
|
||||
impl<A: HalApi> QueryResetMap<A> {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
map: FastHashMap::default(),
|
||||
_phantom: PhantomData,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
* one subresource, they have no selector.
|
||||
!*/
|
||||
|
||||
use std::{marker::PhantomData, sync::Arc};
|
||||
use std::sync::Arc;
|
||||
|
||||
use super::{PendingTransition, TrackerIndex};
|
||||
use crate::{
|
||||
@ -43,15 +43,11 @@ impl ResourceUses for BufferUses {
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct BufferBindGroupState<A: HalApi> {
|
||||
buffers: Mutex<Vec<(Arc<Buffer<A>>, BufferUses)>>,
|
||||
|
||||
_phantom: PhantomData<A>,
|
||||
}
|
||||
impl<A: HalApi> BufferBindGroupState<A> {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
buffers: Mutex::new(rank::BUFFER_BIND_GROUP_STATE_BUFFERS, Vec::new()),
|
||||
|
||||
_phantom: PhantomData,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ use naga::FastHashMap;
|
||||
|
||||
use wgt::{strict_assert, strict_assert_eq};
|
||||
|
||||
use std::{iter, marker::PhantomData, ops::Range, sync::Arc, vec::Drain};
|
||||
use std::{iter, ops::Range, sync::Arc, vec::Drain};
|
||||
|
||||
/// Specifies a particular set of subresources in a texture.
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
@ -378,8 +378,6 @@ pub(crate) struct TextureTracker<A: HalApi> {
|
||||
metadata: ResourceMetadata<Arc<Texture<A>>>,
|
||||
|
||||
temp: Vec<PendingTransition<TextureUses>>,
|
||||
|
||||
_phantom: PhantomData<A>,
|
||||
}
|
||||
|
||||
impl<A: HalApi> TextureTracker<A> {
|
||||
@ -391,8 +389,6 @@ impl<A: HalApi> TextureTracker<A> {
|
||||
metadata: ResourceMetadata::new(),
|
||||
|
||||
temp: Vec::new(),
|
||||
|
||||
_phantom: PhantomData,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user