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.
Types
Type | Definition | Notes |
---|---|---|
AllocatorT |
Helper for the user, alias for the type of the allocator |
|
const T & |
Helper for the user, alias for const reference to type T |
|
T & |
Helper for the user, alias for reference to type T |
|
T |
Helper for the user, alias for type T |
Member Functions
(constructor) | |
(destructor) | |
MISSING |
|
Returns the allocator provided to the buffer |
|
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. |
|
Returns whether this SYCL buffer was constructed with the property specified by propertyT |
|
Creates and returns a reinterpreted SYCL buffer with the type specified by ReinterpretT, dimensions specified by ReinterpretDim and range specified by reinterpretRange |