Struct gfx::shade::core::TextureVar
source · 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: String
Name of this texture variable.
slot: u8
Slot of this texture variable.
base_type: BaseType
Base type for the texture.
ty: TextureType
Type of this texture.
usage: Usage
What 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 copy 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<TextureVar> for TextureVar
impl PartialEq<TextureVar> for TextureVar
source§fn eq(&self, other: &TextureVar) -> bool
fn eq(&self, other: &TextureVar) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.