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§

§protected _cameraBindGroup: GPUBindGroup

Camera bind group

§protected _cameraBindGroupLayout: GPUBindGroupLayout

Camera bind group layout

§protected _cMapTexture: GPUTexture

Color map texture

§protected _colorBuffer: GPUBuffer

Color uniform buffer

§protected _highlightColorBuffer: GPUBuffer

Highlight color uniform buffer

§protected _mviewBuffer: GPUBuffer

ModelView matrix uniform buffer

§protected _opacity: GPUBuffer

Opacity uniform buffer

§protected _projcBuffer: GPUBuffer

Projection matrix uniform buffer

§protected _renderer: Renderer

Renderer reference

§protected _renderInfoBindGroup: GPUBindGroup

Render information bind group

§protected _renderInfoBindGroupLayout: GPUBindGroupLayout

Render information bind group layout

§protected _useColorMap: GPUBuffer

Use color map uniform buffer

§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.