wgpu_core::binding_model

Type Alias ResolvedBufferBinding

Source
pub type ResolvedBufferBinding = BufferBinding<Arc<Buffer>>;

Aliased Type§

struct ResolvedBufferBinding {
    pub buffer: Arc<Buffer>,
    pub offset: u64,
    pub size: Option<NonZero<u64>>,
}

Fields§

§buffer: Arc<Buffer>§offset: u64§size: Option<NonZero<u64>>

Trait Implementations

Source§

impl<B: Clone> Clone for BufferBinding<B>

Source§

fn clone(&self) -> BufferBinding<B>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<B: Debug> Debug for BufferBinding<B>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, B> Deserialize<'de> for BufferBinding<B>
where B: Deserialize<'de>,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<B: Hash> Hash for BufferBinding<B>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<B: PartialEq> PartialEq for BufferBinding<B>

Source§

fn eq(&self, other: &BufferBinding<B>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<B> Serialize for BufferBinding<B>
where B: Serialize,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<B: Eq> Eq for BufferBinding<B>

Source§

impl<B> StructuralPartialEq for BufferBinding<B>