@flighthq/scene2d-wgpu 0.5.1-next.973.788d3d7 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/.tsbuildinfo.contract +1 -0
- package/dist/.tsbuildinfo.runtime +1 -0
- package/dist/contract.d.ts +32 -34
- package/dist/contract.d.ts.map +1 -1
- package/dist/contract.js +32 -34
- package/dist/contract.js.map +1 -1
- package/dist/contract.scene2d-wgpu-types.d.ts +6 -0
- package/dist/contract.scene2d-wgpu-types.d.ts.map +1 -0
- package/dist/contract.scene2d-wgpu-types.js +2 -0
- package/dist/contract.scene2d-wgpu-types.js.map +1 -0
- package/dist/enableWgpuColorAdjustmentGuards.d.ts +3 -2
- package/dist/enableWgpuColorAdjustmentGuards.d.ts.map +1 -1
- package/dist/enableWgpuColorAdjustmentGuards.js +23 -14
- package/dist/enableWgpuColorAdjustmentGuards.js.map +1 -1
- package/dist/enableWgpuStrokePathTessellation.d.ts +1 -1
- package/dist/enableWgpuStrokePathTessellation.d.ts.map +1 -1
- package/dist/enableWgpuStrokePathTessellation.js +1 -6
- package/dist/enableWgpuStrokePathTessellation.js.map +1 -1
- package/dist/index.d.ts +23 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -2
- package/dist/index.js.map +1 -1
- package/dist/scene2DWgpuPipeline.d.ts +13 -0
- package/dist/scene2DWgpuPipeline.d.ts.map +1 -0
- package/dist/scene2DWgpuPipeline.js +59 -0
- package/dist/scene2DWgpuPipeline.js.map +1 -0
- package/dist/types/WgpuColorAdjustmentMaterialFeature.d.ts +2 -0
- package/dist/types/WgpuColorAdjustmentMaterialFeature.d.ts.map +1 -0
- package/dist/types/WgpuColorAdjustmentMaterialFeature.js +2 -0
- package/dist/types/WgpuColorAdjustmentMaterialFeature.js.map +1 -0
- package/dist/types/WgpuRenderStats.d.ts +12 -0
- package/dist/types/WgpuRenderStats.d.ts.map +1 -0
- package/dist/types/WgpuRenderStats.js +2 -0
- package/dist/types/WgpuRenderStats.js.map +1 -0
- package/dist/types/WgpuRichTextOverlay.d.ts +4 -0
- package/dist/types/WgpuRichTextOverlay.d.ts.map +1 -0
- package/dist/types/WgpuRichTextOverlay.js +2 -0
- package/dist/types/WgpuRichTextOverlay.js.map +1 -0
- package/dist/types/WgpuShapeMesh.d.ts +2 -0
- package/dist/types/WgpuShapeMesh.d.ts.map +1 -0
- package/dist/types/WgpuShapeMesh.js +2 -0
- package/dist/types/WgpuShapeMesh.js.map +1 -0
- package/dist/types/WgpuShapeRendererData.d.ts +17 -0
- package/dist/types/WgpuShapeRendererData.d.ts.map +1 -0
- package/dist/types/WgpuShapeRendererData.js +2 -0
- package/dist/types/WgpuShapeRendererData.js.map +1 -0
- package/dist/wgpuBitmapText.d.ts +2 -2
- package/dist/wgpuBitmapText.d.ts.map +1 -1
- package/dist/wgpuBitmapText.js +6 -6
- package/dist/wgpuBitmapText.js.map +1 -1
- package/dist/wgpuCache.d.ts +9 -6
- package/dist/wgpuCache.d.ts.map +1 -1
- package/dist/wgpuCache.js +17 -18
- package/dist/wgpuCache.js.map +1 -1
- package/dist/wgpuClip.d.ts +1 -1
- package/dist/wgpuClip.d.ts.map +1 -1
- package/dist/wgpuClip.js +2 -2
- package/dist/wgpuClip.js.map +1 -1
- package/dist/wgpuClipContours.d.ts +3 -1
- package/dist/wgpuClipContours.d.ts.map +1 -1
- package/dist/wgpuClipContours.js +7 -8
- package/dist/wgpuClipContours.js.map +1 -1
- package/dist/wgpuClipRectangle.d.ts +2 -1
- package/dist/wgpuClipRectangle.d.ts.map +1 -1
- package/dist/wgpuClipRectangle.js +4 -5
- package/dist/wgpuClipRectangle.js.map +1 -1
- package/dist/wgpuColorAdjustmentMaterialFeature.d.ts +1 -1
- package/dist/wgpuColorAdjustmentMaterialFeature.d.ts.map +1 -1
- package/dist/wgpuColorAdjustmentMaterialFeature.js +9 -13
- package/dist/wgpuColorAdjustmentMaterialFeature.js.map +1 -1
- package/dist/wgpuMeshShapeRenderer.d.ts +3 -2
- package/dist/wgpuMeshShapeRenderer.d.ts.map +1 -1
- package/dist/wgpuMeshShapeRenderer.js +9 -8
- package/dist/wgpuMeshShapeRenderer.js.map +1 -1
- package/dist/wgpuNode2D.d.ts +6 -3
- package/dist/wgpuNode2D.d.ts.map +1 -1
- package/dist/wgpuNode2D.js +20 -4
- package/dist/wgpuNode2D.js.map +1 -1
- package/dist/wgpuParticleEmitter2D.d.ts +4 -2
- package/dist/wgpuParticleEmitter2D.d.ts.map +1 -1
- package/dist/wgpuParticleEmitter2D.js +8 -8
- package/dist/wgpuParticleEmitter2D.js.map +1 -1
- package/dist/wgpuQuadBatch.d.ts +3 -3
- package/dist/wgpuQuadBatch.d.ts.map +1 -1
- package/dist/wgpuQuadBatch.js +6 -6
- package/dist/wgpuQuadBatch.js.map +1 -1
- package/dist/wgpuQuadBatchWriter.d.ts +9 -5
- package/dist/wgpuQuadBatchWriter.d.ts.map +1 -1
- package/dist/wgpuQuadBatchWriter.js +12 -8
- package/dist/wgpuQuadBatchWriter.js.map +1 -1
- package/dist/wgpuRasterShapeRenderer.d.ts +3 -2
- package/dist/wgpuRasterShapeRenderer.d.ts.map +1 -1
- package/dist/wgpuRasterShapeRenderer.js +41 -22
- package/dist/wgpuRasterShapeRenderer.js.map +1 -1
- package/dist/wgpuRenderStats.d.ts +2 -1
- package/dist/wgpuRenderStats.d.ts.map +1 -1
- package/dist/wgpuRenderStats.js.map +1 -1
- package/dist/wgpuRendererData.d.ts +2 -1
- package/dist/wgpuRendererData.d.ts.map +1 -1
- package/dist/wgpuRendererData.js +1 -1
- package/dist/wgpuRendererData.js.map +1 -1
- package/dist/wgpuRichText.d.ts +6 -3
- package/dist/wgpuRichText.d.ts.map +1 -1
- package/dist/wgpuRichText.js +67 -34
- package/dist/wgpuRichText.js.map +1 -1
- package/dist/wgpuScale9Mapper.d.ts +2 -1
- package/dist/wgpuScale9Mapper.d.ts.map +1 -1
- package/dist/wgpuScale9Mapper.js.map +1 -1
- package/dist/wgpuScale9Shape.d.ts +10 -5
- package/dist/wgpuScale9Shape.d.ts.map +1 -1
- package/dist/wgpuScale9Shape.js +54 -28
- package/dist/wgpuScale9Shape.js.map +1 -1
- package/dist/wgpuScale9Sprite.d.ts +3 -2
- package/dist/wgpuScale9Sprite.d.ts.map +1 -1
- package/dist/wgpuScale9Sprite.js +9 -10
- package/dist/wgpuScale9Sprite.js.map +1 -1
- package/dist/wgpuShape.d.ts +4 -3
- package/dist/wgpuShape.d.ts.map +1 -1
- package/dist/wgpuShape.js +7 -7
- package/dist/wgpuShape.js.map +1 -1
- package/dist/wgpuShapeData.d.ts +8 -3
- package/dist/wgpuShapeData.d.ts.map +1 -1
- package/dist/wgpuShapeData.js +12 -9
- package/dist/wgpuShapeData.js.map +1 -1
- package/dist/wgpuShapeMesh.d.ts +4 -2
- package/dist/wgpuShapeMesh.d.ts.map +1 -1
- package/dist/wgpuShapeMesh.js +9 -8
- package/dist/wgpuShapeMesh.js.map +1 -1
- package/dist/wgpuShapeRasterizer.d.ts +2 -1
- package/dist/wgpuShapeRasterizer.d.ts.map +1 -1
- package/dist/wgpuShapeRasterizer.js +3 -8
- package/dist/wgpuShapeRasterizer.js.map +1 -1
- package/dist/wgpuSprite.d.ts +3 -2
- package/dist/wgpuSprite.d.ts.map +1 -1
- package/dist/wgpuSprite.js +7 -8
- package/dist/wgpuSprite.js.map +1 -1
- package/dist/wgpuStandardMaterial.d.ts +2 -2
- package/dist/wgpuStandardMaterial.d.ts.map +1 -1
- package/dist/wgpuStandardMaterial.js +5 -5
- package/dist/wgpuStandardMaterial.js.map +1 -1
- package/dist/wgpuTextInput.d.ts +2 -1
- package/dist/wgpuTextInput.d.ts.map +1 -1
- package/dist/wgpuTextInput.js +6 -7
- package/dist/wgpuTextInput.js.map +1 -1
- package/dist/wgpuTextLabel.d.ts +3 -2
- package/dist/wgpuTextLabel.d.ts.map +1 -1
- package/dist/wgpuTextLabel.js +67 -35
- package/dist/wgpuTextLabel.js.map +1 -1
- package/dist/wgpuTilemap.d.ts +2 -2
- package/dist/wgpuTilemap.d.ts.map +1 -1
- package/dist/wgpuTilemap.js +6 -6
- package/dist/wgpuTilemap.js.map +1 -1
- package/dist/wgpuVelocity.d.ts +10 -7
- package/dist/wgpuVelocity.d.ts.map +1 -1
- package/dist/wgpuVelocity.js +89 -87
- package/dist/wgpuVelocity.js.map +1 -1
- package/package.json +31 -25
- package/src/contract.test.ts +13 -0
- package/src/enableWgpuColorAdjustmentGuards.test.ts +50 -28
- package/src/enableWgpuStrokePathTessellation.test.ts +4 -9
- package/src/scene2DWgpuPipeline.test.ts +53 -0
- package/src/wgpuBitmapText.test.ts +10 -10
- package/src/wgpuCache.test.ts +130 -168
- package/src/wgpuClip.test.ts +1 -1
- package/src/wgpuClipContours.test.ts +13 -6
- package/src/wgpuClipRectangle.test.ts +8 -8
- package/src/wgpuColorAdjustmentMaterialFeature.test.ts +20 -19
- package/src/wgpuMeshShapeRenderer.test.ts +51 -52
- package/src/wgpuNode2D.test.ts +14 -14
- package/src/wgpuParticleEmitter2D.test.ts +52 -45
- package/src/wgpuQuadBatch.test.ts +62 -60
- package/src/wgpuQuadBatchWriter.test.ts +76 -34
- package/src/wgpuRasterShapeRenderer.test.ts +95 -57
- package/src/wgpuRenderStats.test.ts +1 -1
- package/src/wgpuRendererData.test.ts +2 -2
- package/src/wgpuRichText.test.ts +109 -58
- package/src/wgpuScale9Mapper.test.ts +1 -1
- package/src/wgpuScale9Shape.test.ts +103 -62
- package/src/wgpuScale9Sprite.test.ts +31 -36
- package/src/wgpuShape.test.ts +111 -76
- package/src/wgpuShapeData.test.ts +96 -53
- package/src/wgpuShapeMesh.test.ts +39 -25
- package/src/wgpuShapeRasterizer.test.ts +11 -7
- package/src/wgpuSprite.test.ts +36 -27
- package/src/wgpuStandardMaterial.test.ts +9 -13
- package/src/wgpuTextInput.test.ts +9 -6
- package/src/wgpuTextLabel.test.ts +145 -88
- package/src/wgpuTilemap.test.ts +11 -11
- package/src/wgpuVelocity.test.ts +86 -86
- package/dist/scene2dWgpuPipeline.d.ts +0 -3
- package/dist/scene2dWgpuPipeline.d.ts.map +0 -1
- package/dist/scene2dWgpuPipeline.js +0 -40
- package/dist/scene2dWgpuPipeline.js.map +0 -1
package/dist/contract.d.ts
CHANGED
|
@@ -1,35 +1,33 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './wgpuBitmapText';
|
|
6
|
-
export * from './wgpuCache';
|
|
7
|
-
export * from './wgpuClip';
|
|
8
|
-
export * from './wgpuClipContours';
|
|
9
|
-
export * from './wgpuClipRectangle';
|
|
10
|
-
export * from './wgpuColorAdjustmentMaterialFeature';
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './wgpuNode2D';
|
|
13
|
-
export * from './wgpuParticleEmitter2D';
|
|
14
|
-
export * from './wgpuQuadBatch';
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
22
|
-
export * from './
|
|
23
|
-
export * from './wgpuShape';
|
|
24
|
-
export * from './wgpuShapeData';
|
|
25
|
-
export * from './wgpuShapeMesh';
|
|
26
|
-
export * from './
|
|
27
|
-
export * from './
|
|
28
|
-
export * from './
|
|
29
|
-
export * from './
|
|
30
|
-
export * from './
|
|
31
|
-
export * from './
|
|
32
|
-
export
|
|
33
|
-
export * from './wgpuShapeRasterizer';
|
|
34
|
-
export { initializeWgpuRendererData } from './wgpuRendererData';
|
|
1
|
+
export * from './contract.scene2d-wgpu-types.ts';
|
|
2
|
+
export * from './enableWgpuColorAdjustmentGuards.ts';
|
|
3
|
+
export * from './enableWgpuStrokePathTessellation.ts';
|
|
4
|
+
export * from './scene2DWgpuPipeline.ts';
|
|
5
|
+
export * from './wgpuBitmapText.ts';
|
|
6
|
+
export * from './wgpuCache.ts';
|
|
7
|
+
export * from './wgpuClip.ts';
|
|
8
|
+
export * from './wgpuClipContours.ts';
|
|
9
|
+
export * from './wgpuClipRectangle.ts';
|
|
10
|
+
export * from './wgpuColorAdjustmentMaterialFeature.ts';
|
|
11
|
+
export * from './wgpuMeshShapeRenderer.ts';
|
|
12
|
+
export * from './wgpuNode2D.ts';
|
|
13
|
+
export * from './wgpuParticleEmitter2D.ts';
|
|
14
|
+
export * from './wgpuQuadBatch.ts';
|
|
15
|
+
export * from './wgpuQuadBatchWriter.ts';
|
|
16
|
+
export * from './wgpuRasterShapeRenderer.ts';
|
|
17
|
+
export * from './wgpuRenderStats.ts';
|
|
18
|
+
export * from './wgpuRendererData.ts';
|
|
19
|
+
export * from './wgpuRichText.ts';
|
|
20
|
+
export * from './wgpuScale9Mapper.ts';
|
|
21
|
+
export * from './wgpuScale9Shape.ts';
|
|
22
|
+
export * from './wgpuScale9Sprite.ts';
|
|
23
|
+
export * from './wgpuShape.ts';
|
|
24
|
+
export * from './wgpuShapeData.ts';
|
|
25
|
+
export * from './wgpuShapeMesh.ts';
|
|
26
|
+
export * from './wgpuShapeRasterizer.ts';
|
|
27
|
+
export * from './wgpuSprite.ts';
|
|
28
|
+
export * from './wgpuStandardMaterial.ts';
|
|
29
|
+
export * from './wgpuTextInput.ts';
|
|
30
|
+
export * from './wgpuTextLabel.ts';
|
|
31
|
+
export * from './wgpuTilemap.ts';
|
|
32
|
+
export * from './wgpuVelocity.ts';
|
|
35
33
|
//# sourceMappingURL=contract.d.ts.map
|
package/dist/contract.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yCAAyC,CAAC;AACxD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
|
package/dist/contract.js
CHANGED
|
@@ -1,35 +1,33 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './wgpuBitmapText';
|
|
6
|
-
export * from './wgpuCache';
|
|
7
|
-
export * from './wgpuClip';
|
|
8
|
-
export * from './wgpuClipContours';
|
|
9
|
-
export * from './wgpuClipRectangle';
|
|
10
|
-
export * from './wgpuColorAdjustmentMaterialFeature';
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './wgpuNode2D';
|
|
13
|
-
export * from './wgpuParticleEmitter2D';
|
|
14
|
-
export * from './wgpuQuadBatch';
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
22
|
-
export * from './
|
|
23
|
-
export * from './wgpuShape';
|
|
24
|
-
export * from './wgpuShapeData';
|
|
25
|
-
export * from './wgpuShapeMesh';
|
|
26
|
-
export * from './
|
|
27
|
-
export * from './
|
|
28
|
-
export * from './
|
|
29
|
-
export * from './
|
|
30
|
-
export * from './
|
|
31
|
-
export * from './
|
|
32
|
-
export
|
|
33
|
-
export * from './wgpuShapeRasterizer';
|
|
34
|
-
export { initializeWgpuRendererData } from './wgpuRendererData';
|
|
1
|
+
export * from './contract.scene2d-wgpu-types.js';
|
|
2
|
+
export * from './enableWgpuColorAdjustmentGuards.js';
|
|
3
|
+
export * from './enableWgpuStrokePathTessellation.js';
|
|
4
|
+
export * from './scene2DWgpuPipeline.js';
|
|
5
|
+
export * from './wgpuBitmapText.js';
|
|
6
|
+
export * from './wgpuCache.js';
|
|
7
|
+
export * from './wgpuClip.js';
|
|
8
|
+
export * from './wgpuClipContours.js';
|
|
9
|
+
export * from './wgpuClipRectangle.js';
|
|
10
|
+
export * from './wgpuColorAdjustmentMaterialFeature.js';
|
|
11
|
+
export * from './wgpuMeshShapeRenderer.js';
|
|
12
|
+
export * from './wgpuNode2D.js';
|
|
13
|
+
export * from './wgpuParticleEmitter2D.js';
|
|
14
|
+
export * from './wgpuQuadBatch.js';
|
|
15
|
+
export * from './wgpuQuadBatchWriter.js';
|
|
16
|
+
export * from './wgpuRasterShapeRenderer.js';
|
|
17
|
+
export * from './wgpuRenderStats.js';
|
|
18
|
+
export * from './wgpuRendererData.js';
|
|
19
|
+
export * from './wgpuRichText.js';
|
|
20
|
+
export * from './wgpuScale9Mapper.js';
|
|
21
|
+
export * from './wgpuScale9Shape.js';
|
|
22
|
+
export * from './wgpuScale9Sprite.js';
|
|
23
|
+
export * from './wgpuShape.js';
|
|
24
|
+
export * from './wgpuShapeData.js';
|
|
25
|
+
export * from './wgpuShapeMesh.js';
|
|
26
|
+
export * from './wgpuShapeRasterizer.js';
|
|
27
|
+
export * from './wgpuSprite.js';
|
|
28
|
+
export * from './wgpuStandardMaterial.js';
|
|
29
|
+
export * from './wgpuTextInput.js';
|
|
30
|
+
export * from './wgpuTextLabel.js';
|
|
31
|
+
export * from './wgpuTilemap.js';
|
|
32
|
+
export * from './wgpuVelocity.js';
|
|
35
33
|
//# sourceMappingURL=contract.js.map
|
package/dist/contract.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yCAAyC,CAAC;AACxD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { WgpuColorAdjustmentMaterialFeature, WgpuColorAdjustmentMaterialFeatureGuard, } from './types/WgpuColorAdjustmentMaterialFeature.ts';
|
|
2
|
+
export type { WgpuRenderStats } from './types/WgpuRenderStats.ts';
|
|
3
|
+
export type { WgpuRichTextOverlay } from './types/WgpuRichTextOverlay.ts';
|
|
4
|
+
export type { WgpuShapeMesh } from './types/WgpuShapeMesh.ts';
|
|
5
|
+
export type { WgpuShapeRendererData } from './types/WgpuShapeRendererData.ts';
|
|
6
|
+
//# sourceMappingURL=contract.scene2d-wgpu-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.scene2d-wgpu-types.d.ts","sourceRoot":"","sources":["../src/contract.scene2d-wgpu-types.ts"],"names":[],"mappings":"AAEA,YAAY,EACV,kCAAkC,EAClC,uCAAuC,GACxC,MAAM,+CAA+C,CAAC;AACvD,YAAY,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,YAAY,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,YAAY,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.scene2d-wgpu-types.js","sourceRoot":"","sources":["../src/contract.scene2d-wgpu-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LogState } from '@flighthq/log/contract';
|
|
2
|
+
import type { WgpuRenderState } from '@flighthq/render-wgpu/contract';
|
|
2
3
|
export declare function areWgpuColorAdjustmentGuardsEnabled(state: WgpuRenderState): boolean;
|
|
3
|
-
export declare function enableWgpuColorAdjustmentGuards(state: WgpuRenderState): void;
|
|
4
|
+
export declare function enableWgpuColorAdjustmentGuards(state: WgpuRenderState, logState: LogState | null): void;
|
|
4
5
|
//# sourceMappingURL=enableWgpuColorAdjustmentGuards.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enableWgpuColorAdjustmentGuards.d.ts","sourceRoot":"","sources":["../src/enableWgpuColorAdjustmentGuards.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"enableWgpuColorAdjustmentGuards.d.ts","sourceRoot":"","sources":["../src/enableWgpuColorAdjustmentGuards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAIvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAGtE,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAEnF;AAUD,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,GAAG,IAAI,CAYvG"}
|
|
@@ -1,28 +1,37 @@
|
|
|
1
1
|
import { logOnce } from '@flighthq/log/contract';
|
|
2
|
-
import {
|
|
2
|
+
import { LogLevel } from '@flighthq/log/contract';
|
|
3
3
|
import { getWgpuColorAdjustmentMaterialFeatureGuard, getWgpuRenderStateRuntime } from '@flighthq/render-wgpu/contract';
|
|
4
|
-
import { LogLevel, RegistryEntryState } from '@flighthq/types/contract';
|
|
5
4
|
// Returns whether color-adjustment guards are installed on `state` (enableWgpuColorAdjustmentGuards).
|
|
6
5
|
export function areWgpuColorAdjustmentGuardsEnabled(state) {
|
|
7
6
|
return getWgpuColorAdjustmentMaterialFeatureGuard(state) != null;
|
|
8
7
|
}
|
|
9
8
|
// Installs the shakeable color-adjustment guard on `state`: when a node carries a color adjustment but
|
|
10
9
|
// registerWgpuColorAdjustmentMaterialFeature was never called, recordWgpuQuadBatchColorScaleBias reaches this guard
|
|
11
|
-
// through its optional persistent registry slot and warns once (the tint is skipped, drawn
|
|
12
|
-
// behavior, never a throw).
|
|
13
|
-
// the
|
|
14
|
-
|
|
10
|
+
// through its optional persistent registry slot and warns once into `logState` (the tint is skipped, drawn
|
|
11
|
+
// untinted — the sentinel behavior, never a throw). Every call records `logState`, so a null `logState`
|
|
12
|
+
// leaves the guard installed but silent, including after an earlier non-null call. Not calling this — the
|
|
13
|
+
// production default — costs the batch nothing, since the message and @flighthq/log dependency live only
|
|
14
|
+
// in this separately-imported module.
|
|
15
|
+
// Idempotent: the installed guard is the same function on every call.
|
|
16
|
+
export function enableWgpuColorAdjustmentGuards(state, logState) {
|
|
17
|
+
let slot = _guardSlots.get(state);
|
|
18
|
+
if (slot === undefined) {
|
|
19
|
+
const created = { guard: () => warnWgpuColorAdjustmentNotEnabled(created.logState), logState: null };
|
|
20
|
+
slot = created;
|
|
21
|
+
_guardSlots.set(state, slot);
|
|
22
|
+
}
|
|
23
|
+
slot.logState = logState;
|
|
15
24
|
const runtime = getWgpuRenderStateRuntime(state);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
runtime.registries.colorAdjustmentFeatureGuard = {
|
|
19
|
-
...table,
|
|
20
|
-
entry: { state: RegistryEntryState.Bound, value: warnWgpuColorAdjustmentNotEnabled },
|
|
21
|
-
};
|
|
25
|
+
if (runtime.registries.colorAdjustmentFeatureGuard !== slot.guard) {
|
|
26
|
+
runtime.registries.colorAdjustmentFeatureGuard = slot.guard;
|
|
22
27
|
}
|
|
23
28
|
}
|
|
24
|
-
|
|
25
|
-
|
|
29
|
+
// The installed guard and its log state, per render state, so re-enabling keeps one guard identity.
|
|
30
|
+
const _guardSlots = new WeakMap();
|
|
31
|
+
function warnWgpuColorAdjustmentNotEnabled(logState) {
|
|
32
|
+
if (logState === null)
|
|
33
|
+
return;
|
|
34
|
+
logOnce(logState, 0, 'scene2d-wgpu:color-adjustment-not-enabled', LogLevel.Warn, {
|
|
26
35
|
message: 'recordWgpuQuadBatchColorScaleBias: color adjustment present but WGPU color adjustment not enabled — call registerWgpuColorAdjustmentMaterialFeature(state)',
|
|
27
36
|
}, 'scene2d-wgpu');
|
|
28
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enableWgpuColorAdjustmentGuards.js","sourceRoot":"","sources":["../src/enableWgpuColorAdjustmentGuards.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"enableWgpuColorAdjustmentGuards.js","sourceRoot":"","sources":["../src/enableWgpuColorAdjustmentGuards.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,0CAA0C,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAGvH,sGAAsG;AACtG,MAAM,UAAU,mCAAmC,CAAC,KAAsB;IACxE,OAAO,0CAA0C,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC;AACnE,CAAC;AAED,uGAAuG;AACvG,oHAAoH;AACpH,2GAA2G;AAC3G,wGAAwG;AACxG,0GAA0G;AAC1G,yGAAyG;AACzG,sCAAsC;AACtC,sEAAsE;AACtE,MAAM,UAAU,+BAA+B,CAAC,KAAsB,EAAE,QAAyB;IAC/F,IAAI,IAAI,GAAG,WAAW,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAClC,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,OAAO,GAAc,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,iCAAiC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAChH,IAAI,GAAG,OAAO,CAAC;QACf,WAAW,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAC/B,CAAC;IACD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACzB,MAAM,OAAO,GAAG,yBAAyB,CAAC,KAAK,CAAC,CAAC;IACjD,IAAI,OAAO,CAAC,UAAU,CAAC,2BAA2B,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC;QAClE,OAAO,CAAC,UAAU,CAAC,2BAA2B,GAAG,IAAI,CAAC,KAAK,CAAC;IAC9D,CAAC;AACH,CAAC;AAOD,oGAAoG;AACpG,MAAM,WAAW,GAAG,IAAI,OAAO,EAA8B,CAAC;AAE9D,SAAS,iCAAiC,CAAC,QAAyB;IAClE,IAAI,QAAQ,KAAK,IAAI;QAAE,OAAO;IAC9B,OAAO,CACL,QAAQ,EACR,CAAC,EACD,2CAA2C,EAC3C,QAAQ,CAAC,IAAI,EACb;QACE,OAAO,EACL,4JAA4J;KAC/J,EACD,cAAc,CACf,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { WgpuRenderState } from '@flighthq/
|
|
1
|
+
import type { WgpuRenderState } from '@flighthq/render-wgpu/contract';
|
|
2
2
|
export declare function enableWgpuStrokePathTessellation(state: WgpuRenderState): void;
|
|
3
3
|
//# sourceMappingURL=enableWgpuStrokePathTessellation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enableWgpuStrokePathTessellation.d.ts","sourceRoot":"","sources":["../src/enableWgpuStrokePathTessellation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"enableWgpuStrokePathTessellation.d.ts","sourceRoot":"","sources":["../src/enableWgpuStrokePathTessellation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAItE,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,CAG7E"}
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { tessellateStrokePath } from '@flighthq/path/contract';
|
|
2
2
|
import { getWgpuRenderStateRuntime } from '@flighthq/render-wgpu/contract';
|
|
3
|
-
import { RegistryEntryState } from '@flighthq/types/contract';
|
|
4
3
|
// Installs the closed-ring/pathology-aware stroke kernel only for states that need it. Ordinary shape
|
|
5
4
|
// bundles keep the compact open-outline mesh lane and rasterize closed strokes.
|
|
6
5
|
export function enableWgpuStrokePathTessellation(state) {
|
|
7
6
|
const runtime = getWgpuRenderStateRuntime(state);
|
|
8
|
-
|
|
9
|
-
runtime.registries.strokeTessellator = {
|
|
10
|
-
...table,
|
|
11
|
-
entry: { state: RegistryEntryState.Bound, value: tessellateStrokePath },
|
|
12
|
-
};
|
|
7
|
+
runtime.registries.strokeTessellator = tessellateStrokePath;
|
|
13
8
|
}
|
|
14
9
|
//# sourceMappingURL=enableWgpuStrokePathTessellation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enableWgpuStrokePathTessellation.js","sourceRoot":"","sources":["../src/enableWgpuStrokePathTessellation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"enableWgpuStrokePathTessellation.js","sourceRoot":"","sources":["../src/enableWgpuStrokePathTessellation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAG3E,sGAAsG;AACtG,gFAAgF;AAChF,MAAM,UAAU,gCAAgC,CAAC,KAAsB;IACrE,MAAM,OAAO,GAAG,yBAAyB,CAAC,KAAK,CAAC,CAAC;IACjD,OAAO,CAAC,UAAU,CAAC,iBAAiB,GAAG,oBAAoB,CAAC;AAC9D,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from './enableWgpuColorAdjustmentGuards.ts';
|
|
2
|
+
export * from './enableWgpuStrokePathTessellation.ts';
|
|
3
|
+
export * from './scene2DWgpuPipeline.ts';
|
|
4
|
+
export * from './wgpuBitmapText.ts';
|
|
5
|
+
export { createWgpuCacheState, enableWgpuRenderCache, refreshWgpuRenderCache, wgpuRenderCacheRenderer, } from './wgpuCache.ts';
|
|
6
|
+
export * from './wgpuClip.ts';
|
|
7
|
+
export * from './wgpuColorAdjustmentMaterialFeature.ts';
|
|
8
|
+
export { wgpuMeshShapeRenderer } from './wgpuMeshShapeRenderer.ts';
|
|
9
|
+
export { renderWgpuScene2D, wgpuScene2DRenderer } from './wgpuNode2D.ts';
|
|
10
|
+
export { wgpuParticleEmitter2DRenderer } from './wgpuParticleEmitter2D.ts';
|
|
11
|
+
export { wgpuQuadBatchRenderer } from './wgpuQuadBatch.ts';
|
|
12
|
+
export { wgpuRasterShapeRenderer } from './wgpuRasterShapeRenderer.ts';
|
|
13
|
+
export { wgpuRichTextRenderer } from './wgpuRichText.ts';
|
|
14
|
+
export { wgpuScale9ShapeRenderer } from './wgpuScale9Shape.ts';
|
|
15
|
+
export { wgpuScale9SpriteRenderer } from './wgpuScale9Sprite.ts';
|
|
16
|
+
export { wgpuShapeRenderer, wgpuMorphShapeRenderer } from './wgpuShape.ts';
|
|
17
|
+
export * from './wgpuShapeRasterizer.ts';
|
|
18
|
+
export { wgpuSpriteRenderer } from './wgpuSprite.ts';
|
|
19
|
+
export * from './wgpuStandardMaterial.ts';
|
|
20
|
+
export { enableWgpuTextInput } from './wgpuTextInput.ts';
|
|
21
|
+
export { wgpuTextLabelRenderer } from './wgpuTextLabel.ts';
|
|
22
|
+
export * from './wgpuTilemap.ts';
|
|
23
|
+
export { createWgpuVelocityTarget, registerWgpuVelocityWriter, renderWgpuVelocity, wgpuNode2DVelocityWriter, wgpuParticleEmitter2DVelocityWriter, } from './wgpuVelocity.ts';
|
|
3
24
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,gBAAgB,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,yCAAyC,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,cAAc,kBAAkB,CAAC;AACjC,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,kBAAkB,EAClB,wBAAwB,EACxB,mCAAmC,GACpC,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from './enableWgpuColorAdjustmentGuards.js';
|
|
2
|
+
export * from './enableWgpuStrokePathTessellation.js';
|
|
3
|
+
export * from './scene2DWgpuPipeline.js';
|
|
4
|
+
export * from './wgpuBitmapText.js';
|
|
5
|
+
export { createWgpuCacheState, enableWgpuRenderCache, refreshWgpuRenderCache, wgpuRenderCacheRenderer, } from './wgpuCache.js';
|
|
6
|
+
export * from './wgpuClip.js';
|
|
7
|
+
export * from './wgpuColorAdjustmentMaterialFeature.js';
|
|
8
|
+
export { wgpuMeshShapeRenderer } from './wgpuMeshShapeRenderer.js';
|
|
9
|
+
export { renderWgpuScene2D, wgpuScene2DRenderer } from './wgpuNode2D.js';
|
|
10
|
+
export { wgpuParticleEmitter2DRenderer } from './wgpuParticleEmitter2D.js';
|
|
11
|
+
export { wgpuQuadBatchRenderer } from './wgpuQuadBatch.js';
|
|
12
|
+
export { wgpuRasterShapeRenderer } from './wgpuRasterShapeRenderer.js';
|
|
13
|
+
export { wgpuRichTextRenderer } from './wgpuRichText.js';
|
|
14
|
+
export { wgpuScale9ShapeRenderer } from './wgpuScale9Shape.js';
|
|
15
|
+
export { wgpuScale9SpriteRenderer } from './wgpuScale9Sprite.js';
|
|
16
|
+
export { wgpuShapeRenderer, wgpuMorphShapeRenderer } from './wgpuShape.js';
|
|
17
|
+
export * from './wgpuShapeRasterizer.js';
|
|
18
|
+
export { wgpuSpriteRenderer } from './wgpuSprite.js';
|
|
19
|
+
export * from './wgpuStandardMaterial.js';
|
|
20
|
+
export { enableWgpuTextInput } from './wgpuTextInput.js';
|
|
21
|
+
export { wgpuTextLabelRenderer } from './wgpuTextLabel.js';
|
|
22
|
+
export * from './wgpuTilemap.js';
|
|
23
|
+
export { createWgpuVelocityTarget, registerWgpuVelocityWriter, renderWgpuVelocity, wgpuNode2DVelocityWriter, wgpuParticleEmitter2DVelocityWriter, } from './wgpuVelocity.js';
|
|
3
24
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,gBAAgB,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,yCAAyC,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,cAAc,kBAAkB,CAAC;AACjC,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,kBAAkB,EAClB,wBAAwB,EACxB,mCAAmC,GACpC,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { WgpuRenderRegistries } from '@flighthq/render-wgpu/contract';
|
|
2
|
+
/**
|
|
3
|
+
* Everything this backend needs that the CONTENT does not choose — the preset with no node renderers.
|
|
4
|
+
*
|
|
5
|
+
* A per-file manifest replaces exactly one part of a render configuration: the node renderers, because
|
|
6
|
+
* those are what a document implies. The rest is backend machinery every build needs whatever the
|
|
7
|
+
* content is, and some of it cannot be expressed as a catalog row at all. Splitting the two is what
|
|
8
|
+
* lets a generated fragment compose into a COMPLETE configuration without dragging in the renderers
|
|
9
|
+
* the content never asked for. See `canvasRenderInfrastructure` for the failure this prevents.
|
|
10
|
+
*/
|
|
11
|
+
export declare const wgpuRenderInfrastructure: Readonly<Omit<WgpuRenderRegistries, 'nodeRenderers'>>;
|
|
12
|
+
export declare const wgpuScene2DRenderPreset: Readonly<WgpuRenderRegistries>;
|
|
13
|
+
//# sourceMappingURL=scene2DWgpuPipeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scene2DWgpuPipeline.d.ts","sourceRoot":"","sources":["../src/scene2DWgpuPipeline.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAwC3E;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,IAAI,CAAC,oBAAoB,EAAE,eAAe,CAAC,CAGzF,CAAC;AAEH,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,oBAAoB,CAGjE,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { StandardMaterialKind } from '@flighthq/materials/contract';
|
|
2
|
+
import { ParticleEmitter2DKind } from '@flighthq/particleemitter/contract';
|
|
3
|
+
import { QuadBatchKind } from '@flighthq/quadbatch/contract';
|
|
4
|
+
import { withKindMapEntry } from '@flighthq/registry/contract';
|
|
5
|
+
import { buildWgpuRenderRegistries } from '@flighthq/render-wgpu/contract';
|
|
6
|
+
import { RenderCacheKind } from '@flighthq/render/contract';
|
|
7
|
+
import { DisplayObjectKind, Scale9SpriteKind, SpriteKind } from '@flighthq/scene2d/contract';
|
|
8
|
+
import { MorphShapeKind, Scale9ShapeKind, ShapeKind } from '@flighthq/shape/contract';
|
|
9
|
+
import { RichTextKind, TextLabelKind } from '@flighthq/text/contract';
|
|
10
|
+
import { TilemapKind } from '@flighthq/tilemap/contract';
|
|
11
|
+
import { wgpuBitmapTextRenderer } from './wgpuBitmapText.js';
|
|
12
|
+
import { wgpuRenderCacheRenderer } from './wgpuCache.js';
|
|
13
|
+
import { wgpuScene2DRenderer } from './wgpuNode2D.js';
|
|
14
|
+
import { wgpuParticleEmitter2DRenderer } from './wgpuParticleEmitter2D.js';
|
|
15
|
+
import { wgpuQuadBatchRenderer } from './wgpuQuadBatch.js';
|
|
16
|
+
import { wgpuRichTextRenderer } from './wgpuRichText.js';
|
|
17
|
+
import { wgpuScale9ShapeRenderer } from './wgpuScale9Shape.js';
|
|
18
|
+
import { wgpuScale9SpriteRenderer } from './wgpuScale9Sprite.js';
|
|
19
|
+
import { wgpuMorphShapeRenderer, wgpuShapeRenderer } from './wgpuShape.js';
|
|
20
|
+
import { wgpuSpriteRenderer } from './wgpuSprite.js';
|
|
21
|
+
import { standardWgpuQuadMaterialRenderer } from './wgpuStandardMaterial.js';
|
|
22
|
+
import { wgpuTextLabelRenderer } from './wgpuTextLabel.js';
|
|
23
|
+
import { wgpuTilemapRenderer } from './wgpuTilemap.js';
|
|
24
|
+
function buildScene2dWgpuRenderers() {
|
|
25
|
+
let table = new Map();
|
|
26
|
+
table = withKindMapEntry(table, BitmapTextKind, wgpuBitmapTextRenderer);
|
|
27
|
+
table = withKindMapEntry(table, DisplayObjectKind, wgpuScene2DRenderer);
|
|
28
|
+
table = withKindMapEntry(table, MorphShapeKind, wgpuMorphShapeRenderer);
|
|
29
|
+
table = withKindMapEntry(table, ParticleEmitter2DKind, wgpuParticleEmitter2DRenderer);
|
|
30
|
+
table = withKindMapEntry(table, QuadBatchKind, wgpuQuadBatchRenderer);
|
|
31
|
+
table = withKindMapEntry(table, RenderCacheKind, wgpuRenderCacheRenderer);
|
|
32
|
+
table = withKindMapEntry(table, RichTextKind, wgpuRichTextRenderer);
|
|
33
|
+
table = withKindMapEntry(table, Scale9ShapeKind, wgpuScale9ShapeRenderer);
|
|
34
|
+
table = withKindMapEntry(table, Scale9SpriteKind, wgpuScale9SpriteRenderer);
|
|
35
|
+
table = withKindMapEntry(table, ShapeKind, wgpuShapeRenderer);
|
|
36
|
+
table = withKindMapEntry(table, SpriteKind, wgpuSpriteRenderer);
|
|
37
|
+
table = withKindMapEntry(table, TextLabelKind, wgpuTextLabelRenderer);
|
|
38
|
+
table = withKindMapEntry(table, TilemapKind, wgpuTilemapRenderer);
|
|
39
|
+
return table;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Everything this backend needs that the CONTENT does not choose — the preset with no node renderers.
|
|
43
|
+
*
|
|
44
|
+
* A per-file manifest replaces exactly one part of a render configuration: the node renderers, because
|
|
45
|
+
* those are what a document implies. The rest is backend machinery every build needs whatever the
|
|
46
|
+
* content is, and some of it cannot be expressed as a catalog row at all. Splitting the two is what
|
|
47
|
+
* lets a generated fragment compose into a COMPLETE configuration without dragging in the renderers
|
|
48
|
+
* the content never asked for. See `canvasRenderInfrastructure` for the failure this prevents.
|
|
49
|
+
*/
|
|
50
|
+
export const wgpuRenderInfrastructure = Object.freeze({
|
|
51
|
+
...buildWgpuRenderRegistries({}),
|
|
52
|
+
materialRenderers: withKindMapEntry(new Map(), StandardMaterialKind, standardWgpuQuadMaterialRenderer),
|
|
53
|
+
});
|
|
54
|
+
export const wgpuScene2DRenderPreset = Object.freeze({
|
|
55
|
+
...wgpuRenderInfrastructure,
|
|
56
|
+
nodeRenderers: buildScene2dWgpuRenderers(),
|
|
57
|
+
});
|
|
58
|
+
import { BitmapTextKind } from '@flighthq/bitmaptext/contract';
|
|
59
|
+
//# sourceMappingURL=scene2DWgpuPipeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scene2DWgpuPipeline.js","sourceRoot":"","sources":["../src/scene2DWgpuPipeline.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuColorAdjustmentMaterialFeature.d.ts","sourceRoot":"","sources":["../../src/types/WgpuColorAdjustmentMaterialFeature.ts"],"names":[],"mappings":"AACA,YAAY,EACV,kCAAkC,EAClC,uCAAuC,GACxC,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuColorAdjustmentMaterialFeature.js","sourceRoot":"","sources":["../../src/types/WgpuColorAdjustmentMaterialFeature.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Per-frame GPU draw statistics for a WgpuRenderState, populated by the batch and draw paths. */
|
|
2
|
+
export interface WgpuRenderStats {
|
|
3
|
+
/** Number of GPU draw calls issued this frame. */
|
|
4
|
+
readonly drawCallCount: number;
|
|
5
|
+
/** Total sprite/quad/particle instances drawn this frame. */
|
|
6
|
+
readonly instanceCount: number;
|
|
7
|
+
/** Number of quad-batch writer flushes triggered this frame. */
|
|
8
|
+
readonly batchFlushCount: number;
|
|
9
|
+
/** Number of canvas-to-GPU texture uploads issued this frame. */
|
|
10
|
+
readonly textureUploadCount: number;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=WgpuRenderStats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuRenderStats.d.ts","sourceRoot":"","sources":["../../src/types/WgpuRenderStats.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,MAAM,WAAW,eAAe;IAC9B,kDAAkD;IAClD,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,6DAA6D;IAC7D,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,gEAAgE;IAChE,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,iEAAiE;IACjE,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;CACrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuRenderStats.js","sourceRoot":"","sources":["../../src/types/WgpuRenderStats.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { RichText } from '@flighthq/text/contract';
|
|
2
|
+
import type { TextLayoutResult } from '@flighthq/textlayout/contract';
|
|
3
|
+
export type WgpuRichTextOverlay = (context: CanvasRenderingContext2D, source: RichText, result: TextLayoutResult, fieldW: number, fieldH: number, text: string) => void;
|
|
4
|
+
//# sourceMappingURL=WgpuRichTextOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuRichTextOverlay.d.ts","sourceRoot":"","sources":["../../src/types/WgpuRichTextOverlay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,MAAM,mBAAmB,GAAG,CAChC,OAAO,EAAE,wBAAwB,EACjC,MAAM,EAAE,QAAQ,EAChB,MAAM,EAAE,gBAAgB,EACxB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,KACT,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuRichTextOverlay.js","sourceRoot":"","sources":["../../src/types/WgpuRichTextOverlay.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuShapeMesh.d.ts","sourceRoot":"","sources":["../../src/types/WgpuShapeMesh.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuShapeMesh.js","sourceRoot":"","sources":["../../src/types/WgpuShapeMesh.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ImageResource } from '@flighthq/image/contract';
|
|
2
|
+
import type { RendererData } from '@flighthq/node/contract';
|
|
3
|
+
import type { WgpuShapeMeshBuffers } from '@flighthq/render-wgpu/contract';
|
|
4
|
+
import type { CanvasSurface } from '@flighthq/surface/contract';
|
|
5
|
+
import type { WgpuShapeMesh } from './WgpuShapeMesh.ts';
|
|
6
|
+
export interface WgpuShapeRendererData extends RendererData {
|
|
7
|
+
image: ImageResource | null;
|
|
8
|
+
lastContentId: number;
|
|
9
|
+
lastH: number;
|
|
10
|
+
lastPixelRatio: number;
|
|
11
|
+
lastW: number;
|
|
12
|
+
meshBuffers: WgpuShapeMeshBuffers;
|
|
13
|
+
meshVersion: number;
|
|
14
|
+
meshes: WgpuShapeMesh[] | null;
|
|
15
|
+
surface: CanvasSurface | null;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=WgpuShapeRendererData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuShapeRendererData.d.ts","sourceRoot":"","sources":["../../src/types/WgpuShapeRendererData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAWxD,MAAM,WAAW,qBAAsB,SAAQ,YAAY;IACzD,KAAK,EAAE,aAAa,GAAG,IAAI,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,oBAAoB,CAAC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;IAC/B,OAAO,EAAE,aAAa,GAAG,IAAI,CAAC;CAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuShapeRendererData.js","sourceRoot":"","sources":["../../src/types/WgpuShapeRendererData.ts"],"names":[],"mappings":""}
|
package/dist/wgpuBitmapText.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { SpriteRenderer } from '@flighthq/
|
|
2
|
-
export declare const
|
|
1
|
+
import type { SpriteRenderer } from '@flighthq/render/contract';
|
|
2
|
+
export declare const wgpuBitmapTextRenderer: SpriteRenderer;
|
|
3
3
|
//# sourceMappingURL=wgpuBitmapText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wgpuBitmapText.d.ts","sourceRoot":"","sources":["../src/wgpuBitmapText.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"wgpuBitmapText.d.ts","sourceRoot":"","sources":["../src/wgpuBitmapText.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAkHhE,eAAO,MAAM,sBAAsB,EAAE,cAIpC,CAAC"}
|