RasterChunk¶
Overview¶
Contains path data within a bounds, for a particular RenderProgram
Used for the raster-clip input, and the output for reducible chunks (that will be fed back in)
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class RasterChunk¶
Constructor¶
new RasterChunk( renderProgramIndex : number, needsFace : boolean, isConstant : boolean, edgesOffset : number, numEdges : number, minX : number, minY : number, maxX : number, maxY : number, minXCount : number, minYCount : number, maxXCount : number, maxYCount : number )¶
Instance Methods¶
withEdgeInfo( startIndex : number, endIndex : number ) : RasterChunk¶
toString() : string¶
writeEncoding( encoder : ByteEncoder )¶
Static Methods¶
readEncoding( arrayBuffer : ArrayBuffer, byteOffset : number ) : RasterChunk¶
fromArrayBuffer( arrayBuffer : ArrayBuffer ) : RasterChunk[]¶
validate( chunks : ParallelStorageArray<RasterChunk>, edges : ParallelStorageArray<RasterEdge>, numChunks : number, numEdges : number )¶
Static Properties¶
ENCODING_BYTE_LENGTH¶
(readonly)
INDETERMINATE : RasterChunk¶
(readonly)
Source Code¶
See the source for RasterChunk.ts in the alpenglow repository.