remove unused TempResource::Buffer

This commit is contained in:
teoxoy 2024-07-04 12:49:41 +02:00 committed by Teodor Tanasoaia
parent fabbca294a
commit ab88dce759
2 changed files with 0 additions and 7 deletions

View File

@ -313,9 +313,6 @@ impl<A: HalApi> LifetimeTracker<A> {
let mut last_resources = ResourceMaps::new(); let mut last_resources = ResourceMaps::new();
for res in temp_resources { for res in temp_resources {
match res { match res {
TempResource::Buffer(raw) => {
last_resources.buffers.insert(raw.tracker_index(), raw);
}
TempResource::StagingBuffer(raw) => { TempResource::StagingBuffer(raw) => {
last_resources last_resources
.staging_buffers .staging_buffers
@ -419,9 +416,6 @@ impl<A: HalApi> LifetimeTracker<A> {
.map(|a| &mut a.last_resources); .map(|a| &mut a.last_resources);
if let Some(resources) = resources { if let Some(resources) = resources {
match temp_resource { match temp_resource {
TempResource::Buffer(raw) => {
resources.buffers.insert(raw.tracker_index(), raw);
}
TempResource::StagingBuffer(raw) => { TempResource::StagingBuffer(raw) => {
resources.staging_buffers.insert(raw.tracker_index(), raw); resources.staging_buffers.insert(raw.tracker_index(), raw);
} }

View File

@ -145,7 +145,6 @@ pub struct WrappedSubmissionIndex {
/// `maintain` call, no longer used anywhere /// `maintain` call, no longer used anywhere
#[derive(Debug)] #[derive(Debug)]
pub enum TempResource<A: HalApi> { pub enum TempResource<A: HalApi> {
Buffer(Arc<Buffer<A>>),
StagingBuffer(Arc<StagingBuffer<A>>), StagingBuffer(Arc<StagingBuffer<A>>),
DestroyedBuffer(Arc<DestroyedBuffer<A>>), DestroyedBuffer(Arc<DestroyedBuffer<A>>),
DestroyedTexture(Arc<DestroyedTexture<A>>), DestroyedTexture(Arc<DestroyedTexture<A>>),