Trait gfx_core::format::ChannelTyped[][src]

pub trait ChannelTyped {
    type ShaderType;
    fn get_channel_type() -> ChannelType;
}

Compile-time channel type trait.

Associated Types

type ShaderType[src]

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

Loading content...

Required methods

fn get_channel_type() -> ChannelType[src]

Return the run-time value of the type.

Loading content...

Implementors

impl ChannelTyped for Float[src]

impl ChannelTyped for Inorm[src]

impl ChannelTyped for Int[src]

impl ChannelTyped for Srgb[src]

impl ChannelTyped for Uint[src]

impl ChannelTyped for Unorm[src]

Loading content...