diff --git a/hipamd/include/hip/hcc_detail/hip_runtime.h b/hipamd/include/hip/hcc_detail/hip_runtime.h index c2ae6e8e4f..075a8e377a 100644 --- a/hipamd/include/hip/hcc_detail/hip_runtime.h +++ b/hipamd/include/hip/hcc_detail/hip_runtime.h @@ -110,9 +110,9 @@ extern int HIP_TRACE_API; #include #include #include +#include #if __HCC__ #include -#include #endif // __HCC__ // TODO-HCC remove old definitions ; ~1602 hcc supports __HCC_ACCELERATOR__ define. diff --git a/hipamd/include/hip/hcc_detail/texture_functions.h b/hipamd/include/hip/hcc_detail/texture_functions.h index 999f97e65e..2a7aeb7357 100644 --- a/hipamd/include/hip/hcc_detail/texture_functions.h +++ b/hipamd/include/hip/hcc_detail/texture_functions.h @@ -23,14 +23,28 @@ THE SOFTWARE. #ifndef HIP_INCLUDE_HIP_HCC_DETAIL_TEXTURE_FUNCTIONS_H #define HIP_INCLUDE_HIP_HCC_DETAIL_TEXTURE_FUNCTIONS_H -#include -#include +#include #include +#pragma push_macro("TYPEDEF_VECTOR_VALUE_TYPE") +#define TYPEDEF_VECTOR_VALUE_TYPE(SCALAR_TYPE) \ +typedef SCALAR_TYPE __hip_##SCALAR_TYPE##2_vector_value_type __attribute__((ext_vector_type(2))); \ +typedef SCALAR_TYPE __hip_##SCALAR_TYPE##3_vector_value_type __attribute__((ext_vector_type(3))); \ +typedef SCALAR_TYPE __hip_##SCALAR_TYPE##4_vector_value_type __attribute__((ext_vector_type(4))); \ +typedef SCALAR_TYPE __hip_##SCALAR_TYPE##8_vector_value_type __attribute__((ext_vector_type(8))); \ +typedef SCALAR_TYPE __hip_##SCALAR_TYPE##16_vector_value_type __attribute__((ext_vector_type(16))); + +TYPEDEF_VECTOR_VALUE_TYPE(float); +TYPEDEF_VECTOR_VALUE_TYPE(int); +TYPEDEF_VECTOR_VALUE_TYPE(uint); + +#undef TYPEDEF_VECTOR_VALUE_TYPE +#pragma pop_macro("TYPEDEF_VECTOR_VALUE_TYPE") + union TData { - hc::short_vector::float4::vector_value_type f; - hc::short_vector::int4::vector_value_type i; - hc::short_vector::uint4::vector_value_type u; + __hip_float4_vector_value_type f; + __hip_int4_vector_value_type i; + __hip_uint4_vector_value_type u; }; #define __TEXTURE_FUNCTIONS_DECL__ static __inline__ __device__ @@ -153,91 +167,112 @@ union TData { #define TEXTURE_RETURN_FLOAT_XYZW return make_float4(texel.f.x, texel.f.y, texel.f.z, texel.f.w); extern "C" { -hc::short_vector::float4::vector_value_type __ockl_image_sample_1D(unsigned int ADDRESS_SPACE_CONSTANT* i, - unsigned int ADDRESS_SPACE_CONSTANT* s, - float c)[[hc]]; -hc::short_vector::float4::vector_value_type __ockl_image_sample_1Da( +__device__ +__hip_float4_vector_value_type __ockl_image_sample_1D( unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, - hc::short_vector::float2::vector_value_type c)[[hc]]; + float c); -hc::short_vector::float4::vector_value_type __ockl_image_sample_2D( +__device__ +__hip_float4_vector_value_type __ockl_image_sample_1Da( unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, - hc::short_vector::float2::vector_value_type c)[[hc]]; + __hip_float2_vector_value_type c); - -hc::short_vector::float4::vector_value_type __ockl_image_sample_2Da( +__device__ +__hip_float4_vector_value_type __ockl_image_sample_2D( unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, - hc::short_vector::float4::vector_value_type c)[[hc]]; + __hip_float2_vector_value_type c); -float __ockl_image_sample_2Dad(unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, - hc::short_vector::float4::vector_value_type c)[[hc]]; -float __ockl_image_sample_2Dd(unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, - hc::short_vector::float2::vector_value_type c)[[hc]]; - -hc::short_vector::float4::vector_value_type __ockl_image_sample_3D( +__device__ +__hip_float4_vector_value_type __ockl_image_sample_2Da( unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, - hc::short_vector::float4::vector_value_type c)[[hc]]; + __hip_float4_vector_value_type c); -hc::short_vector::float4::vector_value_type __ockl_image_sample_grad_1D( - unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, float c, float dx, - float dy)[[hc]]; - -hc::short_vector::float4::vector_value_type __ockl_image_sample_grad_1Da( +__device__ +float __ockl_image_sample_2Dad( unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, - hc::short_vector::float2::vector_value_type c, float dx, float dy)[[hc]]; + __hip_float4_vector_value_type c); -hc::short_vector::float4::vector_value_type __ockl_image_sample_grad_2D( +__device__ +float __ockl_image_sample_2Dd( unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, - hc::short_vector::float2::vector_value_type c, hc::short_vector::float2::vector_value_type dx, - hc::short_vector::float2::vector_value_type dy)[[hc]]; + __hip_float2_vector_value_type c); -hc::short_vector::float4::vector_value_type __ockl_image_sample_grad_2Da( +__device__ +__hip_float4_vector_value_type __ockl_image_sample_3D( unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, - hc::short_vector::float4::vector_value_type c, hc::short_vector::float2::vector_value_type dx, - hc::short_vector::float2::vector_value_type dy)[[hc]]; + __hip_float4_vector_value_type c); -float __ockl_image_sample_grad_2Dad(unsigned int ADDRESS_SPACE_CONSTANT* i, - unsigned int ADDRESS_SPACE_CONSTANT* s, - hc::short_vector::float4::vector_value_type c, - hc::short_vector::float2::vector_value_type dx, - hc::short_vector::float2::vector_value_type dy)[[hc]]; - -float __ockl_image_sample_grad_2Dd(unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, - hc::short_vector::float2::vector_value_type c, - hc::short_vector::float2::vector_value_type dx, - hc::short_vector::float2::vector_value_type dy)[[hc]]; - -hc::short_vector::float4::vector_value_type __ockl_image_sample_grad_3D( +__device__ +__hip_float4_vector_value_type __ockl_image_sample_grad_1D( unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, - hc::short_vector::float4::vector_value_type c, hc::short_vector::float4::vector_value_type dx, - hc::short_vector::float4::vector_value_type dy)[[hc]]; + float c, float dx, float dy); -hc::short_vector::float4::vector_value_type __ockl_image_sample_lod_1D( - unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, float c, float l)[[hc]]; - -hc::short_vector::float4::vector_value_type __ockl_image_sample_lod_1Da( +__device__ +__hip_float4_vector_value_type __ockl_image_sample_grad_1Da( unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, - hc::short_vector::float2::vector_value_type c, float l)[[hc]]; + __hip_float2_vector_value_type c, float dx, float dy); -hc::short_vector::float4::vector_value_type __ockl_image_sample_lod_2D( +__device__ +__hip_float4_vector_value_type __ockl_image_sample_grad_2D( unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, - hc::short_vector::float2::vector_value_type c, float l)[[hc]]; + __hip_float2_vector_value_type c, __hip_float2_vector_value_type dx, __hip_float2_vector_value_type dy); -hc::short_vector::float4::vector_value_type __ockl_image_sample_lod_2Da( +__device__ +__hip_float4_vector_value_type __ockl_image_sample_grad_2Da( unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, - hc::short_vector::float4::vector_value_type c, float l)[[hc]]; + __hip_float4_vector_value_type c, __hip_float2_vector_value_type dx, __hip_float2_vector_value_type dy); -float __ockl_image_sample_lod_2Dad(unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, - hc::short_vector::float4::vector_value_type c, float l)[[hc]]; - -float __ockl_image_sample_lod_2Dd(unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, - hc::short_vector::float2::vector_value_type c, float l)[[hc]]; - -hc::short_vector::float4::vector_value_type __ockl_image_sample_lod_3D( +__device__ +float __ockl_image_sample_grad_2Dad( unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, - hc::short_vector::float4::vector_value_type c, float l)[[hc]]; + __hip_float4_vector_value_type c, __hip_float2_vector_value_type dx, __hip_float2_vector_value_type dy); + +__device__ +float __ockl_image_sample_grad_2Dd( + unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, + __hip_float2_vector_value_type c, __hip_float2_vector_value_type dx, __hip_float2_vector_value_type dy); + +__device__ +__hip_float4_vector_value_type __ockl_image_sample_grad_3D( + unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, + __hip_float4_vector_value_type c, __hip_float4_vector_value_type dx, __hip_float4_vector_value_type dy); + +__device__ +__hip_float4_vector_value_type __ockl_image_sample_lod_1D( + unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, + float c, float l); + +__device__ +__hip_float4_vector_value_type __ockl_image_sample_lod_1Da( + unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, + __hip_float2_vector_value_type c, float l); + +__device__ +__hip_float4_vector_value_type __ockl_image_sample_lod_2D( + unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, + __hip_float2_vector_value_type c, float l); + +__device__ +__hip_float4_vector_value_type __ockl_image_sample_lod_2Da( + unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, + __hip_float4_vector_value_type c, float l); + +__device__ +float __ockl_image_sample_lod_2Dad( + unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, + __hip_float4_vector_value_type c, float l); + +__device__ +float __ockl_image_sample_lod_2Dd( + unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, + __hip_float2_vector_value_type c, float l); + +__device__ +__hip_float4_vector_value_type __ockl_image_sample_lod_3D( + unsigned int ADDRESS_SPACE_CONSTANT* i, unsigned int ADDRESS_SPACE_CONSTANT* s, + __hip_float4_vector_value_type c, float l); } //////////////////////////////////////////////////////////// @@ -1025,196 +1060,196 @@ __TEXTURE_FUNCTIONS_DECL__ T tex1DGrad(hipTextureObject_t textureObject, float x __TEXTURE_FUNCTIONS_DECL__ void tex2D(char* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_SIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(char1* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_SIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(char2* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_SIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(char4* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_SIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(unsigned char* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_UNSIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(uchar1* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_UNSIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(uchar2* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_UNSIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(uchar4* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_UNSIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(short* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_SIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(short1* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_SIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(short2* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_SIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(short4* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_SIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(unsigned short* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_UNSIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(ushort1* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_UNSIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(ushort2* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_UNSIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(ushort4* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_UNSIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(int* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_SIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(int1* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_SIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(int2* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_SIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(int4* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_SIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(unsigned int* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_UNSIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(uint1* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_UNSIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(uint2* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_UNSIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(uint4* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_UNSIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(float* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_FLOAT; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(float1* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_FLOAT_X; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(float2* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_FLOAT_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex2D(float4* retVal, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_SET_FLOAT_XYZW; } @@ -1229,196 +1264,196 @@ __TEXTURE_FUNCTIONS_DECL__ T tex2D(hipTextureObject_t textureObject, float x, fl __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(char* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_SIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(char1* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_SIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(char2* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_SIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(char4* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_SIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(unsigned char* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_UNSIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(uchar1* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_UNSIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(uchar2* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_UNSIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(uchar4* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_UNSIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(short* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_SIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(short1* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_SIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(short2* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_SIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(short4* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_SIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(unsigned short* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_UNSIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(ushort1* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_UNSIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(ushort2* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_UNSIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(ushort4* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_UNSIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(int* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_SIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(int1* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_SIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(int2* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_SIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(int4* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_SIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(unsigned int* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_UNSIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(uint1* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_UNSIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(uint2* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_UNSIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(uint4* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_UNSIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(float* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_FLOAT; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(float1* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_FLOAT_X; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(float2* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_FLOAT_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex2DLod(float4* retVal, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_SET_FLOAT_XYZW; } @@ -1434,196 +1469,196 @@ __TEXTURE_FUNCTIONS_DECL__ T tex2DLod(hipTextureObject_t textureObject, float x, __TEXTURE_FUNCTIONS_DECL__ void tex3D(char* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_SIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(char1* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_SIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(char2* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_SIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(char4* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_SIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(unsigned char* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_UNSIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(uchar1* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_UNSIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(uchar2* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_UNSIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(uchar4* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_UNSIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(short* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_SIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(short1* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_SIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(short2* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_SIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(short4* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_SIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(unsigned short* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_UNSIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(ushort1* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_UNSIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(ushort2* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_UNSIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(ushort4* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_UNSIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(int* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_SIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(int1* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_SIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(int2* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_SIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(int4* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_SIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(unsigned int* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_UNSIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(uint1* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_UNSIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(uint2* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_UNSIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(uint4* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_UNSIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(float* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_FLOAT; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(float1* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_FLOAT_X; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(float2* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_FLOAT_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex3D(float4* retVal, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_SET_FLOAT_XYZW; } @@ -1638,7 +1673,7 @@ __TEXTURE_FUNCTIONS_DECL__ T tex3D(hipTextureObject_t textureObject, float x, fl __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(char* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_SIGNED; } @@ -1646,7 +1681,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(char* retVal, hipTextureObject_t textur __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(char1* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_SIGNED_X; } @@ -1654,7 +1689,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(char1* retVal, hipTextureObject_t textu __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(char2* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_SIGNED_XY; } @@ -1662,7 +1697,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(char2* retVal, hipTextureObject_t textu __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(char4* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_SIGNED_XYZW; } @@ -1670,7 +1705,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(char4* retVal, hipTextureObject_t textu __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(unsigned char* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_UNSIGNED; } @@ -1678,7 +1713,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(unsigned char* retVal, hipTextureObject __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(uchar1* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_UNSIGNED_X; } @@ -1686,7 +1721,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(uchar1* retVal, hipTextureObject_t text __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(uchar2* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_UNSIGNED_XY; } @@ -1694,7 +1729,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(uchar2* retVal, hipTextureObject_t text __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(uchar4* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_UNSIGNED_XYZW; } @@ -1702,7 +1737,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(uchar4* retVal, hipTextureObject_t text __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(short* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_SIGNED; } @@ -1710,7 +1745,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(short* retVal, hipTextureObject_t textu __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(short1* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_SIGNED_X; } @@ -1718,7 +1753,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(short1* retVal, hipTextureObject_t text __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(short2* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_SIGNED_XY; } @@ -1726,7 +1761,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(short2* retVal, hipTextureObject_t text __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(short4* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_SIGNED_XYZW; } @@ -1734,7 +1769,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(short4* retVal, hipTextureObject_t text __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(unsigned short* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_UNSIGNED; } @@ -1742,7 +1777,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(unsigned short* retVal, hipTextureObjec __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(ushort1* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_UNSIGNED_X; } @@ -1750,7 +1785,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(ushort1* retVal, hipTextureObject_t tex __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(ushort2* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_UNSIGNED_XY; } @@ -1758,7 +1793,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(ushort2* retVal, hipTextureObject_t tex __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(ushort4* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_UNSIGNED_XYZW; } @@ -1766,7 +1801,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(ushort4* retVal, hipTextureObject_t tex __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(int* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_SIGNED; } @@ -1774,7 +1809,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(int* retVal, hipTextureObject_t texture __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(int1* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_SIGNED_X; } @@ -1782,7 +1817,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(int1* retVal, hipTextureObject_t textur __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(int2* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_SIGNED_XY; } @@ -1790,7 +1825,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(int2* retVal, hipTextureObject_t textur __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(int4* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_SIGNED_XYZW; } @@ -1798,7 +1833,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(int4* retVal, hipTextureObject_t textur __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(unsigned int* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_UNSIGNED; } @@ -1806,7 +1841,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(unsigned int* retVal, hipTextureObject_ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(uint1* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_UNSIGNED_X; } @@ -1814,7 +1849,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(uint1* retVal, hipTextureObject_t textu __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(uint2* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_UNSIGNED_XY; } @@ -1822,7 +1857,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(uint2* retVal, hipTextureObject_t textu __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(uint4* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_UNSIGNED_XYZW; } @@ -1830,7 +1865,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(uint4* retVal, hipTextureObject_t textu __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(float* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_FLOAT; } @@ -1838,7 +1873,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(float* retVal, hipTextureObject_t textu __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(float1* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_FLOAT_X; } @@ -1846,7 +1881,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(float1* retVal, hipTextureObject_t text __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(float2* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_FLOAT_XY; } @@ -1854,7 +1889,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(float2* retVal, hipTextureObject_t text __TEXTURE_FUNCTIONS_DECL__ void tex3DLod(float4* retVal, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_SET_FLOAT_XYZW; } @@ -1871,189 +1906,189 @@ __TEXTURE_FUNCTIONS_DECL__ T tex3DLod(hipTextureObject_t textureObject, float x, __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(char* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_SIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(char1* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_SIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(char2* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_SIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(char4* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_SIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(unsigned char* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_UNSIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(uchar1* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_UNSIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(uchar2* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_UNSIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(uchar4* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_UNSIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(short* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_SIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(short1* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_SIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(short2* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_SIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(short4* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_SIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(unsigned short* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_UNSIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(ushort1* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_UNSIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(ushort2* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_UNSIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(ushort4* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_UNSIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(int* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_SIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(int1* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_SIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(int2* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_SIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(int4* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_SIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(unsigned int* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_UNSIGNED; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(uint1* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_UNSIGNED_X; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(uint2* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_UNSIGNED_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(uint4* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_UNSIGNED_XYZW; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(float* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_FLOAT; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(float1* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_FLOAT_X; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(float2* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_FLOAT_XY; } __TEXTURE_FUNCTIONS_DECL__ void tex1DLayered(float4* retVal, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_SET_FLOAT_XYZW; } @@ -2069,7 +2104,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(char* retVal, hipTextureObject_t float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_SIGNED; } @@ -2077,7 +2112,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(char1* retVal, hipTextureObject_ float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_SIGNED_X; } @@ -2085,7 +2120,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(char2* retVal, hipTextureObject_ float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_SIGNED_XY; } @@ -2093,7 +2128,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(char4* retVal, hipTextureObject_ float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_SIGNED_XYZW; } @@ -2102,7 +2137,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(unsigned char* retVal, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_UNSIGNED; } @@ -2110,7 +2145,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(uchar1* retVal, hipTextureObject float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_UNSIGNED_X; } @@ -2118,7 +2153,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(uchar2* retVal, hipTextureObject float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_UNSIGNED_XY; } @@ -2126,7 +2161,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(uchar4* retVal, hipTextureObject float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_UNSIGNED_XYZW; } @@ -2134,7 +2169,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(short* retVal, hipTextureObject_ float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_SIGNED; } @@ -2142,7 +2177,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(short1* retVal, hipTextureObject float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_SIGNED_X; } @@ -2150,7 +2185,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(short2* retVal, hipTextureObject float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_SIGNED_XY; } @@ -2158,7 +2193,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(short4* retVal, hipTextureObject float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_SIGNED_XYZW; } @@ -2167,7 +2202,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(unsigned short* retVal, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_UNSIGNED; } @@ -2175,7 +2210,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(ushort1* retVal, hipTextureObjec float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_UNSIGNED_X; } @@ -2183,7 +2218,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(ushort2* retVal, hipTextureObjec float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_UNSIGNED_XY; } @@ -2191,7 +2226,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(ushort4* retVal, hipTextureObjec float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_UNSIGNED_XYZW; } @@ -2199,7 +2234,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(int* retVal, hipTextureObject_t float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_SIGNED; } @@ -2207,7 +2242,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(int1* retVal, hipTextureObject_t float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_SIGNED_X; } @@ -2215,7 +2250,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(int2* retVal, hipTextureObject_t float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_SIGNED_XY; } @@ -2223,7 +2258,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(int4* retVal, hipTextureObject_t float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_SIGNED_XYZW; } @@ -2232,7 +2267,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(unsigned int* retVal, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_UNSIGNED; } @@ -2240,7 +2275,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(uint1* retVal, hipTextureObject_ float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_UNSIGNED_X; } @@ -2248,7 +2283,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(uint2* retVal, hipTextureObject_ float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_UNSIGNED_XY; } @@ -2256,7 +2291,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(uint4* retVal, hipTextureObject_ float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_UNSIGNED_XYZW; } @@ -2264,7 +2299,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(float* retVal, hipTextureObject_ float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_FLOAT; } @@ -2272,7 +2307,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(float1* retVal, hipTextureObject float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_FLOAT_X; } @@ -2280,7 +2315,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(float2* retVal, hipTextureObject float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_FLOAT_XY; } @@ -2288,7 +2323,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredLod(float4* retVal, hipTextureObject float x, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_SET_FLOAT_XYZW; } @@ -2305,7 +2340,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(char* retVal, hipTextureObject_ float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_SIGNED; } @@ -2313,7 +2348,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(char1* retVal, hipTextureObject float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_SIGNED_X; } @@ -2321,7 +2356,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(char2* retVal, hipTextureObject float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_SIGNED_XY; } @@ -2329,7 +2364,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(char4* retVal, hipTextureObject float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_SIGNED_XYZW; } @@ -2338,7 +2373,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(unsigned char* retVal, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_UNSIGNED; } @@ -2346,7 +2381,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(uchar1* retVal, hipTextureObjec float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_UNSIGNED_X; } @@ -2354,7 +2389,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(uchar2* retVal, hipTextureObjec float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_UNSIGNED_XY; } @@ -2362,7 +2397,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(uchar4* retVal, hipTextureObjec float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_UNSIGNED_XYZW; } @@ -2370,7 +2405,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(short* retVal, hipTextureObject float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_SIGNED; } @@ -2378,7 +2413,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(short1* retVal, hipTextureObjec float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_SIGNED_X; } @@ -2386,7 +2421,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(short2* retVal, hipTextureObjec float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_SIGNED_XY; } @@ -2394,7 +2429,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(short4* retVal, hipTextureObjec float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_SIGNED_XYZW; } @@ -2403,7 +2438,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(unsigned short* retVal, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_UNSIGNED; } @@ -2411,7 +2446,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(ushort1* retVal, hipTextureObje float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_UNSIGNED_X; } @@ -2419,7 +2454,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(ushort2* retVal, hipTextureObje float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_UNSIGNED_XY; } @@ -2427,7 +2462,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(ushort4* retVal, hipTextureObje float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_UNSIGNED_XYZW; } @@ -2435,7 +2470,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(int* retVal, hipTextureObject_t float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_SIGNED; } @@ -2443,7 +2478,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(int1* retVal, hipTextureObject_ float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_SIGNED_X; } @@ -2451,7 +2486,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(int2* retVal, hipTextureObject_ float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_SIGNED_XY; } @@ -2459,7 +2494,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(int4* retVal, hipTextureObject_ float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_SIGNED_XYZW; } @@ -2468,7 +2503,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(unsigned int* retVal, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_UNSIGNED; } @@ -2476,7 +2511,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(uint1* retVal, hipTextureObject float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_UNSIGNED_X; } @@ -2484,7 +2519,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(uint2* retVal, hipTextureObject float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_UNSIGNED_XY; } @@ -2492,7 +2527,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(uint4* retVal, hipTextureObject float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_UNSIGNED_XYZW; } @@ -2500,7 +2535,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(float* retVal, hipTextureObject float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_FLOAT; } @@ -2508,7 +2543,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(float1* retVal, hipTextureObjec float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_FLOAT_X; } @@ -2516,7 +2551,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(float2* retVal, hipTextureObjec float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_FLOAT_XY; } @@ -2524,7 +2559,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex1DLayeredGrad(float4* retVal, hipTextureObjec float x, int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_SET_FLOAT_XYZW; } @@ -2541,7 +2576,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(char* retVal, hipTextureObject_t te float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_SIGNED; } @@ -2549,7 +2584,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(char1* retVal, hipTextureObject_t t float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_SIGNED_X; } @@ -2557,7 +2592,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(char2* retVal, hipTextureObject_t t float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_SIGNED_XY; } @@ -2565,7 +2600,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(char4* retVal, hipTextureObject_t t float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_SIGNED_XYZW; } @@ -2574,7 +2609,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(unsigned char* retVal, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_UNSIGNED; } @@ -2582,7 +2617,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(uchar1* retVal, hipTextureObject_t float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_UNSIGNED_X; } @@ -2590,7 +2625,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(uchar2* retVal, hipTextureObject_t float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_UNSIGNED_XY; } @@ -2598,7 +2633,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(uchar4* retVal, hipTextureObject_t float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_UNSIGNED_XYZW; } @@ -2606,7 +2641,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(short* retVal, hipTextureObject_t t float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_SIGNED; } @@ -2614,7 +2649,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(short1* retVal, hipTextureObject_t float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_SIGNED_X; } @@ -2622,7 +2657,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(short2* retVal, hipTextureObject_t float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_SIGNED_XY; } @@ -2630,7 +2665,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(short4* retVal, hipTextureObject_t float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_SIGNED_XYZW; } @@ -2639,7 +2674,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(unsigned short* retVal, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_UNSIGNED; } @@ -2647,7 +2682,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(ushort1* retVal, hipTextureObject_t float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_UNSIGNED_X; } @@ -2655,7 +2690,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(ushort2* retVal, hipTextureObject_t float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_UNSIGNED_XY; } @@ -2663,7 +2698,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(ushort4* retVal, hipTextureObject_t float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_UNSIGNED_XYZW; } @@ -2671,7 +2706,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(int* retVal, hipTextureObject_t tex float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_SIGNED; } @@ -2679,7 +2714,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(int1* retVal, hipTextureObject_t te float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_SIGNED_X; } @@ -2687,7 +2722,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(int2* retVal, hipTextureObject_t te float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_SIGNED_XY; } @@ -2695,7 +2730,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(int4* retVal, hipTextureObject_t te float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_SIGNED_XYZW; } @@ -2703,7 +2738,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(unsigned int* retVal, hipTextureObj float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_UNSIGNED; } @@ -2711,7 +2746,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(uint1* retVal, hipTextureObject_t t float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_UNSIGNED_X; } @@ -2719,7 +2754,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(uint2* retVal, hipTextureObject_t t float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_UNSIGNED_XY; } @@ -2727,7 +2762,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(uint4* retVal, hipTextureObject_t t float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_UNSIGNED_XYZW; } @@ -2735,7 +2770,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(float* retVal, hipTextureObject_t t float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_FLOAT; } @@ -2743,7 +2778,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(float1* retVal, hipTextureObject_t float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_FLOAT_X; } @@ -2751,7 +2786,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(float2* retVal, hipTextureObject_t float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_FLOAT_XY; } @@ -2759,7 +2794,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayered(float4* retVal, hipTextureObject_t float x, float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_SET_FLOAT_XYZW; } @@ -2776,7 +2811,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(char* retVal, hipTextureObject_t float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_SIGNED; } @@ -2784,7 +2819,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(char1* retVal, hipTextureObject_ float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_SIGNED_X; } @@ -2792,7 +2827,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(char2* retVal, hipTextureObject_ float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_SIGNED_XY; } @@ -2800,7 +2835,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(char4* retVal, hipTextureObject_ float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_SIGNED_XYZW; } @@ -2809,7 +2844,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(unsigned char* retVal, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_UNSIGNED; } @@ -2817,7 +2852,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(uchar1* retVal, hipTextureObject float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_UNSIGNED_X; } @@ -2825,7 +2860,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(uchar2* retVal, hipTextureObject float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_UNSIGNED_XY; } @@ -2833,7 +2868,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(uchar4* retVal, hipTextureObject float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_UNSIGNED_XYZW; } @@ -2841,7 +2876,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(short* retVal, hipTextureObject_ float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_SIGNED; } @@ -2849,7 +2884,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(short1* retVal, hipTextureObject float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_SIGNED_X; } @@ -2857,7 +2892,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(short2* retVal, hipTextureObject float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_SIGNED_XY; } @@ -2865,7 +2900,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(short4* retVal, hipTextureObject float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_SIGNED_XYZW; } @@ -2874,7 +2909,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(unsigned short* retVal, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_UNSIGNED; } @@ -2882,7 +2917,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(ushort1* retVal, hipTextureObjec float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_UNSIGNED_X; } @@ -2890,7 +2925,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(ushort2* retVal, hipTextureObjec float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_UNSIGNED_XY; } @@ -2898,7 +2933,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(ushort4* retVal, hipTextureObjec float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_UNSIGNED_XYZW; } @@ -2906,7 +2941,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(int* retVal, hipTextureObject_t float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_SIGNED; } @@ -2914,7 +2949,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(int1* retVal, hipTextureObject_t float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_SIGNED_X; } @@ -2922,7 +2957,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(int2* retVal, hipTextureObject_t float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_SIGNED_XY; } @@ -2930,7 +2965,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(int4* retVal, hipTextureObject_t float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_SIGNED_XYZW; } @@ -2939,7 +2974,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(unsigned int* retVal, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_UNSIGNED; } @@ -2947,7 +2982,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(uint1* retVal, hipTextureObject_ float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_UNSIGNED_X; } @@ -2955,7 +2990,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(uint2* retVal, hipTextureObject_ float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_UNSIGNED_XY; } @@ -2963,7 +2998,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(uint4* retVal, hipTextureObject_ float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_UNSIGNED_XYZW; } @@ -2971,7 +3006,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(float* retVal, hipTextureObject_ float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_FLOAT; } @@ -2979,7 +3014,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(float1* retVal, hipTextureObject float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_FLOAT_X; } @@ -2987,7 +3022,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(float2* retVal, hipTextureObject float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_FLOAT_XY; } @@ -2995,7 +3030,7 @@ __TEXTURE_FUNCTIONS_DECL__ void tex2DLayeredLod(float4* retVal, hipTextureObject float x, float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_SET_FLOAT_XYZW; } @@ -4799,28 +4834,28 @@ __TEXTURE_FUNCTIONS_DECL__ float4 tex1DGrad(texture texRe template __TEXTURE_FUNCTIONS_DECL__ char tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_CHAR; } template __TEXTURE_FUNCTIONS_DECL__ char1 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_CHAR_X; } template __TEXTURE_FUNCTIONS_DECL__ char2 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_CHAR_XY; } template __TEXTURE_FUNCTIONS_DECL__ char4 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_CHAR_XYZW; } @@ -4828,56 +4863,56 @@ template __TEXTURE_FUNCTIONS_DECL__ unsigned char tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_UCHAR; } template __TEXTURE_FUNCTIONS_DECL__ uchar1 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_UCHAR_X; } template __TEXTURE_FUNCTIONS_DECL__ uchar2 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_UCHAR_XY; } template __TEXTURE_FUNCTIONS_DECL__ uchar4 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_UCHAR_XYZW; } template __TEXTURE_FUNCTIONS_DECL__ short tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_SHORT; } template __TEXTURE_FUNCTIONS_DECL__ short1 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_SHORT_X; } template __TEXTURE_FUNCTIONS_DECL__ short2 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_SHORT_XY; } template __TEXTURE_FUNCTIONS_DECL__ short4 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_SHORT_XYZW; } @@ -4885,56 +4920,56 @@ template __TEXTURE_FUNCTIONS_DECL__ unsigned short tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_USHORT; } template __TEXTURE_FUNCTIONS_DECL__ ushort1 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_USHORT_X; } template __TEXTURE_FUNCTIONS_DECL__ ushort2 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_USHORT_XY; } template __TEXTURE_FUNCTIONS_DECL__ ushort4 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_USHORT_XYZW; } template __TEXTURE_FUNCTIONS_DECL__ int tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_INT; } template __TEXTURE_FUNCTIONS_DECL__ int1 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_INT_X; } template __TEXTURE_FUNCTIONS_DECL__ int2 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_INT_XY; } template __TEXTURE_FUNCTIONS_DECL__ int4 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_INT_XYZW; } @@ -4942,28 +4977,28 @@ template __TEXTURE_FUNCTIONS_DECL__ unsigned int tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_UINT; } template __TEXTURE_FUNCTIONS_DECL__ uint1 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_UINT_X; } template __TEXTURE_FUNCTIONS_DECL__ uint2 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_UINT_XY; } template __TEXTURE_FUNCTIONS_DECL__ uint4 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_UINT_XYZW; } @@ -4974,7 +5009,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_CHAR; } @@ -4982,7 +5017,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char1 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_CHAR_X; } @@ -4990,7 +5025,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char2 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_CHAR_XY; } @@ -4998,7 +5033,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char4 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_CHAR_XYZW; } @@ -5006,7 +5041,7 @@ template __TEXTURE_FUNCTIONS_DECL__ unsigned char tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_UCHAR; } @@ -5014,7 +5049,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uchar1 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_UCHAR_X; } @@ -5022,7 +5057,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uchar2 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_UCHAR_XY; } @@ -5030,7 +5065,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uchar4 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_UCHAR_XYZW; } @@ -5038,7 +5073,7 @@ template __TEXTURE_FUNCTIONS_DECL__ short tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_SHORT; } @@ -5046,7 +5081,7 @@ template __TEXTURE_FUNCTIONS_DECL__ short1 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_SHORT_X; } @@ -5054,7 +5089,7 @@ template __TEXTURE_FUNCTIONS_DECL__ short2 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_SHORT_XY; } @@ -5062,7 +5097,7 @@ template __TEXTURE_FUNCTIONS_DECL__ short4 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_SHORT_XYZW; } @@ -5071,7 +5106,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned short tex2D(texture __TEXTURE_FUNCTIONS_DECL__ ushort1 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_USHORT_X; } @@ -5087,7 +5122,7 @@ template __TEXTURE_FUNCTIONS_DECL__ ushort2 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_USHORT_XY; } @@ -5095,7 +5130,7 @@ template __TEXTURE_FUNCTIONS_DECL__ ushort4 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_USHORT_XYZW; } @@ -5103,7 +5138,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_INT; } @@ -5111,7 +5146,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int1 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_INT_X; } @@ -5119,7 +5154,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int2 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_INT_XY; } @@ -5127,7 +5162,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int4 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_INT_XYZW; } @@ -5135,7 +5170,7 @@ template __TEXTURE_FUNCTIONS_DECL__ unsigned int tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_UINT; } @@ -5143,7 +5178,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uint1 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_UINT_X; } @@ -5151,7 +5186,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uint2 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_UINT_XY; } @@ -5159,7 +5194,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uint4 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_UINT_XYZW; } @@ -5167,21 +5202,21 @@ template __TEXTURE_FUNCTIONS_DECL__ float tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_FLOAT; } template __TEXTURE_FUNCTIONS_DECL__ float tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_FLOAT; } template __TEXTURE_FUNCTIONS_DECL__ float1 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_FLOAT_X; } @@ -5189,14 +5224,14 @@ template __TEXTURE_FUNCTIONS_DECL__ float1 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_FLOAT_X; } template __TEXTURE_FUNCTIONS_DECL__ float2 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_FLOAT_XY; } @@ -5204,14 +5239,14 @@ template __TEXTURE_FUNCTIONS_DECL__ float2 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_FLOAT_XY; } template __TEXTURE_FUNCTIONS_DECL__ float4 tex2D(texture texRef, float x, float y) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_FLOAT_XYZW; } @@ -5219,7 +5254,7 @@ template __TEXTURE_FUNCTIONS_DECL__ float4 tex2D(texture texRef, hipTextureObject_t textureObject, float x, float y) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_2D(i, s, hc::short_vector::float2(x, y).get_vector()); + texel.f = __ockl_image_sample_2D(i, s, float2(x, y).data); TEXTURE_RETURN_FLOAT_XYZW; } @@ -5229,7 +5264,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_CHAR; } @@ -5237,7 +5272,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char1 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_CHAR_X; } @@ -5245,7 +5280,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char2 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_CHAR_XY; } @@ -5253,7 +5288,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char4 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_CHAR_XYZW; } @@ -5261,7 +5296,7 @@ template __TEXTURE_FUNCTIONS_DECL__ unsigned char tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_UCHAR; } @@ -5269,7 +5304,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uchar1 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_UCHAR_X; } @@ -5277,7 +5312,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uchar2 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_UCHAR_XY; } @@ -5285,7 +5320,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uchar4 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_UCHAR_XYZW; } @@ -5293,7 +5328,7 @@ template __TEXTURE_FUNCTIONS_DECL__ short tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_SHORT; } @@ -5301,7 +5336,7 @@ template __TEXTURE_FUNCTIONS_DECL__ short1 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_SHORT_X; } @@ -5309,7 +5344,7 @@ template __TEXTURE_FUNCTIONS_DECL__ short2 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_SHORT_XY; } @@ -5317,7 +5352,7 @@ template __TEXTURE_FUNCTIONS_DECL__ short4 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_SHORT_XYZW; } @@ -5325,7 +5360,7 @@ template __TEXTURE_FUNCTIONS_DECL__ unsigned short tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_USHORT; } @@ -5333,7 +5368,7 @@ template __TEXTURE_FUNCTIONS_DECL__ ushort1 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_USHORT_X; } @@ -5341,7 +5376,7 @@ template __TEXTURE_FUNCTIONS_DECL__ ushort2 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_USHORT_XY; } @@ -5349,7 +5384,7 @@ template __TEXTURE_FUNCTIONS_DECL__ ushort4 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_USHORT_XYZW; } @@ -5357,7 +5392,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_INT; } @@ -5365,7 +5400,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int1 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_INT_X; } @@ -5373,7 +5408,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int2 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_INT_XY; } @@ -5381,7 +5416,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int4 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_INT_XYZW; } @@ -5389,7 +5424,7 @@ template __TEXTURE_FUNCTIONS_DECL__ unsigned int tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_UINT; } @@ -5397,7 +5432,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uint1 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_UINT_X; } @@ -5405,7 +5440,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uint2 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_UINT_XY; } @@ -5413,7 +5448,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uint4 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_UINT_XYZW; } @@ -5421,7 +5456,7 @@ template __TEXTURE_FUNCTIONS_DECL__ float tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_FLOAT; } @@ -5429,7 +5464,7 @@ template __TEXTURE_FUNCTIONS_DECL__ float1 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_FLOAT_X; } @@ -5437,7 +5472,7 @@ template __TEXTURE_FUNCTIONS_DECL__ float2 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_FLOAT_XY; } @@ -5445,7 +5480,7 @@ template __TEXTURE_FUNCTIONS_DECL__ float4 tex2DLod(texture texRef, float x, float y, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_FLOAT_XYZW; } @@ -5456,7 +5491,7 @@ __TEXTURE_FUNCTIONS_DECL__ char tex2DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_CHAR; } @@ -5465,7 +5500,7 @@ __TEXTURE_FUNCTIONS_DECL__ char1 tex2DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_CHAR_X; } @@ -5474,7 +5509,7 @@ __TEXTURE_FUNCTIONS_DECL__ char2 tex2DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_CHAR_XY; } @@ -5483,7 +5518,7 @@ __TEXTURE_FUNCTIONS_DECL__ char4 tex2DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_CHAR_XYZW; } @@ -5492,7 +5527,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned char tex2DLod(texture texRef hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_UCHAR_X; } @@ -5510,7 +5545,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar2 tex2DLod(texture texRef hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_UCHAR_XY; } @@ -5519,7 +5554,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar4 tex2DLod(texture texRef hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_UCHAR_XYZW; } @@ -5528,7 +5563,7 @@ __TEXTURE_FUNCTIONS_DECL__ short tex2DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_SHORT; } @@ -5537,7 +5572,7 @@ __TEXTURE_FUNCTIONS_DECL__ short1 tex2DLod(texture texRef hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_SHORT_X; } @@ -5546,7 +5581,7 @@ __TEXTURE_FUNCTIONS_DECL__ short2 tex2DLod(texture texRef hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_SHORT_XY; } @@ -5555,7 +5590,7 @@ __TEXTURE_FUNCTIONS_DECL__ short4 tex2DLod(texture texRef hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_SHORT_XYZW; } @@ -5564,7 +5599,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned short tex2DLod(texture texR hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_USHORT_X; } @@ -5582,7 +5617,7 @@ __TEXTURE_FUNCTIONS_DECL__ ushort2 tex2DLod(texture texR hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_USHORT_XY; } @@ -5591,7 +5626,7 @@ __TEXTURE_FUNCTIONS_DECL__ ushort4 tex2DLod(texture texR hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_USHORT_XYZW; } @@ -5600,7 +5635,7 @@ __TEXTURE_FUNCTIONS_DECL__ int tex2DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_INT; } @@ -5609,7 +5644,7 @@ __TEXTURE_FUNCTIONS_DECL__ int1 tex2DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_INT_X; } @@ -5618,7 +5653,7 @@ __TEXTURE_FUNCTIONS_DECL__ int2 tex2DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_INT_XY; } @@ -5627,7 +5662,7 @@ __TEXTURE_FUNCTIONS_DECL__ int4 tex2DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_INT_XYZW; } @@ -5636,7 +5671,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned int tex2DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_UINT_X; } @@ -5654,7 +5689,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint2 tex2DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_UINT_XY; } @@ -5663,7 +5698,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint4 tex2DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_UINT_XYZW; } @@ -5672,7 +5707,7 @@ __TEXTURE_FUNCTIONS_DECL__ float tex2DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_FLOAT; } @@ -5681,7 +5716,7 @@ __TEXTURE_FUNCTIONS_DECL__ float1 tex2DLod(texture texRef hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_FLOAT_X; } @@ -5690,7 +5725,7 @@ __TEXTURE_FUNCTIONS_DECL__ float2 tex2DLod(texture texRef hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_FLOAT_XY; } @@ -5699,7 +5734,7 @@ __TEXTURE_FUNCTIONS_DECL__ float4 tex2DLod(texture texRef hipTextureObject_t textureObject, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_2D(i, s, hc::short_vector::float2(x, y).get_vector(), level); + texel.f = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); TEXTURE_RETURN_FLOAT_XYZW; } @@ -5709,9 +5744,9 @@ template __TEXTURE_FUNCTIONS_DECL__ char tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_CHAR; } @@ -5719,9 +5754,9 @@ template __TEXTURE_FUNCTIONS_DECL__ char1 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_CHAR_X; } @@ -5729,9 +5764,9 @@ template __TEXTURE_FUNCTIONS_DECL__ char2 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_CHAR_XY; } @@ -5739,9 +5774,9 @@ template __TEXTURE_FUNCTIONS_DECL__ char4 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_CHAR_XYZW; } @@ -5749,9 +5784,9 @@ template __TEXTURE_FUNCTIONS_DECL__ unsigned char tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UCHAR; } @@ -5759,9 +5794,9 @@ template __TEXTURE_FUNCTIONS_DECL__ uchar1 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UCHAR_X; } @@ -5769,9 +5804,9 @@ template __TEXTURE_FUNCTIONS_DECL__ uchar2 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UCHAR_XY; } @@ -5779,9 +5814,9 @@ template __TEXTURE_FUNCTIONS_DECL__ uchar4 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UCHAR_XYZW; } @@ -5789,9 +5824,9 @@ template __TEXTURE_FUNCTIONS_DECL__ short tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_SHORT; } @@ -5799,9 +5834,9 @@ template __TEXTURE_FUNCTIONS_DECL__ short1 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_SHORT_X; } @@ -5809,9 +5844,9 @@ template __TEXTURE_FUNCTIONS_DECL__ short2 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_SHORT_XY; } @@ -5819,9 +5854,9 @@ template __TEXTURE_FUNCTIONS_DECL__ short4 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_SHORT_XYZW; } @@ -5829,9 +5864,9 @@ template __TEXTURE_FUNCTIONS_DECL__ unsigned short tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_USHORT; } @@ -5839,9 +5874,9 @@ template __TEXTURE_FUNCTIONS_DECL__ ushort1 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_USHORT_X; } @@ -5849,9 +5884,9 @@ template __TEXTURE_FUNCTIONS_DECL__ ushort2 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_USHORT_XY; } @@ -5859,9 +5894,9 @@ template __TEXTURE_FUNCTIONS_DECL__ ushort4 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_USHORT_XYZW; } @@ -5869,9 +5904,9 @@ template __TEXTURE_FUNCTIONS_DECL__ int tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_INT; } @@ -5879,9 +5914,9 @@ template __TEXTURE_FUNCTIONS_DECL__ int1 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_INT_X; } @@ -5889,9 +5924,9 @@ template __TEXTURE_FUNCTIONS_DECL__ int2 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_INT_XY; } @@ -5899,9 +5934,9 @@ template __TEXTURE_FUNCTIONS_DECL__ int4 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_INT_XYZW; } @@ -5909,9 +5944,9 @@ template __TEXTURE_FUNCTIONS_DECL__ unsigned int tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UINT; } @@ -5919,9 +5954,9 @@ template __TEXTURE_FUNCTIONS_DECL__ uint1 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UINT_X; } @@ -5929,9 +5964,9 @@ template __TEXTURE_FUNCTIONS_DECL__ uint2 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UINT_XY; } @@ -5939,9 +5974,9 @@ template __TEXTURE_FUNCTIONS_DECL__ uint4 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UINT_XYZW; } @@ -5949,9 +5984,9 @@ template __TEXTURE_FUNCTIONS_DECL__ float tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_FLOAT; } @@ -5959,9 +5994,9 @@ template __TEXTURE_FUNCTIONS_DECL__ float1 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_FLOAT_X; } @@ -5969,9 +6004,9 @@ template __TEXTURE_FUNCTIONS_DECL__ float2 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_FLOAT_XY; } @@ -5979,9 +6014,9 @@ template __TEXTURE_FUNCTIONS_DECL__ float4 tex2DGrad(texture texRef, float x, float y, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_FLOAT_XYZW; } @@ -5992,9 +6027,9 @@ __TEXTURE_FUNCTIONS_DECL__ char tex2DGrad(texture texRef, hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_CHAR; } @@ -6003,9 +6038,9 @@ __TEXTURE_FUNCTIONS_DECL__ char1 tex2DGrad(texture texRef, hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_CHAR_X; } @@ -6014,9 +6049,9 @@ __TEXTURE_FUNCTIONS_DECL__ char2 tex2DGrad(texture texRef, hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_CHAR_XY; } @@ -6025,9 +6060,9 @@ __TEXTURE_FUNCTIONS_DECL__ char4 tex2DGrad(texture texRef, hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_CHAR_XYZW; } @@ -6036,9 +6071,9 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned char tex2DGrad(texture texRe hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UCHAR_X; } @@ -6058,9 +6093,9 @@ __TEXTURE_FUNCTIONS_DECL__ uchar2 tex2DGrad(texture texRe hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UCHAR_XY; } @@ -6069,9 +6104,9 @@ __TEXTURE_FUNCTIONS_DECL__ uchar4 tex2DGrad(texture texRe hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UCHAR_XYZW; } @@ -6080,9 +6115,9 @@ __TEXTURE_FUNCTIONS_DECL__ short tex2DGrad(texture texRef, hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_SHORT; } @@ -6091,9 +6126,9 @@ __TEXTURE_FUNCTIONS_DECL__ short1 tex2DGrad(texture texRe hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_SHORT_X; } @@ -6102,9 +6137,9 @@ __TEXTURE_FUNCTIONS_DECL__ short2 tex2DGrad(texture texRe hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_SHORT_XY; } @@ -6113,9 +6148,9 @@ __TEXTURE_FUNCTIONS_DECL__ short4 tex2DGrad(texture texRe hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_SHORT_XYZW; } @@ -6124,9 +6159,9 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned short tex2DGrad(texture tex hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_USHORT_X; } @@ -6146,9 +6181,9 @@ __TEXTURE_FUNCTIONS_DECL__ ushort2 tex2DGrad(texture tex hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_USHORT_XY; } @@ -6157,9 +6192,9 @@ __TEXTURE_FUNCTIONS_DECL__ ushort4 tex2DGrad(texture tex hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_USHORT_XYZW; } @@ -6168,9 +6203,9 @@ __TEXTURE_FUNCTIONS_DECL__ int tex2DGrad(texture texRef, hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_INT; } @@ -6179,9 +6214,9 @@ __TEXTURE_FUNCTIONS_DECL__ int1 tex2DGrad(texture texRef, hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_INT_X; } @@ -6190,9 +6225,9 @@ __TEXTURE_FUNCTIONS_DECL__ int2 tex2DGrad(texture texRef, hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_INT_XY; } @@ -6201,9 +6236,9 @@ __TEXTURE_FUNCTIONS_DECL__ int4 tex2DGrad(texture texRef, hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_INT_XYZW; } @@ -6212,9 +6247,9 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned int tex2DGrad(texture texRef, hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UINT_X; } @@ -6234,9 +6269,9 @@ __TEXTURE_FUNCTIONS_DECL__ uint2 tex2DGrad(texture texRef, hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UINT_XY; } @@ -6245,9 +6280,9 @@ __TEXTURE_FUNCTIONS_DECL__ uint4 tex2DGrad(texture texRef, hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UINT_XYZW; } @@ -6256,9 +6291,9 @@ __TEXTURE_FUNCTIONS_DECL__ float tex2DGrad(texture texRef, hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_FLOAT; } @@ -6267,9 +6302,9 @@ __TEXTURE_FUNCTIONS_DECL__ float1 tex2DGrad(texture texRe hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_FLOAT_X; } @@ -6278,9 +6313,9 @@ __TEXTURE_FUNCTIONS_DECL__ float2 tex2DGrad(texture texRe hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_FLOAT_XY; } @@ -6289,9 +6324,9 @@ __TEXTURE_FUNCTIONS_DECL__ float4 tex2DGrad(texture texRe hipTextureObject_t textureObject, float x, float y, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_grad_2D(i, s, hc::short_vector::float2(x, y).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + texel.f = __ockl_image_sample_grad_2D(i, s, float2(x, y).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_FLOAT_XYZW; } @@ -6301,7 +6336,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_CHAR; } @@ -6309,7 +6344,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char1 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_CHAR_X; } @@ -6317,7 +6352,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char2 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_CHAR_XY; } @@ -6325,7 +6360,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char4 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_CHAR_XYZW; } @@ -6333,7 +6368,7 @@ template __TEXTURE_FUNCTIONS_DECL__ unsigned char tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_UCHAR; } @@ -6341,7 +6376,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uchar1 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_UCHAR_X; } @@ -6349,7 +6384,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uchar2 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_UCHAR_XY; } @@ -6357,7 +6392,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uchar4 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_UCHAR_XYZW; } @@ -6365,7 +6400,7 @@ template __TEXTURE_FUNCTIONS_DECL__ short tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_SHORT; } @@ -6373,7 +6408,7 @@ template __TEXTURE_FUNCTIONS_DECL__ short1 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_SHORT_X; } @@ -6381,7 +6416,7 @@ template __TEXTURE_FUNCTIONS_DECL__ short2 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_SHORT_XY; } @@ -6389,7 +6424,7 @@ template __TEXTURE_FUNCTIONS_DECL__ short4 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_SHORT_XYZW; } @@ -6397,7 +6432,7 @@ template __TEXTURE_FUNCTIONS_DECL__ unsigned short tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_USHORT; } @@ -6405,7 +6440,7 @@ template __TEXTURE_FUNCTIONS_DECL__ ushort1 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_USHORT_X; } @@ -6413,7 +6448,7 @@ template __TEXTURE_FUNCTIONS_DECL__ ushort2 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_USHORT_XY; } @@ -6421,7 +6456,7 @@ template __TEXTURE_FUNCTIONS_DECL__ ushort4 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_USHORT_XYZW; } @@ -6429,7 +6464,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_INT; } @@ -6437,7 +6472,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int1 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_INT_X; } @@ -6445,7 +6480,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int2 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_INT_XY; } @@ -6453,7 +6488,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int4 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_INT_XYZW; } @@ -6461,7 +6496,7 @@ template __TEXTURE_FUNCTIONS_DECL__ unsigned int tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_UINT; } @@ -6469,7 +6504,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uint1 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_UINT_X; } @@ -6477,7 +6512,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uint2 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_UINT_XY; } @@ -6485,7 +6520,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uint4 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_UINT_XYZW; } @@ -6493,7 +6528,7 @@ template __TEXTURE_FUNCTIONS_DECL__ float tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_FLOAT; } @@ -6501,7 +6536,7 @@ template __TEXTURE_FUNCTIONS_DECL__ float1 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_FLOAT_X; } @@ -6509,7 +6544,7 @@ template __TEXTURE_FUNCTIONS_DECL__ float2 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_FLOAT_XY; } @@ -6517,7 +6552,7 @@ template __TEXTURE_FUNCTIONS_DECL__ float4 tex3D(texture texRef, float x, float y, float z) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_FLOAT_XYZW; } @@ -6527,7 +6562,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_CHAR; } @@ -6536,7 +6571,7 @@ __TEXTURE_FUNCTIONS_DECL__ char1 tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_CHAR_X; } @@ -6545,7 +6580,7 @@ __TEXTURE_FUNCTIONS_DECL__ char2 tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_CHAR_XY; } @@ -6554,7 +6589,7 @@ __TEXTURE_FUNCTIONS_DECL__ char4 tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_CHAR_XYZW; } @@ -6563,7 +6598,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned char tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_UCHAR_X; } @@ -6581,7 +6616,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar2 tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_UCHAR_XY; } @@ -6590,7 +6625,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar4 tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_UCHAR_XYZW; } @@ -6599,7 +6634,7 @@ __TEXTURE_FUNCTIONS_DECL__ short tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_SHORT; } @@ -6608,7 +6643,7 @@ __TEXTURE_FUNCTIONS_DECL__ short1 tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_SHORT_X; } @@ -6617,7 +6652,7 @@ __TEXTURE_FUNCTIONS_DECL__ short2 tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_SHORT_XY; } @@ -6626,7 +6661,7 @@ __TEXTURE_FUNCTIONS_DECL__ short4 tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_SHORT_XYZW; } @@ -6635,7 +6670,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned short tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_USHORT_X; } @@ -6653,7 +6688,7 @@ __TEXTURE_FUNCTIONS_DECL__ ushort2 tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_USHORT_XY; } @@ -6662,7 +6697,7 @@ __TEXTURE_FUNCTIONS_DECL__ ushort4 tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_USHORT_XYZW; } @@ -6670,7 +6705,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_INT; } @@ -6678,7 +6713,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int1 tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_INT_X; } @@ -6686,7 +6721,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int2 tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_INT_XY; } @@ -6694,7 +6729,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int4 tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_INT_XYZW; } @@ -6703,7 +6738,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned int tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_UINT_X; } @@ -6721,7 +6756,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint2 tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_UINT_XY; } @@ -6730,7 +6765,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint4 tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_UINT_XYZW; } @@ -6739,7 +6774,7 @@ __TEXTURE_FUNCTIONS_DECL__ float tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_FLOAT; } @@ -6748,7 +6783,7 @@ __TEXTURE_FUNCTIONS_DECL__ float1 tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_FLOAT_X; } @@ -6757,7 +6792,7 @@ __TEXTURE_FUNCTIONS_DECL__ float2 tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_FLOAT_XY; } @@ -6766,7 +6801,7 @@ __TEXTURE_FUNCTIONS_DECL__ float4 tex3D(texture texRef, hipTextureObject_t textureObject, float x, float y, float z) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector()); + texel.f = __ockl_image_sample_3D(i, s, float4(x, y, z, 0.0f).data); TEXTURE_RETURN_FLOAT_XYZW; } @@ -6776,7 +6811,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char tex3DLod(texture texRef, float x, float y, float z, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_CHAR; } @@ -6785,7 +6820,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char1 tex3DLod(texture texRef, float x, float y, float z, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_CHAR_X; } @@ -6794,7 +6829,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char2 tex3DLod(texture texRef, float x, float y, float z, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_CHAR_XY; } @@ -6803,7 +6838,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char4 tex3DLod(texture texRef, float x, float y, float z, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_CHAR_XYZW; } @@ -6812,7 +6847,7 @@ template __TEXTURE_FUNCTIONS_DECL__ unsigned char tex3DLod(texture texRef, float x, float y, float z, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_UCHAR; } @@ -6821,7 +6856,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uchar1 tex3DLod(texture texRef, float x, float y, float z, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_UCHAR_X; } @@ -6830,7 +6865,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uchar2 tex3DLod(texture texRef, float x, float y, float z, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_UCHAR_XY; } @@ -6839,7 +6874,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uchar4 tex3DLod(texture texRef, float x, float y, float z, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_UCHAR_XYZW; } @@ -6848,7 +6883,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int tex3DLod(texture texRef, float x, float y, float z, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_INT; } @@ -6857,7 +6892,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int1 tex3DLod(texture texRef, float x, float y, float z, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_INT_X; } @@ -6866,7 +6901,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int2 tex3DLod(texture texRef, float x, float y, float z, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_INT_XY; } @@ -6875,7 +6910,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int4 tex3DLod(texture texRef, float x, float y, float z, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_INT_XYZW; } @@ -6884,7 +6919,7 @@ template __TEXTURE_FUNCTIONS_DECL__ unsigned int tex3DLod(texture texRef, float x, float y, float z, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_UINT; } @@ -6893,7 +6928,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uint1 tex3DLod(texture texRef, float x, float y, float z, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_UINT_X; } @@ -6902,7 +6937,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uint2 tex3DLod(texture texRef, float x, float y, float z, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_UINT_XY; } @@ -6911,7 +6946,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uint4 tex3DLod(texture texRef, float x, float y, float z, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_UINT_XYZW; } @@ -6920,7 +6955,7 @@ template __TEXTURE_FUNCTIONS_DECL__ float tex3DLod(texture texRef, float x, float y, float z, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_FLOAT; } @@ -6929,7 +6964,7 @@ template __TEXTURE_FUNCTIONS_DECL__ float1 tex3DLod(texture texRef, float x, float y, float z, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_FLOAT_X; } @@ -6938,7 +6973,7 @@ template __TEXTURE_FUNCTIONS_DECL__ float2 tex3DLod(texture texRef, float x, float y, float z, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_FLOAT_XY; } @@ -6947,7 +6982,7 @@ template __TEXTURE_FUNCTIONS_DECL__ float4 tex3DLod(texture texRef, float x, float y, float z, float level) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_FLOAT_XYZW; } @@ -6959,7 +6994,7 @@ __TEXTURE_FUNCTIONS_DECL__ char tex3DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_CHAR; } @@ -6969,7 +7004,7 @@ __TEXTURE_FUNCTIONS_DECL__ char1 tex3DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_CHAR_X; } @@ -6979,7 +7014,7 @@ __TEXTURE_FUNCTIONS_DECL__ char2 tex3DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_CHAR_XY; } @@ -6989,7 +7024,7 @@ __TEXTURE_FUNCTIONS_DECL__ char4 tex3DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_CHAR_XYZW; } @@ -6999,7 +7034,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned char tex3DLod(texture texRef hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_UCHAR_X; } @@ -7019,7 +7054,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar2 tex3DLod(texture texRef hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_UCHAR_XY; } @@ -7029,7 +7064,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar4 tex3DLod(texture texRef hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_UCHAR_XYZW; } @@ -7039,7 +7074,7 @@ __TEXTURE_FUNCTIONS_DECL__ int tex3DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_INT; } @@ -7049,7 +7084,7 @@ __TEXTURE_FUNCTIONS_DECL__ int1 tex3DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_INT_X; } @@ -7059,7 +7094,7 @@ __TEXTURE_FUNCTIONS_DECL__ int2 tex3DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_INT_XY; } @@ -7069,7 +7104,7 @@ __TEXTURE_FUNCTIONS_DECL__ int4 tex3DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_INT_XYZW; } @@ -7079,7 +7114,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned int tex3DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_UINT_X; } @@ -7099,7 +7134,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint2 tex3DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_UINT_XY; } @@ -7109,7 +7144,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint4 tex3DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_UINT_XYZW; } @@ -7119,7 +7154,7 @@ __TEXTURE_FUNCTIONS_DECL__ float tex3DLod(texture texRef, hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_FLOAT; } @@ -7129,7 +7164,7 @@ __TEXTURE_FUNCTIONS_DECL__ float1 tex3DLod(texture texRef hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_FLOAT_X; } @@ -7139,7 +7174,7 @@ __TEXTURE_FUNCTIONS_DECL__ float2 tex3DLod(texture texRef hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_FLOAT_XY; } @@ -7149,7 +7184,7 @@ __TEXTURE_FUNCTIONS_DECL__ float4 tex3DLod(texture texRef hipTextureObject_t textureObject, float x, float y, float z, float level) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_lod_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), + texel.f = __ockl_image_sample_lod_3D(i, s, float4(x, y, z, 0.0f).data, level); TEXTURE_RETURN_FLOAT_XYZW; } @@ -7161,9 +7196,9 @@ __TEXTURE_FUNCTIONS_DECL__ char tex3DGrad(texture texRef, f float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_CHAR; } @@ -7172,9 +7207,9 @@ __TEXTURE_FUNCTIONS_DECL__ char1 tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_CHAR_X; } @@ -7183,9 +7218,9 @@ __TEXTURE_FUNCTIONS_DECL__ char2 tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_CHAR_XY; } @@ -7194,9 +7229,9 @@ __TEXTURE_FUNCTIONS_DECL__ char4 tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_CHAR_XYZW; } @@ -7206,9 +7241,9 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned char tex3DGrad(texture texRe float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_UCHAR_X; } @@ -7228,9 +7263,9 @@ __TEXTURE_FUNCTIONS_DECL__ uchar2 tex3DGrad(texture texRe float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_UCHAR_XY; } @@ -7239,9 +7274,9 @@ __TEXTURE_FUNCTIONS_DECL__ uchar4 tex3DGrad(texture texRe float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_UCHAR_XYZW; } @@ -7250,9 +7285,9 @@ __TEXTURE_FUNCTIONS_DECL__ short tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_SHORT; } @@ -7261,9 +7296,9 @@ __TEXTURE_FUNCTIONS_DECL__ short1 tex3DGrad(texture texRe float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_SHORT_X; } @@ -7272,9 +7307,9 @@ __TEXTURE_FUNCTIONS_DECL__ short2 tex3DGrad(texture texRe float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_SHORT_XY; } @@ -7283,9 +7318,9 @@ __TEXTURE_FUNCTIONS_DECL__ short4 tex3DGrad(texture texRe float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_SHORT_XYZW; } @@ -7295,9 +7330,9 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned short tex3DGrad(texture tex float y, float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_USHORT_X; } @@ -7317,9 +7352,9 @@ __TEXTURE_FUNCTIONS_DECL__ ushort2 tex3DGrad(texture tex float y, float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_USHORT_XY; } @@ -7328,9 +7363,9 @@ __TEXTURE_FUNCTIONS_DECL__ ushort4 tex3DGrad(texture tex float y, float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_USHORT_XYZW; } @@ -7339,9 +7374,9 @@ __TEXTURE_FUNCTIONS_DECL__ int tex3DGrad(texture texRef, flo float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_INT; } @@ -7350,9 +7385,9 @@ __TEXTURE_FUNCTIONS_DECL__ int1 tex3DGrad(texture texRef, f float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_INT_X; } @@ -7361,9 +7396,9 @@ __TEXTURE_FUNCTIONS_DECL__ int2 tex3DGrad(texture texRef, f float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_INT_XY; } @@ -7372,9 +7407,9 @@ __TEXTURE_FUNCTIONS_DECL__ int4 tex3DGrad(texture texRef, f float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_INT_XYZW; } @@ -7383,9 +7418,9 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned int tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_UINT_X; } @@ -7405,9 +7440,9 @@ __TEXTURE_FUNCTIONS_DECL__ uint2 tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_UINT_XY; } @@ -7416,9 +7451,9 @@ __TEXTURE_FUNCTIONS_DECL__ uint4 tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_UINT_XYZW; } @@ -7427,9 +7462,9 @@ __TEXTURE_FUNCTIONS_DECL__ float tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_FLOAT; } @@ -7438,9 +7473,9 @@ __TEXTURE_FUNCTIONS_DECL__ float1 tex3DGrad(texture texRe float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_FLOAT_X; } @@ -7449,9 +7484,9 @@ __TEXTURE_FUNCTIONS_DECL__ float2 tex3DGrad(texture texRe float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_FLOAT_XY; } @@ -7460,9 +7495,9 @@ __TEXTURE_FUNCTIONS_DECL__ float4 tex3DGrad(texture texRe float z, float4 dx, float4 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_FLOAT_XYZW; } @@ -7473,9 +7508,9 @@ __TEXTURE_FUNCTIONS_DECL__ char tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_CHAR; } @@ -7485,9 +7520,9 @@ __TEXTURE_FUNCTIONS_DECL__ char1 tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_CHAR_X; } @@ -7497,9 +7532,9 @@ __TEXTURE_FUNCTIONS_DECL__ char2 tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_CHAR_XY; } @@ -7509,9 +7544,9 @@ __TEXTURE_FUNCTIONS_DECL__ char4 tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_CHAR_XYZW; } @@ -7521,9 +7556,9 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned char tex3DGrad(texture texRe float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_UCHAR_X; } @@ -7545,9 +7580,9 @@ __TEXTURE_FUNCTIONS_DECL__ uchar2 tex3DGrad(texture texRe float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_UCHAR_XY; } @@ -7557,9 +7592,9 @@ __TEXTURE_FUNCTIONS_DECL__ uchar4 tex3DGrad(texture texRe float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_UCHAR_XYZW; } @@ -7569,9 +7604,9 @@ __TEXTURE_FUNCTIONS_DECL__ short tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_SHORT; } @@ -7581,9 +7616,9 @@ __TEXTURE_FUNCTIONS_DECL__ short1 tex3DGrad(texture texRe float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_SHORT_X; } @@ -7593,9 +7628,9 @@ __TEXTURE_FUNCTIONS_DECL__ short2 tex3DGrad(texture texRe float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_SHORT_XY; } @@ -7605,9 +7640,9 @@ __TEXTURE_FUNCTIONS_DECL__ short4 tex3DGrad(texture texRe float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_SHORT_XYZW; } @@ -7617,9 +7652,9 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned short tex3DGrad(texture tex float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_USHORT_X; } @@ -7641,9 +7676,9 @@ __TEXTURE_FUNCTIONS_DECL__ ushort2 tex3DGrad(texture tex float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_USHORT_XY; } @@ -7653,9 +7688,9 @@ __TEXTURE_FUNCTIONS_DECL__ ushort4 tex3DGrad(texture tex float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_USHORT_XYZW; } @@ -7665,9 +7700,9 @@ __TEXTURE_FUNCTIONS_DECL__ int tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_INT; } @@ -7677,9 +7712,9 @@ __TEXTURE_FUNCTIONS_DECL__ int1 tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_INT_X; } @@ -7689,9 +7724,9 @@ __TEXTURE_FUNCTIONS_DECL__ int2 tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_INT_XY; } @@ -7701,9 +7736,9 @@ __TEXTURE_FUNCTIONS_DECL__ int4 tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_INT_XYZW; } @@ -7713,9 +7748,9 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned int tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_UINT_X; } @@ -7737,9 +7772,9 @@ __TEXTURE_FUNCTIONS_DECL__ uint2 tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_UINT_XY; } @@ -7749,9 +7784,9 @@ __TEXTURE_FUNCTIONS_DECL__ uint4 tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_UINT_XYZW; } @@ -7761,9 +7796,9 @@ __TEXTURE_FUNCTIONS_DECL__ float tex3DGrad(texture texRef, float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_FLOAT; } @@ -7773,9 +7808,9 @@ __TEXTURE_FUNCTIONS_DECL__ float1 tex3DGrad(texture texRe float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_FLOAT_X; } @@ -7785,9 +7820,9 @@ __TEXTURE_FUNCTIONS_DECL__ float2 tex3DGrad(texture texRe float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_FLOAT_XY; } @@ -7797,9 +7832,9 @@ __TEXTURE_FUNCTIONS_DECL__ float4 tex3DGrad(texture texRe float z, float4 dx, float4 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_3D(i, s, hc::short_vector::float4(x, y, z, 0.0f).get_vector(), - hc::short_vector::float4(dx.x, dx.y, dx.z, dx.w).get_vector(), - hc::short_vector::float4(dy.x, dy.y, dy.z, dy.w).get_vector()); + __ockl_image_sample_grad_3D(i, s, float4(x, y, z, 0.0f).data, + float4(dx.x, dx.y, dx.z, dx.w).data, + float4(dy.x, dy.y, dy.z, dy.w).data); TEXTURE_RETURN_FLOAT_XYZW; } @@ -7809,7 +7844,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_CHAR; } @@ -7817,7 +7852,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char1 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_CHAR_X; } @@ -7825,7 +7860,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char2 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_CHAR_XY; } @@ -7833,7 +7868,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char4 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_CHAR_XYZW; } @@ -7841,7 +7876,7 @@ template __TEXTURE_FUNCTIONS_DECL__ unsigned char tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_UCHAR; } @@ -7849,7 +7884,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uchar1 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_UCHAR_X; } @@ -7857,7 +7892,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uchar2 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_UCHAR_XY; } @@ -7865,7 +7900,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uchar4 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_UCHAR_XYZW; } @@ -7873,7 +7908,7 @@ template __TEXTURE_FUNCTIONS_DECL__ short tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_SHORT; } @@ -7881,7 +7916,7 @@ template __TEXTURE_FUNCTIONS_DECL__ short1 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_SHORT_X; } @@ -7889,7 +7924,7 @@ template __TEXTURE_FUNCTIONS_DECL__ short2 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_SHORT_XY; } @@ -7897,7 +7932,7 @@ template __TEXTURE_FUNCTIONS_DECL__ short4 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_SHORT_XYZW; } @@ -7905,7 +7940,7 @@ template __TEXTURE_FUNCTIONS_DECL__ unsigned short tex1DLayered( texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_USHORT; } @@ -7913,7 +7948,7 @@ template __TEXTURE_FUNCTIONS_DECL__ ushort1 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_USHORT_X; } @@ -7921,7 +7956,7 @@ template __TEXTURE_FUNCTIONS_DECL__ ushort2 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_USHORT_XY; } @@ -7929,7 +7964,7 @@ template __TEXTURE_FUNCTIONS_DECL__ ushort4 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_USHORT_XYZW; } @@ -7937,7 +7972,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_INT; } @@ -7945,7 +7980,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int1 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_INT_X; } @@ -7953,7 +7988,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int2 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_INT_XY; } @@ -7961,7 +7996,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int4 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_INT_XYZW; } @@ -7969,7 +8004,7 @@ template __TEXTURE_FUNCTIONS_DECL__ unsigned int tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_UINT; } @@ -7977,7 +8012,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uint1 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_UINT_X; } @@ -7985,7 +8020,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uint2 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_UINT_XY; } @@ -7993,7 +8028,7 @@ template __TEXTURE_FUNCTIONS_DECL__ uint4 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_UINT_XYZW; } @@ -8001,7 +8036,7 @@ template __TEXTURE_FUNCTIONS_DECL__ float tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_FLOAT; } @@ -8009,7 +8044,7 @@ template __TEXTURE_FUNCTIONS_DECL__ float1 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_FLOAT_X; } @@ -8017,7 +8052,7 @@ template __TEXTURE_FUNCTIONS_DECL__ float2 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_FLOAT_XY; } @@ -8025,7 +8060,7 @@ template __TEXTURE_FUNCTIONS_DECL__ float4 tex1DLayered(texture texRef, float x, int layer) { TEXTURE_REF_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_FLOAT_XYZW; } @@ -8035,7 +8070,7 @@ template __TEXTURE_FUNCTIONS_DECL__ char tex1DLayered(texture texRef, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_CHAR; } @@ -8044,7 +8079,7 @@ __TEXTURE_FUNCTIONS_DECL__ char1 tex1DLayered(texture texR hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_CHAR_X; } @@ -8053,7 +8088,7 @@ __TEXTURE_FUNCTIONS_DECL__ char2 tex1DLayered(texture texR hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_CHAR_XY; } @@ -8062,7 +8097,7 @@ __TEXTURE_FUNCTIONS_DECL__ char4 tex1DLayered(texture texR hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_CHAR_XYZW; } @@ -8071,7 +8106,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned char tex1DLayered(texture te hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_UCHAR_X; } @@ -8089,7 +8124,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar2 tex1DLayered(texture te hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_UCHAR_XY; } @@ -8098,7 +8133,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar4 tex1DLayered(texture te hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_UCHAR_XYZW; } @@ -8107,7 +8142,7 @@ __TEXTURE_FUNCTIONS_DECL__ short tex1DLayered(texture texR hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_SHORT; } @@ -8116,7 +8151,7 @@ __TEXTURE_FUNCTIONS_DECL__ short1 tex1DLayered(texture te hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_SHORT_X; } @@ -8125,7 +8160,7 @@ __TEXTURE_FUNCTIONS_DECL__ short2 tex1DLayered(texture te hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_SHORT_XY; } @@ -8134,7 +8169,7 @@ __TEXTURE_FUNCTIONS_DECL__ short4 tex1DLayered(texture te hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_SHORT_XYZW; } @@ -8143,7 +8178,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned short tex1DLayered( texture texRef, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_USHORT; } @@ -8152,7 +8187,7 @@ __TEXTURE_FUNCTIONS_DECL__ ushort1 tex1DLayered(texture hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_USHORT_X; } @@ -8161,7 +8196,7 @@ __TEXTURE_FUNCTIONS_DECL__ ushort2 tex1DLayered(texture hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_USHORT_XY; } @@ -8170,7 +8205,7 @@ __TEXTURE_FUNCTIONS_DECL__ ushort4 tex1DLayered(texture hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_USHORT_XYZW; } @@ -8178,7 +8213,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int tex1DLayered(texture texRef, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_INT; } @@ -8186,7 +8221,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int1 tex1DLayered(texture texRef, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_INT_X; } @@ -8194,7 +8229,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int2 tex1DLayered(texture texRef, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_INT_XY; } @@ -8202,7 +8237,7 @@ template __TEXTURE_FUNCTIONS_DECL__ int4 tex1DLayered(texture texRef, hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_INT_XYZW; } @@ -8211,7 +8246,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned int tex1DLayered(texture texR hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_UINT_X; } @@ -8229,7 +8264,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint2 tex1DLayered(texture texR hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_UINT_XY; } @@ -8238,7 +8273,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint4 tex1DLayered(texture texR hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_UINT_XYZW; } @@ -8247,7 +8282,7 @@ __TEXTURE_FUNCTIONS_DECL__ float tex1DLayered(texture texR hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_FLOAT; } @@ -8256,7 +8291,7 @@ __TEXTURE_FUNCTIONS_DECL__ float1 tex1DLayered(texture te hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_FLOAT_X; } @@ -8265,7 +8300,7 @@ __TEXTURE_FUNCTIONS_DECL__ float2 tex1DLayered(texture te hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_FLOAT_XY; } @@ -8274,7 +8309,7 @@ __TEXTURE_FUNCTIONS_DECL__ float4 tex1DLayered(texture te hipTextureObject_t textureObject, float x, int layer) { TEXTURE_PARAMETERS_INIT; - texel.f = __ockl_image_sample_1Da(i, s, hc::short_vector::float2(x, layer).get_vector()); + texel.f = __ockl_image_sample_1Da(i, s, float2(x, layer).data); TEXTURE_RETURN_FLOAT_XYZW; } @@ -8285,7 +8320,7 @@ __TEXTURE_FUNCTIONS_DECL__ char tex1DLayeredLod(texture tex int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_CHAR; } @@ -8294,7 +8329,7 @@ __TEXTURE_FUNCTIONS_DECL__ char1 tex1DLayeredLod(texture t int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_CHAR_X; } @@ -8303,7 +8338,7 @@ __TEXTURE_FUNCTIONS_DECL__ char2 tex1DLayeredLod(texture t int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_CHAR_XY; } @@ -8312,7 +8347,7 @@ __TEXTURE_FUNCTIONS_DECL__ char4 tex1DLayeredLod(texture t int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_CHAR_XYZW; } @@ -8321,7 +8356,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned char tex1DLayeredLod( texture texRef, float x, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_UCHAR; } @@ -8330,7 +8365,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar1 tex1DLayeredLod(texture int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_UCHAR_X; } @@ -8339,7 +8374,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar2 tex1DLayeredLod(texture int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_UCHAR_XY; } @@ -8348,7 +8383,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar4 tex1DLayeredLod(texture int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_UCHAR_XYZW; } @@ -8357,7 +8392,7 @@ __TEXTURE_FUNCTIONS_DECL__ short tex1DLayeredLod(texture t int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_SHORT; } @@ -8366,7 +8401,7 @@ __TEXTURE_FUNCTIONS_DECL__ short1 tex1DLayeredLod(texture int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_SHORT_X; } @@ -8375,7 +8410,7 @@ __TEXTURE_FUNCTIONS_DECL__ short2 tex1DLayeredLod(texture int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_SHORT_XY; } @@ -8384,7 +8419,7 @@ __TEXTURE_FUNCTIONS_DECL__ short4 tex1DLayeredLod(texture int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_SHORT_XYZW; } @@ -8393,7 +8428,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned short tex1DLayeredLod( texture texRef, float x, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_USHORT; } @@ -8402,7 +8437,7 @@ __TEXTURE_FUNCTIONS_DECL__ ushort1 tex1DLayeredLod(texture texRe int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_INT; } @@ -8438,7 +8473,7 @@ __TEXTURE_FUNCTIONS_DECL__ int1 tex1DLayeredLod(texture tex int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_INT_X; } @@ -8447,7 +8482,7 @@ __TEXTURE_FUNCTIONS_DECL__ int2 tex1DLayeredLod(texture tex int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_INT_XY; } @@ -8456,7 +8491,7 @@ __TEXTURE_FUNCTIONS_DECL__ int4 tex1DLayeredLod(texture tex int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_INT_XYZW; } @@ -8465,7 +8500,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned int tex1DLayeredLod(texture t int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_UINT_X; } @@ -8483,7 +8518,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint2 tex1DLayeredLod(texture t int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_UINT_XY; } @@ -8492,7 +8527,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint4 tex1DLayeredLod(texture t int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_UINT_XYZW; } @@ -8501,7 +8536,7 @@ __TEXTURE_FUNCTIONS_DECL__ float tex1DLayeredLod(texture t int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_FLOAT; } @@ -8510,7 +8545,7 @@ __TEXTURE_FUNCTIONS_DECL__ float1 tex1DLayeredLod(texture int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_FLOAT_X; } @@ -8519,7 +8554,7 @@ __TEXTURE_FUNCTIONS_DECL__ float2 tex1DLayeredLod(texture int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_FLOAT_XY; } @@ -8528,7 +8563,7 @@ __TEXTURE_FUNCTIONS_DECL__ float4 tex1DLayeredLod(texture int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_FLOAT_XYZW; } @@ -8540,7 +8575,7 @@ __TEXTURE_FUNCTIONS_DECL__ char tex1DLayeredLod(texture tex int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_CHAR; } @@ -8550,7 +8585,7 @@ __TEXTURE_FUNCTIONS_DECL__ char1 tex1DLayeredLod(texture t int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_CHAR_X; } @@ -8560,7 +8595,7 @@ __TEXTURE_FUNCTIONS_DECL__ char2 tex1DLayeredLod(texture t int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_CHAR_XY; } @@ -8570,7 +8605,7 @@ __TEXTURE_FUNCTIONS_DECL__ char4 tex1DLayeredLod(texture t int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_CHAR_XYZW; } @@ -8580,7 +8615,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned char tex1DLayeredLod( int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_UCHAR; } @@ -8590,7 +8625,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar1 tex1DLayeredLod(texture int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_UCHAR_X; } @@ -8600,7 +8635,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar2 tex1DLayeredLod(texture int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_UCHAR_XY; } @@ -8610,7 +8645,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar4 tex1DLayeredLod(texture int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_UCHAR_XYZW; } @@ -8620,7 +8655,7 @@ __TEXTURE_FUNCTIONS_DECL__ short tex1DLayeredLod(texture t int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_SHORT; } @@ -8630,7 +8665,7 @@ __TEXTURE_FUNCTIONS_DECL__ short1 tex1DLayeredLod(texture int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_SHORT_X; } @@ -8640,7 +8675,7 @@ __TEXTURE_FUNCTIONS_DECL__ short2 tex1DLayeredLod(texture int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_SHORT_XY; } @@ -8650,7 +8685,7 @@ __TEXTURE_FUNCTIONS_DECL__ short4 tex1DLayeredLod(texture int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_SHORT_XYZW; } @@ -8660,7 +8695,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned short tex1DLayeredLod( int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_USHORT; } @@ -8670,7 +8705,7 @@ __TEXTURE_FUNCTIONS_DECL__ ushort1 tex1DLayeredLod(texture texRe float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_INT; } @@ -8710,7 +8745,7 @@ __TEXTURE_FUNCTIONS_DECL__ int1 tex1DLayeredLod(texture tex int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_INT_X; } @@ -8720,7 +8755,7 @@ __TEXTURE_FUNCTIONS_DECL__ int2 tex1DLayeredLod(texture tex int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_INT_XY; } @@ -8730,7 +8765,7 @@ __TEXTURE_FUNCTIONS_DECL__ int4 tex1DLayeredLod(texture tex int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_INT_XYZW; } @@ -8740,7 +8775,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned int tex1DLayeredLod(texture t int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_UINT_X; } @@ -8760,7 +8795,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint2 tex1DLayeredLod(texture t int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_UINT_XY; } @@ -8770,7 +8805,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint4 tex1DLayeredLod(texture t int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_UINT_XYZW; } @@ -8780,7 +8815,7 @@ __TEXTURE_FUNCTIONS_DECL__ float tex1DLayeredLod(texture t int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_FLOAT; } @@ -8790,7 +8825,7 @@ __TEXTURE_FUNCTIONS_DECL__ float1 tex1DLayeredLod(texture int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_FLOAT_X; } @@ -8800,7 +8835,7 @@ __TEXTURE_FUNCTIONS_DECL__ float2 tex1DLayeredLod(texture int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_FLOAT_XY; } @@ -8810,7 +8845,7 @@ __TEXTURE_FUNCTIONS_DECL__ float4 tex1DLayeredLod(texture int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_lod_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), level); + __ockl_image_sample_lod_1Da(i, s, float2(x, layer).data, level); TEXTURE_RETURN_FLOAT_XYZW; } @@ -8821,7 +8856,7 @@ __TEXTURE_FUNCTIONS_DECL__ char tex1DLayeredGrad(texture te int layer, float dx, float dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_CHAR; } @@ -8831,7 +8866,7 @@ __TEXTURE_FUNCTIONS_DECL__ char tex1DLayeredGrad(texture te int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_CHAR; } @@ -8840,7 +8875,7 @@ __TEXTURE_FUNCTIONS_DECL__ char1 tex1DLayeredGrad(texture int layer, float dx, float dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_CHAR_X; } @@ -8850,7 +8885,7 @@ __TEXTURE_FUNCTIONS_DECL__ char1 tex1DLayeredGrad(texture int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_CHAR_X; } @@ -8859,7 +8894,7 @@ __TEXTURE_FUNCTIONS_DECL__ char2 tex1DLayeredGrad(texture int layer, float dx, float dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_CHAR_XY; } @@ -8869,7 +8904,7 @@ __TEXTURE_FUNCTIONS_DECL__ char2 tex1DLayeredGrad(texture int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_CHAR_XY; } @@ -8878,7 +8913,7 @@ __TEXTURE_FUNCTIONS_DECL__ char4 tex1DLayeredGrad(texture int layer, float dx, float dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_CHAR_XYZW; } @@ -8888,7 +8923,7 @@ __TEXTURE_FUNCTIONS_DECL__ char4 tex1DLayeredGrad(texture int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_CHAR_XYZW; } @@ -8897,7 +8932,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned char tex1DLayeredGrad( texture texRef, float x, int layer, float dx, float dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_UCHAR; } @@ -8907,7 +8942,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned char tex1DLayeredGrad( int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_UCHAR; } @@ -8916,7 +8951,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar1 tex1DLayeredGrad(texture int layer, float dx, float dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_SHORT; } @@ -8983,7 +9018,7 @@ __TEXTURE_FUNCTIONS_DECL__ short tex1DLayeredGrad(texture int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_SHORT; } @@ -8992,7 +9027,7 @@ __TEXTURE_FUNCTIONS_DECL__ short1 tex1DLayeredGrad(texture texRef, float x, int layer, float dx, float dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_USHORT; } @@ -9059,7 +9094,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned short tex1DLayeredGrad( int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_USHORT; } @@ -9068,7 +9103,7 @@ __TEXTURE_FUNCTIONS_DECL__ ushort1 tex1DLayeredGrad(texture texR int layer, float dx, float dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_INT; } @@ -9135,7 +9170,7 @@ __TEXTURE_FUNCTIONS_DECL__ int tex1DLayeredGrad(texture texR int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_INT; } @@ -9144,7 +9179,7 @@ __TEXTURE_FUNCTIONS_DECL__ int1 tex1DLayeredGrad(texture te int layer, float dx, float dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_INT_X; } @@ -9154,7 +9189,7 @@ __TEXTURE_FUNCTIONS_DECL__ int1 tex1DLayeredGrad(texture te int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_INT_X; } @@ -9163,7 +9198,7 @@ __TEXTURE_FUNCTIONS_DECL__ int2 tex1DLayeredGrad(texture te int layer, float dx, float dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_INT_XY; } @@ -9173,7 +9208,7 @@ __TEXTURE_FUNCTIONS_DECL__ int2 tex1DLayeredGrad(texture te int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_INT_XY; } @@ -9182,7 +9217,7 @@ __TEXTURE_FUNCTIONS_DECL__ int4 tex1DLayeredGrad(texture te int layer, float dx, float dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_INT_XYZW; } @@ -9192,7 +9227,7 @@ __TEXTURE_FUNCTIONS_DECL__ int4 tex1DLayeredGrad(texture te int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_INT_XYZW; } @@ -9201,7 +9236,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned int tex1DLayeredGrad( texture texRef, float x, int layer, float dx, float dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_UINT; } @@ -9211,7 +9246,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned int tex1DLayeredGrad( int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_UINT; } @@ -9220,7 +9255,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint1 tex1DLayeredGrad(texture int layer, float dx, float dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_UINT_X; } @@ -9230,7 +9265,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint1 tex1DLayeredGrad(texture int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_UINT_X; } @@ -9239,7 +9274,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint2 tex1DLayeredGrad(texture int layer, float dx, float dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_UINT_XY; } @@ -9249,7 +9284,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint2 tex1DLayeredGrad(texture int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_UINT_XY; } @@ -9258,7 +9293,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint4 tex1DLayeredGrad(texture int layer, float dx, float dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_UINT_XYZW; } @@ -9268,7 +9303,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint4 tex1DLayeredGrad(texture int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_UINT_XYZW; } @@ -9277,7 +9312,7 @@ __TEXTURE_FUNCTIONS_DECL__ float tex1DLayeredGrad(texture int layer, float dx, float dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_FLOAT; } @@ -9287,7 +9322,7 @@ __TEXTURE_FUNCTIONS_DECL__ float tex1DLayeredGrad(texture int layer, float dx, float dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_1Da(i, s, hc::short_vector::float2(x, layer).get_vector(), dx, dy); + __ockl_image_sample_grad_1Da(i, s, float2(x, layer).data, dx, dy); TEXTURE_RETURN_FLOAT; } @@ -9296,7 +9331,7 @@ __TEXTURE_FUNCTIONS_DECL__ float1 tex1DLayeredGrad(texture texRef int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_CHAR; } @@ -9365,7 +9400,7 @@ __TEXTURE_FUNCTIONS_DECL__ char tex2DLayered(texture texRef int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_CHAR; } @@ -9374,7 +9409,7 @@ __TEXTURE_FUNCTIONS_DECL__ char1 tex2DLayered(texture texR float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_CHAR_X; } @@ -9384,7 +9419,7 @@ __TEXTURE_FUNCTIONS_DECL__ char1 tex2DLayered(texture texR int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_CHAR_X; } @@ -9393,7 +9428,7 @@ __TEXTURE_FUNCTIONS_DECL__ char2 tex2DLayered(texture texR float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_CHAR_XY; } @@ -9403,7 +9438,7 @@ __TEXTURE_FUNCTIONS_DECL__ char2 tex2DLayered(texture texR int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_CHAR_XY; } @@ -9412,7 +9447,7 @@ __TEXTURE_FUNCTIONS_DECL__ char4 tex2DLayered(texture texR float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_CHAR_XYZW; } @@ -9422,7 +9457,7 @@ __TEXTURE_FUNCTIONS_DECL__ char4 tex2DLayered(texture texR int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_CHAR_XYZW; } @@ -9431,7 +9466,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned char tex2DLayered(texture te float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_UCHAR_X; } @@ -9460,7 +9495,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar1 tex2DLayered(texture te int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_UCHAR_X; } @@ -9469,7 +9504,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar2 tex2DLayered(texture te float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_UCHAR_XY; } @@ -9479,7 +9514,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar2 tex2DLayered(texture te int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_UCHAR_XY; } @@ -9488,7 +9523,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar4 tex2DLayered(texture te float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_UCHAR_XYZW; } @@ -9498,7 +9533,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar4 tex2DLayered(texture te int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_UCHAR_XYZW; } @@ -9507,7 +9542,7 @@ __TEXTURE_FUNCTIONS_DECL__ short tex2DLayered(texture texR float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_SHORT; } @@ -9517,7 +9552,7 @@ __TEXTURE_FUNCTIONS_DECL__ short tex2DLayered(texture texR int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_SHORT; } @@ -9526,7 +9561,7 @@ __TEXTURE_FUNCTIONS_DECL__ short1 tex2DLayered(texture te float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_SHORT_X; } @@ -9536,7 +9571,7 @@ __TEXTURE_FUNCTIONS_DECL__ short1 tex2DLayered(texture te int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_SHORT_X; } @@ -9545,7 +9580,7 @@ __TEXTURE_FUNCTIONS_DECL__ short2 tex2DLayered(texture te float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_SHORT_XY; } @@ -9555,7 +9590,7 @@ __TEXTURE_FUNCTIONS_DECL__ short2 tex2DLayered(texture te int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_SHORT_XY; } @@ -9564,7 +9599,7 @@ __TEXTURE_FUNCTIONS_DECL__ short4 tex2DLayered(texture te float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_SHORT_XYZW; } @@ -9574,7 +9609,7 @@ __TEXTURE_FUNCTIONS_DECL__ short4 tex2DLayered(texture te int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_SHORT_XYZW; } @@ -9583,7 +9618,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned short tex2DLayered( texture texRef, float x, float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_USHORT; } @@ -9593,7 +9628,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned short tex2DLayered( float y, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_USHORT; } @@ -9602,7 +9637,7 @@ __TEXTURE_FUNCTIONS_DECL__ ushort1 tex2DLayered(texture float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_USHORT_X; } @@ -9612,7 +9647,7 @@ __TEXTURE_FUNCTIONS_DECL__ ushort1 tex2DLayered(texture int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_USHORT_X; } @@ -9621,7 +9656,7 @@ __TEXTURE_FUNCTIONS_DECL__ ushort2 tex2DLayered(texture float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_USHORT_XY; } @@ -9631,7 +9666,7 @@ __TEXTURE_FUNCTIONS_DECL__ ushort2 tex2DLayered(texture int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_USHORT_XY; } @@ -9640,7 +9675,7 @@ __TEXTURE_FUNCTIONS_DECL__ ushort4 tex2DLayered(texture float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_USHORT_XYZW; } @@ -9650,7 +9685,7 @@ __TEXTURE_FUNCTIONS_DECL__ ushort4 tex2DLayered(texture int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_USHORT_XYZW; } @@ -9659,7 +9694,7 @@ __TEXTURE_FUNCTIONS_DECL__ int tex2DLayered(texture texRef, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_INT; } @@ -9669,7 +9704,7 @@ __TEXTURE_FUNCTIONS_DECL__ int tex2DLayered(texture texRef, int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_INT; } @@ -9678,7 +9713,7 @@ __TEXTURE_FUNCTIONS_DECL__ int1 tex2DLayered(texture texRef int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_INT_X; } @@ -9688,7 +9723,7 @@ __TEXTURE_FUNCTIONS_DECL__ int1 tex2DLayered(texture texRef int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_INT_X; } @@ -9697,7 +9732,7 @@ __TEXTURE_FUNCTIONS_DECL__ int2 tex2DLayered(texture texRef int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_INT_XY; } @@ -9707,7 +9742,7 @@ __TEXTURE_FUNCTIONS_DECL__ int2 tex2DLayered(texture texRef int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_INT_XY; } @@ -9716,7 +9751,7 @@ __TEXTURE_FUNCTIONS_DECL__ int4 tex2DLayered(texture texRef int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_INT_XYZW; } @@ -9726,7 +9761,7 @@ __TEXTURE_FUNCTIONS_DECL__ int4 tex2DLayered(texture texRef int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_INT_XYZW; } @@ -9735,7 +9770,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned int tex2DLayered(texture texR float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_UINT_X; } @@ -9764,7 +9799,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint1 tex2DLayered(texture texR int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_UINT_X; } @@ -9773,7 +9808,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint2 tex2DLayered(texture texR float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_UINT_XY; } @@ -9783,7 +9818,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint2 tex2DLayered(texture texR int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_UINT_XY; } @@ -9792,7 +9827,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint4 tex2DLayered(texture texR float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_UINT_XYZW; } @@ -9802,7 +9837,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint4 tex2DLayered(texture texR int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_UINT_XYZW; } @@ -9811,7 +9846,7 @@ __TEXTURE_FUNCTIONS_DECL__ float tex2DLayered(texture texR float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_FLOAT; } @@ -9821,7 +9856,7 @@ __TEXTURE_FUNCTIONS_DECL__ float tex2DLayered(texture texR int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_FLOAT; } @@ -9830,7 +9865,7 @@ __TEXTURE_FUNCTIONS_DECL__ float1 tex2DLayered(texture te float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_FLOAT_X; } @@ -9840,7 +9875,7 @@ __TEXTURE_FUNCTIONS_DECL__ float1 tex2DLayered(texture te int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_FLOAT_X; } @@ -9849,7 +9884,7 @@ __TEXTURE_FUNCTIONS_DECL__ float2 tex2DLayered(texture te float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_FLOAT_XY; } @@ -9859,7 +9894,7 @@ __TEXTURE_FUNCTIONS_DECL__ float2 tex2DLayered(texture te int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_FLOAT_XY; } @@ -9868,7 +9903,7 @@ __TEXTURE_FUNCTIONS_DECL__ float4 tex2DLayered(texture te float y, int layer) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_FLOAT_XYZW; } @@ -9878,7 +9913,7 @@ __TEXTURE_FUNCTIONS_DECL__ float4 tex2DLayered(texture te int layer) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector()); + __ockl_image_sample_2Da(i, s, float4(x, y, layer, 0.0f).data); TEXTURE_RETURN_FLOAT_XYZW; } @@ -9889,7 +9924,7 @@ __TEXTURE_FUNCTIONS_DECL__ char tex2DLayeredLod(texture tex float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_CHAR; } @@ -9899,7 +9934,7 @@ __TEXTURE_FUNCTIONS_DECL__ char tex2DLayeredLod(texture tex int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_CHAR; } @@ -9908,7 +9943,7 @@ __TEXTURE_FUNCTIONS_DECL__ char1 tex2DLayeredLod(texture t float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_CHAR_X; } @@ -9918,7 +9953,7 @@ __TEXTURE_FUNCTIONS_DECL__ char1 tex2DLayeredLod(texture t int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_CHAR_X; } @@ -9927,7 +9962,7 @@ __TEXTURE_FUNCTIONS_DECL__ char2 tex2DLayeredLod(texture t float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_CHAR_XY; } @@ -9937,7 +9972,7 @@ __TEXTURE_FUNCTIONS_DECL__ char2 tex2DLayeredLod(texture t int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_CHAR_XY; } @@ -9946,7 +9981,7 @@ __TEXTURE_FUNCTIONS_DECL__ char4 tex2DLayeredLod(texture t float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_CHAR_XYZW; } @@ -9956,7 +9991,7 @@ __TEXTURE_FUNCTIONS_DECL__ char4 tex2DLayeredLod(texture t int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_CHAR_XYZW; } @@ -9965,7 +10000,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned char tex2DLayeredLod( texture texRef, float x, float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_UCHAR; } @@ -9975,7 +10010,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned char tex2DLayeredLod( float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_UCHAR; } @@ -9984,7 +10019,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar1 tex2DLayeredLod(texture float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_UCHAR_X; } @@ -9994,7 +10029,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar1 tex2DLayeredLod(texture float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_UCHAR_X; } @@ -10003,7 +10038,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar2 tex2DLayeredLod(texture float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_UCHAR_XY; } @@ -10013,7 +10048,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar2 tex2DLayeredLod(texture float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_UCHAR_XY; } @@ -10022,7 +10057,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar4 tex2DLayeredLod(texture float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_UCHAR_XYZW; } @@ -10032,7 +10067,7 @@ __TEXTURE_FUNCTIONS_DECL__ uchar4 tex2DLayeredLod(texture float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_UCHAR_XYZW; } @@ -10041,7 +10076,7 @@ __TEXTURE_FUNCTIONS_DECL__ short tex2DLayeredLod(texture t float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_SHORT; } @@ -10051,7 +10086,7 @@ __TEXTURE_FUNCTIONS_DECL__ short tex2DLayeredLod(texture t int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_SHORT; } @@ -10060,7 +10095,7 @@ __TEXTURE_FUNCTIONS_DECL__ short1 tex2DLayeredLod(texture float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_SHORT_X; } @@ -10070,7 +10105,7 @@ __TEXTURE_FUNCTIONS_DECL__ short1 tex2DLayeredLod(texture float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_SHORT_X; } @@ -10079,7 +10114,7 @@ __TEXTURE_FUNCTIONS_DECL__ short2 tex2DLayeredLod(texture float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_SHORT_XY; } @@ -10089,7 +10124,7 @@ __TEXTURE_FUNCTIONS_DECL__ short2 tex2DLayeredLod(texture float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_SHORT_XY; } @@ -10098,7 +10133,7 @@ __TEXTURE_FUNCTIONS_DECL__ short4 tex2DLayeredLod(texture float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_SHORT_XYZW; } @@ -10108,7 +10143,7 @@ __TEXTURE_FUNCTIONS_DECL__ short4 tex2DLayeredLod(texture float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_SHORT_XYZW; } @@ -10117,7 +10152,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned short tex2DLayeredLod( texture texRef, float x, float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_USHORT; } @@ -10127,7 +10162,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned short tex2DLayeredLod( float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_USHORT; } @@ -10136,7 +10171,7 @@ __TEXTURE_FUNCTIONS_DECL__ ushort1 tex2DLayeredLod(texture texRe int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_INT; } @@ -10203,7 +10238,7 @@ __TEXTURE_FUNCTIONS_DECL__ int tex2DLayeredLod(texture texRe int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_INT; } @@ -10212,7 +10247,7 @@ __TEXTURE_FUNCTIONS_DECL__ int1 tex2DLayeredLod(texture tex float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_INT_X; } @@ -10222,7 +10257,7 @@ __TEXTURE_FUNCTIONS_DECL__ int1 tex2DLayeredLod(texture tex int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_INT_X; } @@ -10231,7 +10266,7 @@ __TEXTURE_FUNCTIONS_DECL__ int2 tex2DLayeredLod(texture tex float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_INT_XY; } @@ -10241,7 +10276,7 @@ __TEXTURE_FUNCTIONS_DECL__ int2 tex2DLayeredLod(texture tex int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_INT_XY; } @@ -10250,7 +10285,7 @@ __TEXTURE_FUNCTIONS_DECL__ int4 tex2DLayeredLod(texture tex float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_INT_XYZW; } @@ -10260,7 +10295,7 @@ __TEXTURE_FUNCTIONS_DECL__ int4 tex2DLayeredLod(texture tex int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_INT_XYZW; } @@ -10269,7 +10304,7 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned int tex2DLayeredLod(texture t float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_UINT_X; } @@ -10298,7 +10333,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint1 tex2DLayeredLod(texture t int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_UINT_X; } @@ -10307,7 +10342,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint2 tex2DLayeredLod(texture t float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_UINT_XY; } @@ -10317,7 +10352,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint2 tex2DLayeredLod(texture t int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_UINT_XY; } @@ -10326,7 +10361,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint4 tex2DLayeredLod(texture t float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_UINT_XYZW; } @@ -10336,7 +10371,7 @@ __TEXTURE_FUNCTIONS_DECL__ uint4 tex2DLayeredLod(texture t int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_UINT_XYZW; } @@ -10345,7 +10380,7 @@ __TEXTURE_FUNCTIONS_DECL__ float tex2DLayeredLod(texture t float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_FLOAT; } @@ -10355,7 +10390,7 @@ __TEXTURE_FUNCTIONS_DECL__ float tex2DLayeredLod(texture t int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_FLOAT; } @@ -10364,7 +10399,7 @@ __TEXTURE_FUNCTIONS_DECL__ float1 tex2DLayeredLod(texture float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_FLOAT_X; } @@ -10374,7 +10409,7 @@ __TEXTURE_FUNCTIONS_DECL__ float1 tex2DLayeredLod(texture float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_FLOAT_X; } @@ -10383,7 +10418,7 @@ __TEXTURE_FUNCTIONS_DECL__ float2 tex2DLayeredLod(texture float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_FLOAT_XY; } @@ -10393,7 +10428,7 @@ __TEXTURE_FUNCTIONS_DECL__ float2 tex2DLayeredLod(texture float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_FLOAT_XY; } @@ -10402,7 +10437,7 @@ __TEXTURE_FUNCTIONS_DECL__ float4 tex2DLayeredLod(texture float y, int layer, float level) { TEXTURE_REF_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_FLOAT_XYZW; } @@ -10412,7 +10447,7 @@ __TEXTURE_FUNCTIONS_DECL__ float4 tex2DLayeredLod(texture float y, int layer, float level) { TEXTURE_PARAMETERS_INIT; texel.f = __ockl_image_sample_lod_2Da( - i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), level); + i, s, float4(x, y, layer, 0.0f).data, level); TEXTURE_RETURN_FLOAT_XYZW; } @@ -10423,9 +10458,9 @@ __TEXTURE_FUNCTIONS_DECL__ char tex2DLayeredGrad(texture te float y, int layer, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_CHAR; } @@ -10435,9 +10470,9 @@ __TEXTURE_FUNCTIONS_DECL__ char tex2DLayeredGrad(texture te int layer, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_CHAR; } @@ -10446,9 +10481,9 @@ __TEXTURE_FUNCTIONS_DECL__ char1 tex2DLayeredGrad(texture float y, int layer, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_CHAR_X; } @@ -10458,9 +10493,9 @@ __TEXTURE_FUNCTIONS_DECL__ char1 tex2DLayeredGrad(texture float y, int layer, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_CHAR_X; } @@ -10469,9 +10504,9 @@ __TEXTURE_FUNCTIONS_DECL__ char2 tex2DLayeredGrad(texture float y, int layer, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_CHAR_XY; } @@ -10481,9 +10516,9 @@ __TEXTURE_FUNCTIONS_DECL__ char2 tex2DLayeredGrad(texture float y, int layer, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_CHAR_XY; } @@ -10492,9 +10527,9 @@ __TEXTURE_FUNCTIONS_DECL__ char4 tex2DLayeredGrad(texture float y, int layer, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_CHAR_XYZW; } @@ -10504,9 +10539,9 @@ __TEXTURE_FUNCTIONS_DECL__ char4 tex2DLayeredGrad(texture float y, int layer, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_CHAR_XYZW; } @@ -10516,9 +10551,9 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned char tex2DLayeredGrad( float2 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UCHAR; } @@ -10528,9 +10563,9 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned char tex2DLayeredGrad( float y, int layer, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UCHAR; } @@ -10539,9 +10574,9 @@ __TEXTURE_FUNCTIONS_DECL__ uchar1 tex2DLayeredGrad(texture float y, int layer, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_SHORT; } @@ -10620,9 +10655,9 @@ __TEXTURE_FUNCTIONS_DECL__ short tex2DLayeredGrad(texture float y, int layer, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_SHORT; } @@ -10631,9 +10666,9 @@ __TEXTURE_FUNCTIONS_DECL__ short1 tex2DLayeredGrad(texture texR float y, int layer, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_INT; } @@ -10805,9 +10840,9 @@ __TEXTURE_FUNCTIONS_DECL__ int tex2DLayeredGrad(texture texR int layer, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_INT; } @@ -10816,9 +10851,9 @@ __TEXTURE_FUNCTIONS_DECL__ int1 tex2DLayeredGrad(texture te float y, int layer, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_INT_X; } @@ -10828,9 +10863,9 @@ __TEXTURE_FUNCTIONS_DECL__ int1 tex2DLayeredGrad(texture te int layer, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_INT_X; } @@ -10839,9 +10874,9 @@ __TEXTURE_FUNCTIONS_DECL__ int2 tex2DLayeredGrad(texture te float y, int layer, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_INT_XY; } @@ -10851,9 +10886,9 @@ __TEXTURE_FUNCTIONS_DECL__ int2 tex2DLayeredGrad(texture te int layer, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_INT_XY; } @@ -10862,9 +10897,9 @@ __TEXTURE_FUNCTIONS_DECL__ int4 tex2DLayeredGrad(texture te float y, int layer, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_INT_XYZW; } @@ -10874,9 +10909,9 @@ __TEXTURE_FUNCTIONS_DECL__ int4 tex2DLayeredGrad(texture te int layer, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_INT_XYZW; } @@ -10886,9 +10921,9 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned int tex2DLayeredGrad( float2 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UINT; } @@ -10898,9 +10933,9 @@ __TEXTURE_FUNCTIONS_DECL__ unsigned int tex2DLayeredGrad( int layer, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UINT; } @@ -10909,9 +10944,9 @@ __TEXTURE_FUNCTIONS_DECL__ uint1 tex2DLayeredGrad(texture float y, int layer, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UINT_X; } @@ -10921,9 +10956,9 @@ __TEXTURE_FUNCTIONS_DECL__ uint1 tex2DLayeredGrad(texture float y, int layer, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UINT_X; } @@ -10932,9 +10967,9 @@ __TEXTURE_FUNCTIONS_DECL__ uint2 tex2DLayeredGrad(texture float y, int layer, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UINT_XY; } @@ -10944,9 +10979,9 @@ __TEXTURE_FUNCTIONS_DECL__ uint2 tex2DLayeredGrad(texture float y, int layer, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UINT_XY; } @@ -10955,9 +10990,9 @@ __TEXTURE_FUNCTIONS_DECL__ uint4 tex2DLayeredGrad(texture float y, int layer, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UINT_XYZW; } @@ -10967,9 +11002,9 @@ __TEXTURE_FUNCTIONS_DECL__ uint4 tex2DLayeredGrad(texture float y, int layer, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_UINT_XYZW; } @@ -10978,9 +11013,9 @@ __TEXTURE_FUNCTIONS_DECL__ float tex2DLayeredGrad(texture float y, int layer, float2 dx, float2 dy) { TEXTURE_REF_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_FLOAT; } @@ -10990,9 +11025,9 @@ __TEXTURE_FUNCTIONS_DECL__ float tex2DLayeredGrad(texture float y, int layer, float2 dx, float2 dy) { TEXTURE_PARAMETERS_INIT; texel.f = - __ockl_image_sample_grad_2Da(i, s, hc::short_vector::float4(x, y, layer, 0.0f).get_vector(), - hc::short_vector::float2(dx.x, dx.y).get_vector(), - hc::short_vector::float2(dy.x, dy.y).get_vector()); + __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, + float2(dx.x, dx.y).data, + float2(dy.x, dy.y).data); TEXTURE_RETURN_FLOAT; } @@ -11001,9 +11036,9 @@ __TEXTURE_FUNCTIONS_DECL__ float1 tex2DLayeredGrad(texture