@wonderyard/vivarium 0.1.8 → 0.1.9
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/webgpu/setup.d.ts
CHANGED
|
@@ -1,4 +1,66 @@
|
|
|
1
|
+
import { TgpuUniform } from 'typegpu';
|
|
1
2
|
import { Automaton } from '../automaton/types';
|
|
3
|
+
import * as d from "typegpu/data";
|
|
4
|
+
export declare const setSeed: (s: TgpuUniform<d.F32>) => void;
|
|
5
|
+
export declare const gridLayout: import('typegpu').TgpuBindGroupLayout<{
|
|
6
|
+
dimensions: {
|
|
7
|
+
uniform: d.Vec2u;
|
|
8
|
+
};
|
|
9
|
+
colors: {
|
|
10
|
+
storage: (elementCount: number) => d.WgslArray<d.U32>;
|
|
11
|
+
access: "mutable";
|
|
12
|
+
};
|
|
13
|
+
newColors: {
|
|
14
|
+
storage: (elementCount: number) => d.WgslArray<d.U32>;
|
|
15
|
+
access: "mutable";
|
|
16
|
+
};
|
|
17
|
+
ids: {
|
|
18
|
+
storage: (elementCount: number) => d.WgslArray<d.U32>;
|
|
19
|
+
access: "mutable";
|
|
20
|
+
};
|
|
21
|
+
newIds: {
|
|
22
|
+
storage: (elementCount: number) => d.WgslArray<d.U32>;
|
|
23
|
+
access: "mutable";
|
|
24
|
+
};
|
|
25
|
+
}>;
|
|
26
|
+
export declare const automatonLayout: import('typegpu').TgpuBindGroupLayout<{
|
|
27
|
+
neighborhood: {
|
|
28
|
+
uniform: d.U32;
|
|
29
|
+
};
|
|
30
|
+
elements: {
|
|
31
|
+
storage: (elementCount: number) => d.WgslArray<d.WgslStruct<{
|
|
32
|
+
color: d.U32;
|
|
33
|
+
ruleStart: d.U32;
|
|
34
|
+
ruleEnd: d.U32;
|
|
35
|
+
}>>;
|
|
36
|
+
access: "readonly";
|
|
37
|
+
};
|
|
38
|
+
rules: {
|
|
39
|
+
storage: (elementCount: number) => d.WgslArray<d.WgslStruct<{
|
|
40
|
+
toType: d.U32;
|
|
41
|
+
toId: d.U32;
|
|
42
|
+
toNeighbor: d.Vec2u;
|
|
43
|
+
accept: d.U32;
|
|
44
|
+
conditionsStart: d.U32;
|
|
45
|
+
conditionsEnd: d.U32;
|
|
46
|
+
}>>;
|
|
47
|
+
access: "readonly";
|
|
48
|
+
};
|
|
49
|
+
conditions: {
|
|
50
|
+
storage: (elementCount: number) => d.WgslArray<d.WgslStruct<{
|
|
51
|
+
opcode: d.U32;
|
|
52
|
+
checkId: d.U32;
|
|
53
|
+
countOrWithId: d.U32;
|
|
54
|
+
checkPointOrComparePoint: d.Vec2u;
|
|
55
|
+
withPoint: d.Vec2u;
|
|
56
|
+
chance: d.F32;
|
|
57
|
+
}>>;
|
|
58
|
+
access: "readonly";
|
|
59
|
+
};
|
|
60
|
+
}>;
|
|
61
|
+
export declare const mainCompute: import('typegpu').TgpuComputeFn<{
|
|
62
|
+
pos: d.BuiltinGlobalInvocationId;
|
|
63
|
+
}>;
|
|
2
64
|
export declare const setup: ({ canvas, automaton, }: {
|
|
3
65
|
canvas: HTMLCanvasElement;
|
|
4
66
|
automaton: Automaton;
|