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

Function getChannelOrderString

opencl/tools/cltrace/cltrace.cpp:556–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554}
555
556static std::string getChannelOrderString(cl_channel_order order) {
557 switch (order) {
558 CASE(CL_R);
559 CASE(CL_A);
560 CASE(CL_RG);
561 CASE(CL_RA);
562 CASE(CL_RGB);
563 CASE(CL_RGBA);
564 CASE(CL_BGRA);
565 CASE(CL_ARGB);
566 CASE(CL_INTENSITY);
567 CASE(CL_LUMINANCE);
568 CASE(CL_Rx);
569 CASE(CL_RGx);
570 CASE(CL_RGBx);
571 default:
572 return getHexString(order);
573 }
574}
575
576static std::string getChannelTypeString(cl_channel_type type) {
577 switch (type) {

Callers 1

getImageFormatsStringFunction · 0.85

Calls 1

getHexStringFunction · 0.85

Tested by

no test coverage detected