MCPcopy Create free account
hub / github.com/defold/defold / write_to_buffer

Method write_to_buffer

engine/dlib/src/basis/encoder/basisu_opencl.cpp:385–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383 }
384
385 bool write_to_buffer(cl_command_queue command_queue, cl_mem clmem, const void* d, const size_t m)
386 {
387 cl_serializer serializer(this);
388
389 cl_int ret = clEnqueueWriteBuffer(command_queue, clmem, CL_TRUE, 0, m, d, 0, NULL, NULL);
390 if (ret != CL_SUCCESS)
391 {
392 ocl_error_printf("ocl::write_to_buffer: clEnqueueWriteBuffer() failed!\n");
393 return false;
394 }
395
396 return true;
397 }
398
399 bool read_from_buffer(cl_command_queue command_queue, const cl_mem clmem, void* d, size_t m)
400 {

Callers

nothing calls this directly

Calls 2

clEnqueueWriteBufferFunction · 0.85
ocl_error_printfFunction · 0.85

Tested by

no test coverage detected