pub struct TextureVar {
pub name: String,
pub slot: u8,
pub base_type: BaseType,
pub ty: TextureType,
pub usage: Usage,
}Expand description
Texture shader parameter.
Fields§
§name: StringName of this texture variable.
slot: u8Slot of this texture variable.
base_type: BaseTypeBase type for the texture.
ty: TextureTypeType of this texture.
usage: UsageWhat program stage this texture is used in.
Trait Implementations§
Source§impl Clone for TextureVar
impl Clone for TextureVar
Source§fn clone(&self) -> TextureVar
fn clone(&self) -> TextureVar
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 moreSource§impl Debug for TextureVar
impl Debug for TextureVar
Source§impl Hash for TextureVar
impl Hash for TextureVar
Source§impl PartialEq for TextureVar
impl PartialEq for TextureVar
impl Eq for TextureVar
impl StructuralPartialEq for TextureVar
Auto Trait Implementations§
impl Freeze for TextureVar
impl RefUnwindSafe for TextureVar
impl Send for TextureVar
impl Sync for TextureVar
impl Unpin for TextureVar
impl UnwindSafe for TextureVar
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