Skip to content

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.

ArgumentTypeRequiredDescription
devicevtkWebGPUDeviceYes
shaderDescvtkWebGPUShaderDescriptionYes

setDevice ​

Set the device this module was created on.

ArgumentTypeRequiredDescription
devicevtkWebGPUDeviceYes

setHandle ​

Set the underlying GPU shader module.

ArgumentTypeRequiredDescription
handleGPUShaderModuleYes