mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-30 10:03:58 +01:00
Improve the consistency of identifiers (#5108)
This commit is contained in:
1 parent
4face1c2ba
commit
dec6ea5ea4
31 files changed
+687
-572
No files matched your search
@@ -7,7 +7,7 @@ use crate::{
|
||||
device::DeviceError,
|
||||
global::Global,
|
||||
hal_api::HalApi,
|
||||
id::{self, Id, TypedId},
|
||||
id::{self, Id},
|
||||
identity::GlobalIdentityHandlerFactory,
|
||||
init_tracker::MemoryInitKind,
|
||||
resource::QuerySet,
|
||||
@@ -49,7 +49,7 @@ impl<A: HalApi> QueryResetMap<A> {
|
||||
pub fn reset_queries(
|
||||
&mut self,
|
||||
raw_encoder: &mut A::CommandEncoder,
|
||||
query_set_storage: &Storage<QuerySet<A>, id::QuerySetId>,
|
||||
query_set_storage: &Storage<QuerySet<A>>,
|
||||
backend: wgt::Backend,
|
||||
) -> Result<(), id::QuerySetId> {
|
||||
for (query_set_id, (state, epoch)) in self.map.drain() {
|
||||
@@ -314,7 +314,7 @@ impl<A: HalApi> QuerySet<A> {
|
||||
|
||||
pub(super) fn end_occlusion_query<A: HalApi>(
|
||||
raw_encoder: &mut A::CommandEncoder,
|
||||
storage: &Storage<QuerySet<A>, id::QuerySetId>,
|
||||
storage: &Storage<QuerySet<A>>,
|
||||
active_query: &mut Option<(id::QuerySetId, u32)>,
|
||||
) -> Result<(), QueryUseError> {
|
||||
if let Some((query_set_id, query_index)) = active_query.take() {
|
||||
@@ -331,7 +331,7 @@ pub(super) fn end_occlusion_query<A: HalApi>(
|
||||
|
||||
pub(super) fn end_pipeline_statistics_query<A: HalApi>(
|
||||
raw_encoder: &mut A::CommandEncoder,
|
||||
storage: &Storage<QuerySet<A>, id::QuerySetId>,
|
||||
storage: &Storage<QuerySet<A>>,
|
||||
active_query: &mut Option<(id::QuerySetId, u32)>,
|
||||
) -> Result<(), QueryUseError> {
|
||||
if let Some((query_set_id, query_index)) = active_query.take() {
|
||||
|
||||
Reference in new issue
Block a user