pub struct WGSLBindingGroupLayout {
pub group: u32,
pub entries: Vec<WGSLBindingEntry>,
}Expand description
A descriptor binding group layout.
Fields§
§group: u32Group index.
entries: Vec<WGSLBindingEntry>Entries in this group.
Implementations§
Source§impl WGSLBindingGroupLayout
impl WGSLBindingGroupLayout
Sourcepub fn add_entry(
&mut self,
binding: u32,
resource_type: WGSLResourceType,
visibility: WGSLStageVisibility,
)
pub fn add_entry( &mut self, binding: u32, resource_type: WGSLResourceType, visibility: WGSLStageVisibility, )
Add a binding entry.
Sourcepub fn emit_comment(&self) -> String
pub fn emit_comment(&self) -> String
Emit a comment block describing the layout.
Trait Implementations§
Source§impl Clone for WGSLBindingGroupLayout
impl Clone for WGSLBindingGroupLayout
Source§fn clone(&self) -> WGSLBindingGroupLayout
fn clone(&self) -> WGSLBindingGroupLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WGSLBindingGroupLayout
impl RefUnwindSafe for WGSLBindingGroupLayout
impl Send for WGSLBindingGroupLayout
impl Sync for WGSLBindingGroupLayout
impl Unpin for WGSLBindingGroupLayout
impl UnsafeUnpin for WGSLBindingGroupLayout
impl UnwindSafe for WGSLBindingGroupLayout
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