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
Shader-visible type that corresponds to this channel. For example, normalized integers are visible as floats.
Required Methods
fn get_channel_type() -> ChannelType
Return the run-time value of the type.
Implementors
impl ChannelTyped for Int type ShaderType = i32;
impl ChannelTyped for Uint type ShaderType = u32;
impl ChannelTyped for Inorm type ShaderType = f32;
impl ChannelTyped for Unorm type ShaderType = f32;
impl ChannelTyped for Float type ShaderType = f32;
impl ChannelTyped for Srgb type ShaderType = f32;