@forgeax/engine-runtime 0.1.6 → 0.1.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 CHANGED
@@ -110,6 +110,22 @@ its structured construction error. After construction, `attach`, `draw`,
110
110
  `inspect`, `observe`, and `recover` remain receipt-bound and `dispose()` is
111
111
  idempotent.
112
112
 
113
+ ### Browser backend selection and diagnosis
114
+
115
+ The default browser path prefers native WebGPU and can retry through the
116
+ `wgpu`/WebGL2 downlevel backend. Consequently, a native-channel
117
+ `adapter-unavailable` error means only that `navigator.gpu.requestAdapter()` did
118
+ not produce an adapter; it is not a verdict that the machine cannot run the
119
+ game. A thrown `requestAdapter()` failure is reported separately as
120
+ `webgpu-runtime-error` with the original name/message in `detail.error`, while a
121
+ literal `null` remains `adapter-unavailable`.
122
+
123
+ Always diagnose the final structured error rather than matching the word
124
+ “WebGPU”. Inspect `.code`, `.expected`, `.hint`, and nested backend causes. Asset,
125
+ shader, Pack, permission-policy, and application bootstrap failures belong to
126
+ their own owners and must not be repaired by replacing ForgeaX with a second
127
+ Canvas renderer or by swallowing the entry-module exception.
128
+
113
129
  ## Import each domain from its owner
114
130
 
115
131
  | Need | Canonical package | Example imports |