* @brief Used for on-done callback data for asynchronous operations sduch as * kernel launching. */
| 428 | * kernel launching. |
| 429 | */ |
| 430 | struct 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 |
nothing calls this directly
no outgoing calls
no test coverage detected