MCPcopy Create free account
hub / github.com/AnswerDotAI/gpu.cpp / CallbackData

Class CallbackData

gpu.hpp:430–437  ·  view source on GitHub ↗

* @brief Used for on-done callback data for asynchronous operations sduch as * kernel launching. */

Source from the content-addressed store, hash-verified

428 * kernel launching.
429 */
430struct CallbackData {
431 WGPUBuffer buffer; // managed by owning Kernel
432 size_t bufferSize;
433 void *output; // non-owning, only for target memory in toCPU, not used for
434 // kernel invocations
435 std::promise<void> *promise;
436 std::future<void> *future;
437};
438
439/**
440 * @brief Staging buffer and callback data for copying data between the GPU and

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected