pub struct GpuImageReceipt { /* private fields */ }Expand description
Transfer accounting for GPU image uploads, device copies, and readbacks.
Implementations§
Source§impl GpuImageReceipt
impl GpuImageReceipt
Sourcepub const fn host_to_device_bytes(&self) -> u64
pub const fn host_to_device_bytes(&self) -> u64
Returns physical bytes explicitly uploaded from host memory.
Sourcepub const fn gpu_to_gpu_bytes(&self) -> u64
pub const fn gpu_to_gpu_bytes(&self) -> u64
Returns physical bytes copied or written by device-side stages.
Sourcepub const fn device_to_host_bytes(&self) -> u64
pub const fn device_to_host_bytes(&self) -> u64
Returns physical bytes explicitly copied back to host memory.
Sourcepub fn stages(&self) -> &[&'static str]
pub fn stages(&self) -> &[&'static str]
Returns the ordered logical transfer and kernel stage names.
Sourcepub fn validate_resident_chain(
&self,
expected_upload_bytes: u64,
) -> SpatialResult<()>
pub fn validate_resident_chain( &self, expected_upload_bytes: u64, ) -> SpatialResult<()>
Verifies the transfer contract for a caller-uploaded resident chain.
The expected byte count is the physical RGBA8 texture upload size.
Trait Implementations§
Source§impl Clone for GpuImageReceipt
impl Clone for GpuImageReceipt
Source§fn clone(&self) -> GpuImageReceipt
fn clone(&self) -> GpuImageReceipt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GpuImageReceipt
impl Debug for GpuImageReceipt
Source§impl Default for GpuImageReceipt
impl Default for GpuImageReceipt
Source§fn default() -> GpuImageReceipt
fn default() -> GpuImageReceipt
Returns the “default value” for a type. Read more
Source§impl PartialEq for GpuImageReceipt
impl PartialEq for GpuImageReceipt
Source§fn eq(&self, other: &GpuImageReceipt) -> bool
fn eq(&self, other: &GpuImageReceipt) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GpuImageReceipt
impl StructuralPartialEq for GpuImageReceipt
Auto Trait Implementations§
impl Freeze for GpuImageReceipt
impl RefUnwindSafe for GpuImageReceipt
impl Send for GpuImageReceipt
impl Sync for GpuImageReceipt
impl Unpin for GpuImageReceipt
impl UnsafeUnpin for GpuImageReceipt
impl UnwindSafe for GpuImageReceipt
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more