@@ -761,11 +761,7 @@ DataT read_image(const unsampled_image_handle &imageHandle [[maybe_unused]],
761
761
" for 1D, 2D and 3D images, respectively." );
762
762
763
763
#ifdef __SYCL_DEVICE_ONLY__
764
- #if defined(__NVPTX__)
765
764
return __invoke__ImageRead<DataT>(imageHandle.raw_handle , coords);
766
- #else
767
- // TODO: add SPIRV part for unsampled image read
768
- #endif
769
765
#else
770
766
assert (false ); // Bindless images not yet implemented on host
771
767
#endif
@@ -797,11 +793,7 @@ DataT read_image(const sampled_image_handle &imageHandle [[maybe_unused]],
797
793
" for 1D, 2D and 3D images, respectively." );
798
794
799
795
#ifdef __SYCL_DEVICE_ONLY__
800
- #if defined(__NVPTX__)
801
796
return __invoke__ImageRead<DataT>(imageHandle.raw_handle , coords);
802
- #else
803
- // TODO: add SPIRV part for sampled image read
804
- #endif
805
797
#else
806
798
assert (false ); // Bindless images not yet implemented on host.
807
799
#endif
@@ -829,11 +821,7 @@ DataT read_mipmap(const sampled_image_handle &imageHandle [[maybe_unused]],
829
821
" for 1D, 2D and 3D images, respectively." );
830
822
831
823
#ifdef __SYCL_DEVICE_ONLY__
832
- #if defined(__NVPTX__)
833
824
return __invoke__ImageReadLod<DataT>(imageHandle.raw_handle , coords, level);
834
- #else
835
- // TODO: add SPIRV for mipmap level read
836
- #endif
837
825
#else
838
826
assert (false ); // Bindless images not yet implemented on host
839
827
#endif
@@ -863,11 +851,7 @@ DataT read_mipmap(const sampled_image_handle &imageHandle [[maybe_unused]],
863
851
" components for 1D, 2D, and 3D images, respectively." );
864
852
865
853
#ifdef __SYCL_DEVICE_ONLY__
866
- #if defined(__NVPTX__)
867
854
return __invoke__ImageReadGrad<DataT>(imageHandle.raw_handle , coords, dX, dY);
868
- #else
869
- // TODO: add SPIRV part for mipmap grad read
870
- #endif
871
855
#else
872
856
assert (false ); // Bindless images not yet implemented on host
873
857
#endif
@@ -898,11 +882,7 @@ DataT read_image(const sampled_image_handle &imageHandle [[maybe_unused]],
898
882
" for 1D, 2D and 3D images, respectively." );
899
883
900
884
#ifdef __SYCL_DEVICE_ONLY__
901
- #if defined(__NVPTX__)
902
885
return __invoke__ImageReadLod<DataT>(imageHandle.raw_handle , coords, level);
903
- #else
904
- // TODO: add SPIRV for mipmap level read
905
- #endif
906
886
#else
907
887
assert (false ); // Bindless images not yet implemented on host
908
888
#endif
@@ -935,11 +915,7 @@ DataT read_image(const sampled_image_handle &imageHandle [[maybe_unused]],
935
915
" components for 1D, 2D, and 3D images, respectively." );
936
916
937
917
#ifdef __SYCL_DEVICE_ONLY__
938
- #if defined(__NVPTX__)
939
918
return __invoke__ImageReadGrad<DataT>(imageHandle.raw_handle , coords, dX, dY);
940
- #else
941
- // TODO: add SPIRV part for mipmap grad read
942
- #endif
943
919
#else
944
920
assert (false ); // Bindless images not yet implemented on host
945
921
#endif
@@ -969,7 +945,7 @@ void write_image(const unsampled_image_handle &imageHandle [[maybe_unused]],
969
945
__invoke__ImageWrite ((uint64_t )imageHandle.raw_handle , coords,
970
946
detail::convert_color_nvptx (color));
971
947
#else
972
- // TODO: add SPIRV part for unsampled image write
948
+ __invoke__ImageWrite (( uint64_t )imageHandle. raw_handle , coords, color);
973
949
#endif
974
950
#else
975
951
assert (false ); // Bindless images not yet implemented on host
0 commit comments