VTK  9.7.20260910
vtkWebGPUProcTable.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
4#ifndef vtkWebGPUProcTable_h
5#define vtkWebGPUProcTable_h
6
7#include "vtkRenderingWebGPUModule.h"
8#include "webgpu/webgpu.h"
9
10// Opaque handle to the proc table
11struct vtkWebGPUProcTableImpl;
12typedef struct vtkWebGPUProcTableImpl* vtkWebGPUProcTable;
13
14VTK_ABI_NAMESPACE_BEGIN
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif
20
32
37
43
48
53 WGPUProc vtkWebGPUProcTableGetProc(vtkWebGPUProcTable table, WGPUStringView procName);
54
55#ifdef __cplusplus
56}
57#endif
58
59VTK_ABI_NAMESPACE_END
60
61#endif // vtkWebGPUProcTable_h
vtkWebGPUProcTable vtkWebGPUProcTableGet(void)
Get the global proc table instance.
WGPUProc vtkWebGPUProcTableGetProc(vtkWebGPUProcTable table, WGPUStringView procName)
Get a function pointer from the proc table by name.
void vtkWebGPUProcTableSet(vtkWebGPUProcTable table)
Set the global proc table instance (for internal use).
vtkWebGPUProcTable vtkWebGPUProcTableLoad(const char *libPath)
Load a WebGPU implementation at runtime using dlopen.
void vtkWebGPUProcTableRelease(vtkWebGPUProcTable table)
Release a proc table and close the loaded library.
struct vtkWebGPUProcTableImpl * vtkWebGPUProcTable