Pops the device's innermost error scope and waits for it. Returns the type of the first error the scope
caught (.NoError for none) and its message, which lives in temporary storage.
instance := wgpuCreateInstance(null);
device: WGPUDevice;
wgpuDevicePushErrorScope(device, .Validation);
// ... calls that might be invalid ...
type, message := webgpu_pop_error_scope(instance, device);
if type != .NoError print("%\n", message);This one is only checked to compile, not run.
webgpu_pop_error_scope :: (
instance: WGPUInstance,
device: WGPUDevice
) -> (WGPUErrorType, message: string)
Parameters
- instance: WGPUInstance
- device: WGPUDevice
Returns
- message: string