pub struct TextureDesc<'a> {
pub name: &'a str,
pub read: TextureRead,
pub stages: ShaderStages,
pub variants: Variants<'a>,
}Expand description
Texture binding slot declared by a program.
Use TextureDesc::UNUSED for an unoccupied slot to keep binding indices
aligned with shader source declarations.
Fields§
§name: &'a str§read: TextureRead§stages: ShaderStages§variants: Variants<'a>Implementations§
Source§impl TextureDesc<'_>
impl TextureDesc<'_>
Trait Implementations§
Source§impl<'a> Clone for TextureDesc<'a>
impl<'a> Clone for TextureDesc<'a>
impl<'a> Copy for TextureDesc<'a>
Auto Trait Implementations§
impl<'a> Forget for TextureDesc<'a>
impl<'a> Freeze for TextureDesc<'a>
impl<'a> Move for TextureDesc<'a>
impl<'a> RefUnwindSafe for TextureDesc<'a>
impl<'a> Send for TextureDesc<'a>
impl<'a> Sync for TextureDesc<'a>
impl<'a> Unpin for TextureDesc<'a>
impl<'a> UnsafeUnpin for TextureDesc<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for TextureDesc<'a>where
&'a str: UnwindSafe,
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