-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sort imports and run grunt modulify, see phetsims/chipper#1462
- Loading branch information
Showing
105 changed files
with
146 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,8 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, ParallelExecutor, ParallelKernel, ParallelWorkgroup, ParallelWorkgroupArray } from '../imports.js'; | ||
import Vector3 from '../../../dot/js/Vector3.js'; | ||
import { alpenglow, ParallelExecutor, ParallelKernel, ParallelWorkgroup, ParallelWorkgroupArray } from '../imports.js'; | ||
|
||
export type BaseWorkgroupValues = Record<string, ParallelWorkgroupArray<unknown> | number>; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,9 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, BaseWorkgroupValues, ParallelContext, ParallelKernel, ParallelWorkgroup, ParallelWorkgroupArray } from '../imports.js'; | ||
import Random from '../../../dot/js/Random.js'; | ||
import Vector3 from '../../../dot/js/Vector3.js'; | ||
import { alpenglow, BaseWorkgroupValues, ParallelContext, ParallelKernel, ParallelWorkgroup, ParallelWorkgroupArray } from '../imports.js'; | ||
|
||
// eslint-disable-next-line phet/bad-sim-text | ||
const random = new Random(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,8 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, BaseWorkgroupValues, ParallelContext } from '../imports.js'; | ||
import Vector3 from '../../../dot/js/Vector3.js'; | ||
import { alpenglow, BaseWorkgroupValues, ParallelContext } from '../imports.js'; | ||
|
||
export default class ParallelStorageArray<T> { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { ParallelContext, ParallelExecutor, ParallelKernel, ParallelStorageArray, ParallelWorkgroupArray } from '../imports.js'; | ||
import Random from '../../../dot/js/Random.js'; | ||
import { ParallelContext, ParallelExecutor, ParallelKernel, ParallelStorageArray, ParallelWorkgroupArray } from '../imports.js'; | ||
|
||
// eslint-disable-next-line phet/bad-sim-text | ||
const random = new Random(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow } from '../imports.js'; | ||
import Vector3 from '../../../dot/js/Vector3.js'; | ||
import { alpenglow } from '../imports.js'; | ||
|
||
export default class ParallelUtils { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, BaseWorkgroupValues, ParallelKernel } from '../imports.js'; | ||
import Vector3 from '../../../dot/js/Vector3.js'; | ||
import { alpenglow, BaseWorkgroupValues, ParallelKernel } from '../imports.js'; | ||
|
||
export default class ParallelWorkgroup<WorkgroupValues extends BaseWorkgroupValues> { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,8 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, BaseWorkgroupValues, ParallelContext } from '../imports.js'; | ||
import Vector3 from '../../../dot/js/Vector3.js'; | ||
import { alpenglow, BaseWorkgroupValues, ParallelContext } from '../imports.js'; | ||
|
||
export default class ParallelWorkgroupArray<T> { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, ByteEncoder, CombinedRaster, ParallelRasterChunkIndexPatch, ParallelRasterChunkReduce, ParallelRasterEdgeIndexPatch, ParallelRasterEdgeScan, ParallelRasterInitialChunk, ParallelRasterInitialClip, ParallelRasterInitialEdgeReduce, ParallelRasterInitialSplitReduce, ParallelRasterSplitReduce, ParallelRasterSplitScan, ParallelStorageArray, RasterChunk, RasterChunkReducePair, RasterChunkReduceQuad, RasterClippedChunk, RasterCompleteChunk, RasterCompleteEdge, RasterEdge, RasterEdgeClip, RasterSplitReduceData } from '../../imports.js'; | ||
import Vector4 from '../../../../dot/js/Vector4.js'; | ||
import Vector2 from '../../../../dot/js/Vector2.js'; | ||
import Vector4 from '../../../../dot/js/Vector4.js'; | ||
import { alpenglow, ByteEncoder, CombinedRaster, ParallelRasterChunkIndexPatch, ParallelRasterChunkReduce, ParallelRasterEdgeIndexPatch, ParallelRasterEdgeScan, ParallelRasterInitialChunk, ParallelRasterInitialClip, ParallelRasterInitialEdgeReduce, ParallelRasterInitialSplitReduce, ParallelRasterSplitReduce, ParallelRasterSplitScan, ParallelStorageArray, RasterChunk, RasterChunkReducePair, RasterChunkReduceQuad, RasterClippedChunk, RasterCompleteChunk, RasterCompleteEdge, RasterEdge, RasterEdgeClip, RasterSplitReduceData } from '../../imports.js'; | ||
import testPolygonalFace from '../../webgpu/tests/testPolygonalFace.js'; | ||
|
||
// TODO: move to 256 after testing (64 helps us test more cases here) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,8 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, ParallelExecutor, ParallelKernel, ParallelStorageArray, ParallelUtils, ParallelWorkgroupArray, RasterClippedChunk, RasterCompleteEdge, RasterEdge, RasterEdgeClip, RasterSplitReduceData } from '../../imports.js'; | ||
import Vector2 from '../../../../dot/js/Vector2.js'; | ||
import { alpenglow, ParallelExecutor, ParallelKernel, ParallelStorageArray, ParallelUtils, ParallelWorkgroupArray, RasterClippedChunk, RasterCompleteEdge, RasterEdge, RasterEdgeClip, RasterSplitReduceData } from '../../imports.js'; | ||
|
||
const nanVector = new Vector2( NaN, NaN ); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,8 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, ParallelExecutor, ParallelKernel, ParallelStorageArray, ParallelWorkgroupArray, RasterChunk, RasterChunkReduceData, RasterChunkReducePair, RasterChunkReduceQuad, RasterClippedChunk, RasterEdge, RasterEdgeClip } from '../../imports.js'; | ||
import Vector2 from '../../../../dot/js/Vector2.js'; | ||
import { alpenglow, ParallelExecutor, ParallelKernel, ParallelStorageArray, ParallelWorkgroupArray, RasterChunk, RasterChunkReduceData, RasterChunkReducePair, RasterChunkReduceQuad, RasterClippedChunk, RasterEdge, RasterEdgeClip } from '../../imports.js'; | ||
|
||
export default class ParallelRasterInitialClip { | ||
public static async dispatch( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, ByteEncoder } from '../../imports.js'; | ||
import Vector2 from '../../../../dot/js/Vector2.js'; | ||
import { alpenglow, ByteEncoder } from '../../imports.js'; | ||
|
||
export default class RasterCompleteEdge { | ||
public constructor( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, ByteEncoder } from '../../imports.js'; | ||
import Vector2 from '../../../../dot/js/Vector2.js'; | ||
import { alpenglow, ByteEncoder } from '../../imports.js'; | ||
|
||
export default class RasterEdge { | ||
public constructor( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,8 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, ByteEncoder } from '../../imports.js'; | ||
import Vector2 from '../../../../dot/js/Vector2.js'; | ||
import { alpenglow, ByteEncoder } from '../../imports.js'; | ||
|
||
export default class RasterEdgeClip { | ||
public constructor( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow } from '../imports.js'; | ||
import Vector3 from '../../../dot/js/Vector3.js'; | ||
import { alpenglow } from '../imports.js'; | ||
|
||
export default class Mesh { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow } from '../imports.js'; | ||
import Bounds2 from '../../../dot/js/Bounds2.js'; | ||
import { alpenglow } from '../imports.js'; | ||
|
||
enum PolygonFilterType { | ||
Box = 0, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, RenderColor, RenderEvaluationContext, RenderInstruction, RenderInstructionMultiplyScalar, RenderPathBoolean, RenderProgram, SerializedRenderProgram } from '../imports.js'; | ||
import Vector4 from '../../../dot/js/Vector4.js'; | ||
import { alpenglow, RenderColor, RenderEvaluationContext, RenderInstruction, RenderInstructionMultiplyScalar, RenderPathBoolean, RenderProgram, SerializedRenderProgram } from '../imports.js'; | ||
|
||
export default class RenderAlpha extends RenderProgram { | ||
public constructor( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,10 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, ByteEncoder, RenderColor, RenderEvaluationContext, RenderExecutionStack, RenderExecutor, RenderInstruction, RenderInstructionLocation, RenderProgram, SerializedRenderProgram } from '../imports.js'; | ||
import Vector2 from '../../../dot/js/Vector2.js'; | ||
import Matrix3 from '../../../dot/js/Matrix3.js'; | ||
import Vector2 from '../../../dot/js/Vector2.js'; | ||
import Vector4 from '../../../dot/js/Vector4.js'; | ||
import { alpenglow, ByteEncoder, RenderColor, RenderEvaluationContext, RenderExecutionStack, RenderExecutor, RenderInstruction, RenderInstructionLocation, RenderProgram, SerializedRenderProgram } from '../imports.js'; | ||
|
||
|
||
// REVIEW: What does the accuracy do? | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,11 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, ByteEncoder, RenderColor, RenderEvaluationContext, RenderExecutionStack, RenderExecutor, RenderInstruction, RenderInstructionLocation, RenderProgram, SerializedRenderProgram } from '../imports.js'; | ||
import Vector2 from '../../../dot/js/Vector2.js'; | ||
import Matrix3 from '../../../dot/js/Matrix3.js'; | ||
import Vector4 from '../../../dot/js/Vector4.js'; | ||
import Vector2 from '../../../dot/js/Vector2.js'; | ||
import Vector3 from '../../../dot/js/Vector3.js'; | ||
import Vector4 from '../../../dot/js/Vector4.js'; | ||
import { alpenglow, ByteEncoder, RenderColor, RenderEvaluationContext, RenderExecutionStack, RenderExecutor, RenderInstruction, RenderInstructionLocation, RenderProgram, SerializedRenderProgram } from '../imports.js'; | ||
|
||
export enum RenderBarycentricPerspectiveBlendAccuracy { | ||
// TODO: Accurate should really be the version that runs the perspective correction integral!!!! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, ByteEncoder, RenderBlendType, RenderColor, RenderComposeType, RenderEvaluationContext, RenderExecutionStack, RenderExecutor, RenderInstruction, RenderInstructionLocation, RenderProgram, RenderStack, SerializedRenderProgram } from '../imports.js'; | ||
import Vector4 from '../../../dot/js/Vector4.js'; | ||
import Vector3 from '../../../dot/js/Vector3.js'; | ||
import Vector4 from '../../../dot/js/Vector4.js'; | ||
import { alpenglow, ByteEncoder, RenderBlendType, RenderColor, RenderComposeType, RenderEvaluationContext, RenderExecutionStack, RenderExecutor, RenderInstruction, RenderInstructionLocation, RenderProgram, RenderStack, SerializedRenderProgram } from '../imports.js'; | ||
|
||
export default class RenderBlendCompose extends RenderProgram { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, RenderColor, RenderLinearDisplayP3ToLinearSRGB, RenderLinearSRGBToLinearDisplayP3, RenderLinearSRGBToOklab, RenderLinearSRGBToSRGB, RenderOklabToLinearSRGB, RenderProgram, RenderSRGBToLinearSRGB } from '../imports.js'; | ||
import Vector4 from '../../../dot/js/Vector4.js'; | ||
import { alpenglow, RenderColor, RenderLinearDisplayP3ToLinearSRGB, RenderLinearSRGBToLinearDisplayP3, RenderLinearSRGBToOklab, RenderLinearSRGBToSRGB, RenderOklabToLinearSRGB, RenderProgram, RenderSRGBToLinearSRGB } from '../imports.js'; | ||
|
||
export default class RenderColorSpace { | ||
protected constructor( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, RenderColor, RenderColorSpace, RenderEvaluationContext, RenderLinearDisplayP3ToLinearSRGB, RenderLinearSRGBToLinearDisplayP3, RenderLinearSRGBToOklab, RenderLinearSRGBToSRGB, RenderOklabToLinearSRGB, RenderPathBoolean, RenderPremultiply, RenderProgram, RenderSRGBToLinearSRGB, RenderUnpremultiply, SerializedRenderProgram } from '../imports.js'; | ||
import Vector4 from '../../../dot/js/Vector4.js'; | ||
import Constructor from '../../../phet-core/js/types/Constructor.js'; | ||
import { alpenglow, RenderColor, RenderColorSpace, RenderEvaluationContext, RenderLinearDisplayP3ToLinearSRGB, RenderLinearSRGBToLinearDisplayP3, RenderLinearSRGBToOklab, RenderLinearSRGBToSRGB, RenderOklabToLinearSRGB, RenderPathBoolean, RenderPremultiply, RenderProgram, RenderSRGBToLinearSRGB, RenderUnpremultiply, SerializedRenderProgram } from '../imports.js'; | ||
|
||
export default abstract class RenderColorSpaceConversion extends RenderProgram { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,12 +6,12 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, ClippableFace, RenderableFace, RenderColor, RenderEvaluationContext, RenderPlanar, RenderProgram, RenderStack, SerializedRenderProgram } from '../imports.js'; | ||
import Range from '../../../dot/js/Range.js'; | ||
import Matrix3 from '../../../dot/js/Matrix3.js'; | ||
import Matrix4 from '../../../dot/js/Matrix4.js'; | ||
import Vector4 from '../../../dot/js/Vector4.js'; | ||
import Range from '../../../dot/js/Range.js'; | ||
import Vector3 from '../../../dot/js/Vector3.js'; | ||
import Matrix3 from '../../../dot/js/Matrix3.js'; | ||
import Vector4 from '../../../dot/js/Vector4.js'; | ||
import { alpenglow, ClippableFace, RenderableFace, RenderColor, RenderEvaluationContext, RenderPlanar, RenderProgram, RenderStack, SerializedRenderProgram } from '../imports.js'; | ||
|
||
const toProgram = ( item: RenderPlanar ): RenderProgram => item.program; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, ClippableFace, PolygonalFace } from '../imports.js'; | ||
import Vector2 from '../../../dot/js/Vector2.js'; | ||
import Bounds2 from '../../../dot/js/Bounds2.js'; | ||
import Vector2 from '../../../dot/js/Vector2.js'; | ||
import { alpenglow, ClippableFace, PolygonalFace } from '../imports.js'; | ||
|
||
export default class RenderEvaluationContext { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow } from '../imports.js'; | ||
import Vector4 from '../../../dot/js/Vector4.js'; | ||
import { alpenglow } from '../imports.js'; | ||
|
||
// TODO: We'll plan to use Float32Array to test WebGPU compatibility and epsilons | ||
const ExecutionArrayType = Float64Array; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, RenderEvaluationContext, RenderEvaluator, RenderExecutionStack, RenderInstruction, RenderInstructionLocation, RenderProgram } from '../imports.js'; | ||
import Vector4 from '../../../dot/js/Vector4.js'; | ||
import { alpenglow, RenderEvaluationContext, RenderEvaluator, RenderExecutionStack, RenderInstruction, RenderInstructionLocation, RenderProgram } from '../imports.js'; | ||
|
||
// Should be kept empty | ||
const scratchInstructions: RenderInstruction[] = []; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,9 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, ByteEncoder, RenderColor, RenderEvaluationContext, RenderExecutionStack, RenderExecutor, RenderInstruction, RenderInstructionLocation, RenderPathBoolean, RenderProgram, SerializedRenderProgram } from '../imports.js'; | ||
import Matrix4 from '../../../dot/js/Matrix4.js'; | ||
import Vector4 from '../../../dot/js/Vector4.js'; | ||
import { alpenglow, ByteEncoder, RenderColor, RenderEvaluationContext, RenderExecutionStack, RenderExecutor, RenderInstruction, RenderInstructionLocation, RenderPathBoolean, RenderProgram, SerializedRenderProgram } from '../imports.js'; | ||
|
||
export default class RenderFilter extends RenderProgram { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,15 +6,15 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, CombinedRaster, Rasterize, RenderAlpha, RenderBlendCompose, RenderBlendType, RenderColor, RenderComposeType, RenderExtend, RenderFilter, RenderGradientStop, RenderImage, RenderImageable, RenderLinearGradient, RenderLinearGradientAccuracy, RenderPath, RenderPathBoolean, RenderPremultiply, RenderProgram, RenderRadialGradient, RenderRadialGradientAccuracy, RenderResampleType, RenderStack, RenderUnpremultiply } from '../imports.js'; | ||
import { isTReadOnlyProperty } from '../../../axon/js/TReadOnlyProperty.js'; | ||
import Bounds2 from '../../../dot/js/Bounds2.js'; | ||
import Matrix3 from '../../../dot/js/Matrix3.js'; | ||
import Vector4 from '../../../dot/js/Vector4.js'; | ||
import { Shape } from '../../../kite/js/imports.js'; | ||
import ConstructorOf from '../../../phet-core/js/types/ConstructorOf.js'; | ||
import IntentionalAny from '../../../phet-core/js/types/IntentionalAny.js'; | ||
import { isTReadOnlyProperty } from '../../../axon/js/TReadOnlyProperty.js'; | ||
import Bounds2 from '../../../dot/js/Bounds2.js'; | ||
import { Color, ColorMatrixFilter, Display, Image, LinearGradient, Node, Path, Pattern, RadialGradient, Sprites, TColor, Text, TPaint } from '../../../scenery/js/imports.js'; | ||
import ConstructorOf from '../../../phet-core/js/types/ConstructorOf.js'; | ||
import { alpenglow, CombinedRaster, Rasterize, RenderAlpha, RenderBlendCompose, RenderBlendType, RenderColor, RenderComposeType, RenderExtend, RenderFilter, RenderGradientStop, RenderImage, RenderImageable, RenderLinearGradient, RenderLinearGradientAccuracy, RenderPath, RenderPathBoolean, RenderPremultiply, RenderProgram, RenderRadialGradient, RenderRadialGradientAccuracy, RenderResampleType, RenderStack, RenderUnpremultiply } from '../imports.js'; | ||
|
||
// TODO: better for this? | ||
const piecewiseOptions = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, RenderColor, RenderEvaluationContext, RenderProgram, SerializedRenderProgram } from '../imports.js'; | ||
import Vector4 from '../../../dot/js/Vector4.js'; | ||
import { alpenglow, RenderColor, RenderEvaluationContext, RenderProgram, SerializedRenderProgram } from '../imports.js'; | ||
|
||
export default class RenderGradientStop { | ||
public constructor( public readonly ratio: number, public readonly program: RenderProgram ) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,11 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, ByteEncoder, ClippableFace, PolygonMitchellNetravali, RenderEvaluationContext, RenderExecutionStack, RenderExecutor, RenderExtend, RenderImageable, RenderInstruction, RenderInstructionLocation, RenderProgram, RenderResampleType, SerializedRenderImageable } from '../imports.js'; | ||
import Vector2 from '../../../dot/js/Vector2.js'; | ||
import Matrix3 from '../../../dot/js/Matrix3.js'; | ||
import Vector4 from '../../../dot/js/Vector4.js'; | ||
import Utils from '../../../dot/js/Utils.js'; | ||
import Vector2 from '../../../dot/js/Vector2.js'; | ||
import Vector4 from '../../../dot/js/Vector4.js'; | ||
import { alpenglow, ByteEncoder, ClippableFace, PolygonMitchellNetravali, RenderEvaluationContext, RenderExecutionStack, RenderExecutor, RenderExtend, RenderImageable, RenderInstruction, RenderInstructionLocation, RenderProgram, RenderResampleType, SerializedRenderImageable } from '../imports.js'; | ||
|
||
const emptyChildren: RenderProgram[] = []; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { alpenglow, ByteEncoder, RenderEvaluationContext, RenderExecutionStack, RenderExecutor, RenderInstructionBarycentricBlend, RenderInstructionBarycentricPerspectiveBlend, RenderInstructionBlendCompose, RenderInstructionComputeBlendRatio, RenderInstructionComputeGradientRatio, RenderInstructionFilter, RenderInstructionLinearBlend, RenderInstructionLinearDisplayP3ToLinearSRGB, RenderInstructionLinearSRGBToLinearDisplayP3, RenderInstructionLinearSRGBToOklab, RenderInstructionLinearSRGBToSRGB, RenderInstructionNormalDebug, RenderInstructionNormalize, RenderInstructionOklabToLinearSRGB, RenderInstructionOpaqueJump, RenderInstructionPhong, RenderInstructionPremultiply, RenderInstructionSRGBToLinearSRGB, RenderInstructionStackBlend, RenderInstructionUnpremultiply } from '../imports.js'; | ||
import Vector4 from '../../../dot/js/Vector4.js'; | ||
import { alpenglow, ByteEncoder, RenderEvaluationContext, RenderExecutionStack, RenderExecutor, RenderInstructionBarycentricBlend, RenderInstructionBarycentricPerspectiveBlend, RenderInstructionBlendCompose, RenderInstructionComputeBlendRatio, RenderInstructionComputeGradientRatio, RenderInstructionFilter, RenderInstructionLinearBlend, RenderInstructionLinearDisplayP3ToLinearSRGB, RenderInstructionLinearSRGBToLinearDisplayP3, RenderInstructionLinearSRGBToOklab, RenderInstructionLinearSRGBToSRGB, RenderInstructionNormalDebug, RenderInstructionNormalize, RenderInstructionOklabToLinearSRGB, RenderInstructionOpaqueJump, RenderInstructionPhong, RenderInstructionPremultiply, RenderInstructionSRGBToLinearSRGB, RenderInstructionStackBlend, RenderInstructionUnpremultiply } from '../imports.js'; | ||
|
||
export default abstract class RenderInstruction { | ||
public abstract execute( | ||
|
Oops, something went wrong.