|
VTK
9.7.20260910
|
#include "vtkRenderingWebGPUModule.h"#include "webgpu/webgpu.h"Go to the source code of this file.
Typedefs | |
| typedef struct vtkWebGPUProcTableImpl * | vtkWebGPUProcTable |
Functions | |
| 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. | |
| vtkWebGPUProcTable | vtkWebGPUProcTableGet (void) |
| Get the global proc table instance. | |
| void | vtkWebGPUProcTableSet (vtkWebGPUProcTable table) |
| Set the global proc table instance (for internal use). | |
| WGPUProc | vtkWebGPUProcTableGetProc (vtkWebGPUProcTable table, WGPUStringView procName) |
| Get a function pointer from the proc table by name. | |
| typedef struct vtkWebGPUProcTableImpl* vtkWebGPUProcTable |
Definition at line 12 of file vtkWebGPUProcTable.h.
| vtkWebGPUProcTable vtkWebGPUProcTableLoad | ( | const char * | libPath | ) |
Load a WebGPU implementation at runtime using dlopen.
This allows users to swap implementations without recompiling VTK.
| libPath | Path to the WebGPU implementation library (e.g., "libwgpu_dawn.so"). If NULL, searches standard library paths. |
Must be called before any WebGPU functions are invoked.
| void vtkWebGPUProcTableRelease | ( | vtkWebGPUProcTable | table | ) |
Release a proc table and close the loaded library.
| vtkWebGPUProcTable vtkWebGPUProcTableGet | ( | void | ) |
Get the global proc table instance.
Returns NULL if no proc table has been loaded yet.
| void vtkWebGPUProcTableSet | ( | vtkWebGPUProcTable | table | ) |
Set the global proc table instance (for internal use).
| WGPUProc vtkWebGPUProcTableGetProc | ( | vtkWebGPUProcTable | table, |
| WGPUStringView | procName ) |
Get a function pointer from the proc table by name.
This wraps wgpuGetProcAddress() from the loaded implementation.