Trait gfx::format::ChannelTyped

source ·
pub trait ChannelTyped {
    type ShaderType;

    // Required method
    fn get_channel_type() -> ChannelType;
}
Expand description

Compile-time channel type trait.

Required Associated Types§

source

type ShaderType

Shader-visible type that corresponds to this channel. For example, normalized integers are visible as floats.

Required Methods§

source

fn get_channel_type() -> ChannelType

Return the run-time value of the type.

Implementors§