Struct gfx::shade::core::TextureVar []

pub struct TextureVar {
    pub name: String,
    pub slot: u8,
    pub base_type: BaseType,
    pub ty: TextureType,
    pub usage: Usage,
}

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

impl Debug for TextureVar

fn fmt(&self, __arg_0: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl PartialEq<TextureVar> for TextureVar

fn eq(&self, __arg_0: &TextureVar) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &TextureVar) -> bool

This method tests for !=.

impl Clone for TextureVar

fn clone(&self) -> TextureVar

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more