DPC++ Runtime
Runtime libraries for oneAPI DPC++
cl::sycl::detail::__image_array_slice__< DataT, Dimensions, AccessMode, IsPlaceholder > Class Template Reference

#include <CL/sycl/accessor.hpp>

Public Member Functions

 __image_array_slice__ (accessor< DataT, Dimensions, AccessMode, access::target::image_array, IsPlaceholder, ext::oneapi::accessor_property_list<>> BaseAcc, size_t Idx)
 
template<typename CoordT , int Dims = Dimensions, typename = detail::enable_if_t< (Dims > 0) && (IsValidCoordDataT<Dims, CoordT>::value)>>
DataT read (const CoordT &Coords) const
 
template<typename CoordT , int Dims = Dimensions, typename = detail::enable_if_t< (Dims > 0) && IsValidCoordDataT<Dims, CoordT>::value>>
DataT read (const CoordT &Coords, const sampler &Smpl) const
 
template<typename CoordT , int Dims = Dimensions, typename = detail::enable_if_t< (Dims > 0) && IsValidCoordDataT<Dims, CoordT>::value>>
void write (const CoordT &Coords, const DataT &Color) const
 
 __SYCL2020_DEPRECATED ("get_count() is deprecated, please use size() instead") size_t get_count() const
 
size_t size () const noexcept
 
template<int Dims = Dimensions, typename = detail::enable_if_t<(Dims == 1 || Dims == 2)>>
range< Dims > get_range () const
 

Detailed Description

template<typename DataT, int Dimensions, access::mode AccessMode, access::placeholder IsPlaceholder>
class cl::sycl::detail::__image_array_slice__< DataT, Dimensions, AccessMode, IsPlaceholder >

Definition at line 372 of file accessor.hpp.

Constructor & Destructor Documentation

◆ __image_array_slice__()

template<typename DataT , int Dimensions, access::mode AccessMode, access::placeholder IsPlaceholder>
cl::sycl::detail::__image_array_slice__< DataT, Dimensions, AccessMode, IsPlaceholder >::__image_array_slice__ ( accessor< DataT, Dimensions, AccessMode, access::target::image_array, IsPlaceholder, ext::oneapi::accessor_property_list<>>  BaseAcc,
size_t  Idx 
)
inline

Definition at line 711 of file accessor.hpp.

Member Function Documentation

◆ __SYCL2020_DEPRECATED()

template<typename DataT , int Dimensions, access::mode AccessMode, access::placeholder IsPlaceholder>
cl::sycl::detail::__image_array_slice__< DataT, Dimensions, AccessMode, IsPlaceholder >::__SYCL2020_DEPRECATED ( "get_count() is  deprecated,
please use size() instead  
) const
inline

Definition at line 757 of file accessor.hpp.

◆ get_range()

template<typename DataT , int Dimensions, access::mode AccessMode, access::placeholder IsPlaceholder>
template<int Dims = Dimensions, typename = detail::enable_if_t<(Dims == 1 || Dims == 2)>>
range<Dims> cl::sycl::detail::__image_array_slice__< DataT, Dimensions, AccessMode, IsPlaceholder >::get_range ( ) const
inline

Definition at line 765 of file accessor.hpp.

◆ read() [1/2]

template<typename DataT , int Dimensions, access::mode AccessMode, access::placeholder IsPlaceholder>
template<typename CoordT , int Dims = Dimensions, typename = detail::enable_if_t< (Dims > 0) && (IsValidCoordDataT<Dims, CoordT>::value)>>
DataT cl::sycl::detail::__image_array_slice__< DataT, Dimensions, AccessMode, IsPlaceholder >::read ( const CoordT &  Coords) const
inline

Definition at line 721 of file accessor.hpp.

◆ read() [2/2]

template<typename DataT , int Dimensions, access::mode AccessMode, access::placeholder IsPlaceholder>
template<typename CoordT , int Dims = Dimensions, typename = detail::enable_if_t< (Dims > 0) && IsValidCoordDataT<Dims, CoordT>::value>>
DataT cl::sycl::detail::__image_array_slice__< DataT, Dimensions, AccessMode, IsPlaceholder >::read ( const CoordT &  Coords,
const sampler Smpl 
) const
inline

Definition at line 728 of file accessor.hpp.

◆ size()

template<typename DataT , int Dimensions, access::mode AccessMode, access::placeholder IsPlaceholder>
size_t cl::sycl::detail::__image_array_slice__< DataT, Dimensions, AccessMode, IsPlaceholder >::size ( ) const
inlinenoexcept

Definition at line 759 of file accessor.hpp.

References cl::sycl::Dimensions.

◆ write()

template<typename DataT , int Dimensions, access::mode AccessMode, access::placeholder IsPlaceholder>
template<typename CoordT , int Dims = Dimensions, typename = detail::enable_if_t< (Dims > 0) && IsValidCoordDataT<Dims, CoordT>::value>>
void cl::sycl::detail::__image_array_slice__< DataT, Dimensions, AccessMode, IsPlaceholder >::write ( const CoordT &  Coords,
const DataT &  Color 
) const
inline

Definition at line 735 of file accessor.hpp.


The documentation for this class was generated from the following file: