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.
| Argument | Type | Required | Description |
|---|---|---|---|
publicAPI | Yes | object on which methods will be bounds (public) | |
model | Yes | object on which data structure will be bounds (protected) | |
initialValues | IWebGPUFullScreenQuadInitialValues | No | (default: {}) |
newInstance
Method used to create a new instance of vtkWebGPUFullScreenQuad.
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | IWebGPUFullScreenQuadInitialValues | No | for pre-setting some of its content |
replaceShaderPosition
Shader replacement, registered under replaceShaderPosition, emitting the clip space position and texture coordinates of the quad.
| Argument | Type | Required | Description |
|---|---|---|---|
hash | String | Yes | the pipeline hash |
pipeline | vtkWebGPUPipeline | Yes | |
vertexInput | vtkWebGPUVertexInput | Yes |
updateBuffers
Bind the shared full screen quad buffer of the device as this mapper's vertex input.