pngine 4.1.1 → 4.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pngine",
3
- "version": "4.1.1",
3
+ "version": "4.2.1",
4
4
  "description": "WebGPU spec mapped 1:1 to s-expressions that can be packed in a png",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -89,14 +89,21 @@
89
89
  "./schema/pngine.sjon": "./schema/pngine.sjon"
90
90
  },
91
91
  "optionalDependencies": {
92
- "@pngine/darwin-arm64": "4.1.1",
93
- "@pngine/darwin-x64": "4.1.1",
94
- "@pngine/linux-x64": "4.1.1",
95
- "@pngine/linux-arm64": "4.1.1",
96
- "@pngine/win32-x64": "4.1.1",
97
- "@pngine/win32-arm64": "4.1.1"
92
+ "@pngine/darwin-arm64": "4.2.1",
93
+ "@pngine/darwin-x64": "4.2.1",
94
+ "@pngine/linux-x64": "4.2.1",
95
+ "@pngine/linux-arm64": "4.2.1",
96
+ "@pngine/win32-x64": "4.2.1",
97
+ "@pngine/win32-arm64": "4.2.1"
98
98
  },
99
- "files": ["dist/", "bin/", "src/", "wasm/", "schema/", "README.md"],
99
+ "files": [
100
+ "dist/",
101
+ "bin/",
102
+ "src/",
103
+ "wasm/",
104
+ "schema/",
105
+ "README.md"
106
+ ],
100
107
  "keywords": [
101
108
  "webgpu",
102
109
  "shader",
@@ -399,10 +399,10 @@
399
399
  :description "Runtime-provided uniform data the player writes each frame."
400
400
  :underlying symbol
401
401
  :members (member-set
402
- (member :name pngine-inputs :description "16 B: time, canvasWidth, canvasHeight, aspect (all f32).")
403
- (member :name scene-time-inputs :description "12 B: time, canvasWidth, canvasHeight (all f32) — the first 12 bytes of pngine-inputs. True scene timing is not modelled yet.")
404
- (member :name pngine-frame-inputs :description "20 B: the 16 B of pngine-inputs, then frameIndex (u32) — the executor's frame counter, which is also the ping-pong pool phase. For a jitter sequence (TAA) or any per-frame rotation.")
405
- (member :name pointer-inputs :description "48 B: x, y, clickX, clickY, dx, dy, buttons, pressure, modifiers, scrollX, scrollY, _pad (all f32).")))
402
+ (member :name pngine-inputs :description "16 B: time, canvasWidth, canvasHeight, aspect (all f32). Runtime-provided; there is no authored document declaration to navigate to.")
403
+ (member :name scene-time-inputs :description "12 B: time, canvasWidth, canvasHeight (all f32) — the first 12 bytes of pngine-inputs. True scene timing is not modelled yet. Runtime-provided; there is no authored document declaration to navigate to.")
404
+ (member :name pngine-frame-inputs :description "20 B: the 16 B of pngine-inputs, then frameIndex (u32) — the executor's frame counter, which is also the ping-pong pool phase. For a jitter sequence (TAA) or any per-frame rotation. Runtime-provided; there is no authored document declaration to navigate to.")
405
+ (member :name pointer-inputs :description "48 B: x, y, clickX, clickY, dx, dy, buttons, pressure, modifiers, scrollX, scrollY, _pad (all f32). Runtime-provided; there is no authored document declaration to navigate to.")))
406
406
  ; The two ref arms are ONE cross-ref target group, never a union of two ref
407
407
  ; kinds: a union resolves first-match while the emitter looks the name up in
408
408
  ; separate id tables. A group gives one namespace — a
@@ -546,12 +546,12 @@
546
546
  :description "Builtin attachment view: context-current-texture is the canvas's current texture."
547
547
  :underlying symbol
548
548
  :members (member-set
549
- (member :name context-current-texture :description "The canvas's current swapchain texture.")))
549
+ (member :name context-current-texture :description "The canvas's current swapchain texture. Runtime-provided; there is no authored document declaration to navigate to.")))
550
550
  (value-kind :name color-target-format
551
551
  :description "Color target format. preferred-canvas-format resolves to the platform's canvas format at runtime."
552
552
  :underlying symbol
553
553
  :members (member-set
554
- (member :name preferred-canvas-format :description "Resolved at runtime to the platform's canvas format (bgra8unorm on macOS, rgba8unorm elsewhere).")
554
+ (member :name preferred-canvas-format :description "Resolved at runtime to the platform's canvas format (bgra8unorm on macOS, rgba8unorm elsewhere). Runtime-provided; there is no authored document declaration to navigate to.")
555
555
  (member :name bgra8unorm :description "4×8-bit unorm, BGRA order; common canvas format.")
556
556
  (member :name rgba8unorm :description "4×8-bit unorm; renderable, filterable, blendable.")
557
557
  (member :name rgba16float :description "4×16-bit float; renderable, filterable, blendable; HDR-capable.")
@@ -683,7 +683,7 @@
683
683
  (member :name rgba16unorm :description "4×16-bit unorm; needs texture-formats-tier1. Renderable + blendable when enabled.")
684
684
  (member :name rgba16snorm :description "4×16-bit signed norm; needs texture-formats-tier1. Renderable + blendable when enabled.")
685
685
  (member :name depth32float-stencil8 :description "32-bit float depth plus 8-bit stencil; needs the depth32float-stencil8 device feature.")
686
- (member :name preferred-canvas-format :description "Resolved at runtime to the platform's canvas format.")))
686
+ (member :name preferred-canvas-format :description "Resolved at runtime to the platform's canvas format. Runtime-provided; there is no authored document declaration to navigate to.")))
687
687
  (value-kind :name texture-usage
688
688
  :description "GPUTextureUsage flag — what the texture may be used for."
689
689
  :underlying symbol
@@ -1066,15 +1066,18 @@
1066
1066
  (value-kind :name compute-pass-ref-list
1067
1067
  :description "Declared (compute-pass …) / (init …) names, run in order."
1068
1068
  :underlying vector :vector (vector-shape :element compute-pass-ref :max-len 2048))
1069
- ; One frame step. The three forms share ONE namespace (SJON 1.2.0 multi-target
1069
+ ; One frame step. The forms share ONE namespace (SJON 1.2.0 multi-target
1070
1070
  ; cross-ref): a pass and a queue with the same :name is a
1071
1071
  ; `duplicate_cross_ref_target` at the declaration, so a step can never be
1072
- ; ambiguous. (It used to be a union tried in order, while the emitter kept
1072
+ ; ambiguous. A named graph is in the list because the frame names it in the
1073
+ ; AUTHORED aggregate, where it is a `(pass-graph …)` / `(draw-graph …)` and
1074
+ ; not yet the `(step-group …)` its hook emits.
1075
+ ; (It used to be a union tried in order, while the emitter kept
1073
1076
  ; one table for both pass kinds — a collision silently dropped the render pass.)
1074
1077
  (value-kind :name frame-step
1075
- :description "One frame step: a render-pass, compute-pass, queue or step-group name (one namespace across the four)."
1078
+ :description "One frame step: a render-pass, compute-pass or queue name, a named pass-graph/draw-graph (a step group), or a step-group name (one namespace across the forms)."
1076
1079
  :underlying symbol
1077
- :cross-ref (cross-ref :target [render-pass compute-pass queue step-group]))
1080
+ :cross-ref (cross-ref :target [render-pass compute-pass queue step-group pass-graph draw-graph]))
1078
1081
  (value-kind :name frame-step-list
1079
1082
  :description "Passes and queues run every frame, in order."
1080
1083
  :underlying vector :vector (vector-shape :element frame-step :max-len 2048))
Binary file