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

#include <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 = std::enable_if_t< (Dims > 0) && (IsValidCoordDataT<Dims, CoordT>::value)>>
DataT read (const CoordT &Coords) const
 
template<typename CoordT , int Dims = Dimensions, typename = std::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 = std::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 = std::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 sycl::_V1::detail::__image_array_slice__< DataT, Dimensions, AccessMode, IsPlaceholder >

Definition at line 878 of file accessor.hpp.

Constructor & Destructor Documentation

◆ __image_array_slice__()

template<typename DataT , int Dimensions, access::mode AccessMode, access::placeholder IsPlaceholder>
sycl::_V1::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 907 of file accessor.hpp.

Member Function Documentation

◆ __SYCL2020_DEPRECATED()

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

Definition at line 953 of file accessor.hpp.

◆ get_range()

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

Definition at line 961 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 = std::enable_if_t< (Dims > 0) && (IsValidCoordDataT<Dims, CoordT>::value)>>
DataT sycl::_V1::detail::__image_array_slice__< DataT, Dimensions, AccessMode, IsPlaceholder >::read ( const CoordT &  Coords) const
inline

Definition at line 917 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 = std::enable_if_t<(Dims > 0) && IsValidCoordDataT<Dims, CoordT>::value>>
DataT sycl::_V1::detail::__image_array_slice__< DataT, Dimensions, AccessMode, IsPlaceholder >::read ( const CoordT &  Coords,
const sampler &  Smpl 
) const
inline

Definition at line 924 of file accessor.hpp.

◆ size()

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

Definition at line 955 of file accessor.hpp.

References sycl::_V1::Dimensions.

◆ write()

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

Definition at line 931 of file accessor.hpp.


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