rendy_texture::pixel

Trait ChannelSize

Source
pub trait ChannelSize {
    const SIZE: u32;
}
Expand description

Byte size of each channel in the image, such as Red, Green, or other channels depending on the format.

Required Associated Constants§

Source

const SIZE: u32

Channel representation.

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§

Source§

impl ChannelSize for _8

Source§

const SIZE: u32 = 1u32

Source§

impl ChannelSize for _16

Source§

const SIZE: u32 = 2u32

Source§

impl ChannelSize for _32

Source§

const SIZE: u32 = 4u32

Source§

impl ChannelSize for _64

Source§

const SIZE: u32 = 8u32