4
对于本声明我的OpenCL内核OpenCL的类型转换为Boolean
uint4 checkCoord; // assign some value
if(checkCoord==(uint4)(0,0,0,0)){
; // do something
}
我收到以下错误OpenCL编译
statement requires expression of scalar type ('int __attribute__((ext_vector_type(4,4)))' invalid)
什么是一个变量转换的最简单方法的uint4类型为bool(或标量)值?