Skip to content

OpaquePass ​

Introduction ​

vtkWebGPUOpaquePass renders the opaque geometry of a renderer into an offscreen color and depth texture, which the translucent and volume passes then composite onto.

Methods ​

createRenderEncoder ​

Create the render encoder the opaque actors are drawn with.

extend ​

Method used to decorate a given object (publicAPI+model) with vtkWebGPUOpaquePass characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesIWebGPUOpaquePassInitialValuesNo(default: {})

getColorTexture ​

Get the rgba16float color texture this pass renders into, or null before the first traversal.

getColorTextureView ​

Get the view of the color texture this pass renders into.

getDepthTexture ​

Get the depth32float texture this pass renders into, or null before the first traversal.

getDepthTextureView ​

Get the view of the depth texture this pass renders into.

getResolveColorTexture ​

Get the color resolve target when multisampling is enabled.

newInstance ​

Method used to create a new instance of vtkWebGPUOpaquePass.

ArgumentTypeRequiredDescription
initialValuesIWebGPUOpaquePassInitialValuesNofor pre-setting some of its content

releaseGraphicsResources ​

Drop the render encoder and both textures so that they are recreated on the next traversal.

traverse ​

Render the opaque actors of a renderer into an offscreen color and depth texture, allocating or resizing them to the canvas first.

ArgumentTypeRequiredDescription
renNodevtkWebGPURendererYesThe renderer view node to traverse.
viewNodevtkWebGPURenderWindowYesThe render window view node.