Enum BindingUsage
pub enum BindingUsage {
StorageRead,
StorageReadWrite,
Uniform,
StorageReadResident,
}Expand description
How a BufferView is bound in a dispatch. Determines which physical slab
backs it: wgpu forbids a single buffer being bound as both read-only and
read-write storage in one dispatch, so read-write outputs live in a separate
buffer from read-only/uniform inputs.
Variants§
StorageRead
StorageReadWrite
Uniform
StorageReadResident
Read-only storage that lives in the persistent weight region, not the recycling
transient ring. Backed by its own device buffer (weight_slab) and a write-once bump
cursor, so a view with this usage survives super::wgpu::WgpuComputeContext::clear_transient_allocations
— uploaded once (e.g. a decode layer’s projection / FFN matrices) and referenced by offset
across many runs. Bound exactly like Self::StorageRead in the shader (a distinct
read-only storage buffer in the same bind group); only the backing buffer differs.
Trait Implementations§
§impl Clone for BindingUsage
impl Clone for BindingUsage
§fn clone(&self) -> BindingUsage
fn clone(&self) -> BindingUsage
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 BindingUsage
§impl Debug for BindingUsage
impl Debug for BindingUsage
impl Eq for BindingUsage
§impl PartialEq for BindingUsage
impl PartialEq for BindingUsage
impl StructuralPartialEq for BindingUsage
Auto Trait Implementations§
impl Freeze for BindingUsage
impl RefUnwindSafe for BindingUsage
impl Send for BindingUsage
impl Sync for BindingUsage
impl Unpin for BindingUsage
impl UnsafeUnpin for BindingUsage
impl UnwindSafe for BindingUsage
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
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,
§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
§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
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more