@vgpu/core 0.0.5 → 0.0.7
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 +27 -2
- package/dist/bind.d.ts +40 -0
- package/dist/bind.d.ts.map +1 -0
- package/dist/bind.js +112 -0
- package/dist/bind.js.map +1 -0
- package/dist/device.d.ts +2 -0
- package/dist/device.d.ts.map +1 -1
- package/dist/device.js +6 -0
- package/dist/device.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/mockGpu.d.ts +17 -0
- package/dist/mockGpu.d.ts.map +1 -1
- package/dist/mockGpu.js +113 -10
- package/dist/mockGpu.js.map +1 -1
- package/dist/texture.d.ts +3 -0
- package/dist/texture.d.ts.map +1 -1
- package/dist/texture.js +13 -2
- package/dist/texture.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.d.ts +6 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/Device.docs.md +28 -0
- package/src/Texture.docs.md +43 -5
- package/src/bind.docs.md +79 -0
- package/src/createMockGPUDevice.docs.md +4 -0
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @vgpu/core
|
|
2
2
|
|
|
3
|
-
> 0.0.
|
|
3
|
+
> 0.0.7 — early preview
|
|
4
4
|
|
|
5
|
-
`@vgpu/core` is the runtime foundation for vgpu. It gives you a small wrapper layer around WebGPU devices, queues, buffers, textures, and shader modules, plus an `App.create()` entry point that asks an adapter for a device and returns a compact app instance. In 0.0.
|
|
5
|
+
`@vgpu/core` is the runtime foundation for vgpu. It gives you a small wrapper layer around WebGPU devices, queues, buffers, textures, and shader modules, plus an `App.create()` entry point that asks an adapter for a device and returns a compact app instance. In 0.0.7 the goal is portability and a minimal public surface, not a fully opinionated engine.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -23,6 +23,11 @@ pnpm add @vgpu/core
|
|
|
23
23
|
- `ValidationError`
|
|
24
24
|
|
|
25
25
|
### Functions
|
|
26
|
+
- `bind`
|
|
27
|
+
- `createBindGroupLayout`
|
|
28
|
+
- `createPipelineLayout`
|
|
29
|
+
- `createBindGroup`
|
|
30
|
+
- `createSampler`
|
|
26
31
|
- `createMockGPUDevice`
|
|
27
32
|
|
|
28
33
|
### Types
|
|
@@ -35,6 +40,11 @@ pnpm add @vgpu/core
|
|
|
35
40
|
- `TextureOptions`
|
|
36
41
|
- `TextureUsageName`
|
|
37
42
|
- `CreateDeviceOptions`
|
|
43
|
+
- `BindVisibility`
|
|
44
|
+
- `CreateBindGroupLayoutOptions`
|
|
45
|
+
- `CreatePipelineLayoutOptions`
|
|
46
|
+
- `CreateBindGroupOptions`
|
|
47
|
+
- `DeviceLike`
|
|
38
48
|
- `ShaderInput`
|
|
39
49
|
|
|
40
50
|
## Usage
|
|
@@ -55,6 +65,21 @@ const copy = new Float32Array(await buffer.read(data.byteLength));
|
|
|
55
65
|
device.destroy();
|
|
56
66
|
```
|
|
57
67
|
|
|
68
|
+
Explicit binding helpers keep layout control in user code without WGSL reflection or
|
|
69
|
+
`layout: "auto"`:
|
|
70
|
+
|
|
71
|
+
```ts
|
|
72
|
+
import { bind, createBindGroupLayout } from "@vgpu/core";
|
|
73
|
+
|
|
74
|
+
const sceneLayout = createBindGroupLayout(device, {
|
|
75
|
+
entries: [bind.uniform(0, "vertex|fragment")],
|
|
76
|
+
});
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
The `.gpu` property is an unmanaged raw WebGPU escape hatch for APIs that VGPU
|
|
80
|
+
does not wrap yet. Prefer wrapper lifecycle methods (`buffer.destroy()`,
|
|
81
|
+
`texture.destroy()`, `device.destroy()`) instead of destroying `.gpu` directly.
|
|
82
|
+
|
|
58
83
|
## License
|
|
59
84
|
|
|
60
85
|
MIT.
|
package/dist/bind.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Device } from "./device.ts";
|
|
2
|
+
export type BindVisibility = GPUShaderStageFlags | string | readonly ("vertex" | "fragment" | "compute")[];
|
|
3
|
+
export type DeviceLike = GPUDevice | Device | {
|
|
4
|
+
readonly gpu: GPUDevice;
|
|
5
|
+
};
|
|
6
|
+
export interface CreateBindGroupLayoutOptions {
|
|
7
|
+
readonly label?: string;
|
|
8
|
+
readonly entries: readonly GPUBindGroupLayoutEntry[];
|
|
9
|
+
}
|
|
10
|
+
export interface CreatePipelineLayoutOptions {
|
|
11
|
+
readonly label?: string;
|
|
12
|
+
readonly bindGroups: readonly GPUBindGroupLayout[];
|
|
13
|
+
}
|
|
14
|
+
export interface CreateBindGroupOptions {
|
|
15
|
+
readonly label?: string;
|
|
16
|
+
readonly layout: GPUBindGroupLayout;
|
|
17
|
+
readonly entries: readonly GPUBindGroupEntry[];
|
|
18
|
+
}
|
|
19
|
+
export declare function createBindGroupLayout(device: DeviceLike, opts: CreateBindGroupLayoutOptions): GPUBindGroupLayout;
|
|
20
|
+
export declare function createPipelineLayout(device: DeviceLike, opts: CreatePipelineLayoutOptions): GPUPipelineLayout;
|
|
21
|
+
export declare function createBindGroup(device: DeviceLike, opts: CreateBindGroupOptions): GPUBindGroup;
|
|
22
|
+
export declare function createSampler(device: DeviceLike, descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
23
|
+
export declare const bind: {
|
|
24
|
+
readonly uniform: typeof uniform;
|
|
25
|
+
readonly storage: typeof storage;
|
|
26
|
+
readonly readonlyStorage: typeof readonlyStorage;
|
|
27
|
+
readonly texture: typeof texture;
|
|
28
|
+
readonly storageTexture: typeof storageTexture;
|
|
29
|
+
readonly sampler: typeof sampler;
|
|
30
|
+
readonly resource: typeof resource;
|
|
31
|
+
};
|
|
32
|
+
declare function uniform(binding: number, visibility: BindVisibility, opts?: Omit<GPUBufferBindingLayout, "type">): GPUBindGroupLayoutEntry;
|
|
33
|
+
declare function storage(binding: number, visibility: BindVisibility, opts?: Omit<GPUBufferBindingLayout, "type">): GPUBindGroupLayoutEntry;
|
|
34
|
+
declare function readonlyStorage(binding: number, visibility: BindVisibility, opts?: Omit<GPUBufferBindingLayout, "type">): GPUBindGroupLayoutEntry;
|
|
35
|
+
declare function texture(binding: number, visibility: BindVisibility, opts?: GPUTextureBindingLayout): GPUBindGroupLayoutEntry;
|
|
36
|
+
declare function storageTexture(binding: number, visibility: BindVisibility, opts: GPUStorageTextureBindingLayout): GPUBindGroupLayoutEntry;
|
|
37
|
+
declare function sampler(binding: number, visibility: BindVisibility, opts?: GPUSamplerBindingLayout): GPUBindGroupLayoutEntry;
|
|
38
|
+
declare function resource(binding: number, value: unknown): GPUBindGroupEntry;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=bind.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bind.d.ts","sourceRoot":"","sources":["../src/bind.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAIrC,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG,MAAM,GAAG,SAAS,CAAC,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC,EAAE,CAAC;AAC3G,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAA;CAAE,CAAC;AAE1E,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,SAAS,uBAAuB,EAAE,CAAC;CACtD;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACpD;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACx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AAE,cAAc,EAAE,IAAI,GAAE,uBAA4B,GAAG,uBAAuB,CAEzH;AAED,iBAAS,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,iBAAiB,CAEpE"}
|
package/dist/bind.js
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Buffer } from "./buffer.js";
|
|
2
|
+
import { Device } from "./device.js";
|
|
3
|
+
import { ValidationError } from "./errors.js";
|
|
4
|
+
import { Texture } from "./texture.js";
|
|
5
|
+
export function createBindGroupLayout(device, opts) {
|
|
6
|
+
return unwrapDevice(device).createBindGroupLayout({ label: opts.label, entries: [...opts.entries] });
|
|
7
|
+
}
|
|
8
|
+
export function createPipelineLayout(device, opts) {
|
|
9
|
+
return unwrapDevice(device).createPipelineLayout({ label: opts.label, bindGroupLayouts: [...opts.bindGroups] });
|
|
10
|
+
}
|
|
11
|
+
export function createBindGroup(device, opts) {
|
|
12
|
+
if (!opts.layout) {
|
|
13
|
+
throw new ValidationError({
|
|
14
|
+
code: "VGPU-CORE-BIND-GROUP-LAYOUT-REQUIRED",
|
|
15
|
+
message: "createBindGroup requires an explicit layout. vgpu does not use layout: \"auto\" for bind groups.",
|
|
16
|
+
where: "createBindGroup",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return unwrapDevice(device).createBindGroup({ label: opts.label, layout: opts.layout, entries: [...opts.entries] });
|
|
20
|
+
}
|
|
21
|
+
export function createSampler(device, descriptor = {}) {
|
|
22
|
+
return unwrapDevice(device).createSampler(descriptor);
|
|
23
|
+
}
|
|
24
|
+
export const bind = {
|
|
25
|
+
uniform,
|
|
26
|
+
storage,
|
|
27
|
+
readonlyStorage,
|
|
28
|
+
texture,
|
|
29
|
+
storageTexture,
|
|
30
|
+
sampler,
|
|
31
|
+
resource,
|
|
32
|
+
};
|
|
33
|
+
function uniform(binding, visibility, opts = {}) {
|
|
34
|
+
return { binding: explicitBinding(binding), visibility: visibilityFlags(visibility), buffer: { ...opts, type: "uniform" } };
|
|
35
|
+
}
|
|
36
|
+
function storage(binding, visibility, opts = {}) {
|
|
37
|
+
return { binding: explicitBinding(binding), visibility: visibilityFlags(visibility), buffer: { ...opts, type: "storage" } };
|
|
38
|
+
}
|
|
39
|
+
function readonlyStorage(binding, visibility, opts = {}) {
|
|
40
|
+
return { binding: explicitBinding(binding), visibility: visibilityFlags(visibility), buffer: { ...opts, type: "read-only-storage" } };
|
|
41
|
+
}
|
|
42
|
+
function texture(binding, visibility, opts = {}) {
|
|
43
|
+
return { binding: explicitBinding(binding), visibility: visibilityFlags(visibility), texture: opts };
|
|
44
|
+
}
|
|
45
|
+
function storageTexture(binding, visibility, opts) {
|
|
46
|
+
return { binding: explicitBinding(binding), visibility: visibilityFlags(visibility), storageTexture: opts };
|
|
47
|
+
}
|
|
48
|
+
function sampler(binding, visibility, opts = {}) {
|
|
49
|
+
return { binding: explicitBinding(binding), visibility: visibilityFlags(visibility), sampler: opts };
|
|
50
|
+
}
|
|
51
|
+
function resource(binding, value) {
|
|
52
|
+
return { binding: explicitBinding(binding), resource: unwrapBindingResource(value) };
|
|
53
|
+
}
|
|
54
|
+
function unwrapDevice(device) {
|
|
55
|
+
return device instanceof Device ? device.gpu : "gpu" in device ? device.gpu : device;
|
|
56
|
+
}
|
|
57
|
+
function unwrapBindingResource(value) {
|
|
58
|
+
if (value instanceof Buffer)
|
|
59
|
+
return { buffer: value.gpu };
|
|
60
|
+
if (value instanceof Texture)
|
|
61
|
+
return value.createView();
|
|
62
|
+
if (isVGPUTextureLike(value))
|
|
63
|
+
return value.createView();
|
|
64
|
+
if (isGPUBufferBinding(value))
|
|
65
|
+
return value;
|
|
66
|
+
if (isVGPUBufferLike(value))
|
|
67
|
+
return { buffer: value.gpu };
|
|
68
|
+
if (isRawGPUBuffer(value))
|
|
69
|
+
return { buffer: value };
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
function isGPUBufferBinding(value) {
|
|
73
|
+
return isObject(value) && "buffer" in value;
|
|
74
|
+
}
|
|
75
|
+
function isRawGPUBuffer(value) {
|
|
76
|
+
return isObject(value) && "size" in value && "usage" in value && typeof value.destroy === "function";
|
|
77
|
+
}
|
|
78
|
+
function isVGPUBufferLike(value) {
|
|
79
|
+
return isObject(value) && isRawGPUBuffer(value.gpu);
|
|
80
|
+
}
|
|
81
|
+
function isVGPUTextureLike(value) {
|
|
82
|
+
return isObject(value) && typeof value.createView === "function" && "gpu" in value;
|
|
83
|
+
}
|
|
84
|
+
function explicitBinding(binding) {
|
|
85
|
+
if (!Number.isInteger(binding) || binding < 0) {
|
|
86
|
+
throw new ValidationError({
|
|
87
|
+
code: "VGPU-CORE-BINDING-INVALID",
|
|
88
|
+
message: "Binding entries require an explicit non-negative integer binding number.",
|
|
89
|
+
where: "bind",
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
return binding;
|
|
93
|
+
}
|
|
94
|
+
function visibilityFlags(visibility) {
|
|
95
|
+
if (typeof visibility === "number")
|
|
96
|
+
return visibility;
|
|
97
|
+
const names = typeof visibility === "string" ? visibility.split(/[|,\s]+/) : visibility;
|
|
98
|
+
return names.reduce((flags, name) => flags | shaderStageFlag(name), 0);
|
|
99
|
+
}
|
|
100
|
+
function shaderStageFlag(name) {
|
|
101
|
+
const key = name.trim().toLowerCase();
|
|
102
|
+
const constants = globalThis.GPUShaderStage;
|
|
103
|
+
const flags = { vertex: constants?.VERTEX ?? 1, fragment: constants?.FRAGMENT ?? 2, compute: constants?.COMPUTE ?? 4 };
|
|
104
|
+
const flag = flags[key];
|
|
105
|
+
if (!flag)
|
|
106
|
+
throw new ValidationError({ code: "VGPU-CORE-VISIBILITY-INVALID", message: `Unknown shader stage visibility '${name}'.`, where: "bind" });
|
|
107
|
+
return flag;
|
|
108
|
+
}
|
|
109
|
+
function isObject(value) {
|
|
110
|
+
return typeof value === "object" && value !== null;
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=bind.js.map
|
package/dist/bind.js.map
ADDED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CAAC,KAAK,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAwB,CAAC;AAChG,CAAC;AAED,SAAS,eAAe,CAAC,IAAY;IACnC,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IACtC,MAAM,SAAS,GAAG,UAAU,CAAC,cAA+D,CAAC;IAC7F,MAAM,KAAK,GAA2B,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,IAAI,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,IAAI,CAAC,EAAE,CAAC;IAC/I,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;IACxB,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,eAAe,CAAC,EAAE,IAAI,EAAE,8BAA8B,EAAE,OAAO,EAAE,oCAAoC,IAAI,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IACrJ,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC;AACrD,CAAC"}
|
package/dist/device.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export declare class Device {
|
|
|
14
14
|
private readonly scopes;
|
|
15
15
|
private destroyed;
|
|
16
16
|
constructor(gpu: GPUDevice, adapterInfo?: GPUAdapterInfo | null);
|
|
17
|
+
get limits(): GPUSupportedLimits;
|
|
18
|
+
get features(): GPUSupportedFeatures;
|
|
17
19
|
createShader(input: ShaderInput): Shader;
|
|
18
20
|
createTexture(opts: TextureOptions): Texture;
|
|
19
21
|
createBuffer(opts: BufferOptions): Buffer;
|
package/dist/device.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../src/device.ts"],"names":[],"mappings":"AAC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|
|
26
|
+
}
|
|
27
|
+
get features() {
|
|
28
|
+
return this.gpu.features;
|
|
29
|
+
}
|
|
24
30
|
createShader(input) {
|
|
25
31
|
const resolved = typeof input === "string" ? compile(input) : input;
|
|
26
32
|
return new Shader(this.gpu.createShaderModule({ code: resolved.wgsl }), resolved);
|
package/dist/device.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device.js","sourceRoot":"","sources":["../src/device.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAoB,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,eAAe,EAAkB,MAAM,aAAa,CAAC;AAG9D,MAAM,OAAO,MAAM;IAOI;IAAyB;IANrC,KAAK,CAAQ;IACtB,+DAA+D;IACtD,QAAQ,CAAW;IACX,MAAM,GAAkB,EAAE,CAAC;IACpC,SAAS,GAAG,KAAK,CAAC;IAE1B,YAAqB,GAAc,EAAW,cAAqC,IAAI;QAAlE,QAAG,GAAH,GAAG,CAAW;QAAW,gBAAW,GAAX,WAAW,CAA8B;QACrF,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAClC,IAAI,CAAC,QAAQ,GAAG,IAAI,QAAQ,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;IAED,YAAY,CAAC,KAAkB;QAC7B,MAAM,QAAQ,GAAG,OAAO,K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AE,CAAC,CAAC;AACzG,CAAC;AAED,SAAS,qBAAqB,CAAC,IAAmB;IAChD,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;AACrF,CAAC;AAED,SAAS,sBAAsB,CAAC,KAAkC;IAChE,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IACxB,OAAO,IAAI,eAAe,CAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,yBAAyB,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;AACvI,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -5,8 +5,11 @@ export { Queue } from "./queue.ts";
|
|
|
5
5
|
export { Shader } from "./shader.ts";
|
|
6
6
|
export { Texture } from "./texture.ts";
|
|
7
7
|
export { VGPUError, ValidationError } from "./errors.ts";
|
|
8
|
-
export {
|
|
8
|
+
export { bind, createBindGroup, createBindGroupLayout, createPipelineLayout, createSampler } from "./bind.ts";
|
|
9
|
+
export { createMockGPUDevice, getMockGPUDeviceInstrumentation } from "./mockGpu.ts";
|
|
10
|
+
export type { MockGPUDeviceInstrumentation } from "./mockGpu.ts";
|
|
9
11
|
export type { AppCreateOptions, AppInstance, VGPUAdapter } from "./app-types.ts";
|
|
10
12
|
export type { BufferOptions, BufferUsageName, BufferWriteData, TextureOptions, TextureUsageName, CreateDeviceOptions, } from "./types.ts";
|
|
13
|
+
export type { BindVisibility, CreateBindGroupLayoutOptions, CreateBindGroupOptions, CreatePipelineLayoutOptions, DeviceLike } from "./bind.ts";
|
|
11
14
|
export type { ShaderInput } from "./shader.ts";
|
|
12
15
|
//# 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,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC9G,OAAO,EAAE,mBAAmB,EAAE,+BAA+B,EAAE,MAAM,cAAc,CAAC;AACpF,YAAY,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AACjE,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACjF,YAAY,EACV,aAAa,EACb,eAAe,EACf,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,cAAc,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/I,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -5,5 +5,6 @@ export { Queue } from "./queue.js";
|
|
|
5
5
|
export { Shader } from "./shader.js";
|
|
6
6
|
export { Texture } from "./texture.js";
|
|
7
7
|
export { VGPUError, ValidationError } from "./errors.js";
|
|
8
|
-
export {
|
|
8
|
+
export { bind, createBindGroup, createBindGroupLayout, createPipelineLayout, createSampler } from "./bind.js";
|
|
9
|
+
export { createMockGPUDevice, getMockGPUDeviceInstrumentation } from "./mockGpu.js";
|
|
9
10
|
//# 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,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC9G,OAAO,EAAE,mBAAmB,EAAE,+BAA+B,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/mockGpu.d.ts
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
export interface MockGPUDeviceInstrumentation {
|
|
2
|
+
readonly calls: {
|
|
3
|
+
createBuffer: number;
|
|
4
|
+
createBindGroup: number;
|
|
5
|
+
createCommandEncoder: number;
|
|
6
|
+
createRenderBundleEncoder: number;
|
|
7
|
+
createRenderPipeline: number;
|
|
8
|
+
createRenderPipelineAsync: number;
|
|
9
|
+
};
|
|
10
|
+
readonly createBufferDescriptors: GPUBufferDescriptor[];
|
|
11
|
+
readonly createBindGroupDescriptors: GPUBindGroupDescriptor[];
|
|
12
|
+
readonly createCommandEncoderDescriptors: GPUCommandEncoderDescriptor[];
|
|
13
|
+
readonly createRenderBundleEncoderDescriptors: GPURenderBundleEncoderDescriptor[];
|
|
14
|
+
readonly createRenderPipelineDescriptors: GPURenderPipelineDescriptor[];
|
|
15
|
+
readonly createRenderPipelineAsyncDescriptors: GPURenderPipelineDescriptor[];
|
|
16
|
+
}
|
|
1
17
|
export declare function createMockGPUDevice(): GPUDevice;
|
|
18
|
+
export declare function getMockGPUDeviceInstrumentation(device: GPUDevice): MockGPUDeviceInstrumentation;
|
|
2
19
|
export declare function mockBufferDescriptor(size: number): GPUBufferDescriptor;
|
|
3
20
|
//# sourceMappingURL=mockGpu.d.ts.map
|
package/dist/mockGpu.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mockGpu.d.ts","sourceRoot":"","sources":["../src/mockGpu.ts"],"names":[],"mappings":"AAGA,wBAAgB,mBAAmB,IAAI,SAAS,
|
|
1
|
+
{"version":3,"file":"mockGpu.d.ts","sourceRoot":"","sources":["../src/mockGpu.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,KAAK,EAAE;QACd,YAAY,EAAE,MAAM,CAAC;QACrB,eAAe,EAAE,MAAM,CAAC;QACxB,oBAAoB,EAAE,MAAM,CAAC;QAC7B,yBAAyB,EAAE,MAAM,CAAC;QAClC,oBAAoB,EAAE,MAAM,CAAC;QAC7B,yBAAyB,EAAE,MAAM,CAAC;KACnC,CAAC;IACF,QAAQ,CAAC,uBAAuB,EAAE,mBAAmB,EAAE,CAAC;IACxD,QAAQ,CAAC,0BAA0B,EAAE,sBAAsB,EAAE,CAAC;IAC9D,QAAQ,CAAC,+BAA+B,EAAE,2BAA2B,EAAE,CAAC;IACxE,QAAQ,CAAC,oCAAoC,EAAE,gCAAgC,EAAE,CAAC;IAClF,QAAQ,CAAC,+BAA+B,EAAE,2BAA2B,EAAE,CAAC;IACxE,QAAQ,CAAC,oCAAoC,EAAE,2BAA2B,EAAE,CAAC;CAC9E;AAMD,wBAAgB,mBAAmB,IAAI,SAAS,CAsF/C;AAED,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,SAAS,GAAG,4BAA4B,CAM/F;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,CAEtE"}
|
package/dist/mockGpu.js
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { bufferUsageFlags } from "./gpuConstants.js";
|
|
2
2
|
import { isMockGPUBuffer } from "./mock-gpu-storage.js";
|
|
3
|
+
const mockInstrumentationKey = "__vgpuMockInstrumentation";
|
|
3
4
|
export function createMockGPUDevice() {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
const instrumentation = createMockGPUDeviceInstrumentation();
|
|
6
|
+
const device = {
|
|
7
|
+
[mockInstrumentationKey]: instrumentation,
|
|
8
|
+
limits: createMockSupportedLimits(),
|
|
9
|
+
features: createMockSupportedFeatures(),
|
|
10
|
+
createBuffer(desc) {
|
|
11
|
+
instrumentation.calls.createBuffer += 1;
|
|
12
|
+
instrumentation.createBufferDescriptors.push(desc);
|
|
13
|
+
return createMockBuffer(desc);
|
|
14
|
+
},
|
|
6
15
|
createTexture(desc) {
|
|
7
16
|
const size = textureSize(desc.size);
|
|
8
17
|
const bytes = new Uint8Array(size.width * size.height * 4);
|
|
@@ -12,9 +21,9 @@ export function createMockGPUDevice() {
|
|
|
12
21
|
width: size.width,
|
|
13
22
|
height: size.height,
|
|
14
23
|
depthOrArrayLayers: size.depthOrArrayLayers,
|
|
15
|
-
mipLevelCount: 1,
|
|
24
|
+
mipLevelCount: desc.mipLevelCount ?? 1,
|
|
16
25
|
sampleCount: desc.sampleCount ?? 1,
|
|
17
|
-
dimension: "2d",
|
|
26
|
+
dimension: desc.dimension ?? "2d",
|
|
18
27
|
format: desc.format,
|
|
19
28
|
usage: desc.usage,
|
|
20
29
|
createView: () => ({}),
|
|
@@ -25,17 +34,46 @@ export function createMockGPUDevice() {
|
|
|
25
34
|
createShaderModule: () => ({}),
|
|
26
35
|
createBindGroupLayout: () => ({}),
|
|
27
36
|
createPipelineLayout: () => ({}),
|
|
28
|
-
createBindGroup
|
|
37
|
+
createBindGroup(desc) {
|
|
38
|
+
instrumentation.calls.createBindGroup += 1;
|
|
39
|
+
instrumentation.createBindGroupDescriptors.push(desc);
|
|
40
|
+
return {};
|
|
41
|
+
},
|
|
29
42
|
createSampler: () => ({}),
|
|
30
|
-
createRenderPipeline
|
|
31
|
-
|
|
43
|
+
createRenderPipeline(desc) {
|
|
44
|
+
instrumentation.calls.createRenderPipeline += 1;
|
|
45
|
+
instrumentation.createRenderPipelineDescriptors.push(desc);
|
|
46
|
+
return {};
|
|
47
|
+
},
|
|
48
|
+
async createRenderPipelineAsync(desc) {
|
|
49
|
+
instrumentation.calls.createRenderPipelineAsync += 1;
|
|
50
|
+
instrumentation.createRenderPipelineAsyncDescriptors.push(desc);
|
|
51
|
+
return {};
|
|
52
|
+
},
|
|
53
|
+
createRenderBundleEncoder(desc) {
|
|
54
|
+
instrumentation.calls.createRenderBundleEncoder += 1;
|
|
55
|
+
instrumentation.createRenderBundleEncoderDescriptors.push(desc);
|
|
56
|
+
return {
|
|
57
|
+
setPipeline() { },
|
|
58
|
+
setBindGroup() { },
|
|
59
|
+
setVertexBuffer() { },
|
|
60
|
+
setIndexBuffer() { },
|
|
61
|
+
draw() { },
|
|
62
|
+
drawIndexed() { },
|
|
63
|
+
finish: () => ({}),
|
|
64
|
+
// Mock render bundle encoder: only state/draw/finish methods used by render tests are implemented.
|
|
65
|
+
};
|
|
66
|
+
},
|
|
67
|
+
createCommandEncoder(desc = {}) {
|
|
68
|
+
instrumentation.calls.createCommandEncoder += 1;
|
|
69
|
+
instrumentation.createCommandEncoderDescriptors.push(desc);
|
|
32
70
|
return {
|
|
33
71
|
copyBufferToBuffer() { },
|
|
34
72
|
copyTextureToBuffer() { },
|
|
35
|
-
// Mock render pass encoder: only binding/pipeline/draw/end methods used by tests are implemented.
|
|
36
|
-
beginRenderPass: () => ({ setBindGroup() { }, setVertexBuffer() { }, setPipeline() { }, draw() { }, end() { } }),
|
|
73
|
+
// Mock render pass encoder: only binding/pipeline/draw/bundle/end methods used by tests are implemented.
|
|
74
|
+
beginRenderPass: () => ({ setBindGroup() { }, setVertexBuffer() { }, setPipeline() { }, executeBundles() { }, draw() { }, end() { } }),
|
|
37
75
|
finish: () => ({}),
|
|
38
|
-
// Mock command encoder: only copy/render/finish methods used by core are implemented.
|
|
76
|
+
// Mock command encoder: only copy/render/finish methods used by core/render are implemented.
|
|
39
77
|
};
|
|
40
78
|
},
|
|
41
79
|
destroy() { },
|
|
@@ -49,10 +87,75 @@ export function createMockGPUDevice() {
|
|
|
49
87
|
},
|
|
50
88
|
// Mock device: shape is intentionally partial but covers every member used by adapters/tests.
|
|
51
89
|
};
|
|
90
|
+
return device;
|
|
91
|
+
}
|
|
92
|
+
export function getMockGPUDeviceInstrumentation(device) {
|
|
93
|
+
const instrumentation = device[mockInstrumentationKey];
|
|
94
|
+
if (!instrumentation) {
|
|
95
|
+
throw new Error("GPUDevice was not created by createMockGPUDevice()");
|
|
96
|
+
}
|
|
97
|
+
return instrumentation;
|
|
52
98
|
}
|
|
53
99
|
export function mockBufferDescriptor(size) {
|
|
54
100
|
return { size, usage: bufferUsageFlags(["copy_src", "copy_dst"]) };
|
|
55
101
|
}
|
|
102
|
+
function createMockGPUDeviceInstrumentation() {
|
|
103
|
+
return {
|
|
104
|
+
calls: {
|
|
105
|
+
createBuffer: 0,
|
|
106
|
+
createBindGroup: 0,
|
|
107
|
+
createCommandEncoder: 0,
|
|
108
|
+
createRenderBundleEncoder: 0,
|
|
109
|
+
createRenderPipeline: 0,
|
|
110
|
+
createRenderPipelineAsync: 0,
|
|
111
|
+
},
|
|
112
|
+
createBufferDescriptors: [],
|
|
113
|
+
createBindGroupDescriptors: [],
|
|
114
|
+
createCommandEncoderDescriptors: [],
|
|
115
|
+
createRenderBundleEncoderDescriptors: [],
|
|
116
|
+
createRenderPipelineDescriptors: [],
|
|
117
|
+
createRenderPipelineAsyncDescriptors: [],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
function createMockSupportedLimits() {
|
|
121
|
+
return {
|
|
122
|
+
maxTextureDimension1D: 8192,
|
|
123
|
+
maxTextureDimension2D: 8192,
|
|
124
|
+
maxTextureDimension3D: 2048,
|
|
125
|
+
maxTextureArrayLayers: 256,
|
|
126
|
+
maxBindGroups: 4,
|
|
127
|
+
maxBindGroupsPlusVertexBuffers: 24,
|
|
128
|
+
maxBindingsPerBindGroup: 1000,
|
|
129
|
+
maxDynamicUniformBuffersPerPipelineLayout: 8,
|
|
130
|
+
maxDynamicStorageBuffersPerPipelineLayout: 4,
|
|
131
|
+
maxSampledTexturesPerShaderStage: 16,
|
|
132
|
+
maxSamplersPerShaderStage: 16,
|
|
133
|
+
maxStorageBuffersPerShaderStage: 8,
|
|
134
|
+
maxStorageTexturesPerShaderStage: 4,
|
|
135
|
+
maxUniformBuffersPerShaderStage: 12,
|
|
136
|
+
maxUniformBufferBindingSize: 65536,
|
|
137
|
+
maxStorageBufferBindingSize: 134217728,
|
|
138
|
+
minUniformBufferOffsetAlignment: 256,
|
|
139
|
+
minStorageBufferOffsetAlignment: 256,
|
|
140
|
+
maxVertexBuffers: 8,
|
|
141
|
+
maxBufferSize: 268435456,
|
|
142
|
+
maxVertexAttributes: 16,
|
|
143
|
+
maxVertexBufferArrayStride: 2048,
|
|
144
|
+
maxInterStageShaderComponents: 60,
|
|
145
|
+
maxInterStageShaderVariables: 16,
|
|
146
|
+
maxColorAttachments: 8,
|
|
147
|
+
maxColorAttachmentBytesPerSample: 32,
|
|
148
|
+
maxComputeWorkgroupStorageSize: 16384,
|
|
149
|
+
maxComputeInvocationsPerWorkgroup: 256,
|
|
150
|
+
maxComputeWorkgroupSizeX: 256,
|
|
151
|
+
maxComputeWorkgroupSizeY: 256,
|
|
152
|
+
maxComputeWorkgroupSizeZ: 64,
|
|
153
|
+
maxComputeWorkgroupsPerDimension: 65535,
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
function createMockSupportedFeatures() {
|
|
157
|
+
return new Set();
|
|
158
|
+
}
|
|
56
159
|
function createMockBuffer(desc) {
|
|
57
160
|
const bytes = new Uint8Array(Number(desc.size));
|
|
58
161
|
return {
|
package/dist/mockGpu.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mockGpu.js","sourceRoot":"","sources":["../src/mockGpu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,eAAe,EAA2C,M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AAG,IAAuB,CAAC;IACrC,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,CAAC,EAAE,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,IAAI,CAAC,EAAE,CAAC;AAC3G,CAAC;AAED,SAAS,SAAS,CAAC,IAAkB;IACnC,IAAI,IAAI,YAAY,WAAW;QAAE,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;IAC7D,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AACvE,CAAC"}
|
package/dist/texture.d.ts
CHANGED
|
@@ -11,7 +11,10 @@ export declare class Texture {
|
|
|
11
11
|
get size(): TextureOptions["size"];
|
|
12
12
|
get format(): GPUTextureFormat;
|
|
13
13
|
get usage(): TextureOptions["usage"];
|
|
14
|
+
get mipLevelCount(): number;
|
|
14
15
|
get sampleCount(): 1 | 4;
|
|
16
|
+
get dimension(): GPUTextureDimension;
|
|
17
|
+
get viewFormats(): readonly GPUTextureFormat[];
|
|
15
18
|
get label(): string | undefined;
|
|
16
19
|
createView(desc?: GPUTextureViewDescriptor): GPUTextureView;
|
|
17
20
|
read(): Promise<Uint8Array>;
|
package/dist/texture.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"texture.d.ts","sourceRoot":"","sources":["../src/texture.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,QAAA,MAAM,YAAY,eAA6B,CAAC;AAEhD,qBAAa,OAAO;IAKhB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,QAAQ,CAAC,GAAG,EAAE,UAAU;IACxB,QAAQ,CAAC,OAAO,EAAE,cAAc;IANlC,QAAQ,CA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D,IAAI,KAAK,IAAI,cAAc,CAAC,OAAO,CAAC,CAA+B;IACnE,IAAI,aAAa,IAAI,MAAM,CAA4C;IACvE,IAAI,WAAW,IAAI,CAAC,GAAG,CAAC,CAA0C;IAClE,IAAI,SAAS,IAAI,mBAAmB,CAA2C;IAC/E,IAAI,WAAW,IAAI,SAAS,gBAAgB,EAAE,CAA2C;IACzF,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAA+B;IAE9D,UAAU,CAAC,IAAI,CAAC,EAAE,wBAAwB,GAAG,cAAc;IAIrD,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC;IAMjC,OAAO,IAAI,IAAI;IAMf,OAAO,IAAI,IAAI;IAIf,OAAO,CAAC,WAAW;CAGpB;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,cAAc,GAAG,oBAAoB,CAYjF"}
|
package/dist/texture.js
CHANGED
|
@@ -15,7 +15,10 @@ export class Texture {
|
|
|
15
15
|
get size() { return this.options.size; }
|
|
16
16
|
get format() { return this.options.format; }
|
|
17
17
|
get usage() { return this.options.usage; }
|
|
18
|
+
get mipLevelCount() { return this.options.mipLevelCount ?? 1; }
|
|
18
19
|
get sampleCount() { return this.options.sampleCount ?? 1; }
|
|
20
|
+
get dimension() { return this.options.dimension ?? "2d"; }
|
|
21
|
+
get viewFormats() { return this.options.viewFormats ?? []; }
|
|
19
22
|
get label() { return this.options.label; }
|
|
20
23
|
createView(desc) {
|
|
21
24
|
return this.gpu.createView(desc);
|
|
@@ -42,12 +45,20 @@ export class Texture {
|
|
|
42
45
|
}
|
|
43
46
|
}
|
|
44
47
|
export function toGPUTextureDescriptor(opts) {
|
|
45
|
-
|
|
48
|
+
const desc = {
|
|
46
49
|
label: opts.label,
|
|
47
50
|
size: { width: opts.size[0], height: opts.size[1], depthOrArrayLayers: opts.size[2] ?? 1 },
|
|
48
51
|
format: opts.format,
|
|
49
52
|
usage: textureUsageFlags(opts.usage),
|
|
50
|
-
sampleCount: opts.sampleCount,
|
|
51
53
|
};
|
|
54
|
+
if (opts.mipLevelCount !== undefined)
|
|
55
|
+
desc.mipLevelCount = opts.mipLevelCount;
|
|
56
|
+
if (opts.sampleCount !== undefined)
|
|
57
|
+
desc.sampleCount = opts.sampleCount;
|
|
58
|
+
if (opts.dimension !== undefined)
|
|
59
|
+
desc.dimension = opts.dimension;
|
|
60
|
+
if (opts.viewFormats !== undefined)
|
|
61
|
+
desc.viewFormats = [...opts.viewFormats];
|
|
62
|
+
return desc;
|
|
52
63
|
}
|
|
53
64
|
//# sourceMappingURL=texture.js.map
|
package/dist/texture.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"texture.js","sourceRoot":"","sources":["../src/texture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAIzD,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;AAEhD,MAAM,OAAO,OAAO;IAKC;IACR;IACA;IANF,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IACvB,SAAS,GAAG,KAAK,CAAC;IAE1B,YACmB,MAAc,EACtB,GAAe,EACf,OAAuB;QAFf,WAAM,GAAN,MAAM,CAAQ;QACtB,QAAG,GAAH,GAAG,CAAY;QACf,YAAO,GAAP,OAAO,CAAgB;IAC/B,CAAC;IAEJ,IAAI,IAAI,KAA6B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAChE,IAAI,MAAM,KAAuB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9D,IAAI,KAAK,KAA8B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IACnE,IAAI,WAAW,KAAY,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,CAAC,CAAC,CAAC,CAAC;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AI,CAAC,WAAW,KAAK,SAAS;QAAE,IAAI,CAAC,WAAW,GAAG,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC;IAC7E,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../wgsl/dist/types.d.ts","../../wgsl/dist/compile.d.ts","../../wgsl/dist/index.d.ts","../src/mock-gpu-storage.ts","../src/types.ts","../src/buffer.ts","../src/gpuConstants.ts","../src/mockGpu.ts","../src/queue.ts","../src/shader.ts","../src/texture.ts","../src/errors.ts","../src/readback.ts","../src/device.ts","../src/app-types.ts","../src/app.ts","../src/index.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/index.d.ts","../../../node_modules/.pnpm/@webgpu+types@0.1.69/node_modules/@webgpu/types/dist/index.d.ts"],"fileIdsList":[[81,126,127,129,146,147],[81,128,129,146,147],[129,146,147],[81,129,134,146,147,164],[81,129,130,135,140,146,147,149,161,172],[81,129,130,131,140,146,147,149],[81,129,146,147],[76,77,78,81,129,146,147],[81,129,132,146,147,173],[81,129,133,134,141,146,147,150],[81,129,134,146,147,161,169],[81,129,135,137,140,146,147,149],[81,128,129,136,146,147],[81,129,137,138,146,147],[81,129,139,140,146,147],[81,128,129,140,146,147],[81,129,140,141,142,146,147,161,172],[81,129,140,141,142,146,147,156,161,164],[81,122,129,137,140,143,146,147,149,161,172],[81,129,140,141,143,144,146,147,149,161,169,172],[81,129,143,145,146,147,161,169,172],[79,80,81,82,83,84,85,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178],[81,129,140,146,147],[81,129,146,147,148,172],[81,129,137,140,146,147,149,161],[81,129,146,147,150],[81,129,146,147,151],[81,128,129,146,147,152],[81,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178],[81,129,146,147,154],[81,129,146,147,155],[81,129,140,146,147,156,157],[81,129,146,147,156,158,173,175],[81,129,141,146,147],[81,129,140,146,147,161,162,164],[81,129,146,147,163,164],[81,129,146,147,161,162],[81,129,146,147,164],[81,129,146,147,165],[81,126,129,146,147,161,166,172],[81,129,140,146,147,167,168],[81,129,146,147,167,168],[81,129,134,146,147,149,161,169],[81,129,146,147,170],[81,129,146,147,149,171],[81,129,143,146,147,155,172],[81,129,134,146,147,173],[81,129,146,147,161,174],[81,129,146,147,148,175],[81,129,146,147,176],[81,122,129,146,147],[81,122,129,140,142,146,147,152,161,164,172,174,175,177],[81,129,146,147,161,178],[81,94,98,129,146,147,172],[81,94,129,146,147,161,172],[81,89,129,146,147],[81,91,94,129,146,147,169,172],[81,129,146,147,149,169],[81,129,146,147,179],[81,89,129,146,147,179],[81,91,94,129,146,147,149,172],[81,86,87,90,93,129,140,146,147,161,172],[81,94,101,129,146,147],[81,86,92,129,146,147],[81,94,115,116,129,146,147],[81,90,94,129,146,147,164,172,179],[81,115,129,146,147,179],[81,88,89,129,146,147,179],[81,94,129,146,147],[81,88,89,90,91,92,93,94,95,96,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,116,117,118,119,120,121,129,146,147],[81,94,109,129,146,147],[81,94,101,102,129,146,147],[81,92,94,102,103,129,146,147],[81,93,129,146,147],[81,86,89,94,129,146,147],[81,94,98,102,103,129,146,147],[81,98,129,146,147],[81,92,94,97,129,146,147,172],[81,86,91,94,101,129,146,147],[81,129,146,147,161],[81,89,94,115,129,146,147,177,179],[63,72,81,129,146,147],[73,81,129,146,147],[62,63,72,81,129,146,147],[61,63,64,65,66,67,68,69,70,71,81,129,146,147],[63,81,129,146,147],[63,64,66,67,68,69,70,72,73,74,81,129,146,147],[62,65,81,129,146,147],[62,65,70,81,129,146,147],[61,81,129,146,147],[62,63,65,72,81,129,146,147],[59,81,129,146,147],[59,60,81,129,146,147]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"90b0ba1b618b040b715d54ab704b1be8c3859154f34f94de0026dc0d5e97bd26","impliedFormat":99},{"version":"3eec31f843a881e0877405c5787e4abb27edad891cc4071832e1f4ba79ac0e8c","impliedFormat":99},{"version":"73e50a8d7fb61b3a64ddf41549d8fd3659d99e873ab8c5e201c960a960433e37","impliedFormat":99},{"version":"7eb1c725efadbe689802002d7174213d78de163291d3ab5330ed368b3e0617c6","signature":"8a46d4455204a0002afa5dadc28b995a6ef42d6506b32448004b2caa430db2cf","impliedFormat":99},{"version":"15920719ffdfb0e71d4d4eccf8be84526c25ef84ff7c025c3d00a40258193ebe","signature":"eeac8c3bdbf3a83a72bd55de6d72020a798fad40067d93bec8bf4d97adacea6e","impliedFormat":99},{"version":"c4ca09174f458c1423afbd7f1fb1bb3e106f3cf1e89e483892ee45586b255aca","signature":"cf35788253f8c9227c33f815164f70b8551180952a8814d8a682707ecd18c0df","impliedFormat":99},{"version":"fb31db15ff30d75cc53246f753ca7bb5a7b56dd65038702e97e84f0842cce9d9","signature":"eef9b08204bce5c099c5ce0471b146b332cacaf2a7a0d548540ae92a853f9ae9","impliedFormat":99},{"version":"c68acf883ba57dd5b9d618d89da784d0cac51e70e8e8ada0ca0941ef9d71fa4f","signature":"4db6c625d3171d010df6cc179f06cc9ea9856d20a37bf94a4cd1c1da3b73b171","impliedFormat":99},{"version":"bfd9ebe74eb167c62e3aa3844896fa7f5ade22b9ff70e910b5f065b339c5be66","signature":"4c27dacb235db188e0683dbde04adf67775e3e2dcd2bc92658b8900e7848f137","impliedFormat":99},{"version":"f07987692a00e9931f005d528d331fc9363b22bccfa5dc363fb7ae221063b99b","signature":"79746d46b34437363c8e3b7ec3c3a2d66e233445f14e76089c385035808e5db4","impliedFormat":99},{"version":"25db2be2a1770818fd77e43ed3896da523b303e45ee3aaeab079381451b68fb6","signature":"c5b1588b1a175410e91a81ffc3e134502690bb131794662a020b31979ed977c8","impliedFormat":99},{"version":"b3d0c5221b87852a039521b7ad2e6b2ee48fad43ec888fc879d77b19b24a923f","signature":"d43b88a807c51935dec251c9b8099b8e38d1187f5bef44bd94edc4d693ed7129","impliedFormat":99},{"version":"609ca7ae00bf210906535dec714d9a9ea938040e68afe7b8efc65dce82e1679a","signature":"793e1826883e664bcb23664e923603b8716ef42df1736a9972085d96a58de64b","impliedFormat":99},{"version":"2b09e79bdefb3ea52f714137c26635e68c5bbf0e08393a76ed4c6f5eb820b7de","signature":"d55e2376af254400c3f3cce3a205a9c83d50d9b27268449bc8a7a777a36cbe5d","impliedFormat":99},{"version":"45f299861c26866ae9d716418924a6f400928b18cc861af02964147501d919e5","signature":"8a15db8a527c040ab04835b17e3967a96e20ab00854f89fb1229a44d0025d5b5","impliedFormat":99},{"version":"1864662332d96b750ca62323d60ec8c1d48a13fba3bd7f523d8cacc9699fce49","signature":"d714d663d289017f2dbd2c91dc9a64de774529721e19c7976c57fdb3921fedb3","impliedFormat":99},{"version":"bb1f278f9eb07ed6a90b9fe9799d2cde68dbf99784093285e9aa710aaa86eadb","signature":"22042225b76241fbf3cb880d9ed8fbb37ae4caad48d18b145086d1ae2ac5b2d0","impliedFormat":99},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c906fb15bd2aabc9ed1e3f44eb6a8661199d6c320b3aa196b826121552cb3695","impliedFormat":1},{"version":"22295e8103f1d6d8ea4b5d6211e43421fe4564e34d0dd8e09e520e452d89e659","impliedFormat":1},{"version":"58647d85d0f722a1ce9de50955df60a7489f0593bf1a7015521efe901c06d770","impliedFormat":1},{"version":"6b4e081d55ac24fc8a4631d5dd77fe249fa25900abd7d046abb87d90e3b45645","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6f137d651076822d4fe884287e68fd61785a0d3d1fdb250a5059b691fa897db","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"a3fc63c0d7b031693f665f5494412ba4b551fe644ededccc0ab5922401079c95","impliedFormat":1},{"version":"80523c00b8544a2000ae0143e4a90a00b47f99823eb7926c1e03c494216fc363","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"746911b62b329587939560deb5c036aca48aece03147b021fa680223255d5183","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"c8d3e5a18ba35629954e48c4cc8f11dc88224650067a172685c736b27a34a4dc","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2b55d426ff2b9087485e52ac4bc7cfafe1dc420fc76dad926cd46526567c501a","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"47613031a5a31510831304405af561b0ffaedb734437c595256bb61a90f9311b","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"8a1a0d0a4a06a8d278947fcb66bf684f117bf147f89b06e50662d79a53be3e9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"358765d5ea8afd285d4fd1532e78b88273f18cb3f87403a9b16fef61ac9fdcfe","impliedFormat":1},{"version":"9f55299850d4f0921e79b6bf344b47c420ce0f507b9dcf593e532b09ea7eeea1","impliedFormat":1},{"version":"12f20310f22fa2cad6018638d2bfeaa966db651cea186272506e53d0f64d20dc","affectsGlobalScope":true,"impliedFormat":1}],"root":[[62,75]],"options":{"allowImportingTsExtensions":true,"composite":true,"declaration":true,"declarationMap":true,"module":199,"outDir":"./","rewriteRelativeImportExtensions":true,"rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./tsconfig.tsbuildinfo"},"referencedMap":[[126,1],[127,1],[128,2],[81,3],[129,4],[130,5],[131,6],[76,7],[79,8],[77,7],[78,7],[132,9],[133,10],[134,11],[135,12],[136,13],[137,14],[138,14],[139,15],[140,16],[141,17],[142,18],[82,7],[80,7],[143,19],[144,20],[145,21],[179,22],[146,23],[147,7],[148,24],[149,25],[150,26],[151,27],[152,28],[153,29],[154,30],[155,31],[156,32],[157,32],[158,33],[159,7],[160,34],[161,35],[163,36],[162,37],[164,38],[165,39],[166,40],[167,41],[168,42],[169,43],[170,44],[171,45],[172,46],[173,47],[174,48],[175,49],[176,50],[83,7],[84,7],[85,7],[123,51],[124,7],[125,7],[177,52],[178,53],[180,7],[57,7],[58,7],[10,7],[12,7],[11,7],[2,7],[13,7],[14,7],[15,7],[16,7],[17,7],[18,7],[19,7],[20,7],[3,7],[21,7],[22,7],[4,7],[23,7],[27,7],[24,7],[25,7],[26,7],[28,7],[29,7],[30,7],[5,7],[31,7],[32,7],[33,7],[34,7],[6,7],[38,7],[35,7],[36,7],[37,7],[39,7],[7,7],[40,7],[45,7],[46,7],[41,7],[42,7],[43,7],[44,7],[8,7],[50,7],[47,7],[48,7],[49,7],[51,7],[9,7],[52,7],[53,7],[54,7],[56,7],[55,7],[1,7],[101,54],[111,55],[100,54],[121,56],[92,57],[91,58],[120,59],[114,60],[119,61],[94,62],[108,63],[93,64],[117,65],[89,66],[88,59],[118,67],[90,68],[95,69],[96,7],[99,69],[86,7],[122,70],[112,71],[103,72],[104,73],[106,74],[102,75],[105,76],[115,59],[97,77],[98,78],[107,79],[87,80],[110,71],[109,69],[113,7],[116,81],[73,82],[74,83],[64,84],[72,85],[70,7],[65,86],[75,87],[62,7],[66,88],[67,86],[71,89],[68,90],[69,91],[63,7],[60,92],[61,93],[59,7]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
|
1
|
+
{"fileNames":["../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../wgsl/dist/types.d.ts","../../wgsl/dist/compile.d.ts","../../wgsl/dist/index.d.ts","../src/mock-gpu-storage.ts","../src/types.ts","../src/buffer.ts","../src/gpuConstants.ts","../src/mockGpu.ts","../src/queue.ts","../src/shader.ts","../src/texture.ts","../src/errors.ts","../src/readback.ts","../src/device.ts","../src/app-types.ts","../src/app.ts","../src/bind.ts","../src/index.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/index.d.ts","../../../node_modules/.pnpm/@webgpu+types@0.1.69/node_modules/@webgpu/types/dist/index.d.ts"],"fileIdsList":[[82,127,128,130,147,148],[82,129,130,147,148],[130,147,148],[82,130,135,147,148,165],[82,130,131,136,141,147,148,150,162,173],[82,130,131,132,141,147,148,150],[82,130,147,148],[77,78,79,82,130,147,148],[82,130,133,147,148,174],[82,130,134,135,142,147,148,151],[82,130,135,147,148,162,170],[82,130,136,138,141,147,148,150],[82,129,130,137,147,148],[82,130,138,139,147,148],[82,130,140,141,147,148],[82,129,130,141,147,148],[82,130,141,142,143,147,148,162,173],[82,130,141,142,143,147,148,157,162,165],[82,123,130,138,141,144,147,148,150,162,173],[82,130,141,142,144,145,147,148,150,162,170,173],[82,130,144,146,147,148,162,170,173],[80,81,82,83,84,85,86,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179],[82,130,141,147,148],[82,130,147,148,149,173],[82,130,138,141,147,148,150,162],[82,130,147,148,151],[82,130,147,148,152],[82,129,130,147,148,153],[82,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179],[82,130,147,148,155],[82,130,147,148,156],[82,130,141,147,148,157,158],[82,130,147,148,157,159,174,176],[82,130,142,147,148],[82,130,141,147,148,162,163,165],[82,130,147,148,164,165],[82,130,147,148,162,163],[82,130,147,148,165],[82,130,147,148,166],[82,127,130,147,148,162,167,173],[82,130,141,147,148,168,169],[82,130,147,148,168,169],[82,130,135,147,148,150,162,170],[82,130,147,148,171],[82,130,147,148,150,172],[82,130,144,147,148,156,173],[82,130,135,147,148,174],[82,130,147,148,162,175],[82,130,147,148,149,176],[82,130,147,148,177],[82,123,130,147,148],[82,123,130,141,143,147,148,153,162,165,173,175,176,178],[82,130,147,148,162,179],[82,95,99,130,147,148,173],[82,95,130,147,148,162,173],[82,90,130,147,148],[82,92,95,130,147,148,170,173],[82,130,147,148,150,170],[82,130,147,148,180],[82,90,130,147,148,180],[82,92,95,130,147,148,150,173],[82,87,88,91,94,130,141,147,148,162,173],[82,95,102,130,147,148],[82,87,93,130,147,148],[82,95,116,117,130,147,148],[82,91,95,130,147,148,165,173,180],[82,116,130,147,148,180],[82,89,90,130,147,148,180],[82,95,130,147,148],[82,89,90,91,92,93,94,95,96,97,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,117,118,119,120,121,122,130,147,148],[82,95,110,130,147,148],[82,95,102,103,130,147,148],[82,93,95,103,104,130,147,148],[82,94,130,147,148],[82,87,90,95,130,147,148],[82,95,99,103,104,130,147,148],[82,99,130,147,148],[82,93,95,98,130,147,148,173],[82,87,92,95,102,130,147,148],[82,130,147,148,162],[82,90,95,116,130,147,148,178,180],[63,72,82,130,147,148],[73,82,130,147,148],[64,69,70,72,82,130,147,148],[62,63,72,82,130,147,148],[61,63,64,65,66,67,68,69,70,71,82,130,147,148],[63,82,130,147,148],[63,64,66,67,68,69,70,72,73,74,75,82,130,147,148],[62,65,82,130,147,148],[62,65,70,82,130,147,148],[61,82,130,147,148],[62,63,65,72,82,130,147,148],[59,82,130,147,148],[59,60,82,130,147,148]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"90b0ba1b618b040b715d54ab704b1be8c3859154f34f94de0026dc0d5e97bd26","impliedFormat":99},{"version":"3eec31f843a881e0877405c5787e4abb27edad891cc4071832e1f4ba79ac0e8c","impliedFormat":99},{"version":"73e50a8d7fb61b3a64ddf41549d8fd3659d99e873ab8c5e201c960a960433e37","impliedFormat":99},{"version":"7eb1c725efadbe689802002d7174213d78de163291d3ab5330ed368b3e0617c6","signature":"8a46d4455204a0002afa5dadc28b995a6ef42d6506b32448004b2caa430db2cf","impliedFormat":99},{"version":"1392f7b3930e7b111d13bc77021d9862ce2fd7b28c61c7652f5236987ea3bfbc","signature":"b406edcfcbe98d0b8d549c476efdc07b4f94225d405f39cc0b71af031d7e77d0","impliedFormat":99},{"version":"c4ca09174f458c1423afbd7f1fb1bb3e106f3cf1e89e483892ee45586b255aca","signature":"cf35788253f8c9227c33f815164f70b8551180952a8814d8a682707ecd18c0df","impliedFormat":99},{"version":"fb31db15ff30d75cc53246f753ca7bb5a7b56dd65038702e97e84f0842cce9d9","signature":"eef9b08204bce5c099c5ce0471b146b332cacaf2a7a0d548540ae92a853f9ae9","impliedFormat":99},{"version":"c93786387a1d6213fd6e9feb3ef08b0425b42ba52ce19707f6f07deac14c4dc7","signature":"4f549203523ee86002e686a1fdfb38231967db1af6788571c226f753b0f8e4b0","impliedFormat":99},{"version":"bfd9ebe74eb167c62e3aa3844896fa7f5ade22b9ff70e910b5f065b339c5be66","signature":"4c27dacb235db188e0683dbde04adf67775e3e2dcd2bc92658b8900e7848f137","impliedFormat":99},{"version":"f07987692a00e9931f005d528d331fc9363b22bccfa5dc363fb7ae221063b99b","signature":"79746d46b34437363c8e3b7ec3c3a2d66e233445f14e76089c385035808e5db4","impliedFormat":99},{"version":"3f7bc264a5f789d616fa91c45af2d7ce7d318027a3c2c1d0fa8803687c44bb69","signature":"29ad949899509da0ac1891fefa04f5a5ada1643a923a253587781db2a5b42467","impliedFormat":99},{"version":"b3d0c5221b87852a039521b7ad2e6b2ee48fad43ec888fc879d77b19b24a923f","signature":"d43b88a807c51935dec251c9b8099b8e38d1187f5bef44bd94edc4d693ed7129","impliedFormat":99},{"version":"609ca7ae00bf210906535dec714d9a9ea938040e68afe7b8efc65dce82e1679a","signature":"793e1826883e664bcb23664e923603b8716ef42df1736a9972085d96a58de64b","impliedFormat":99},{"version":"98ec8e43bc71a5157cbab97a76cc749d3d71dcf283d9ebb984180c5c049a5622","signature":"0948aaf47cadd4002bcc0f33680b0d4d5bc9949c70fac20c9d774cd5a688b40c","impliedFormat":99},{"version":"45f299861c26866ae9d716418924a6f400928b18cc861af02964147501d919e5","signature":"8a15db8a527c040ab04835b17e3967a96e20ab00854f89fb1229a44d0025d5b5","impliedFormat":99},{"version":"1864662332d96b750ca62323d60ec8c1d48a13fba3bd7f523d8cacc9699fce49","signature":"d714d663d289017f2dbd2c91dc9a64de774529721e19c7976c57fdb3921fedb3","impliedFormat":99},{"version":"fcd28b1b3908525ffa53cc626524b958c21a858b9f408446eb157b35dfd99e7b","signature":"d90352493c3448ec53ec675011c4180bd58efa9860314a3f8860d01722213fc3","impliedFormat":99},{"version":"c0a740710ab55d06ff718ffb9db0c798a400bbab06d859b91cd85a47bd5cfe81","signature":"e978144a772ac7becd8cc251bed97a8860db63d8c38693c24500b93fc4573677","impliedFormat":99},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c906fb15bd2aabc9ed1e3f44eb6a8661199d6c320b3aa196b826121552cb3695","impliedFormat":1},{"version":"22295e8103f1d6d8ea4b5d6211e43421fe4564e34d0dd8e09e520e452d89e659","impliedFormat":1},{"version":"58647d85d0f722a1ce9de50955df60a7489f0593bf1a7015521efe901c06d770","impliedFormat":1},{"version":"6b4e081d55ac24fc8a4631d5dd77fe249fa25900abd7d046abb87d90e3b45645","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6f137d651076822d4fe884287e68fd61785a0d3d1fdb250a5059b691fa897db","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"a3fc63c0d7b031693f665f5494412ba4b551fe644ededccc0ab5922401079c95","impliedFormat":1},{"version":"80523c00b8544a2000ae0143e4a90a00b47f99823eb7926c1e03c494216fc363","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"746911b62b329587939560deb5c036aca48aece03147b021fa680223255d5183","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"c8d3e5a18ba35629954e48c4cc8f11dc88224650067a172685c736b27a34a4dc","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2b55d426ff2b9087485e52ac4bc7cfafe1dc420fc76dad926cd46526567c501a","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"47613031a5a31510831304405af561b0ffaedb734437c595256bb61a90f9311b","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"8a1a0d0a4a06a8d278947fcb66bf684f117bf147f89b06e50662d79a53be3e9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"358765d5ea8afd285d4fd1532e78b88273f18cb3f87403a9b16fef61ac9fdcfe","impliedFormat":1},{"version":"9f55299850d4f0921e79b6bf344b47c420ce0f507b9dcf593e532b09ea7eeea1","impliedFormat":1},{"version":"12f20310f22fa2cad6018638d2bfeaa966db651cea186272506e53d0f64d20dc","affectsGlobalScope":true,"impliedFormat":1}],"root":[[62,76]],"options":{"allowImportingTsExtensions":true,"composite":true,"declaration":true,"declarationMap":true,"module":199,"outDir":"./","rewriteRelativeImportExtensions":true,"rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./tsconfig.tsbuildinfo"},"referencedMap":[[127,1],[128,1],[129,2],[82,3],[130,4],[131,5],[132,6],[77,7],[80,8],[78,7],[79,7],[133,9],[134,10],[135,11],[136,12],[137,13],[138,14],[139,14],[140,15],[141,16],[142,17],[143,18],[83,7],[81,7],[144,19],[145,20],[146,21],[180,22],[147,23],[148,7],[149,24],[150,25],[151,26],[152,27],[153,28],[154,29],[155,30],[156,31],[157,32],[158,32],[159,33],[160,7],[161,34],[162,35],[164,36],[163,37],[165,38],[166,39],[167,40],[168,41],[169,42],[170,43],[171,44],[172,45],[173,46],[174,47],[175,48],[176,49],[177,50],[84,7],[85,7],[86,7],[124,51],[125,7],[126,7],[178,52],[179,53],[181,7],[57,7],[58,7],[10,7],[12,7],[11,7],[2,7],[13,7],[14,7],[15,7],[16,7],[17,7],[18,7],[19,7],[20,7],[3,7],[21,7],[22,7],[4,7],[23,7],[27,7],[24,7],[25,7],[26,7],[28,7],[29,7],[30,7],[5,7],[31,7],[32,7],[33,7],[34,7],[6,7],[38,7],[35,7],[36,7],[37,7],[39,7],[7,7],[40,7],[45,7],[46,7],[41,7],[42,7],[43,7],[44,7],[8,7],[50,7],[47,7],[48,7],[49,7],[51,7],[9,7],[52,7],[53,7],[54,7],[56,7],[55,7],[1,7],[102,54],[112,55],[101,54],[122,56],[93,57],[92,58],[121,59],[115,60],[120,61],[95,62],[109,63],[94,64],[118,65],[90,66],[89,59],[119,67],[91,68],[96,69],[97,7],[100,69],[87,7],[123,70],[113,71],[104,72],[105,73],[107,74],[103,75],[106,76],[116,59],[98,77],[99,78],[108,79],[88,80],[111,71],[110,69],[114,7],[117,81],[73,82],[74,83],[75,84],[64,85],[72,86],[70,7],[65,87],[76,88],[62,7],[66,89],[67,87],[71,90],[68,91],[69,92],[63,7],[60,93],[61,94],[59,7]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
package/dist/types.d.ts
CHANGED
|
@@ -16,8 +16,14 @@ export interface TextureOptions {
|
|
|
16
16
|
readonly size: readonly [width: number, height: number, depthOrArrayLayers?: number];
|
|
17
17
|
readonly format: GPUTextureFormat;
|
|
18
18
|
readonly usage: readonly TextureUsageName[];
|
|
19
|
+
/** Number of mip levels. Defaults to 1 when omitted, matching WebGPU. */
|
|
20
|
+
readonly mipLevelCount?: number;
|
|
19
21
|
/** Number of samples per pixel. Use 4 for MSAA; default 1. WebGPU spec restricts color render targets to sampleCount 1 or 4. */
|
|
20
22
|
readonly sampleCount?: 1 | 4;
|
|
23
|
+
/** Texture dimensionality. Defaults to "2d" when omitted, matching WebGPU. */
|
|
24
|
+
readonly dimension?: GPUTextureDimension;
|
|
25
|
+
/** Additional view formats allowed for texture view creation. Defaults to none when omitted, matching WebGPU. */
|
|
26
|
+
readonly viewFormats?: readonly GPUTextureFormat[];
|
|
21
27
|
readonly label?: string;
|
|
22
28
|
}
|
|
23
29
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GACvB,UAAU,GACV,WAAW,GACX,UAAU,GACV,UAAU,GACV,OAAO,GACP,QAAQ,GACR,SAAS,GACT,SAAS,GACT,UAAU,GACV,eAAe,CAAC;AAEpB,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,SAAS,eAAe,EAAE,CAAC;IAC3C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,eAAe,CAAC,EAAE,kBAAkB,CA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kB,CAAC;IAC9C,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,cAAc,EAAE,CAAC;IACtD,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,eAAe,CAAC,WAAW,CAAC,CAAC;AAEzE,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,UAAU,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,mBAAmB,CAAC;AAErH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,MAAM,CAAC,CAAC;IACrF,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAC5C,yEAAyE;IACzE,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,gIAAgI;IAChI,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAC7B,8EAA8E;IAC9E,QAAQ,CAAC,SAAS,CAAC,EAAE,mBAAmB,CAAC;IACzC,iHAAiH;IACjH,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACnD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vgpu/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Core WebGPU runtime primitives (device, buffer, texture, shader, queue) for vgpu.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webgpu",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
],
|
|
43
43
|
"vgpuBundleBudgetGzipBytes": 51200,
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@vgpu/wgsl": "0.0.
|
|
45
|
+
"@vgpu/wgsl": "0.0.7"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "tsc -b"
|
package/src/Device.docs.md
CHANGED
|
@@ -4,3 +4,31 @@
|
|
|
4
4
|
owns the queue wrapper, captures structured validation errors through error scopes,
|
|
5
5
|
and exposes the raw WebGPU object via `.gpu` for mechanical escape-hatch use.
|
|
6
6
|
Use `destroy()` or `dispose()` for teardown.
|
|
7
|
+
|
|
8
|
+
## Capabilities
|
|
9
|
+
|
|
10
|
+
`device.limits` and `device.features` are transparent accessors for the underlying
|
|
11
|
+
WebGPU device capabilities. They do not negotiate, normalize, or polyfill support;
|
|
12
|
+
use them to inspect limits and gate optional paths without reaching through `.gpu`.
|
|
13
|
+
|
|
14
|
+
Native WebGPU:
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
const max = device.gpu.limits.maxTextureDimension2D;
|
|
18
|
+
const hasTimestamps = device.gpu.features.has("timestamp-query");
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
VGPU:
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
const max = device.limits.maxTextureDimension2D;
|
|
25
|
+
const hasTimestamps = device.features.has("timestamp-query");
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Gate optional behavior with the same setlike feature checks that WebGPU exposes:
|
|
29
|
+
|
|
30
|
+
```ts
|
|
31
|
+
if (device.features.has("timestamp-query")) {
|
|
32
|
+
// create timestamp query resources for this device
|
|
33
|
+
}
|
|
34
|
+
```
|
package/src/Texture.docs.md
CHANGED
|
@@ -2,19 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
`Texture` is the core opaque GPU texture object created by
|
|
4
4
|
`device.createTexture(...)`. It wraps a `GPUTexture`, tracks the creation
|
|
5
|
-
options, and provides deterministic
|
|
5
|
+
options, and provides deterministic readback for snapshot tests. `rgba8unorm`
|
|
6
|
+
and `rgba8unorm-srgb` are supported for readback; prefer `rgba8unorm` for
|
|
7
|
+
deterministic snapshots unless a test specifically covers sRGB behavior.
|
|
6
8
|
|
|
7
9
|
`TextureOptions` contains:
|
|
8
10
|
|
|
9
11
|
- `size`: `[width, height, depthOrArrayLayers?]`.
|
|
10
12
|
- `format`: currently readback-supported for `"rgba8unorm"` and `"rgba8unorm-srgb"`.
|
|
11
13
|
- `usage`: texture usage names such as `"render_attachment"` and `"copy_src"`.
|
|
14
|
+
- `mipLevelCount`: optional WebGPU mip level count. Defaults to `1` when omitted.
|
|
15
|
+
- `sampleCount`: optional WebGPU sample count. Defaults to `1` when omitted.
|
|
16
|
+
- `dimension`: optional WebGPU texture dimension. Defaults to `"2d"` when omitted.
|
|
17
|
+
- `viewFormats`: optional additional WebGPU texture view formats.
|
|
12
18
|
- `label`: optional WebGPU label.
|
|
13
19
|
|
|
14
|
-
Invariants: `read()` only supports
|
|
15
|
-
`VGPU-CORE-UNSUPPORTED-FORMAT` for unsupported formats.
|
|
16
|
-
forwards to the raw texture. `destroy()` is idempotent; after
|
|
17
|
-
throws because the texture is no longer alive.
|
|
20
|
+
Invariants: `read()` only supports the documented readback formats above and
|
|
21
|
+
throws structured `VGPU-CORE-UNSUPPORTED-FORMAT` for unsupported formats.
|
|
22
|
+
`createView(...)` forwards to the raw texture. `destroy()` is idempotent; after
|
|
23
|
+
destroy, `read()` throws because the texture is no longer alive. Prefer
|
|
24
|
+
`texture.destroy()` over `texture.gpu.destroy()` for VGPU-owned textures; `.gpu`
|
|
25
|
+
remains available as the raw WebGPU escape hatch for native interop.
|
|
18
26
|
|
|
19
27
|
Example:
|
|
20
28
|
|
|
@@ -26,3 +34,33 @@ const target = device.createTexture({
|
|
|
26
34
|
});
|
|
27
35
|
const pixels = await target.read();
|
|
28
36
|
```
|
|
37
|
+
|
|
38
|
+
Native WebGPU descriptors map directly to VGPU texture options. VGPU keeps the
|
|
39
|
+
API descriptor-first: provide the explicit fields you want rather than relying
|
|
40
|
+
on hidden usage inference or upload helpers.
|
|
41
|
+
|
|
42
|
+
Native WebGPU:
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
const texture = gpuDevice.createTexture({
|
|
46
|
+
size: { width: 1024, height: 1024, depthOrArrayLayers: 1 },
|
|
47
|
+
format: "rgba8unorm",
|
|
48
|
+
usage: GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.RENDER_ATTACHMENT,
|
|
49
|
+
mipLevelCount: 5,
|
|
50
|
+
dimension: "2d",
|
|
51
|
+
viewFormats: ["rgba8unorm-srgb"],
|
|
52
|
+
});
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
VGPU:
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
const texture = device.createTexture({
|
|
59
|
+
size: [1024, 1024, 1],
|
|
60
|
+
format: "rgba8unorm",
|
|
61
|
+
usage: ["texture_binding", "render_attachment"],
|
|
62
|
+
mipLevelCount: 5,
|
|
63
|
+
dimension: "2d",
|
|
64
|
+
viewFormats: ["rgba8unorm-srgb"],
|
|
65
|
+
});
|
|
66
|
+
```
|
package/src/bind.docs.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Explicit binding helpers
|
|
2
|
+
|
|
3
|
+
`bind`, `createBindGroupLayout`, `createPipelineLayout`, `createBindGroup`, and
|
|
4
|
+
`createSampler` are thin core helpers for explicit WebGPU resource binding. They
|
|
5
|
+
return raw WebGPU objects and never infer layouts from WGSL, reflect shaders, or
|
|
6
|
+
force `layout: "auto"`.
|
|
7
|
+
|
|
8
|
+
Use explicit numeric bindings to keep control over shader ABI, pipeline layout
|
|
9
|
+
compatibility, and performance-sensitive bind group reuse. This implementation is
|
|
10
|
+
positional/array-only; named binding maps are intentionally deferred in this
|
|
11
|
+
slice, so there is no `bind.named()` helper and every entry keeps an explicit
|
|
12
|
+
numeric `binding`.
|
|
13
|
+
|
|
14
|
+
Sampler creation is also intentionally explicit. This slice does not add sampler
|
|
15
|
+
presets such as `linear-clamp`; pass the full descriptor you want to
|
|
16
|
+
`createSampler(...)` (or `device.createSampler(...)`) instead.
|
|
17
|
+
|
|
18
|
+
## Native WebGPU
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
const sampler = device.createSampler({ minFilter: "linear", magFilter: "linear" });
|
|
22
|
+
const sceneLayout = device.createBindGroupLayout({
|
|
23
|
+
label: "scene.bindings",
|
|
24
|
+
entries: [
|
|
25
|
+
{ binding: 0, visibility: GPUShaderStage.VERTEX | GPUShaderStage.FRAGMENT, buffer: { type: "uniform" } },
|
|
26
|
+
{ binding: 1, visibility: GPUShaderStage.FRAGMENT, texture: { sampleType: "float" } },
|
|
27
|
+
{ binding: 2, visibility: GPUShaderStage.FRAGMENT, sampler: { type: "filtering" } },
|
|
28
|
+
],
|
|
29
|
+
});
|
|
30
|
+
const pipelineLayout = device.createPipelineLayout({ bindGroupLayouts: [sceneLayout] });
|
|
31
|
+
const bindGroup = device.createBindGroup({
|
|
32
|
+
layout: sceneLayout,
|
|
33
|
+
entries: [
|
|
34
|
+
{ binding: 0, resource: { buffer: uniformBuffer } },
|
|
35
|
+
{ binding: 1, resource: sourceTexture.createView() },
|
|
36
|
+
{ binding: 2, resource: sampler },
|
|
37
|
+
],
|
|
38
|
+
});
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## VGPU helpers
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
import { bind, createBindGroup, createBindGroupLayout, createPipelineLayout, createSampler } from "@vgpu/core";
|
|
45
|
+
|
|
46
|
+
const sampler = createSampler(device, { minFilter: "linear", magFilter: "linear" });
|
|
47
|
+
const sceneLayout = createBindGroupLayout(device, {
|
|
48
|
+
label: "scene.bindings",
|
|
49
|
+
entries: [
|
|
50
|
+
bind.uniform(0, "vertex|fragment"),
|
|
51
|
+
bind.texture(1, "fragment", { sampleType: "float" }),
|
|
52
|
+
bind.sampler(2, "fragment", { type: "filtering" }),
|
|
53
|
+
],
|
|
54
|
+
});
|
|
55
|
+
const pipelineLayout = createPipelineLayout(device, { bindGroups: [sceneLayout] });
|
|
56
|
+
const bindGroup = createBindGroup(device, {
|
|
57
|
+
layout: sceneLayout,
|
|
58
|
+
entries: [
|
|
59
|
+
bind.resource(0, uniformBuffer),
|
|
60
|
+
bind.resource(1, sourceTexture),
|
|
61
|
+
bind.resource(2, sampler),
|
|
62
|
+
],
|
|
63
|
+
});
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
`createBindGroup` requires an explicit `layout`. This helper is intentionally not
|
|
67
|
+
render-specific and imports only `@vgpu/core` primitives.
|
|
68
|
+
|
|
69
|
+
`bind.resource(...)` unwraps VGPU `Buffer` to `{ buffer: buffer.gpu }`, VGPU
|
|
70
|
+
`Texture` to `texture.createView()`, accepts raw `GPUBuffer`, `GPUTextureView`,
|
|
71
|
+
`GPUSampler`, and passes through raw `GPUBindingResource` values.
|
|
72
|
+
|
|
73
|
+
## `.gpu` escape hatch and lifecycle
|
|
74
|
+
|
|
75
|
+
`.gpu` exposes the unmanaged raw WebGPU object for APIs VGPU does not wrap yet,
|
|
76
|
+
feature probes, and advanced or niche calls. Prefer wrapper lifecycle methods:
|
|
77
|
+
`texture.destroy()`, `buffer.destroy()`, and `device.destroy()`. Avoid calling
|
|
78
|
+
`texture.gpu.destroy()` or `buffer.gpu.destroy()` directly because wrappers keep
|
|
79
|
+
lifecycle state and test mocks in sync.
|
|
@@ -3,3 +3,7 @@
|
|
|
3
3
|
`createMockGPUDevice()` creates the in-memory WebGPU-shaped object used by the mock
|
|
4
4
|
adapter. It is public so `@vgpu/adapter-mock` can expose the same adapter contract as
|
|
5
5
|
other adapters while keeping mock storage logic local to core tests.
|
|
6
|
+
|
|
7
|
+
The mock device exposes stable, plausible `limits` and a setlike `features` object
|
|
8
|
+
so tests can exercise capability inspection through `Device.limits` and
|
|
9
|
+
`Device.features`. Optional features are not enabled by default.
|