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

buffer<T, dimensions, AllocatorT>

buffer is the public interface for the buffer object implementation. The template allows the creation of specific types and number of dimensions.

template <typename T, int dimensions, typename AllocatorT>
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.

get_range

Returns the range of the buffer.

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