mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +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();
|
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);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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>>),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user