VTK  9.7.20260910
vtkWebGPUProcTable.h File Reference
#include "vtkRenderingWebGPUModule.h"
#include "webgpu/webgpu.h"
Include dependency graph for vtkWebGPUProcTable.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 Documentation

◆ vtkWebGPUProcTable

typedef struct vtkWebGPUProcTableImpl* vtkWebGPUProcTable

Definition at line 12 of file vtkWebGPUProcTable.h.

Function Documentation

◆ vtkWebGPUProcTableLoad()

vtkWebGPUProcTable vtkWebGPUProcTableLoad ( const char * libPath)

Load a WebGPU implementation at runtime using dlopen.

This allows users to swap implementations without recompiling VTK.

Parameters
libPathPath to the WebGPU implementation library (e.g., "libwgpu_dawn.so"). If NULL, searches standard library paths.
Returns
Opaque proc table handle on success, NULL on failure.

Must be called before any WebGPU functions are invoked.

◆ vtkWebGPUProcTableRelease()

void vtkWebGPUProcTableRelease ( vtkWebGPUProcTable table)

Release a proc table and close the loaded library.

◆ vtkWebGPUProcTableGet()

vtkWebGPUProcTable vtkWebGPUProcTableGet ( void )

Get the global proc table instance.

Returns NULL if no proc table has been loaded yet.

◆ vtkWebGPUProcTableSet()

void vtkWebGPUProcTableSet ( vtkWebGPUProcTable table)

Set the global proc table instance (for internal use).

◆ vtkWebGPUProcTableGetProc()

WGPUProc vtkWebGPUProcTableGetProc ( vtkWebGPUProcTable table,
WGPUStringView procName )

Get a function pointer from the proc table by name.

This wraps wgpuGetProcAddress() from the loaded implementation.