autk-map / PipelineTriangleRaster
Class: PipelineTriangleRaster
Defined in: pipeline-triangle-raster.ts:17
PipelineTriangleRaster is a rendering pipeline for drawing rasterized triangles. It uses WebGPU to render triangles based on the provided mesh data.
Extends
Constructors
Constructor
new PipelineTriangleRaster(
renderer):PipelineTriangleRaster
Defined in: pipeline-triangle-raster.ts:72
Constructor for PipelineTriangleFlat
Parameters
renderer
The renderer instance
Returns
PipelineTriangleRaster
Overrides
Properties
_cameraBindGroup
protected_cameraBindGroup:GPUBindGroup
Defined in: pipeline.ts:39
Camera bind group
Inherited from
_cameraBindGroupLayout
protected_cameraBindGroupLayout:GPUBindGroupLayout
Defined in: pipeline.ts:44
Camera bind group layout
Inherited from
Pipeline._cameraBindGroupLayout
_cMapTexture
protected_cMapTexture:GPUTexture
Defined in: pipeline.ts:61
Color map texture
Inherited from
_colorBuffer
protected_colorBuffer:GPUBuffer
Defined in: pipeline.ts:51
Color uniform buffer
Inherited from
_fragModule
protected_fragModule:GPUShaderModule
Defined in: pipeline-triangle-raster.ts:46
Fragment shader module.
_highlightColorBuffer
protected_highlightColorBuffer:GPUBuffer
Defined in: pipeline.ts:56
Highlight color uniform buffer
Inherited from
Pipeline._highlightColorBuffer
_indicesBuffer
protected_indicesBuffer:GPUBuffer
Defined in: pipeline-triangle-raster.ts:34
Buffer for primitive indices.
_mviewBuffer
protected_mviewBuffer:GPUBuffer
Defined in: pipeline.ts:27
ModelView matrix uniform buffer
Inherited from
_opacity
protected_opacity:GPUBuffer
Defined in: pipeline.ts:79
Opacity uniform buffer
Inherited from
_pipeline
protected_pipeline:GPURenderPipeline
Defined in: pipeline-triangle-raster.ts:52
Render pipeline for drawing triangles.
_positionBuffer
protected_positionBuffer:GPUBuffer
Defined in: pipeline-triangle-raster.ts:22
Position buffer for vertex data.
_projcBuffer
protected_projcBuffer:GPUBuffer
Defined in: pipeline.ts:32
Projection matrix uniform buffer
Inherited from
_rasterBindGroup
protected_rasterBindGroup:GPUBindGroup
Defined in: pipeline-triangle-raster.ts:61
Raster bind group
_rasterBindGroupLayout
protected_rasterBindGroupLayout:GPUBindGroupLayout
Defined in: pipeline-triangle-raster.ts:66
Raster bind group layout
_rasterBuffer
protected_rasterBuffer:GPUTexture
Defined in: pipeline-triangle-raster.ts:57
Raster uniform buffer
_renderer
protected_renderer:Renderer
Defined in: pipeline.ts:21
Renderer reference
Inherited from
_renderInfoBindGroup
protected_renderInfoBindGroup:GPUBindGroup
Defined in: pipeline.ts:87
Render information bind group
Inherited from
_renderInfoBindGroupLayout
protected_renderInfoBindGroupLayout:GPUBindGroupLayout
Defined in: pipeline.ts:92
Render information bind group layout
Inherited from
Pipeline._renderInfoBindGroupLayout
_texCoordBuffer
protected_texCoordBuffer:GPUBuffer
Defined in: pipeline-triangle-raster.ts:28
Buffer for primitive indices.
_useColorMap
protected_useColorMap:GPUBuffer
Defined in: pipeline.ts:69
Use color map uniform buffer
Inherited from
_useHighlight
protected_useHighlight:GPUBuffer
Defined in: pipeline.ts:74
Use highlight uniform buffer
Inherited from
_vertModule
protected_vertModule:GPUShaderModule
Defined in: pipeline-triangle-raster.ts:40
Vertex shader module.
Methods
build()
build(
mesh):void
Defined in: pipeline-triangle-raster.ts:80
Builds the pipeline with the provided mesh data.
Parameters
mesh
The mesh data containing positions, thematic, and indices
Returns
void
Overrides
createCameraUniformBindGroup()
createCameraUniformBindGroup():
void
Defined in: pipeline.ts:110
Creates the camera uniform bind group.
Returns
void
Inherited from
Pipeline.createCameraUniformBindGroup
createColorUniformBindGroup()
createColorUniformBindGroup():
void
Defined in: pipeline.ts:170
Creates the color uniform bind group.
Returns
void
Inherited from
Pipeline.createColorUniformBindGroup
createPipeline()
createPipeline():
void
Defined in: pipeline-triangle-raster.ts:224
Creates the render pipeline for drawing triangles.
Returns
void
createRasterUniformBindGroup()
createRasterUniformBindGroup(
raster):void
Defined in: pipeline-triangle-raster.ts:153
Creates the raster uniform bind group.
Parameters
raster
Returns
void
createShaders()
createShaders():
void
Defined in: pipeline-triangle-raster.ts:99
Creates the vertex and fragment shaders for the pipeline.
Returns
void
createVertexBuffers()
createVertexBuffers(
raster):void
Defined in: pipeline-triangle-raster.ts:117
Creates the vertex buffers for the pipeline.
Parameters
raster
The mesh data containing positions, thematic, and indices
Returns
void
Overrides
renderPass()
renderPass(
camera):void
Defined in: pipeline-triangle-raster.ts:321
Renders the triangle flat pipeline.
Parameters
camera
The camera instance
Returns
void
Overrides
updateCameraUniforms()
updateCameraUniforms(
camera):void
Defined in: pipeline.ts:157
Updates the camera uniform buffers with the current camera state.
Parameters
camera
The camera instance
Returns
void
Inherited from
updateColorUniforms()
updateColorUniforms(
layer):void
Defined in: pipeline.ts:295
Updates the color uniform buffers with the current layer state.
Parameters
layer
The layer instance
Returns
void
Inherited from
updateRasterUniforms()
updateRasterUniforms(
raster):void
Defined in: pipeline-triangle-raster.ts:207
Updates the raster uniform buffer with the provided raster data.
Parameters
raster
The raster layer containing raster data
Returns
void
updateVertexBuffers()
updateVertexBuffers(
mesh):void
Defined in: pipeline-triangle-raster.ts:144
Updates the vertex buffers with the provided mesh data.
Parameters
mesh
The mesh data containing positions, thematic, and indices
Returns
void