pub struct ImageBatchUploadReport { /* private fields */ }Expand description
CPU outcome of replacing a retained image/sprite instance batch.
This report is intentionally distinct from ImageUploadReport: batch
replacement uploads instance-buffer records and does not replace or upload
the referenced image texture.
Implementations§
Source§impl ImageBatchUploadReport
impl ImageBatchUploadReport
Sourcepub const fn uploaded_instance_bytes(self) -> usize
pub const fn uploaded_instance_bytes(self) -> usize
Returns instance-buffer bytes submitted to the queue.
Sourcepub const fn replaced_instance_buffer(self) -> bool
pub const fn replaced_instance_buffer(self) -> bool
Returns whether the operation replaced the underlying instance buffer.
Sourcepub const fn sprite_count(self) -> usize
pub const fn sprite_count(self) -> usize
Returns the accepted logical sprite count, including zero for an empty update.
Sourcepub const fn retained_capacity(self) -> usize
pub const fn retained_capacity(self) -> usize
Returns reusable CPU sprite/instance capacity, excluding allocator metadata.
Sourcepub const fn gpu_capacity(self) -> usize
pub const fn gpu_capacity(self) -> usize
Returns reusable GPU instance capacity (an empty buffer has one slot).
Sourcepub const fn retained_bytes(self) -> usize
pub const fn retained_bytes(self) -> usize
Returns retained CPU description and conversion-staging allocation bytes.
Sourcepub const fn peak_retained_bytes(self) -> usize
pub const fn peak_retained_bytes(self) -> usize
Returns the maximum old-plus-new CPU allocation bytes owned during this update. Caller input and opaque allocator/backend staging are not included.
Sourcepub const fn peak_gpu_bytes(self) -> usize
pub const fn peak_gpu_bytes(self) -> usize
Returns old-plus-new GPU instance-buffer bytes during replacement, or the reused allocation size. In-flight retirement remains owned by wgpu.
Trait Implementations§
Source§impl Clone for ImageBatchUploadReport
impl Clone for ImageBatchUploadReport
Source§fn clone(&self) -> ImageBatchUploadReport
fn clone(&self) -> ImageBatchUploadReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ImageBatchUploadReport
Source§impl Debug for ImageBatchUploadReport
impl Debug for ImageBatchUploadReport
impl Eq for ImageBatchUploadReport
Source§impl PartialEq for ImageBatchUploadReport
impl PartialEq for ImageBatchUploadReport
impl StructuralPartialEq for ImageBatchUploadReport
Auto Trait Implementations§
impl Freeze for ImageBatchUploadReport
impl RefUnwindSafe for ImageBatchUploadReport
impl Send for ImageBatchUploadReport
impl Sync for ImageBatchUploadReport
impl Unpin for ImageBatchUploadReport
impl UnsafeUnpin for ImageBatchUploadReport
impl UnwindSafe for ImageBatchUploadReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.