Trait fil_ocl::traits::WorkDims[][src]

pub trait WorkDims {
    fn dim_count(&self) -> u32;
fn to_work_size(&self) -> Option<[usize; 3]>;
fn to_work_offset(&self) -> Option<[usize; 3]>; }

Types which have properties describing the amount of work to be done in multiple dimensions.

Required methods

fn dim_count(&self) -> u32[src]

Returns the number of dimensions defined.

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

Returns an array representing the amount of work to be done by a kernel.

Unspecified dimensions (for example, the 3rd dimension in a 1-dimensional work size) are set equal to 1.

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

Returns an array representing the offset of a work item or memory location.

Unspecified dimensions (for example, the 3rd dimension in a 1-dimensional work size) are set equal to 0.

Loading content...

Implementors

Loading content...