@flighthq/effects-wgpu 0.5.1-next.903.f434bc2 → 0.5.1-next.905.5fbf787
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
CHANGED
|
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/effects-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/effects-wgpu@0.5.1-next.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/effects-wgpu@0.5.1-next.905.5fbf787](https://github.com/flighthq/flight/tree/5fbf7874064c384307542d68b4dcb6a895ff0dcf/packages/effects-wgpu)
|
|
17
|
+
- [License](https://github.com/flighthq/flight/blob/5fbf7874064c384307542d68b4dcb6a895ff0dcf/LICENSE.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/effects-wgpu",
|
|
3
|
-
"version": "0.5.1-next.
|
|
3
|
+
"version": "0.5.1-next.905.5fbf787",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/adjustments": "0.5.1-next.
|
|
42
|
-
"@flighthq/color": "0.5.1-next.
|
|
43
|
-
"@flighthq/effects": "0.5.1-next.
|
|
44
|
-
"@flighthq/entity": "0.5.1-next.
|
|
45
|
-
"@flighthq/geometry": "0.5.1-next.
|
|
46
|
-
"@flighthq/log": "0.5.1-next.
|
|
47
|
-
"@flighthq/render-wgpu": "0.5.1-next.
|
|
48
|
-
"@flighthq/registry": "0.5.1-next.
|
|
49
|
-
"@flighthq/types": "0.5.1-next.
|
|
41
|
+
"@flighthq/adjustments": "0.5.1-next.905.5fbf787",
|
|
42
|
+
"@flighthq/color": "0.5.1-next.905.5fbf787",
|
|
43
|
+
"@flighthq/effects": "0.5.1-next.905.5fbf787",
|
|
44
|
+
"@flighthq/entity": "0.5.1-next.905.5fbf787",
|
|
45
|
+
"@flighthq/geometry": "0.5.1-next.905.5fbf787",
|
|
46
|
+
"@flighthq/log": "0.5.1-next.905.5fbf787",
|
|
47
|
+
"@flighthq/render-wgpu": "0.5.1-next.905.5fbf787",
|
|
48
|
+
"@flighthq/registry": "0.5.1-next.905.5fbf787",
|
|
49
|
+
"@flighthq/types": "0.5.1-next.905.5fbf787"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@webgpu/types": "^0.1.70"
|
|
@@ -5,9 +5,10 @@ import type { BitmapDisplacementEffect, Texture2D, WgpuRenderState, WgpuRenderTa
|
|
|
5
5
|
import { ImageChannel } from '@flighthq/types/contract';
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
|
-
applyBitmapDisplacementEffectToWgpu,
|
|
9
8
|
BITMAP_DISPLACEMENT_FRAGMENT_WGSL,
|
|
9
|
+
applyBitmapDisplacementEffectToWgpu,
|
|
10
10
|
defaultWgpuBitmapDisplacementEffectRunner,
|
|
11
|
+
initializeWgpuEffectPipeline,
|
|
11
12
|
isWgpuBitmapDisplacementEffectResolvable,
|
|
12
13
|
registerWgpuBitmapDisplacementEffect,
|
|
13
14
|
} from './wgpuBitmapDisplacementEffect';
|
|
@@ -152,6 +153,12 @@ describe('defaultWgpuBitmapDisplacementEffectRunner', () => {
|
|
|
152
153
|
});
|
|
153
154
|
});
|
|
154
155
|
|
|
156
|
+
describe('initializeWgpuEffectPipeline', () => {
|
|
157
|
+
it('is the construction initializer of createWgpuEffectPipeline', () => {
|
|
158
|
+
expect(typeof initializeWgpuEffectPipeline).toBe('function');
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
|
|
155
162
|
describe('isWgpuBitmapDisplacementEffectResolvable', () => {
|
|
156
163
|
it('exposes the missing-map sentinel', () => {
|
|
157
164
|
expect(isWgpuBitmapDisplacementEffectResolvable(state, effect())).toBe(true);
|
|
@@ -160,7 +167,6 @@ describe('isWgpuBitmapDisplacementEffectResolvable', () => {
|
|
|
160
167
|
expect(isWgpuBitmapDisplacementEffectResolvable(state, effect())).toBe(false);
|
|
161
168
|
});
|
|
162
169
|
});
|
|
163
|
-
|
|
164
170
|
describe('registerWgpuBitmapDisplacementEffect', () => {
|
|
165
171
|
it('registers both the runner and per-instance map resolver', async () => {
|
|
166
172
|
const registeredState = await createWgpuRenderStateForTest();
|
|
@@ -2,13 +2,15 @@ import * as renderWgpuContract from '@flighthq/render-wgpu/contract';
|
|
|
2
2
|
import type { WgpuRenderState, WgpuRenderTarget } from '@flighthq/types/contract';
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
|
+
EFFECT_VERTEX_WGSL,
|
|
5
6
|
clearWgpuEffectTarget,
|
|
6
7
|
createWgpuDualSourceEffectPipeline,
|
|
7
8
|
createWgpuEffectPipeline,
|
|
8
9
|
drawWgpuDualSourceEffectPass,
|
|
9
10
|
drawWgpuEffectPass,
|
|
10
|
-
EFFECT_VERTEX_WGSL,
|
|
11
11
|
getWgpuEffectPassState,
|
|
12
|
+
initializeWgpuDualSourceEffectPipeline,
|
|
13
|
+
initializeWgpuEffectPipeline,
|
|
12
14
|
} from './wgpuEffectPass';
|
|
13
15
|
|
|
14
16
|
let runtimeMockCurrent: unknown = null;
|
|
@@ -347,3 +349,14 @@ describe('getWgpuEffectPassState', () => {
|
|
|
347
349
|
);
|
|
348
350
|
});
|
|
349
351
|
});
|
|
352
|
+
describe('initializeWgpuDualSourceEffectPipeline', () => {
|
|
353
|
+
it('is the construction initializer of createWgpuDualSourceEffectPipeline', () => {
|
|
354
|
+
expect(typeof initializeWgpuDualSourceEffectPipeline).toBe('function');
|
|
355
|
+
});
|
|
356
|
+
});
|
|
357
|
+
|
|
358
|
+
describe('initializeWgpuEffectPipeline', () => {
|
|
359
|
+
it('is the construction initializer of createWgpuEffectPipeline', () => {
|
|
360
|
+
expect(typeof initializeWgpuEffectPipeline).toBe('function');
|
|
361
|
+
});
|
|
362
|
+
});
|
|
@@ -9,8 +9,9 @@ import {
|
|
|
9
9
|
createWgpuRenderEffectPipeline,
|
|
10
10
|
destroyWgpuRenderEffectPipeline,
|
|
11
11
|
endWgpuRenderEffectPipeline,
|
|
12
|
-
|
|
12
|
+
initializeWgpuRenderEffectPipeline,
|
|
13
13
|
setWgpuRenderEffectPipelineSampleCountGuard,
|
|
14
|
+
setWgpuRenderEffectPipelineSkipGuard,
|
|
14
15
|
setWgpuRenderEffectVelocityTexture,
|
|
15
16
|
} from './wgpuRenderEffectPipeline';
|
|
16
17
|
|
|
@@ -235,6 +236,12 @@ describe('endWgpuRenderEffectPipeline', () => {
|
|
|
235
236
|
});
|
|
236
237
|
});
|
|
237
238
|
|
|
239
|
+
describe('initializeWgpuRenderEffectPipeline', () => {
|
|
240
|
+
it('is the construction initializer of createWgpuRenderEffectPipeline', () => {
|
|
241
|
+
expect(typeof initializeWgpuRenderEffectPipeline).toBe('function');
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
|
|
238
245
|
describe('setWgpuRenderEffectPipelineSkipGuard', () => {
|
|
239
246
|
it('reports every effect kind the pass drops, and goes silent again when cleared', async () => {
|
|
240
247
|
const state = await createWgpuRenderStateForTest();
|
|
@@ -265,7 +272,6 @@ describe('setWgpuRenderEffectPipelineSkipGuard', () => {
|
|
|
265
272
|
expect(dropped).toEqual(['test.wgpu-pipeline-skip-seam']);
|
|
266
273
|
});
|
|
267
274
|
});
|
|
268
|
-
|
|
269
275
|
describe('setWgpuRenderEffectVelocityTexture', () => {
|
|
270
276
|
it('sets the velocity texture on the pipeline', () => {
|
|
271
277
|
const _pipeline = allocateEntity<any>();
|