RasterChunk¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/alpenglow/blob/main/js/parallel/raster-clip/RasterChunk.ts for the most up-to-date information.
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.