Function std::wgpuDevicePoll
unsigned int wgpuDevicePoll(
WGPUDevice_* device,
unsigned int wait,
const unsigned long* submissionIndex,
)Runs the device's maintenance (finished work, mapped buffers) so the instance's callbacks can fire; with wait, first blocks until submission *index (every submission when null) is done. 1 when the queue is empty.