VTK  9.3.0
vtkWGPUContext.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
3#ifndef vtkWGPUContext_h
4#define vtkWGPUContext_h
5
6#include "vtkRenderingWebGPUModule.h"
7#include "vtk_wgpu.h"
8
9VTK_ABI_NAMESPACE_BEGIN
10
11class VTKRENDERINGWEBGPU_EXPORT vtkWGPUContext
12{
13public:
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();
22};
23
24VTK_ABI_NAMESPACE_END
25
26#endif // vtkWGPUContext_h
27// VTK-HeaderTest-Exclude: vtkWGPUContext.h
static void WaitABit()
static wgpu::Device RequestDevice(const wgpu::Adapter &adapter, const wgpu::DeviceDescriptor &deviceDescriptor)
static std::size_t Align(std::size_t value, int alignment)
static void GetAdapterInfo(char(*adapter_info)[256])
static wgpu::Adapter RequestAdapter(const wgpu::RequestAdapterOptions &options)
static wgpu::Surface CreateSurface(const wgpu::ChainedStruct &surfaceDescriptor)
static void LogAvailableAdapters()