mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
impl Debug for StagingBelt (#2572)
This commit is contained in:
@@ -2,6 +2,7 @@ use crate::{
|
||||
Buffer, BufferAddress, BufferDescriptor, BufferSize, BufferUsages, BufferViewMut,
|
||||
CommandEncoder, Device, MapMode,
|
||||
};
|
||||
use std::fmt;
|
||||
use std::pin::Pin;
|
||||
use std::task::{self, Poll};
|
||||
use std::{future::Future, sync::mpsc};
|
||||
@@ -182,3 +183,14 @@ impl StagingBelt {
|
||||
Join { futures }
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Debug for StagingBelt {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.debug_struct("StagingBelt")
|
||||
.field("chunk_size", &self.chunk_size)
|
||||
.field("active_chunks", &self.active_chunks.len())
|
||||
.field("closed_chunks", &self.closed_chunks.len())
|
||||
.field("free_chunks", &self.free_chunks.len())
|
||||
.finish_non_exhaustive()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user