pub struct Texture3dUpdateBudget { /* private fields */ }Expand description
Explicit operation-local limits for atomic texture edits and alias detachment.
Peak recovery includes old plus candidate CPU chains. Staging limits cover owned packed-patch capacity plus nominal queued upload bytes, not unobservable driver allocations. GPU copy is separate from host upload. Caller input, unrelated snapshots and previously submitted driver work are excluded.
Implementations§
Source§impl Texture3dUpdateBudget
impl Texture3dUpdateBudget
Sourcepub const fn new(
upload_bytes: usize,
staging_bytes: usize,
peak_recovery_bytes: usize,
peak_gpu_bytes: usize,
gpu_copy_bytes: usize,
) -> Self
pub const fn new( upload_bytes: usize, staging_bytes: usize, peak_recovery_bytes: usize, peak_gpu_bytes: usize, gpu_copy_bytes: usize, ) -> Self
Sets host-upload, staging, old-plus-candidate CPU, old-plus-new GPU and GPU-copy byte limits in that order. Zero prohibits the corresponding work.
Sourcepub const fn max_upload_bytes(self) -> usize
pub const fn max_upload_bytes(self) -> usize
Maximum bytes uploaded from the host, excluding GPU-to-GPU copies.
Sourcepub const fn max_staging_bytes(self) -> usize
pub const fn max_staging_bytes(self) -> usize
Maximum owned packed-patch capacity plus nominal queued-upload bytes.
Sourcepub const fn max_peak_recovery_bytes(self) -> usize
pub const fn max_peak_recovery_bytes(self) -> usize
Maximum old plus candidate CPU chain capacity.
Sourcepub const fn max_peak_gpu_bytes(self) -> usize
pub const fn max_peak_gpu_bytes(self) -> usize
Maximum old plus new nominal GPU texture storage.
Sourcepub const fn max_gpu_copy_bytes(self) -> usize
pub const fn max_gpu_copy_bytes(self) -> usize
Maximum GPU-to-GPU copy bytes when aliases require detachment.
Trait Implementations§
Source§impl Clone for Texture3dUpdateBudget
impl Clone for Texture3dUpdateBudget
Source§fn clone(&self) -> Texture3dUpdateBudget
fn clone(&self) -> Texture3dUpdateBudget
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 Texture3dUpdateBudget
Source§impl Debug for Texture3dUpdateBudget
impl Debug for Texture3dUpdateBudget
Source§impl Default for Texture3dUpdateBudget
impl Default for Texture3dUpdateBudget
impl Eq for Texture3dUpdateBudget
Source§impl PartialEq for Texture3dUpdateBudget
impl PartialEq for Texture3dUpdateBudget
impl StructuralPartialEq for Texture3dUpdateBudget
Auto Trait Implementations§
impl Freeze for Texture3dUpdateBudget
impl RefUnwindSafe for Texture3dUpdateBudget
impl Send for Texture3dUpdateBudget
impl Sync for Texture3dUpdateBudget
impl Unpin for Texture3dUpdateBudget
impl UnsafeUnpin for Texture3dUpdateBudget
impl UnwindSafe for Texture3dUpdateBudget
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.