| 63 | { |
| 64 | |
| 65 | std::string loadCLSource(const std::string &filename) |
| 66 | { |
| 67 | const unsigned char *data; |
| 68 | size_t length = 0; |
| 69 | |
| 70 | if(!loadResource(filename, &data, &length)) |
| 71 | { |
| 72 | LOG_ERROR << "failed to load cl source!"; |
| 73 | return ""; |
| 74 | } |
| 75 | |
| 76 | return std::string(reinterpret_cast<const char *>(data), length); |
| 77 | } |
| 78 | |
| 79 | class OpenCLDepthPacketProcessorImpl; |
| 80 |
no test coverage detected