3#ifndef vtkWebGPUCallbacksInternals_h
4#define vtkWebGPUCallbacksInternals_h
6#include "vtkRenderingWebGPUModule.h"
21 char const* message,
void* userdata =
nullptr);
27 WGPUErrorType type,
char const* message,
void* userdata =
nullptr);
32 static void PrintWGPUError(WGPUErrorType type,
const char* message,
void* userdata =
nullptr);
Utilitary class for various WebGPU callbacks methods.
static void DeviceLostCallback(const WGPUDevice *device, WGPUDeviceLostReason reason, char const *message, void *userdata=nullptr)
Callback called when the WGPU device is lost.
static void UncapturedErrorCallback(WGPUErrorType type, char const *message, void *userdata=nullptr)
Callback called when an error occured in the manipulation of WGPU.
static void PrintWGPUError(WGPUErrorType type, const char *message, void *userdata=nullptr)