Reading the OpenCL documentation, I know that the access qualifiers read_only
and write_only
are intended for image memory.
However, I'm noticing some people use these qualifiers on regular, non-image-memory, parameters, e.g.:
void foo(unsigned n, __global read_only int* data)
Note the lack of const
.
My questions:
- Does
read_only
imply, in particular,const
? - Does
read_only
imply anything other thanconst
? Something else that an OpenCL compiler can utilize?
... or is it just meaningless for non-image-memory, and ignored?