开发者

Where should I using OpenCL data types?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜