pub struct BindingLayoutEntry {
pub binding: u32,
pub visibility: ShaderStages,
pub ty: BindingType,
}Fields§
§binding: u32§visibility: ShaderStages§ty: BindingTypeImplementations§
Source§impl BindingLayoutEntry
impl BindingLayoutEntry
pub fn texture(binding: u32, visibility: ShaderStages) -> Self
pub fn storage_texture( binding: u32, visibility: ShaderStages, format: TextureFormat, access: StorageTextureAccess, ) -> Self
pub fn sampler(binding: u32, visibility: ShaderStages) -> Self
pub fn uniform(binding: u32, visibility: ShaderStages) -> Self
pub fn storage(binding: u32, visibility: ShaderStages, read_only: bool) -> Self
Trait Implementations§
Source§impl Clone for BindingLayoutEntry
impl Clone for BindingLayoutEntry
Source§fn clone(&self) -> BindingLayoutEntry
fn clone(&self) -> BindingLayoutEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BindingLayoutEntry
impl RefUnwindSafe for BindingLayoutEntry
impl Send for BindingLayoutEntry
impl Sync for BindingLayoutEntry
impl Unpin for BindingLayoutEntry
impl UnsafeUnpin for BindingLayoutEntry
impl UnwindSafe for BindingLayoutEntry
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