@flighthq/render-wgpu 0.5.1-next.1471.4e82419 → 0.5.1-next.1520.4887418
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/contract.d.ts +10 -16
- package/dist/contract.d.ts.map +1 -1
- package/dist/contract.js +10 -16
- package/dist/contract.js.map +1 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/dist/wgpuPipeline.js +1 -1
- package/dist/wgpuPipeline.js.map +1 -1
- package/package.json +11 -11
- package/src/wgpuPipeline.test.ts +1 -1
- package/src/wgpuRenderState.test.ts +10 -10
package/README.md
CHANGED
|
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/render-wgpu`. The `@
|
|
|
13
13
|
This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
|
|
14
14
|
|
|
15
15
|
- [Flight project](https://github.com/flighthq/flight)
|
|
16
|
-
- [Source for @flighthq/render-wgpu@0.5.1-next.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/render-wgpu@0.5.1-next.1520.4887418](https://github.com/flighthq/flight/tree/4887418ca29a53ac811258c3112aead6594c343f/packages/render-wgpu)
|
|
17
|
+
- [License](https://github.com/flighthq/flight/blob/4887418ca29a53ac811258c3112aead6594c343f/LICENSE.md)
|
package/dist/contract.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
export * from './enableWgpuTextureResolverGuards';
|
|
2
|
+
export * from './explainWgpuTextureResolution';
|
|
1
3
|
export * from './wgpuAdapterCapabilities';
|
|
2
|
-
export * from './wgpuFrame';
|
|
3
4
|
export * from './wgpuCompressedTexture';
|
|
4
5
|
export * from './wgpuDeviceLoss';
|
|
5
6
|
export * from './wgpuDraw';
|
|
7
|
+
export * from './wgpuExternalImageSource';
|
|
6
8
|
export * from './wgpuExternalTexture';
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './explainWgpuTextureResolution';
|
|
9
|
+
export * from './wgpuFrame';
|
|
9
10
|
export * from './wgpuFullscreenPass';
|
|
10
|
-
export * from './
|
|
11
|
+
export * from './wgpuHost';
|
|
11
12
|
export * from './wgpuMaterialRegistry';
|
|
12
13
|
export * from './wgpuMipmap';
|
|
13
14
|
export * from './wgpuPipeline';
|
|
@@ -18,21 +19,14 @@ export * from './wgpuRenderTargetPool';
|
|
|
18
19
|
export * from './wgpuRenderTexture';
|
|
19
20
|
export * from './wgpuRenderTexturePool';
|
|
20
21
|
export * from './wgpuScissor';
|
|
21
|
-
export * from './wgpuShader';
|
|
22
|
-
export * from './wgpuShaderBinding';
|
|
23
|
-
export * from './wgpuShaderRegistry';
|
|
24
22
|
export * from './wgpuScreenAntialias';
|
|
25
23
|
export * from './wgpuScreenCapture';
|
|
26
24
|
export * from './wgpuScreenRenderTarget';
|
|
25
|
+
export * from './wgpuShader';
|
|
26
|
+
export * from './wgpuShaderBinding';
|
|
27
|
+
export * from './wgpuShaderRegistry';
|
|
28
|
+
export * from './wgpuTestHelper';
|
|
27
29
|
export * from './wgpuTextureRenderTarget';
|
|
28
|
-
export * from './wgpuTextureUpload';
|
|
29
30
|
export * from './wgpuTextureResolver';
|
|
30
|
-
export
|
|
31
|
-
export { initializeWgpuTextureRenderTarget } from './wgpuTextureRenderTarget';
|
|
32
|
-
export { initializeWgpuScreenRenderTarget } from './wgpuScreenRenderTarget';
|
|
33
|
-
export { initializeEmptyWgpuRenderRegistries } from './wgpuPipeline';
|
|
34
|
-
export { initializeWgpuBindGroupLayouts } from './wgpuShader';
|
|
35
|
-
export { initializeWgpuFullscreenPipeline } from './wgpuFullscreenPass';
|
|
36
|
-
export { initializeWgpuRenderTargetPool } from './wgpuRenderTargetPool';
|
|
37
|
-
export { initializeWgpuRenderTexturePool } from './wgpuRenderTexturePool';
|
|
31
|
+
export * from './wgpuTextureUpload';
|
|
38
32
|
//# 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,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC"}
|
package/dist/contract.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
export * from './enableWgpuTextureResolverGuards';
|
|
2
|
+
export * from './explainWgpuTextureResolution';
|
|
1
3
|
export * from './wgpuAdapterCapabilities';
|
|
2
|
-
export * from './wgpuFrame';
|
|
3
4
|
export * from './wgpuCompressedTexture';
|
|
4
5
|
export * from './wgpuDeviceLoss';
|
|
5
6
|
export * from './wgpuDraw';
|
|
7
|
+
export * from './wgpuExternalImageSource';
|
|
6
8
|
export * from './wgpuExternalTexture';
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './explainWgpuTextureResolution';
|
|
9
|
+
export * from './wgpuFrame';
|
|
9
10
|
export * from './wgpuFullscreenPass';
|
|
10
|
-
export * from './
|
|
11
|
+
export * from './wgpuHost';
|
|
11
12
|
export * from './wgpuMaterialRegistry';
|
|
12
13
|
export * from './wgpuMipmap';
|
|
13
14
|
export * from './wgpuPipeline';
|
|
@@ -18,21 +19,14 @@ export * from './wgpuRenderTargetPool';
|
|
|
18
19
|
export * from './wgpuRenderTexture';
|
|
19
20
|
export * from './wgpuRenderTexturePool';
|
|
20
21
|
export * from './wgpuScissor';
|
|
21
|
-
export * from './wgpuShader';
|
|
22
|
-
export * from './wgpuShaderBinding';
|
|
23
|
-
export * from './wgpuShaderRegistry';
|
|
24
22
|
export * from './wgpuScreenAntialias';
|
|
25
23
|
export * from './wgpuScreenCapture';
|
|
26
24
|
export * from './wgpuScreenRenderTarget';
|
|
25
|
+
export * from './wgpuShader';
|
|
26
|
+
export * from './wgpuShaderBinding';
|
|
27
|
+
export * from './wgpuShaderRegistry';
|
|
28
|
+
export * from './wgpuTestHelper';
|
|
27
29
|
export * from './wgpuTextureRenderTarget';
|
|
28
|
-
export * from './wgpuTextureUpload';
|
|
29
30
|
export * from './wgpuTextureResolver';
|
|
30
|
-
export
|
|
31
|
-
export { initializeWgpuTextureRenderTarget } from './wgpuTextureRenderTarget';
|
|
32
|
-
export { initializeWgpuScreenRenderTarget } from './wgpuScreenRenderTarget';
|
|
33
|
-
export { initializeEmptyWgpuRenderRegistries } from './wgpuPipeline';
|
|
34
|
-
export { initializeWgpuBindGroupLayouts } from './wgpuShader';
|
|
35
|
-
export { initializeWgpuFullscreenPipeline } from './wgpuFullscreenPass';
|
|
36
|
-
export { initializeWgpuRenderTargetPool } from './wgpuRenderTargetPool';
|
|
37
|
-
export { initializeWgpuRenderTexturePool } from './wgpuRenderTexturePool';
|
|
31
|
+
export * from './wgpuTextureUpload';
|
|
38
32
|
//# 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,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { enableWgpuTextureResolverGuards } from './enableWgpuTextureResolverGuards';
|
|
2
|
+
export * from './explainWgpuTextureResolution';
|
|
3
|
+
export { registerWgpuCompressedTextureDecoder, registerWgpuCompressedTextureUpload } from './wgpuCompressedTexture';
|
|
4
|
+
export { disposeWgpuDeviceSignals, enableWgpuDeviceSignals, getWgpuDeviceLoss, isWgpuDeviceLost, } from './wgpuDeviceLoss';
|
|
5
|
+
export { enableWgpuBlendModeSupport } from './wgpuDraw';
|
|
6
|
+
export { createExternalWgpuTexture, disposeExternalWgpuTexture } from './wgpuExternalTexture';
|
|
7
|
+
export { beginWgpuFrame, submitWgpuFrame, withWgpuFrameBorrow } from './wgpuFrame';
|
|
8
|
+
export { registerWgpuMipmapGeneration } from './wgpuMipmap';
|
|
9
|
+
export { beginWgpuRenderPass, endWgpuRenderPass } from './wgpuRenderPass';
|
|
10
|
+
export { createWgpuAcquisition, createWgpuDeviceState, createWgpuOffscreenRenderState, createWgpuRenderState, destroyWgpuRenderState, releaseWgpuAcquisition, } from './wgpuRenderState';
|
|
11
|
+
export { destroyWgpuRenderTexture, explainWgpuRenderTexture, isWgpuRenderTextureReady, renderIntoWgpuRenderTexture, } from './wgpuRenderTexture';
|
|
12
|
+
export { acquireWgpuRenderTexture, createWgpuRenderTexturePool, destroyWgpuRenderTexturePool, releaseWgpuRenderTexture, withWgpuRenderTextures, } from './wgpuRenderTexturePool';
|
|
13
|
+
export * from './wgpuScreenAntialias';
|
|
14
|
+
export { createBitmapFromWgpuScreenRenderTarget, enableWgpuScreenRenderTargetCapture } from './wgpuScreenCapture';
|
|
15
|
+
export { createWgpuScreenRenderTarget, destroyWgpuScreenRenderTarget } from './wgpuScreenRenderTarget';
|
|
16
|
+
export { createWgpuTextureRenderTarget, destroyWgpuTextureRenderTarget } from './wgpuTextureRenderTarget';
|
|
17
|
+
export * from './wgpuTextureResolver';
|
|
2
18
|
//# 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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,oCAAoC,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AACpH,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACnF,OAAO,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,8BAA8B,EAC9B,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,yBAAyB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,sCAAsC,EAAE,mCAAmC,EAAE,MAAM,qBAAqB,CAAC;AAClH,OAAO,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACvG,OAAO,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC1G,cAAc,uBAAuB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { enableWgpuTextureResolverGuards } from './enableWgpuTextureResolverGuards';
|
|
2
|
+
export * from './explainWgpuTextureResolution';
|
|
3
|
+
export { registerWgpuCompressedTextureDecoder, registerWgpuCompressedTextureUpload } from './wgpuCompressedTexture';
|
|
4
|
+
export { disposeWgpuDeviceSignals, enableWgpuDeviceSignals, getWgpuDeviceLoss, isWgpuDeviceLost, } from './wgpuDeviceLoss';
|
|
5
|
+
export { enableWgpuBlendModeSupport } from './wgpuDraw';
|
|
6
|
+
export { createExternalWgpuTexture, disposeExternalWgpuTexture } from './wgpuExternalTexture';
|
|
7
|
+
export { beginWgpuFrame, submitWgpuFrame, withWgpuFrameBorrow } from './wgpuFrame';
|
|
8
|
+
export { registerWgpuMipmapGeneration } from './wgpuMipmap';
|
|
9
|
+
export { beginWgpuRenderPass, endWgpuRenderPass } from './wgpuRenderPass';
|
|
10
|
+
export { createWgpuAcquisition, createWgpuDeviceState, createWgpuOffscreenRenderState, createWgpuRenderState, destroyWgpuRenderState, releaseWgpuAcquisition, } from './wgpuRenderState';
|
|
11
|
+
export { destroyWgpuRenderTexture, explainWgpuRenderTexture, isWgpuRenderTextureReady, renderIntoWgpuRenderTexture, } from './wgpuRenderTexture';
|
|
12
|
+
export { acquireWgpuRenderTexture, createWgpuRenderTexturePool, destroyWgpuRenderTexturePool, releaseWgpuRenderTexture, withWgpuRenderTextures, } from './wgpuRenderTexturePool';
|
|
13
|
+
export * from './wgpuScreenAntialias';
|
|
14
|
+
export { createBitmapFromWgpuScreenRenderTarget, enableWgpuScreenRenderTargetCapture } from './wgpuScreenCapture';
|
|
15
|
+
export { createWgpuScreenRenderTarget, destroyWgpuScreenRenderTarget } from './wgpuScreenRenderTarget';
|
|
16
|
+
export { createWgpuTextureRenderTarget, destroyWgpuTextureRenderTarget } from './wgpuTextureRenderTarget';
|
|
17
|
+
export * from './wgpuTextureResolver';
|
|
2
18
|
//# 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,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,oCAAoC,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AACpH,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACnF,OAAO,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,8BAA8B,EAC9B,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,yBAAyB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,sCAAsC,EAAE,mCAAmC,EAAE,MAAM,qBAAqB,CAAC;AAClH,OAAO,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACvG,OAAO,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC1G,cAAc,uBAAuB,CAAC"}
|
package/dist/wgpuPipeline.js
CHANGED
|
@@ -18,7 +18,7 @@ export function initializeEmptyWgpuRenderRegistries(out) {
|
|
|
18
18
|
out.meshMaterialRenderers = createKeyedTable('WgpuMeshMaterialRenderer', 'StandardMaterial');
|
|
19
19
|
out.modifierSnippets = createKeyedTable('WgpuModifierSnippet', 'Unregistered');
|
|
20
20
|
out.modifierSnippetRevision = 0;
|
|
21
|
-
out.
|
|
21
|
+
out.effects = createKeyedTable('WgpuEffect', 'Unregistered');
|
|
22
22
|
out.renderers = createKeyedTable('NodeRenderer', 'Unregistered');
|
|
23
23
|
out.textureResolvers = createKeyedTable('WgpuTextureResolver', 'Unregistered');
|
|
24
24
|
out.velocityWriters = createKeyedTable('WgpuVelocityWriter', 'Unregistered');
|
package/dist/wgpuPipeline.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wgpuPipeline.js","sourceRoot":"","sources":["../src/wgpuPipeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MAAM,UAAU,iCAAiC;IAC/C,MAAM,GAAG,GAAG,EAA0B,CAAC;IACvC,mCAAmC,CAAC,GAAG,CAAC,CAAC;IACzC,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,UAAU,mCAAmC,CAAC,GAAyB;IAC3E,kGAAkG;IAClG,mGAAmG;IACnG,mEAAmE;IACnE,GAAG,CAAC,wBAAwB,GAAG,IAAI,CAAC;IACpC,GAAG,CAAC,uBAAuB,GAAG,IAAI,CAAC;IACnC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC;IACvB,GAAG,CAAC,eAAe,GAAG,IAAI,CAAC;IAC3B,GAAG,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAE7B,GAAG,CAAC,qBAAqB,GAAG,gBAAgB,CAAC,0BAA0B,EAAE,cAAc,CAAC,CAAC;IACzF,GAAG,CAAC,iBAAiB,GAAG,gBAAgB,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAAC;IACrF,GAAG,CAAC,qBAAqB,GAAG,gBAAgB,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAAC;IAC7F,GAAG,CAAC,gBAAgB,GAAG,gBAAgB,CAAC,qBAAqB,EAAE,cAAc,CAAC,CAAC;IAC/E,GAAG,CAAC,uBAAuB,GAAG,CAAC,CAAC;IAChC,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"wgpuPipeline.js","sourceRoot":"","sources":["../src/wgpuPipeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MAAM,UAAU,iCAAiC;IAC/C,MAAM,GAAG,GAAG,EAA0B,CAAC;IACvC,mCAAmC,CAAC,GAAG,CAAC,CAAC;IACzC,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,UAAU,mCAAmC,CAAC,GAAyB;IAC3E,kGAAkG;IAClG,mGAAmG;IACnG,mEAAmE;IACnE,GAAG,CAAC,wBAAwB,GAAG,IAAI,CAAC;IACpC,GAAG,CAAC,uBAAuB,GAAG,IAAI,CAAC;IACnC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC;IACvB,GAAG,CAAC,eAAe,GAAG,IAAI,CAAC;IAC3B,GAAG,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAE7B,GAAG,CAAC,qBAAqB,GAAG,gBAAgB,CAAC,0BAA0B,EAAE,cAAc,CAAC,CAAC;IACzF,GAAG,CAAC,iBAAiB,GAAG,gBAAgB,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAAC;IACrF,GAAG,CAAC,qBAAqB,GAAG,gBAAgB,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAAC;IAC7F,GAAG,CAAC,gBAAgB,GAAG,gBAAgB,CAAC,qBAAqB,EAAE,cAAc,CAAC,CAAC;IAC/E,GAAG,CAAC,uBAAuB,GAAG,CAAC,CAAC;IAChC,GAAG,CAAC,OAAO,GAAG,gBAAgB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;IAC7D,GAAG,CAAC,SAAS,GAAG,gBAAgB,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;IACjE,GAAG,CAAC,gBAAgB,GAAG,gBAAgB,CAAC,qBAAqB,EAAE,cAAc,CAAC,CAAC;IAC/E,GAAG,CAAC,eAAe,GAAG,gBAAgB,CAAC,oBAAoB,EAAE,cAAc,CAAC,CAAC;AAC/E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/render-wgpu",
|
|
3
|
-
"version": "0.5.1-next.
|
|
3
|
+
"version": "0.5.1-next.1520.4887418",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/color": "0.5.1-next.
|
|
42
|
-
"@flighthq/entity": "0.5.1-next.
|
|
43
|
-
"@flighthq/geometry": "0.5.1-next.
|
|
44
|
-
"@flighthq/log": "0.5.1-next.
|
|
45
|
-
"@flighthq/render": "0.5.1-next.
|
|
46
|
-
"@flighthq/registry": "0.5.1-next.
|
|
47
|
-
"@flighthq/signals": "0.5.1-next.
|
|
48
|
-
"@flighthq/bitmap": "0.5.1-next.
|
|
49
|
-
"@flighthq/texture": "0.5.1-next.
|
|
50
|
-
"@flighthq/types": "0.5.1-next.
|
|
41
|
+
"@flighthq/color": "0.5.1-next.1520.4887418",
|
|
42
|
+
"@flighthq/entity": "0.5.1-next.1520.4887418",
|
|
43
|
+
"@flighthq/geometry": "0.5.1-next.1520.4887418",
|
|
44
|
+
"@flighthq/log": "0.5.1-next.1520.4887418",
|
|
45
|
+
"@flighthq/render": "0.5.1-next.1520.4887418",
|
|
46
|
+
"@flighthq/registry": "0.5.1-next.1520.4887418",
|
|
47
|
+
"@flighthq/signals": "0.5.1-next.1520.4887418",
|
|
48
|
+
"@flighthq/bitmap": "0.5.1-next.1520.4887418",
|
|
49
|
+
"@flighthq/texture": "0.5.1-next.1520.4887418",
|
|
50
|
+
"@flighthq/types": "0.5.1-next.1520.4887418"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@webgpu/types": "^0.1.70"
|
package/src/wgpuPipeline.test.ts
CHANGED
|
@@ -11,7 +11,7 @@ describe('allocateEmptyWgpuRenderRegistries', () => {
|
|
|
11
11
|
expect(registries.materialRenderers.shape).toBe('keyed');
|
|
12
12
|
expect(registries.meshMaterialRenderers.shape).toBe('keyed');
|
|
13
13
|
expect(registries.modifierSnippets.shape).toBe('keyed');
|
|
14
|
-
expect(registries.
|
|
14
|
+
expect(registries.effects.shape).toBe('keyed');
|
|
15
15
|
expect(registries.shapeRasterizer).toBeNull();
|
|
16
16
|
// Opt-in: the stroke kernel's slot is allocated by enable*StrokePathTessellation, not by the
|
|
17
17
|
// pipeline, so a pipeline nobody opted in on carries no table for it.
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import { createDisplayObject } from '@flighthq/scene2d/contract';
|
|
17
17
|
import type {
|
|
18
18
|
Entity,
|
|
19
|
-
|
|
19
|
+
EffectPaddingResolver,
|
|
20
20
|
RenderRootGuard,
|
|
21
21
|
RenderState,
|
|
22
22
|
WgpuColorAdjustmentMaterialFeature,
|
|
@@ -110,16 +110,16 @@ function createWgpuOffscreenRenderState(source: WgpuRenderState): WgpuRenderStat
|
|
|
110
110
|
return state;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
function getPaddingResolver(state: RenderState, kind: string):
|
|
113
|
+
function getPaddingResolver(state: RenderState, kind: string): EffectPaddingResolver | null {
|
|
114
114
|
const table = getRenderStateRuntime(state).registries.effectPaddingResolvers;
|
|
115
115
|
return table === undefined ? null : getRegistryTableEntry(table, kind);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
function registerPaddingResolver(state: RenderState, kind: string, resolver:
|
|
118
|
+
function registerPaddingResolver(state: RenderState, kind: string, resolver: EffectPaddingResolver): void {
|
|
119
119
|
const runtime = getRenderStateRuntime(state);
|
|
120
120
|
runtime.registries.effectPaddingResolvers = withRegistryTableEntry(
|
|
121
121
|
runtime.registries.effectPaddingResolvers ??
|
|
122
|
-
createKeyedTable<
|
|
122
|
+
createKeyedTable<EffectPaddingResolver>('EffectPaddingResolver', 'Zero'),
|
|
123
123
|
kind,
|
|
124
124
|
resolver,
|
|
125
125
|
);
|
|
@@ -254,8 +254,8 @@ describe('createWgpuOffscreenRenderState', () => {
|
|
|
254
254
|
registry: 'RenderRootGuard',
|
|
255
255
|
shape: 'slot',
|
|
256
256
|
};
|
|
257
|
-
getWgpuRenderStateRuntime(screen).registries.
|
|
258
|
-
getWgpuRenderStateRuntime(screen).registries.
|
|
257
|
+
getWgpuRenderStateRuntime(screen).registries.effects = withRegistryTableEntry(
|
|
258
|
+
getWgpuRenderStateRuntime(screen).registries.effects,
|
|
259
259
|
'acme.Effect',
|
|
260
260
|
{ runner: effectRunner },
|
|
261
261
|
);
|
|
@@ -321,7 +321,7 @@ describe('createWgpuOffscreenRenderState', () => {
|
|
|
321
321
|
expect(offscreenRuntime.registries.meshMaterialRenderers).toBe(screenRuntime.registries.meshMaterialRenderers);
|
|
322
322
|
expect(offscreenRuntime.registries.modifierSnippets).toBe(screenRuntime.registries.modifierSnippets);
|
|
323
323
|
expect(offscreenRuntime.registries.modifierSnippetRevision).toBe(screenRuntime.registries.modifierSnippetRevision);
|
|
324
|
-
expect(offscreenRuntime.registries.
|
|
324
|
+
expect(offscreenRuntime.registries.effects).toBe(screenRuntime.registries.effects);
|
|
325
325
|
expect(offscreenRuntime.registries.shapeRasterizer).toBe(screenRuntime.registries.shapeRasterizer);
|
|
326
326
|
expect(offscreenRuntime.registries.strokeTessellator).toBe(screenRuntime.registries.strokeTessellator);
|
|
327
327
|
expect(offscreenRuntime.registries.textureResolvers).toBe(screenRuntime.registries.textureResolvers);
|
|
@@ -332,7 +332,7 @@ describe('createWgpuOffscreenRenderState', () => {
|
|
|
332
332
|
materialRenderer,
|
|
333
333
|
);
|
|
334
334
|
expect(getRegistryTableEntry(offscreenRuntime.registries.textureResolvers, 'acme.Texture')).toBe(textureResolver);
|
|
335
|
-
expect(getRegistryTableEntry(offscreenRuntime.registries.
|
|
335
|
+
expect(getRegistryTableEntry(offscreenRuntime.registries.effects, 'acme.Effect')).toEqual({
|
|
336
336
|
runner: effectRunner,
|
|
337
337
|
});
|
|
338
338
|
expect(getPaddingResolver(offscreen, 'acme.Effect')).toBe(paddingResolver);
|
|
@@ -527,9 +527,9 @@ describe('createWgpuRenderStateRuntime', () => {
|
|
|
527
527
|
});
|
|
528
528
|
expect(runtime.registries.modifierSnippets.entries.size).toBe(0);
|
|
529
529
|
expect(runtime.registries.modifierSnippetRevision).toBe(0);
|
|
530
|
-
expect(runtime.registries.
|
|
530
|
+
expect(runtime.registries.effects).toMatchObject({
|
|
531
531
|
onMiss: 'Unregistered',
|
|
532
|
-
registry: '
|
|
532
|
+
registry: 'WgpuEffect',
|
|
533
533
|
shape: 'keyed',
|
|
534
534
|
});
|
|
535
535
|
expect(runtime.registries.compressedTextureDecoder).toBeNull();
|