message: Texture intrinsics are only defined in device mode
diff: @@ -66,7 +66,7 @@ template <
  typename T,
  cudaTextureReadMode ReadMode = cudaTextureReadMode(detail::tex_read_mode_from_type<T>::value)
  >
  -VSNRAY_FUNC
  +VSNRAY_GPU_FUNC
  inline typename cuda::map_texel_type<typename cuda_texture_ref<T, 1>::cuda_type, ReadMode>::vsnray_return_type
  tex1D(cuda_texture_ref<T, 1> const& tex, float coord)
  {
  @@ -77,13 +77,11 @@ tex1D(cuda_texture_ref<T, 1> const& tex, float coord)
  cuda_return_type retval;
  -#if VSNRAY_GPU_MODE
  ::tex1D(
  &retval,
  tex.texture_object(),
  coord
  );
  -#endif
  return cuda::cast<return_type>(retval);
  }
  @@ -92,7 +90,7 @@ template <
  typename T,
  cudaTextureReadMode ReadMode = cudaTextureReadMode(detail::tex_read_mode_from_type<T>::value)
  >
  -VSNRAY_FUNC
  +VSNRAY_GPU_FUNC
  inline typename cuda::map_texel_type<typename cuda_texture_ref<T, 2>::cuda_type, ReadMode>::vsnray_return_type
  tex2D(cuda_texture_ref<T, 2> const& tex, vector<2, float> coord)
  {
  @@ -103,14 +101,12 @@ tex2D(cuda_texture_ref<T, 2> const& tex, vector<2, float> coord)
  cuda_return_type retval;
  -#if VSNRAY_GPU_MODE
  ::tex2D(
  &retval,
  tex.texture_object(),
  coord.x,
  coord.y
  );
  -#endif
  return cuda::cast<return_type>(retval);
  }
  @@ -119,7 +115,7 @@ template <
  typename T,
  cudaTextureReadMode ReadMode = cudaTextureReadMode(detail::tex_read_mode_from_type<T>::value)
  >
  -VSNRAY_FUNC
  +VSNRAY_GPU_FUNC
  inline typename cuda::map_texel_type<typename cuda_texture_ref<T, 3>::cuda_type, ReadMode>::vsnray_return_type
  tex3D(cuda_texture_ref<T, 3> const& tex, vector<3, float> coord)
  {
  @@ -130,7 +126,6 @@ tex3D(cuda_texture_ref<T, 3> const& tex, vector<3, float> coord)
  cuda_return_type retval;
  -#if VSNRAY_GPU_MODE
  ::tex3D(
  &retval,
  tex.texture_object(),
  @@ -138,7 +133,6 @@ tex3D(cuda_texture_ref<T, 3> const& tex, vector<3, float> coord)
  coord.y,
  coord.z
  );
  -#endif
  return cuda::cast<return_type>(retval);
  }
  