ShaderModule
Introduction
A compiled WGSL shader module.
Methods
getDevice
Get the device this module was created on.
getHandle
Get the underlying GPU shader module.
getLastCameraMTime
Get the modified time of the camera this module was last built for.
initialize
Create the GPU shader module from the WGSL code of the description.
| Argument | Type | Required | Description |
|---|---|---|---|
device | vtkWebGPUDevice | Yes | |
shaderDesc | vtkWebGPUShaderDescription | Yes |
setDevice
Set the device this module was created on.
| Argument | Type | Required | Description |
|---|---|---|---|
device | vtkWebGPUDevice | Yes |
setHandle
Set the underlying GPU shader module.
| Argument | Type | Required | Description |
|---|---|---|---|
handle | GPUShaderModule | Yes |