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

reinterpret

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


template <typename ReinterpretT, int ReinterpretDim>
buffer<ReinterpretT, ReinterpretDim, AllocatorT> reinterpret(range<ReinterpretDim> reinterpretRange) const
(1)
  1. Creates and returns a reinterpreted SYCL buffer with the type specified by ReinterpretT, dimensions specified by ReinterpretDim and range specified by reinterpretRange
    Parameters:
    • range<ReinterpretDim> reinterpretRange : the range that the new buffer will use.
    Returns: the reinterpreted buffer with the requested parameters

syclreference.com — SYCL Reference Pages

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