[go: up one dir, main page]

ChannelTyped

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§