Enum ocl::WorkDims [] [src]

pub enum WorkDims {
    Unspecified,
    OneDim(usize),
    TwoDims(usizeusize),
    ThreeDims(usizeusizeusize),
}

Defines the amount of work to be done by a kernel for each of up to three dimensions.

[UNSTABLE]: MAY BE CONSOLIDATED WITH SimpleDims.

Variants

UnspecifiedOneDim(usize)TwoDims(usizeusize)ThreeDims(usizeusizeusize)

Methods

impl WorkDims
[src]

fn dim_count(&self) -> u32

Returns the number of dimensions defined by this WorkDims.

fn as_core(&self) -> Option<[usize; 3]>

Trait Implementations

impl Clone for WorkDims
[src]

fn clone(&self) -> WorkDims

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

impl Debug for WorkDims
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl PartialEq for WorkDims
[src]

fn eq(&self, __arg_0: &WorkDims) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &WorkDims) -> bool

This method tests for !=.