Enum ocl::enums::ImageInfoResult
[−]
[src]
pub enum ImageInfoResult { Format(Result<ImageFormat, ImageFormatParseError>), ElementSize(usize), RowPitch(usize), SlicePitch(usize), Width(usize), Height(usize), Depth(usize), ArraySize(usize), Buffer(Option<Mem>), NumMipLevels(u32), NumSamples(u32), Error(Box<Error>), }
An image info result.
Variants
Format(Result<ImageFormat, ImageFormatParseError>)
ElementSize(usize)
RowPitch(usize)
SlicePitch(usize)
Width(usize)
Height(usize)
Depth(usize)
ArraySize(usize)
Buffer(Option<Mem>)
NumMipLevels(u32)
NumSamples(u32)
Error(Box<Error>)
Methods
impl ImageInfoResult
[src]
fn from_bytes(
request: ImageInfo,
result: Result<Vec<u8>, Error>
) -> ImageInfoResult
request: ImageInfo,
result: Result<Vec<u8>, Error>
) -> ImageInfoResult
Trait Implementations
impl Display for ImageInfoResult
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Error for ImageInfoResult
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more
impl Debug for ImageInfoResult
[src]
impl From<Error> for ImageInfoResult
[src]
fn from(err: Error) -> ImageInfoResult
Performs the conversion.