| 574 | } |
| 575 | |
| 576 | static std::string getChannelTypeString(cl_channel_type type) { |
| 577 | switch (type) { |
| 578 | CASE(CL_SNORM_INT8); |
| 579 | CASE(CL_SNORM_INT16); |
| 580 | CASE(CL_UNORM_INT8); |
| 581 | CASE(CL_UNORM_INT16); |
| 582 | CASE(CL_UNORM_SHORT_565); |
| 583 | CASE(CL_UNORM_SHORT_555); |
| 584 | CASE(CL_UNORM_INT_101010); |
| 585 | CASE(CL_SIGNED_INT8); |
| 586 | CASE(CL_SIGNED_INT16); |
| 587 | CASE(CL_SIGNED_INT32); |
| 588 | CASE(CL_UNSIGNED_INT8); |
| 589 | CASE(CL_UNSIGNED_INT16); |
| 590 | CASE(CL_UNSIGNED_INT32); |
| 591 | CASE(CL_HALF_FLOAT); |
| 592 | CASE(CL_FLOAT); |
| 593 | default: |
| 594 | return getHexString(type); |
| 595 | } |
| 596 | } |
| 597 | |
| 598 | static std::string getImageFormatsString(const cl_image_format* format, size_t num_entries) { |
| 599 | if (format == NULL) { |
no test coverage detected