Skip to content

FullScreenQuad ​

Introduction ​

A mapper drawing two triangles covering the whole render target, used by the passes that run a fragment shader over the framebuffer.

Methods ​

extend ​

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

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

newInstance ​

Method used to create a new instance of vtkWebGPUFullScreenQuad.

ArgumentTypeRequiredDescription
initialValuesIWebGPUFullScreenQuadInitialValuesNofor pre-setting some of its content

replaceShaderPosition ​

Shader replacement, registered under replaceShaderPosition, emitting the clip space position and texture coordinates of the quad.

ArgumentTypeRequiredDescription
hashStringYesthe pipeline hash
pipelinevtkWebGPUPipelineYes
vertexInputvtkWebGPUVertexInputYes

updateBuffers ​

Bind the shared full screen quad buffer of the device as this mapper's vertex input.