pub trait ChannelTyped {
type ShaderType;
// Required method
fn get_channel_type() -> ChannelType;
}Expand description
Compile-time channel type trait.
Required Associated Types§
Sourcetype ShaderType
type ShaderType
Shader-visible type that corresponds to this channel. For example, normalized integers are visible as floats.
Required Methods§
Sourcefn get_channel_type() -> ChannelType
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.