MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / loadCLSource

Function loadCLSource

src/opencl_depth_packet_processor.cpp:65–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63{
64
65std::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
79class OpenCLDepthPacketProcessorImpl;
80

Callers 1

readProgramMethod · 0.85

Calls 2

loadResourceFunction · 0.85
stringFunction · 0.85

Tested by

no test coverage detected