| 108 | } |
| 109 | |
| 110 | Status CreateTexture2DRGBA(DataType type, int width, int height, |
| 111 | CLContext* context, Texture2D* result) { |
| 112 | if (type == DataType::FLOAT32) { |
| 113 | return CreateTexture2D(width, height, CL_FLOAT, nullptr, context, result); |
| 114 | } else { |
| 115 | return CreateTexture2D(width, height, CL_HALF_FLOAT, nullptr, context, |
| 116 | result); |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | Status CreateTexture2DRGBA(DataType type, int width, int height, void* data, |
| 121 | CLContext* context, Texture2D* result) { |
no test coverage detected