Class Pipeline

Source
Expand description

Abstract class representing a rendering pipeline. It provides methods for creating camera and color uniform bind groups, updating camera and color uniforms, and defining the structure for building and rendering the pipeline.

Constructors§

Source§

new Pipeline(renderer: Renderer): Pipeline

Pipeline constructor

Properties§

Source§

protected _cameraBindGroup: GPUBindGroup

Camera bind group

Source§

protected _cameraBindGroupLayout: GPUBindGroupLayout

Camera bind group layout

Source§

protected _cMapTexture: GPUTexture

Color map texture

Source§

protected _colorBuffer: GPUBuffer

Color uniform buffer

Source§

protected _highlightColorBuffer: GPUBuffer

Highlight color uniform buffer

Source§

protected _mviewBuffer: GPUBuffer

ModelView matrix uniform buffer

Source§

protected _opacity: GPUBuffer

Opacity uniform buffer

Source§

protected _projcBuffer: GPUBuffer

Projection matrix uniform buffer

Source§

protected _renderer: Renderer

Renderer reference

Source§

protected _renderInfoBindGroup: GPUBindGroup

Render information bind group

Source§

protected _renderInfoBindGroupLayout: GPUBindGroupLayout

Render information bind group layout

Source§

protected _useColorMap: GPUBuffer

Use color map uniform buffer

Source§

protected _useHighlight: GPUBuffer

Use highlight uniform buffer

Methods§

Source§

build(data: Layer): void

Builds the pipeline.

Source§

createCameraUniformBindGroup(): void

Creates the camera uniform bind group.

Source§

createColorUniformBindGroup(): void

Creates the color uniform bind group.

Source§

createVertexBuffers(data: Layer): void

Creates the vertex buffers.

Source§

renderPass(camera: Camera): void

Creates the shaders for the pipeline.

Source§

updateCameraUniforms(camera: Camera): void

Updates the camera uniform buffers with the current camera state.

Source§

updateColorUniforms(layer: Layer): void

Updates the color uniform buffers with the current layer state.

Source§

updateVertexBuffers(data: Layer): void

Updates the vertex buffers with the provided data.