WebGLLayerProgram
Defined in: packages/layer-webgl/src/webgl-layer-program/index.ts:25
Base class for fullscreen-quad WebGL layer programs.
Subclasses implement:
getCustomLayerDefinition()— fragment shader + uniform declarationssetCameraUniforms()— per-frame camera/view uniformscacheDataUniforms()— data-dependent uniforms (called when the graph changes)
Extends
Section titled “Extends”Program<string,N,E,G>
Type Parameters
Section titled “Type Parameters”N extends Attributes = Attributes
E extends Attributes = Attributes
G extends Attributes = Attributes
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WebGLLayerProgram<
N,E,G>(gl,pickingBuffer,renderer):WebGLLayerProgram<N,E,G>
Defined in: packages/layer-webgl/src/webgl-layer-program/index.ts:35
Parameters
Section titled “Parameters”WebGL2RenderingContext
pickingBuffer
Section titled “pickingBuffer”WebGLFramebuffer | null
renderer
Section titled “renderer”Sigma<N, E, G>
Returns
Section titled “Returns”WebGLLayerProgram<N, E, G>
Overrides
Section titled “Overrides”Properties
Section titled “Properties”ATTRIBUTES
Section titled “ATTRIBUTES”ATTRIBUTES:
ProgramAttributeSpecification[]
Defined in: packages/sigma/src/rendering/program.ts:98
Inherited from
Section titled “Inherited from”ATTRIBUTES_ITEMS_COUNT
Section titled “ATTRIBUTES_ITEMS_COUNT”ATTRIBUTES_ITEMS_COUNT:
number
Defined in: packages/sigma/src/rendering/program.ts:103
Inherited from
Section titled “Inherited from”EdgeLabelProgram.ATTRIBUTES_ITEMS_COUNT
capacity
Section titled “capacity”capacity:
number=0
Defined in: packages/sigma/src/rendering/program.ts:117
Inherited from
Section titled “Inherited from”CONSTANT_ATTRIBUTES
Section titled “CONSTANT_ATTRIBUTES”CONSTANT_ATTRIBUTES:
ProgramAttributeSpecification[]
Defined in: packages/sigma/src/rendering/program.ts:100
Inherited from
Section titled “Inherited from”EdgeLabelProgram.CONSTANT_ATTRIBUTES
CONSTANT_DATA
Section titled “CONSTANT_DATA”CONSTANT_DATA:
number[][]
Defined in: packages/sigma/src/rendering/program.ts:101
Inherited from
Section titled “Inherited from”EdgeLabelProgram.CONSTANT_DATA
constantArray
Section titled “constantArray”constantArray:
Float32Array
Defined in: packages/sigma/src/rendering/program.ts:116
Inherited from
Section titled “Inherited from”EdgeLabelProgram.constantArray
debugStats
Section titled “debugStats”debugStats:
object
Defined in: packages/sigma/src/rendering/program.ts:132
bufferUploadBytes
Section titled “bufferUploadBytes”bufferUploadBytes:
number=0
drawCalls
Section titled “drawCalls”drawCalls:
number=0
verticesDrawn
Section titled “verticesDrawn”verticesDrawn:
number=0
Inherited from
Section titled “Inherited from”floats
Section titled “floats”floats:
Float32Array
Defined in: packages/sigma/src/rendering/program.ts:113
Inherited from
Section titled “Inherited from”FRAGMENT_SHADER_SOURCE
Section titled “FRAGMENT_SHADER_SOURCE”FRAGMENT_SHADER_SOURCE:
string
Defined in: packages/sigma/src/rendering/program.ts:96
Inherited from
Section titled “Inherited from”EdgeLabelProgram.FRAGMENT_SHADER_SOURCE
ints:
Uint32Array
Defined in: packages/sigma/src/rendering/program.ts:114
Inherited from
Section titled “Inherited from”isInstanced
Section titled “isInstanced”isInstanced:
boolean
Defined in: packages/sigma/src/rendering/program.ts:140
Inherited from
Section titled “Inherited from”METHOD
Section titled “METHOD”METHOD:
number
Defined in: packages/sigma/src/rendering/program.ts:99
Inherited from
Section titled “Inherited from”normalProgram
Section titled “normalProgram”normalProgram:
ProgramInfo
Defined in: packages/sigma/src/rendering/program.ts:137
Inherited from
Section titled “Inherited from”EdgeLabelProgram.normalProgram
pickProgram
Section titled “pickProgram”pickProgram:
ProgramInfo<string> |null=null
Defined in: packages/sigma/src/rendering/program.ts:138
Inherited from
Section titled “Inherited from”renderer
Section titled “renderer”renderer:
Sigma<N,E,G>
Defined in: packages/sigma/src/rendering/program.ts:106
Inherited from
Section titled “Inherited from”STRIDE
Section titled “STRIDE”STRIDE:
number
Defined in: packages/sigma/src/rendering/program.ts:104
Inherited from
Section titled “Inherited from”UNIFORMS
Section titled “UNIFORMS”UNIFORMS: readonly
string[]
Defined in: packages/sigma/src/rendering/program.ts:97
Inherited from
Section titled “Inherited from”VERTEX_SHADER_SOURCE
Section titled “VERTEX_SHADER_SOURCE”VERTEX_SHADER_SOURCE:
string
Defined in: packages/sigma/src/rendering/program.ts:95
Inherited from
Section titled “Inherited from”EdgeLabelProgram.VERTEX_SHADER_SOURCE
VERTICES
Section titled “VERTICES”VERTICES:
number
Defined in: packages/sigma/src/rendering/program.ts:94
Inherited from
Section titled “Inherited from”verticesCount
Section titled “verticesCount”verticesCount:
number=0
Defined in: packages/sigma/src/rendering/program.ts:118
Inherited from
Section titled “Inherited from”EdgeLabelProgram.verticesCount
Methods
Section titled “Methods”cacheData()
Section titled “cacheData()”cacheData():
void
Defined in: packages/layer-webgl/src/webgl-layer-program/index.ts:68
Returns
Section titled “Returns”void
cacheDataUniforms()
Section titled “cacheDataUniforms()”
abstractcacheDataUniforms(programInfo):void
Defined in: packages/layer-webgl/src/webgl-layer-program/index.ts:31
Parameters
Section titled “Parameters”programInfo
Section titled “programInfo”Returns
Section titled “Returns”void
drawWebGL()
Section titled “drawWebGL()”drawWebGL(
method,__namedParameters):void
Defined in: packages/layer-webgl/src/webgl-layer-program/index.ts:79
Parameters
Section titled “Parameters”method
Section titled “method”number
__namedParameters
Section titled “__namedParameters”Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”getCustomLayerDefinition()
Section titled “getCustomLayerDefinition()”
abstractgetCustomLayerDefinition():WebGLLayerDefinition
Defined in: packages/layer-webgl/src/webgl-layer-program/index.ts:33
Returns
Section titled “Returns”getDefinition()
Section titled “getDefinition()”getDefinition():
ProgramDefinition<string>
Defined in: packages/layer-webgl/src/webgl-layer-program/index.ts:47
Returns
Section titled “Returns”ProgramDefinition<string>
Overrides
Section titled “Overrides”hasNothingToRender()
Section titled “hasNothingToRender()”hasNothingToRender():
boolean
Defined in: packages/layer-webgl/src/webgl-layer-program/index.ts:59
Returns
Section titled “Returns”boolean
Overrides
Section titled “Overrides”invalidateBuffers()
Section titled “invalidateBuffers()”invalidateBuffers():
void
Defined in: packages/sigma/src/rendering/program.ts:384
Mark GPU buffers as needing re-upload. Call this after modifying the array data outside of reallocate.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”kill()
Section titled “kill()”kill():
void
Defined in: packages/sigma/src/rendering/program.ts:201
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”reallocate()
Section titled “reallocate()”reallocate(
capacity):void
Defined in: packages/sigma/src/rendering/program.ts:362
Parameters
Section titled “Parameters”capacity
Section titled “capacity”number
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”render()
Section titled “render()”render(
params):void
Defined in: packages/layer-webgl/src/webgl-layer-program/index.ts:74
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”resetDebugStats()
Section titled “resetDebugStats()”resetDebugStats():
void
Defined in: packages/sigma/src/rendering/program.ts:206
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”setCameraUniforms()
Section titled “setCameraUniforms()”
abstractsetCameraUniforms(params,programInfo):void
Defined in: packages/layer-webgl/src/webgl-layer-program/index.ts:32
Parameters
Section titled “Parameters”params
Section titled “params”programInfo
Section titled “programInfo”Returns
Section titled “Returns”void
setUniforms()
Section titled “setUniforms()”setUniforms(
params,programInfo):void
Defined in: packages/layer-webgl/src/webgl-layer-program/index.ts:62
Parameters
Section titled “Parameters”params
Section titled “params”programInfo
Section titled “programInfo”Returns
Section titled “Returns”void