mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 00:03:29 +00:00
remove unused TempResource::Buffer
This commit is contained in:
parent
fabbca294a
commit
ab88dce759
@ -313,9 +313,6 @@ impl<A: HalApi> LifetimeTracker<A> {
|
||||
let mut last_resources = ResourceMaps::new();
|
||||
for res in temp_resources {
|
||||
match res {
|
||||
TempResource::Buffer(raw) => {
|
||||
last_resources.buffers.insert(raw.tracker_index(), raw);
|
||||
}
|
||||
TempResource::StagingBuffer(raw) => {
|
||||
last_resources
|
||||
.staging_buffers
|
||||
@ -419,9 +416,6 @@ impl<A: HalApi> LifetimeTracker<A> {
|
||||
.map(|a| &mut a.last_resources);
|
||||
if let Some(resources) = resources {
|
||||
match temp_resource {
|
||||
TempResource::Buffer(raw) => {
|
||||
resources.buffers.insert(raw.tracker_index(), raw);
|
||||
}
|
||||
TempResource::StagingBuffer(raw) => {
|
||||
resources.staging_buffers.insert(raw.tracker_index(), raw);
|
||||
}
|
||||
|
@ -145,7 +145,6 @@ pub struct WrappedSubmissionIndex {
|
||||
/// `maintain` call, no longer used anywhere
|
||||
#[derive(Debug)]
|
||||
pub enum TempResource<A: HalApi> {
|
||||
Buffer(Arc<Buffer<A>>),
|
||||
StagingBuffer(Arc<StagingBuffer<A>>),
|
||||
DestroyedBuffer(Arc<DestroyedBuffer<A>>),
|
||||
DestroyedTexture(Arc<DestroyedTexture<A>>),
|
||||
|
Loading…
Reference in New Issue
Block a user