@flighthq/render-wgpu 0.5.1-next.1505.5790c72 → 0.5.1-next.1523.c47f79f

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/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.1505.5790c72](https://github.com/flighthq/flight/tree/5790c722bf2e004f1af3f1d1f9a8fa7469a0a449/packages/render-wgpu)
17
- - [License](https://github.com/flighthq/flight/blob/5790c722bf2e004f1af3f1d1f9a8fa7469a0a449/LICENSE.md)
16
+ - [Source for @flighthq/render-wgpu@0.5.1-next.1523.c47f79f](https://github.com/flighthq/flight/tree/c47f79f8248faeab7069d097e2c2bd6a94e053a9/packages/render-wgpu)
17
+ - [License](https://github.com/flighthq/flight/blob/c47f79f8248faeab7069d097e2c2bd6a94e053a9/LICENSE.md)
@@ -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.renderEffects = createKeyedTable('WgpuRenderEffect', 'Unregistered');
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');
@@ -1 +1 @@
1
- {"version":3,"file":"wgpuPipeline.js","sourceRoot":"","sources":["../src/wgpuPipeline.ts"],"names":[],"mappings":"AAAA,OAAO,EA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 +1,6 @@
1
1
  {
2
2
  "name": "@flighthq/render-wgpu",
3
- "version": "0.5.1-next.1505.5790c72",
3
+ "version": "0.5.1-next.1523.c47f79f",
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.1505.5790c72",
42
- "@flighthq/entity": "0.5.1-next.1505.5790c72",
43
- "@flighthq/geometry": "0.5.1-next.1505.5790c72",
44
- "@flighthq/log": "0.5.1-next.1505.5790c72",
45
- "@flighthq/render": "0.5.1-next.1505.5790c72",
46
- "@flighthq/registry": "0.5.1-next.1505.5790c72",
47
- "@flighthq/signals": "0.5.1-next.1505.5790c72",
48
- "@flighthq/bitmap": "0.5.1-next.1505.5790c72",
49
- "@flighthq/texture": "0.5.1-next.1505.5790c72",
50
- "@flighthq/types": "0.5.1-next.1505.5790c72"
41
+ "@flighthq/color": "0.5.1-next.1523.c47f79f",
42
+ "@flighthq/entity": "0.5.1-next.1523.c47f79f",
43
+ "@flighthq/geometry": "0.5.1-next.1523.c47f79f",
44
+ "@flighthq/log": "0.5.1-next.1523.c47f79f",
45
+ "@flighthq/render": "0.5.1-next.1523.c47f79f",
46
+ "@flighthq/registry": "0.5.1-next.1523.c47f79f",
47
+ "@flighthq/signals": "0.5.1-next.1523.c47f79f",
48
+ "@flighthq/bitmap": "0.5.1-next.1523.c47f79f",
49
+ "@flighthq/texture": "0.5.1-next.1523.c47f79f",
50
+ "@flighthq/types": "0.5.1-next.1523.c47f79f"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@webgpu/types": "^0.1.70"
@@ -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.renderEffects.shape).toBe('keyed');
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
- RenderEffectPaddingResolver,
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): RenderEffectPaddingResolver | null {
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: RenderEffectPaddingResolver): void {
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<RenderEffectPaddingResolver>('RenderEffectPaddingResolver', 'Zero'),
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.renderEffects = withRegistryTableEntry(
258
- getWgpuRenderStateRuntime(screen).registries.renderEffects,
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.renderEffects).toBe(screenRuntime.registries.renderEffects);
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.renderEffects, 'acme.Effect')).toEqual({
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.renderEffects).toMatchObject({
530
+ expect(runtime.registries.effects).toMatchObject({
531
531
  onMiss: 'Unregistered',
532
- registry: 'WgpuRenderEffect',
532
+ registry: 'WgpuEffect',
533
533
  shape: 'keyed',
534
534
  });
535
535
  expect(runtime.registries.compressedTextureDecoder).toBeNull();