MCPcopy Create free account
hub / github.com/ROCm/clr / getImageFormatsString

Function getImageFormatsString

opencl/tools/cltrace/cltrace.cpp:598–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596}
597
598static 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
617static std::string getImageDescString(const cl_image_desc* image_desc) {
618 if (image_desc == NULL) {

Callers 4

CL_API_CALL CreateImageFunction · 0.85

Calls 2

getChannelOrderStringFunction · 0.85
getChannelTypeStringFunction · 0.85

Tested by

no test coverage detected