accessor<elemT, kDims, kMode, kTarget, isPlaceholder>
MISSING
|
(1) |
|
(2) |
|
(3) |
|
(4) |
|
(5) |
|
(6) |
|
(7) |
|
(8) |
|
(9) |
|
(10) |
|
(11) |
-
Constructs an accessor of access target access::target::host_buffer by taking a buffer object and initialises the base_accessor with the buffer, the access target, the access mode and the element size.
Parameters:-
buffer<elemT, interface_dims, AllocatorT> &
bufferRef
: Reference to the buffer object the accessor is to access
-
-
Constructs an accessor of access target access::target::global_buffer or access::target::constant_buffer by taking a buffer object and a handler and initialises the base_accessor with the buffer, the handler, the access target, the access mode and the element size.
Parameters:-
buffer<elemT, interface_dims, AllocatorT> &
bufferRef
: Reference to the buffer object the accessor is to access -
cl::sycl::handler &
commandHandler
: Reference to the handler object for the command group
-
-
(deprecated (Deprecated constructor since SYCL 1.2.1))
Constructs an accessor of access target access::target::global_buffer or access::target::constant_buffer by taking a buffer object, a handler, an offset and a range and initialises the base_accessor with the buffer, the handler, the access target, the access mode and the element size. This constructor is for constructing a sub accessor.
Parameters:-
buffer<elemT, kDims, AllocatorT> &
bufferRef
: Reference to the buffer object the accessor is to access -
cl::sycl::handler &
commandHandler
: Reference to the handler object for the command group -
id<kDims>
accessOffset
: The offset that the sub accessor should have access from. -
range<kDims>
accessRange
: The range that the sub accessor should have access to.
-
-
Constructs an accessor of access target global_buffer or constant_buffer from a buffer object, a handler, a range and an offset.
Parameters:-
buffer<elemT, kDims, AllocatorT> &
bufferRef
: Reference to the buffer object the accessor is to access -
cl::sycl::handler &
commandHandler
: Reference to the handler object for the command group -
range<kDims>
accessRange
: The range that the accessor should have access to -
id<kDims>
accessOffset
: The offset that the accessor should have access from
-
-
(deprecated (Deprecated constructor since SYCL 1.2.1))
Constructs an accessor of access target access::target::host_buffer by taking a buffer object, an offset and a range and initialises the base_accessor with the buffer, the access target, the access mode and the element size. This constructor is for constructing a sub accessor.
Parameters:-
buffer<elemT, kDims, AllocatorT> &
bufferRef
: Reference to the buffer object the accessor is to access -
id<kDims>
accessOffset
: The offset that the sub accessor should have access from. -
range<kDims>
accessRange
: The range that the sub accessor should have access to.
-
-
Constructs an accessor of access target host_buffer from a buffer object, an offset and a range
Parameters:-
buffer<elemT, kDims, AllocatorT> &
bufferRef
: Reference to the buffer object the accessor is to access -
range<kDims>
accessRange
: The range that the accessor should have access to -
id<kDims>
accessOffset
: The offset that the accessor should have access from
-
-
Constructs an accessor of access target access::target::image_array by taking an image object of dimensionality one greater than this accessor and initialises the accessor_common with the image.
Parameters:-
image<(kDims + 1), AllocatorT> &
imageRef
: Reference to the image object being accessed. -
cl::sycl::handler &
commandHandler
: Reference to the handler of the command group the
-
-
Constructs an accessor of access target access::target::image by taking an image object and a handler and initialises the base_accessor with the image, the handler, the access target, the access mode and the element size.
Parameters:-
image<kDims, AllocatorT> &
imageRef
: Reference to the image object the accessor is to access -
cl::sycl::handler &
commandHandler
: Reference to the handler object for the command group
-
-
Constructs an accessor of access target access::target::host_image by taking an image object and initialises the base_accessor with the image, the access target, the access mode and the element size.
Parameters:-
image<kDims, AllocatorT> &
imageRef
: Reference to the image object the accessor is to access
-
-
Constructs a 0-dimensional accessor of access target access::target::local by taking a handler and initialises the base_accessor with a range of 1, the handler, the access target, the access mode and the element size.
Parameters:-
cl::sycl::handler &
commandHandler
: Reference to the handler object for the command group
-
-
Constructs an n-dimensional accessor of access target access::target::local by taking a range and a handler and initialises the base_accessor with the range, the handler, the access target, the access mode and the element size.
Parameters:-
range<interface_dims>
numElements
: The range that local memory should be allocated for. -
cl::sycl::handler &
commandHandler
: Reference to the handler object for the command group
-