syclreference.com
  1. SYCL
  2. | API Reference
  3. | Buffers
  4. | buffer

buffer<const T, dimensions, AllocatorT>

Specialization for const buffers, that allows the creation of buffers on the device from const data. Any allocator, but the map allocator, can be used to create host data. The allocator must remove the constness of the data in order to create temporary objects, but host accessors will only be read only always.

class cl::sycl::buffer;

Types

Type Definition Notes
allocator_type
AllocatorT

Helper for the user, alias for the type of the allocator

const_reference
const T &

Helper for the user, alias for const reference to type T

reference
T &

Helper for the user, alias for reference to type T

value_type
T

Helper for the user, alias for type T

Member Functions

(constructor)
(destructor)
get_access

MISSING

get_allocator

Returns the allocator provided to the buffer

get_property

Returns a copy of the property of type propertyT that this SYCL buffer was constructed with. Throws an error if buffer was not constructed with the property.

has_property

Returns whether this SYCL buffer was constructed with the property specified by propertyT

reinterpret

Creates and returns a reinterpreted SYCL buffer with the type specified by ReinterpretT, dimensions specified by ReinterpretDim and range specified by reinterpretRange

syclreference.com — SYCL Reference Pages

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