| 596 | } |
| 597 | |
| 598 | static std::string getImageFormatsString(const cl_image_format* format, size_t num_entries) { |
| 599 | if (format == NULL) { |
| 600 | return "NULL"; |
| 601 | } |
| 602 | |
| 603 | std::ostringstream ss; |
| 604 | ss << '['; |
| 605 | while (true) { |
| 606 | ss << '{' << getChannelOrderString(format->image_channel_order) << ','; |
| 607 | ss << getChannelTypeString(format->image_channel_data_type) << '}'; |
| 608 | if (--num_entries == 0) { |
| 609 | break; |
| 610 | } |
| 611 | ss << ','; |
| 612 | } |
| 613 | ss << ']'; |
| 614 | return ss.str(); |
| 615 | } |
| 616 | |
| 617 | static std::string getImageDescString(const cl_image_desc* image_desc) { |
| 618 | if (image_desc == NULL) { |
no test coverage detected