pub struct BindGroupLayoutEntry {
pub binding: u32,
pub visibility: ShaderStages,
pub ty: BindingType,
}Expand description
One slot in a bind-group layout: index, visibility, kind. Every binding index is declared here with a name; shaders never invent one.
Fields§
§binding: u32Binding index within the group.
visibility: ShaderStagesStages that access it.
ty: BindingTypeThe resource kind.
Trait Implementations§
Source§impl Clone for BindGroupLayoutEntry
impl Clone for BindGroupLayoutEntry
impl Copy for BindGroupLayoutEntry
Auto Trait Implementations§
impl Freeze for BindGroupLayoutEntry
impl RefUnwindSafe for BindGroupLayoutEntry
impl Send for BindGroupLayoutEntry
impl Sync for BindGroupLayoutEntry
impl Unpin for BindGroupLayoutEntry
impl UnsafeUnpin for BindGroupLayoutEntry
impl UnwindSafe for BindGroupLayoutEntry
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