开发者

Where should I using OpenCL data types?

开发者 https://www.devze.com 2023-03-05 15:04 出处:网络
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.

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

精彩评论

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