3 #ifndef vtkWGPUContext_h
4 #define vtkWGPUContext_h
6 #include "vtkRenderingWebGPUModule.h"
9 VTK_ABI_NAMESPACE_BEGIN
14 static void LogAvailableAdapters();
15 static void GetAdapterInfo(
char (*adapter_info)[256]);
16 static wgpu::Adapter RequestAdapter(
const wgpu::RequestAdapterOptions& options);
17 static wgpu::Device RequestDevice(
18 const wgpu::Adapter& adapter,
const wgpu::DeviceDescriptor& deviceDescriptor);
19 static wgpu::Surface CreateSurface(
const wgpu::ChainedStruct& surfaceDescriptor);
20 static std::size_t Align(std::size_t
value,
int alignment);
21 static void WaitABit();
26 #endif // vtkWGPUContext_h