remove unused RenderBundleScope.query_sets

This commit is contained in:
teoxoy 2024-08-02 18:26:58 +02:00 committed by Teodor Tanasoaia
parent f19217479d
commit 14170fd963
3 changed files with 0 additions and 11 deletions

View File

@ -390,11 +390,6 @@ impl RenderBundleEncoder {
.render_pipelines
.write()
.set_size(indices.render_pipelines.size());
state
.trackers
.query_sets
.write()
.set_size(indices.query_sets.size());
let base = &self.base;

View File

@ -140,7 +140,6 @@ define_lock_ranks! {
rank RENDER_BUNDLE_SCOPE_TEXTURES "RenderBundleScope::textures" followed by { }
rank RENDER_BUNDLE_SCOPE_BIND_GROUPS "RenderBundleScope::bind_groups" followed by { }
rank RENDER_BUNDLE_SCOPE_RENDER_PIPELINES "RenderBundleScope::render_pipelines" followed by { }
rank RENDER_BUNDLE_SCOPE_QUERY_SETS "RenderBundleScope::query_sets" followed by { }
rank RESOURCE_POOL_INNER "ResourcePool::inner" followed by { }
rank SHARED_TRACKER_INDEX_ALLOCATOR_INNER "SharedTrackerIndexAllocator::inner" followed by { }
rank STATELESS_BIND_GROUP_STATE_RESOURCES "StatelessBindGroupState::resources" followed by { }

View File

@ -459,7 +459,6 @@ pub(crate) struct RenderBundleScope<A: HalApi> {
// Don't need to track views and samplers, they are never used directly, only by bind groups.
pub bind_groups: RwLock<StatelessTracker<binding_model::BindGroup<A>>>,
pub render_pipelines: RwLock<StatelessTracker<pipeline::RenderPipeline<A>>>,
pub query_sets: RwLock<StatelessTracker<resource::QuerySet<A>>>,
}
impl<A: HalApi> RenderBundleScope<A> {
@ -482,10 +481,6 @@ impl<A: HalApi> RenderBundleScope<A> {
rank::RENDER_BUNDLE_SCOPE_RENDER_PIPELINES,
StatelessTracker::new(),
),
query_sets: RwLock::new(
rank::RENDER_BUNDLE_SCOPE_QUERY_SETS,
StatelessTracker::new(),
),
}
}