@@ -3761,6 +3761,20 @@ class __SYCL_EBO unsampled_image_accessor :
3761
3761
}
3762
3762
3763
3763
/* -- property interface members -- */
3764
+ template <typename Property> bool has_property () const noexcept {
3765
+ #ifndef __SYCL_DEVICE_ONLY__
3766
+ return getPropList ().template has_property <Property>();
3767
+ #else
3768
+ return false ;
3769
+ #endif
3770
+ }
3771
+ template <typename Property> Property get_property () const {
3772
+ #ifndef __SYCL_DEVICE_ONLY__
3773
+ return getPropList ().template get_property <Property>();
3774
+ #else
3775
+ return Property ();
3776
+ #endif
3777
+ }
3764
3778
3765
3779
size_t size () const noexcept {
3766
3780
#ifdef __SYCL_DEVICE_ONLY__
@@ -3886,6 +3900,20 @@ class __SYCL_EBO host_unsampled_image_accessor
3886
3900
}
3887
3901
3888
3902
/* -- property interface members -- */
3903
+ template <typename Property> bool has_property () const noexcept {
3904
+ #ifndef __SYCL_DEVICE_ONLY__
3905
+ return getPropList ().template has_property <Property>();
3906
+ #else
3907
+ return false ;
3908
+ #endif
3909
+ }
3910
+ template <typename Property> Property get_property () const {
3911
+ #ifndef __SYCL_DEVICE_ONLY__
3912
+ return getPropList ().template get_property <Property>();
3913
+ #else
3914
+ return Property ();
3915
+ #endif
3916
+ }
3889
3917
3890
3918
size_t size () const noexcept { return base_class::getSize ().size (); }
3891
3919
@@ -4032,6 +4060,20 @@ class __SYCL_EBO sampled_image_accessor :
4032
4060
}
4033
4061
4034
4062
/* -- property interface members -- */
4063
+ template <typename Property> bool has_property () const noexcept {
4064
+ #ifndef __SYCL_DEVICE_ONLY__
4065
+ return getPropList ().template has_property <Property>();
4066
+ #else
4067
+ return false ;
4068
+ #endif
4069
+ }
4070
+ template <typename Property> Property get_property () const {
4071
+ #ifndef __SYCL_DEVICE_ONLY__
4072
+ return getPropList ().template get_property <Property>();
4073
+ #else
4074
+ return Property ();
4075
+ #endif
4076
+ }
4035
4077
4036
4078
size_t size () const noexcept {
4037
4079
#ifdef __SYCL_DEVICE_ONLY__
@@ -4132,6 +4174,20 @@ class __SYCL_EBO host_sampled_image_accessor
4132
4174
}
4133
4175
4134
4176
/* -- property interface members -- */
4177
+ template <typename Property> bool has_property () const noexcept {
4178
+ #ifndef __SYCL_DEVICE_ONLY__
4179
+ return getPropList ().template has_property <Property>();
4180
+ #else
4181
+ return false ;
4182
+ #endif
4183
+ }
4184
+ template <typename Property> Property get_property () const {
4185
+ #ifndef __SYCL_DEVICE_ONLY__
4186
+ return getPropList ().template get_property <Property>();
4187
+ #else
4188
+ return Property ();
4189
+ #endif
4190
+ }
4135
4191
4136
4192
size_t size () const noexcept { return base_class::getSize ().size (); }
4137
4193
0 commit comments