syclreference.com
  1. SYCL
  2. | API Reference
  3. | Accessors
  4. | accessor

accessor<elemT, kDims, kMode, kTarget, access::placeholder::true_t>

A public facing accessor that can be constructed outside of a command group.

class cl::sycl::accessor;

Member Functions

(constructor)
get_access

Obtains a normal accessor from the placeholder accessor

operator-

Creates and returns a new accessor with its offset changed by rhs

operator-=

Chnages this->offset by rhs as this->get_offset()[0] - rhs

operator+

Creates and returns a new accessor with its offset changed by rhs

operator+=

Chnages this->offset by rhs as this->get_offset()[0] + rhs

syclreference.com — SYCL Reference Pages

Last updated: 2019-01-24 00:24:52 +0000