@flighthq/render-wgpu 0.5.1-next.1404.457d1da → 0.5.1-next.1410.b534771

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.1404.457d1da](https://github.com/flighthq/flight/tree/457d1da918a60be5853b84eb6c25530a66662cef/packages/render-wgpu)
17
- - [License](https://github.com/flighthq/flight/blob/457d1da918a60be5853b84eb6c25530a66662cef/LICENSE.md)
16
+ - [Source for @flighthq/render-wgpu@0.5.1-next.1410.b534771](https://github.com/flighthq/flight/tree/b53477179b2672048eb54d134f94ee8af050d130/packages/render-wgpu)
17
+ - [License](https://github.com/flighthq/flight/blob/b53477179b2672048eb54d134f94ee8af050d130/LICENSE.md)
@@ -1,5 +1,5 @@
1
1
  import type { EntityConstruction, HostWgpuCapability, TextureWrap, WgpuColorAdjustmentMaterialFeature, WgpuColorAdjustmentMaterialFeatureGuard, WgpuDeviceRuntime, WgpuDeviceRuntimeResources, WgpuDeviceState, WgpuHostAcquisition, WgpuHostAcquisitionOptions, WgpuOffscreenRenderStateResult, WgpuPipeline, WgpuRenderOptions, WgpuRenderState, WgpuRenderStateRuntime, WgpuScreenSurface } from '@flighthq/types/contract';
2
- export declare function createWgpuAcquisition(wgpuHost: Readonly<HostWgpuCapability>, surface: WgpuScreenSurface, options?: Readonly<WgpuHostAcquisitionOptions>): Promise<WgpuHostAcquisition | null>;
2
+ export declare function createWgpuAcquisition(hostWgpu: Readonly<HostWgpuCapability>, surface: WgpuScreenSurface, options?: Readonly<WgpuHostAcquisitionOptions>): Promise<WgpuHostAcquisition | null>;
3
3
  export declare function createWgpuDeviceState(device: GPUDevice): WgpuDeviceState;
4
4
  /**
5
5
  * Creates a device-only render state with its own frame-local resources.
@@ -27,9 +27,9 @@ export declare function initializeWgpuOffscreenRenderStateDeviceLostResult(out:
27
27
  export declare function initializeWgpuOffscreenRenderStateOkResult(out: EntityConstruction<Extract<WgpuOffscreenRenderStateResult, {
28
28
  reason: 'ok';
29
29
  }>>, state: WgpuRenderState): void;
30
- export declare function isWgpuSupported(wgpuHost: Readonly<HostWgpuCapability>): boolean;
30
+ export declare function isWgpuSupported(hostWgpu: Readonly<HostWgpuCapability>): boolean;
31
31
  export declare function registerWgpuDeviceTeardown(state: WgpuRenderState, teardown: (device: GPUDevice) => void): void;
32
32
  export declare function registerWgpuRenderStateTeardown(state: WgpuRenderState, teardown: (state: WgpuRenderState) => void): void;
33
- export declare function releaseWgpuAcquisition(wgpuHost: Readonly<HostWgpuCapability>, acquisition: Readonly<WgpuHostAcquisition>): void;
33
+ export declare function releaseWgpuAcquisition(hostWgpu: Readonly<HostWgpuCapability>, acquisition: Readonly<WgpuHostAcquisition>): void;
34
34
  export declare function resolveWgpuApplyBlendMode(state: WgpuRenderState): WgpuRenderState['applyBlendMode'];
35
35
  //# sourceMappingURL=wgpuRenderState.d.ts.map
@@ -12,9 +12,9 @@ const RING_SLOT_COUNT = 4096;
12
12
  // ends their life with `releaseWgpuAcquisition`, and a state built on them leaves them intact when it is
13
13
  // destroyed. Returns `null` rather than throwing, because "this environment has no WebGPU" is an expected
14
14
  // outcome and not a programmer error.
15
- export async function createWgpuAcquisition(wgpuHost, surface, options = {}) {
15
+ export async function createWgpuAcquisition(hostWgpu, surface, options = {}) {
16
16
  try {
17
- const acquired = await wgpuHost.acquire(surface, options);
17
+ const acquired = await hostWgpu.acquire(surface, options);
18
18
  const out = allocateEntity();
19
19
  initializeWgpuHostAcquisition(out, acquired, 'caller');
20
20
  return finishEntity(out);
@@ -280,8 +280,8 @@ export function initializeWgpuOffscreenRenderStateOkResult(out, state) {
280
280
  out.reason = 'ok';
281
281
  out.state = state;
282
282
  }
283
- export function isWgpuSupported(wgpuHost) {
284
- return wgpuHost.isSupported();
283
+ export function isWgpuSupported(hostWgpu) {
284
+ return hostWgpu.isSupported();
285
285
  }
286
286
  export function registerWgpuDeviceTeardown(state, teardown) {
287
287
  getWgpuRenderStateRuntime(state).context.teardowns.push(teardown);
@@ -319,8 +319,8 @@ function ensureWgpuDeviceRuntimeResources(runtime) {
319
319
  });
320
320
  }
321
321
  // The caller's own teardown for an acquisition they own. Unconditional by design: the caller is asking.
322
- export function releaseWgpuAcquisition(wgpuHost, acquisition) {
323
- wgpuHost.release(acquisition);
322
+ export function releaseWgpuAcquisition(hostWgpu, acquisition) {
323
+ hostWgpu.release(acquisition);
324
324
  }
325
325
  function createMinimalDeviceRuntime(device) {
326
326
  const runtime = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flighthq/render-wgpu",
3
- "version": "0.5.1-next.1404.457d1da",
3
+ "version": "0.5.1-next.1410.b534771",
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.1404.457d1da",
42
- "@flighthq/entity": "0.5.1-next.1404.457d1da",
43
- "@flighthq/geometry": "0.5.1-next.1404.457d1da",
44
- "@flighthq/log": "0.5.1-next.1404.457d1da",
45
- "@flighthq/render": "0.5.1-next.1404.457d1da",
46
- "@flighthq/registry": "0.5.1-next.1404.457d1da",
47
- "@flighthq/signals": "0.5.1-next.1404.457d1da",
48
- "@flighthq/bitmap": "0.5.1-next.1404.457d1da",
49
- "@flighthq/texture": "0.5.1-next.1404.457d1da",
50
- "@flighthq/types": "0.5.1-next.1404.457d1da"
41
+ "@flighthq/color": "0.5.1-next.1410.b534771",
42
+ "@flighthq/entity": "0.5.1-next.1410.b534771",
43
+ "@flighthq/geometry": "0.5.1-next.1410.b534771",
44
+ "@flighthq/log": "0.5.1-next.1410.b534771",
45
+ "@flighthq/render": "0.5.1-next.1410.b534771",
46
+ "@flighthq/registry": "0.5.1-next.1410.b534771",
47
+ "@flighthq/signals": "0.5.1-next.1410.b534771",
48
+ "@flighthq/bitmap": "0.5.1-next.1410.b534771",
49
+ "@flighthq/texture": "0.5.1-next.1410.b534771",
50
+ "@flighthq/types": "0.5.1-next.1410.b534771"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@webgpu/types": "^0.1.70"