Expand description
Constructors§
Source§new PipelineTriangleRaster(renderer: Renderer): PipelineTriangleRaster
new PipelineTriangleRaster(renderer: Renderer): PipelineTriangleRaster
Constructor for PipelineTriangleFlat
Properties§
protected _ camera Bind Group: GPUBindGroupCamera bind group
protected _ camera Bind Group Layout: GPUBindGroupLayoutCamera bind group layout
protected _ c Map Texture: GPUTextureColor map texture
protected _ color Buffer: GPUBufferColor uniform buffer
protected _ frag Module: GPUShaderModuleFragment shader module.
protected _ highlight Color Buffer: GPUBufferHighlight color uniform buffer
protected _ indices Buffer: GPUBufferBuffer for primitive indices.
protected _ mview Buffer: GPUBufferModelView matrix uniform buffer
protected _ opacity: GPUBufferOpacity uniform buffer
protected _ pipeline: GPURenderPipelineRender pipeline for drawing triangles.
protected _ position Buffer: GPUBufferPosition buffer for vertex data.
protected _ projc Buffer: GPUBufferProjection matrix uniform buffer
protected _ raster Bind Group: GPUBindGroupRaster bind group
protected _ raster Bind Group Layout: GPUBindGroupLayoutRaster bind group layout
protected _ raster Buffer: GPUTextureRaster uniform buffer
protected _ renderer: RendererRenderer reference
protected _ render Info Bind Group: GPUBindGroupRender information bind group
protected _ render Info Bind Group Layout: GPUBindGroupLayoutRender information bind group layout
protected _ tex Coord Buffer: GPUBufferBuffer for primitive indices.
protected _ use Color Map: GPUBufferUse color map uniform buffer
protected _ use Highlight: GPUBufferUse highlight uniform buffer
protected _ vert Module: GPUShaderModuleVertex shader module.
Methods§
Source§build(mesh: RasterLayer): void
build(mesh: RasterLayer): void
Builds the pipeline with the provided mesh data.
Source§createRasterUniformBindGroup(raster: RasterLayer): void
createRasterUniformBindGroup(raster: RasterLayer): void
Creates the raster uniform bind group.
Source§createVertexBuffers(raster: RasterLayer): void
createVertexBuffers(raster: RasterLayer): void
Creates the vertex buffers for the pipeline.
Source§updateCameraUniforms(camera: Camera): void
updateCameraUniforms(camera: Camera): void
Updates the camera uniform buffers with the current camera state.
Source§updateColorUniforms(layer: Layer): void
updateColorUniforms(layer: Layer): void
Updates the color uniform buffers with the current layer state.
Source§updateRasterUniforms(raster: RasterLayer): void
updateRasterUniforms(raster: RasterLayer): void
Updates the raster uniform buffer with the provided raster data.
Source§updateVertexBuffers(mesh: RasterLayer): void
updateVertexBuffers(mesh: RasterLayer): void
Updates the vertex buffers with the provided mesh data.
PipelineTriangleRaster is a rendering pipeline for drawing rasterized triangles. It uses WebGPU to render triangles based on the provided mesh data.