I have a question: where should I using OpenCL data开发者_开发百科 types? For what are us? Which are covered they?
Some types are defined in the OpenCL C programming language, like int
, float4
, etc.
The corresponding types are defined in the host API with the cl_
prefix, like cl_int
, cl_float4
, etc. These types are used in the OpenCL API functions, and should be used to pass kernel arguments and compute the size of buffers for example.
精彩评论