Expand description
Constructors§
Source§new PipelineTriangleBorder(renderer: Renderer): PipelineTriangleBorder
new PipelineTriangleBorder(renderer: Renderer): PipelineTriangleBorder
Constructor for PipelineBorderFlat
Properties§
protected _ border Indices Buffer: GPUBufferBuffer for border indices.
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 _ mview Buffer: GPUBufferModelView matrix uniform buffer
protected _ opacity: GPUBufferOpacity uniform buffer
protected _ pipeline: GPURenderPipelineRender pipeline for drawing borders.
protected _ position Buffer: GPUBufferPosition buffer for vertex data.
protected _ projc Buffer: GPUBufferProjection matrix 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 _ skipped Buffer: GPUBufferBuffer for skipped data.
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(borders: Triangles2DLayer): void
build(borders: Triangles2DLayer): void
Builds the pipeline with the provided border data.
Source§createVertexBuffers(borders: Triangles2DLayer): void
createVertexBuffers(borders: Triangles2DLayer): 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§updateVertexBuffers(borders: Triangles2DLayer): void
updateVertexBuffers(borders: Triangles2DLayer): void
Updates the vertex buffers with the provided border data.
PipelineBorderFlat is a rendering pipeline for drawing flat borders of triangles in 2D space. It uses WebGPU to render lines based on the provided border data.