{"description":"\u4eca\u56de\u306fOpenCL\u3092\u7528\u3044\u3066\u753b\u50cf\u51e6\u7406\u3092\u884c\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u4e0b\u56f3\u306e\u3088\u3046\u306b\u3001\u8d64\u3068\u9752\u3092\u5165\u308c\u66ff\u3048\u308b\u51e6\u7406\u3092\u5b9f\u88c5\u3057\u3066\u3044\u304d\u307e\u3059\u3002 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b3\u30fc\u30c9 clCreateImage\u3067\u3082\u3044\u3044\u3067\u3059\u304c\u3001\u4eca\u56de\u306fclCreateBuffer\u3067\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002BMP\u306e\u8aad\u307f\u66f8\u304d\u306f\u4e0b\u8a18\u8a18\u4e8b\u306e\u3082\u306e\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002 Bitmap\u8aad\u307f\u66f8\u304d - \u4f55\u3067\u3082\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 #include <cl/cl.h> #define ASSERT_CL(expr) if (expr != CL_SUCCESS) { throw std::exception(#expr); } int main() { // \u753b\u50cf\u8aad\u307f\u8fbc\u307f int widt\u2026","blog_url":"https://any-programming.hatenablog.com/","width":"100%","blog_title":"\u4f55\u3067\u3082\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","url":"https://any-programming.hatenablog.com/entry/2017/12/31/011327","author_url":"https://blog.hatena.ne.jp/any-programming/","type":"rich","published":"2017-12-31 01:13:27","categories":["OpenCL","C++"],"height":"190","author_name":"any-programming","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/a/any-programming/20170319/20170319005947.jpg","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fany-programming.hatenablog.com%2Fentry%2F2017%2F12%2F31%2F011327\" title=\"OpenCL\u3067\u753b\u50cf\u51e6\u7406 - \u4f55\u3067\u3082\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","title":"OpenCL\u3067\u753b\u50cf\u51e6\u7406","version":"1.0","provider_url":"https://hatena.blog"}