Struct nannou::wgpu::BindGroupLayoutEntry [−]
pub struct BindGroupLayoutEntry { pub binding: u32, pub visibility: ShaderStage, pub ty: BindingType, pub count: Option<NonZeroU32>, }
Expand description
Describes a single binding inside a bind group.
Fields
binding: u32
Binding index. Must match shader index and be unique inside a BindGroupLayout. A binding
of index 1, would be described as layout(set = 0, binding = 1) uniform
in shaders.
visibility: ShaderStage
Which shader stages can see this binding.
ty: BindingType
The type of the binding
count: Option<NonZeroU32>
If this value is Some, indicates this entry is an array. Array size must be 1 or greater.
If this value is Some and ty
is BindingType::Texture
, Features::SAMPLED_TEXTURE_BINDING_ARRAY
must be supported.
If this value is Some and ty
is any other variant, bind group creation will fail.
Trait Implementations
impl Clone for BindGroupLayoutEntry
impl Clone for BindGroupLayoutEntry
pub fn clone(&self) -> BindGroupLayoutEntry
pub fn clone(&self) -> BindGroupLayoutEntry
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for BindGroupLayoutEntry
impl Debug for BindGroupLayoutEntry
impl Hash for BindGroupLayoutEntry
impl Hash for BindGroupLayoutEntry
pub fn eq(&self, other: &BindGroupLayoutEntry) -> bool
pub fn eq(&self, other: &BindGroupLayoutEntry) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &BindGroupLayoutEntry) -> bool
pub fn ne(&self, other: &BindGroupLayoutEntry) -> bool
This method tests for !=
.
impl Copy for BindGroupLayoutEntry
impl Eq for BindGroupLayoutEntry
impl StructuralEq for BindGroupLayoutEntry
impl StructuralPartialEq for BindGroupLayoutEntry
Auto Trait Implementations
impl RefUnwindSafe for BindGroupLayoutEntry
impl Send for BindGroupLayoutEntry
impl Sync for BindGroupLayoutEntry
impl Unpin for BindGroupLayoutEntry
impl UnwindSafe for BindGroupLayoutEntry
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V