Enum ocl::core::ImageChannelDataType [] [src]

pub enum ImageChannelDataType {
    SnormInt8,
    SnormInt16,
    UnormInt8,
    UnormInt16,
    UnormShort565,
    UnormShort555,
    UnormInt101010,
    SignedInt8,
    SignedInt16,
    SignedInt32,
    UnsignedInt8,
    UnsignedInt16,
    UnsignedInt32,
    HalfFloat,
    Float,
    UnormInt24,
}

Describes the size of the channel data type. The number of bits per element determined by the image_channel_data_type and image_channel_order must be a power of two. The list of supported values is described in the table below. (from SDK)

Variants

SnormInt8

Each channel component is a normalized signed 8-bit integer value:

SnormInt16

Each channel component is a normalized signed 16-bit integer value:

UnormInt8

Each channel component is a normalized unsigned 8-bit integer value:

UnormInt16

Each channel component is a normalized unsigned 16-bit integer value:

UnormShort565

Represents a normalized 5-6-5 3-channel RGB image. The channel order must be CL_RGB or CL_RGBx:

UnormShort555

Represents a normalized x-5-5-5 4-channel xRGB image. The channel order must be CL_RGB or CL_RGBx:

UnormInt101010

Represents a normalized x-10-10-10 4-channel xRGB image. The channel order must be CL_RGB or CL_RGBx:

SignedInt8

Each channel component is an unnormalized signed 8-bit integer value:

SignedInt16

Each channel component is an unnormalized signed 16-bit integer value:

SignedInt32

Each channel component is an unnormalized signed 32-bit integer value:

UnsignedInt8

Each channel component is an unnormalized unsigned 8-bit integer value:

UnsignedInt16

Each channel component is an unnormalized unsigned 16-bit integer value:

UnsignedInt32

Each channel component is an unnormalized unsigned 32-bit integer value:

HalfFloat

Each channel component is a 16-bit half-float value:

Float

Each channel component is a single precision floating-point value:

UnormInt24

Each channel component is a normalized unsigned 24-bit integer value:

Trait Implementations

impl Copy for ImageChannelDataType
[src]

impl Clone for ImageChannelDataType
[src]

fn clone(&self) -> ImageChannelDataType

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more