DPC++ Runtime
Runtime libraries for oneAPI DPC++
image_accessor_util.hpp File Reference
#include <sycl/aliases.hpp>
#include <sycl/builtins.hpp>
#include <sycl/detail/array.hpp>
#include <sycl/detail/export.hpp>
#include <sycl/detail/generic_type_traits.hpp>
#include <sycl/detail/pi.h>
#include <sycl/detail/type_list.hpp>
#include <sycl/exception.hpp>
#include <sycl/id.hpp>
#include <sycl/image.hpp>
#include <sycl/range.hpp>
#include <sycl/sampler.hpp>
#include <sycl/types.hpp>
#include <cstdint>
#include <stddef.h>
#include <type_traits>
Include dependency graph for image_accessor_util.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 sycl
 
 sycl::_V1
 
 sycl::_V1::detail
 

Typedefs

template<typename T >
using sycl::_V1::detail::IsValidCoordType = typename is_contained< T, boost::mp11::mp_unique< type_list< opencl::cl_int, opencl::cl_float, std::int32_t, float > >>::type
 

Functions

template<typename T >
std::enable_if_t< IsValidCoordType< T >::value, T > sycl::_V1::detail::UnnormalizeCoordinates (const T &Coords, const range< 3 > &Range)
 
template<typename T >
std::enable_if_t< IsValidCoordType< T >::value, vec< T, 2 > > sycl::_V1::detail::UnnormalizeCoordinates (const vec< T, 2 > &Coords, const range< 3 > &Range)
 
template<typename T >
std::enable_if_t< IsValidCoordType< T >::value, vec< T, 4 > > sycl::_V1::detail::UnnormalizeCoordinates (const vec< T, 4 > &Coords, const range< 3 > &Range)
 
template<typename T >
std::enable_if_t< IsValidCoordType< T >::value, float4 > sycl::_V1::detail::convertToFloat4 (T Coords)
 
template<typename T >
std::enable_if_t< IsValidCoordType< T >::value, float4 > sycl::_V1::detail::convertToFloat4 (vec< T, 2 > Coords)
 
template<typename T >
std::enable_if_t< IsValidCoordType< T >::value, float4 > sycl::_V1::detail::convertToFloat4 (vec< T, 4 > Coords)
 
template<typename T >
std::enable_if_t< std::is_integral_v< T >, size_t > sycl::_V1::detail::getImageOffset (const T &Coords, const id< 3 >, const uint8_t ElementSize)
 
template<typename T >
std::enable_if_t< std::is_integral_v< T >, size_t > sycl::_V1::detail::getImageOffset (const vec< T, 2 > &Coords, const id< 3 > ImgPitch, const uint8_t ElementSize)
 
template<typename T >
std::enable_if_t< std::is_integral_v< T >, size_t > sycl::_V1::detail::getImageOffset (const vec< T, 4 > &Coords, const id< 3 > ImgPitch, const uint8_t ElementSize)
 
int4 sycl::_V1::detail::getPixelCoordNearestFiltMode (float4, const addressing_mode, const range< 3 >)
 
int8 sycl::_V1::detail::getPixelCoordLinearFiltMode (float4, const addressing_mode, const range< 3 >, float4 &)
 
bool sycl::_V1::detail::isOutOfRange (const int4 PixelCoord, const addressing_mode SmplAddrMode, const range< 3 > ImgRange)
 
float4 sycl::_V1::detail::getBorderColor (const image_channel_order ImgChannelOrder)
 
template<typename T >
vec< T, 4 > sycl::_V1::detail::readPixel (T *Ptr, const image_channel_order ChannelOrder, const image_channel_type ChannelType)
 
template<typename T >
void sycl::_V1::detail::writePixel (const vec< T, 4 > Pixel, T *Ptr, const image_channel_order ChannelOrder, const image_channel_type ChannelType)
 
template<typename ChannelType >
void sycl::_V1::detail::convertReadData (const vec< ChannelType, 4 > PixelData, const image_channel_type ImageChannelType, uint4 &RetData)
 
template<typename ChannelType >
void sycl::_V1::detail::convertReadData (const vec< ChannelType, 4 > PixelData, const image_channel_type ImageChannelType, int4 &RetData)
 
template<typename ChannelType >
void sycl::_V1::detail::convertReadData (const vec< ChannelType, 4 > PixelData, const image_channel_type ImageChannelType, float4 &RetData)
 
template<typename ChannelType >
void sycl::_V1::detail::convertReadData (const vec< ChannelType, 4 > PixelData, const image_channel_type ImageChannelType, half4 &RetData)
 
template<typename ChannelType >
vec< ChannelType, 4 > sycl::_V1::detail::convertWriteData (const uint4 WriteData, const image_channel_type ImageChannelType)
 
template<typename ChannelType >
vec< ChannelType, 4 > sycl::_V1::detail::convertWriteData (const int4 WriteData, const image_channel_type ImageChannelType)
 
template<typename ChannelType >
vec< ChannelType, 4 > sycl::_V1::detail::processFloatDataToPixel (float4 WriteData, float MulFactor)
 
template<typename ChannelType >
vec< ChannelType, 4 > sycl::_V1::detail::convertWriteData (const float4 WriteData, const image_channel_type ImageChannelType)
 
template<typename ChannelType >
vec< ChannelType, 4 > sycl::_V1::detail::convertWriteData (const half4 WriteData, const image_channel_type ImageChannelType)
 
template<typename CoordT , typename WriteDataT >
void sycl::_V1::detail::imageWriteHostImpl (const CoordT &Coords, const WriteDataT &Color, id< 3 > ImgPitch, uint8_t ElementSize, image_channel_type ImgChannelType, image_channel_order ImgChannelOrder, void *BasePtr)
 
template<typename DataT >
DataT sycl::_V1::detail::ReadPixelData (const int4 PixelCoord, const id< 3 > ImgPitch, const image_channel_type ImageChannelType, const image_channel_order ImageChannelOrder, void *BasePtr, const uint8_t ElementSize)
 
template<typename DataT >
DataT sycl::_V1::detail::getColor (const int4 PixelCoord, const addressing_mode SmplAddrMode, const range< 3 > ImgRange, const id< 3 > ImgPitch, const image_channel_type ImgChannelType, const image_channel_order ImgChannelOrder, void *BasePtr, const uint8_t ElementSize)
 
template<typename DataT >
DataT sycl::_V1::detail::ReadPixelDataLinearFiltMode (const int8 CoordValues, const float4 abc, const addressing_mode SmplAddrMode, const range< 3 > ImgRange, id< 3 > ImgPitch, const image_channel_type ImgChannelType, const image_channel_order ImgChannelOrder, void *BasePtr, const uint8_t ElementSize)
 
template<typename CoordT , typename DataT >
DataT sycl::_V1::detail::imageReadSamplerHostImpl (const CoordT &Coords, coordinate_normalization_mode SmplNormMode, addressing_mode SmplAddrMode, filtering_mode SmplFiltMode, range< 3 > ImgRange, id< 3 > ImgPitch, image_channel_type ImgChannelType, image_channel_order ImgChannelOrder, void *BasePtr, uint8_t ElementSize)
 
template<typename CoordT , typename DataT >
DataT sycl::_V1::detail::imageReadSamplerHostImpl (const CoordT &Coords, const sampler &Smpl, range< 3 > ImgRange, id< 3 > ImgPitch, image_channel_type ImgChannelType, image_channel_order ImgChannelOrder, void *BasePtr, uint8_t ElementSize)
 
template<typename CoordT , typename DataT >
DataT sycl::_V1::detail::imageReadSamplerHostImpl (const CoordT &Coords, const image_sampler &Smpl, range< 3 > ImgRange, id< 3 > ImgPitch, image_channel_type ImgChannelType, image_channel_order ImgChannelOrder, void *BasePtr, uint8_t ElementSize)