@carbonenginejs/runtime-resource 0.11.1 → 0.12.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.
Files changed (211) hide show
  1. package/dist/CjsResMan.js +4 -4
  2. package/dist/CjsResMan.js.map +1 -1
  3. package/dist/_virtual/_rollupPluginBabelHelpers.js +1 -4
  4. package/dist/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
  5. package/dist/format/CjsByteReader.js +310 -0
  6. package/dist/format/CjsByteReader.js.map +1 -0
  7. package/dist/format/CjsByteWriter.js +242 -0
  8. package/dist/format/CjsByteWriter.js.map +1 -0
  9. package/dist/format/CjsFormatError.js +41 -0
  10. package/dist/format/CjsFormatError.js.map +1 -0
  11. package/dist/format/CjsStringTable.js +268 -0
  12. package/dist/format/CjsStringTable.js.map +1 -0
  13. package/dist/format/carbonEffect/CjsCarbonEffectReader.js +361 -0
  14. package/dist/format/carbonEffect/CjsCarbonEffectReader.js.map +1 -0
  15. package/dist/format/carbonEffect/CjsCarbonEffectWriter.js +373 -0
  16. package/dist/format/carbonEffect/CjsCarbonEffectWriter.js.map +1 -0
  17. package/dist/format/carbonEffect/carbonDescriptionFromPortable.js +372 -0
  18. package/dist/format/carbonEffect/carbonDescriptionFromPortable.js.map +1 -0
  19. package/dist/format/carbonEffect/carbonEffectBackendBlock.js +427 -0
  20. package/dist/format/carbonEffect/carbonEffectBackendBlock.js.map +1 -0
  21. package/dist/format/carbonEffect/carbonEffectRecords.js +955 -0
  22. package/dist/format/carbonEffect/carbonEffectRecords.js.map +1 -0
  23. package/dist/format/compareUtf8.js +36 -0
  24. package/dist/format/compareUtf8.js.map +1 -0
  25. package/dist/format/index.js +11 -0
  26. package/dist/format/index.js.map +1 -0
  27. package/dist/formats/bnk/CjsBnkFormat.js +18 -2
  28. package/dist/formats/bnk/CjsBnkFormat.js.map +1 -1
  29. package/dist/formats/bnk/core/eventAction.js +305 -0
  30. package/dist/formats/bnk/core/eventAction.js.map +1 -0
  31. package/dist/formats/bnk/core/graph.js +3 -6
  32. package/dist/formats/bnk/core/graph.js.map +1 -1
  33. package/dist/formats/bnk/core/helpers.js +62 -11
  34. package/dist/formats/bnk/core/helpers.js.map +1 -1
  35. package/dist/formats/bnk/core/nodeBase.js +532 -0
  36. package/dist/formats/bnk/core/nodeBase.js.map +1 -0
  37. package/dist/formats/bnk/core/sfxNodes.js +632 -0
  38. package/dist/formats/bnk/core/sfxNodes.js.map +1 -0
  39. package/dist/formats/bnk/core/soundbanksInfo.js +59 -51
  40. package/dist/formats/bnk/core/soundbanksInfo.js.map +1 -1
  41. package/dist/formats/gr2/CjsGr2Format.js +256 -13
  42. package/dist/formats/gr2/CjsGr2Format.js.map +1 -1
  43. package/dist/formats/gr2/core/helpers.js +15 -15
  44. package/dist/formats/gr2/core/helpers.js.map +1 -1
  45. package/dist/formats/gr2/core/json.js +1 -1
  46. package/dist/formats/gr2/core/json.js.map +1 -1
  47. package/dist/formats/gr2/core/targets.js +1 -1
  48. package/dist/formats/gr2/core/targets.js.map +1 -1
  49. package/dist/formats/gr2/index.js +0 -1
  50. package/dist/formats/gr2/index.js.map +1 -1
  51. package/dist/formats/hlsl/core/HlslReader.js +7 -257
  52. package/dist/formats/hlsl/core/HlslReader.js.map +1 -1
  53. package/dist/formats/hlsl/core/analysis.js +1 -1
  54. package/dist/formats/hlsl/core/carbonDescriptionToRuntime.js +781 -0
  55. package/dist/formats/hlsl/core/carbonDescriptionToRuntime.js.map +1 -0
  56. package/dist/formats/hlsl/core/tr2/resources/HlslEffectRes.js +21 -1
  57. package/dist/formats/hlsl/core/tr2/resources/HlslEffectRes.js.map +1 -1
  58. package/dist/formats/hlsl/index.js +1 -0
  59. package/dist/formats/hlsl/index.js.map +1 -1
  60. package/dist/formats/index.js +3 -6
  61. package/dist/formats/index.js.map +1 -1
  62. package/dist/formats/webgl/core/cewg/CewgPackage.js +2 -1
  63. package/dist/formats/webgl/core/cewg/CewgPackage.js.map +1 -1
  64. package/dist/formats/webgl/core/cewg/binary.js +11 -93
  65. package/dist/formats/webgl/core/cewg/binary.js.map +1 -1
  66. package/dist/formats/webgl/core/effectPackage.js +4 -1
  67. package/dist/formats/webgl/core/effectPackage.js.map +1 -1
  68. package/dist/formats/webgl/core/errors.js +3 -3
  69. package/dist/formats/webgl/core/errors.js.map +1 -1
  70. package/dist/formats/webgpu/CjsWebgpuFormat.js +4 -23
  71. package/dist/formats/webgpu/CjsWebgpuFormat.js.map +1 -1
  72. package/dist/formats/webgpu/core/buildCarbonEffectContainer.js +197 -0
  73. package/dist/formats/webgpu/core/buildCarbonEffectContainer.js.map +1 -0
  74. package/dist/formats/webgpu/core/cewgpu/CewgpuContainer.js +368 -0
  75. package/dist/formats/webgpu/core/cewgpu/CewgpuContainer.js.map +1 -0
  76. package/dist/formats/webgpu/core/cewgpu/containerViews.js +355 -0
  77. package/dist/formats/webgpu/core/cewgpu/containerViews.js.map +1 -0
  78. package/dist/formats/webgpu/core/cewgpu/validateContainer.js +90 -0
  79. package/dist/formats/webgpu/core/cewgpu/validateContainer.js.map +1 -0
  80. package/dist/formats/webgpu/core/effectBackendBodySet.js +21 -20
  81. package/dist/formats/webgpu/core/effectBackendBodySet.js.map +1 -1
  82. package/dist/formats/webgpu/core/helpers.js +87 -92
  83. package/dist/formats/webgpu/core/helpers.js.map +1 -1
  84. package/dist/formats/webgpu/core/ir/analyzeRegisterValues.js +14 -13
  85. package/dist/formats/webgpu/core/ir/analyzeRegisterValues.js.map +1 -1
  86. package/dist/formats/webgpu/core/ir/inferValueTypes.js +10 -8
  87. package/dist/formats/webgpu/core/ir/inferValueTypes.js.map +1 -1
  88. package/dist/formats/webgpu/core/packageEffect.js +94 -9
  89. package/dist/formats/webgpu/core/packageEffect.js.map +1 -1
  90. package/dist/formats/webgpu/core/packageMetadata.js +10 -1
  91. package/dist/formats/webgpu/core/packageMetadata.js.map +1 -1
  92. package/dist/formats/webgpu/core/wgsl/buildResourceTransformPlan.js +17 -15
  93. package/dist/formats/webgpu/core/wgsl/buildResourceTransformPlan.js.map +1 -1
  94. package/dist/formats/webgpu/core/wgsl/buildWgslBindingPlan.js +13 -12
  95. package/dist/formats/webgpu/core/wgsl/buildWgslBindingPlan.js.map +1 -1
  96. package/dist/formats/webgpu/core/wgsl/buildWgslSet.js +9 -8
  97. package/dist/formats/webgpu/core/wgsl/buildWgslSet.js.map +1 -1
  98. package/dist/formats/webgpu/core/wgsl/lowerComputeProgram.js +23 -22
  99. package/dist/formats/webgpu/core/wgsl/lowerComputeProgram.js.map +1 -1
  100. package/dist/formats/webgpu/core/wgsl/selectionPlans.js +46 -44
  101. package/dist/formats/webgpu/core/wgsl/selectionPlans.js.map +1 -1
  102. package/dist/resource/CjsResource.js +700 -684
  103. package/dist/resource/CjsResource.js.map +1 -1
  104. package/dist/resource/Tr2LightProfileRes.js +18 -27
  105. package/dist/resource/Tr2LightProfileRes.js.map +1 -1
  106. package/dist/resource/audio/CjsAudioBufferRes.js +2 -2
  107. package/dist/resource/audio/CjsAudioBufferRes.js.map +1 -1
  108. package/dist/resource/audio/CjsAudioRes.js +2 -2
  109. package/dist/resource/audio/CjsAudioRes.js.map +1 -1
  110. package/dist/resource/geometry/TriGeometryRes.js +605 -586
  111. package/dist/resource/geometry/TriGeometryRes.js.map +1 -1
  112. package/dist/resource/geometry/granny/Tr2GrannyStateRes.js +21 -30
  113. package/dist/resource/geometry/granny/Tr2GrannyStateRes.js.map +1 -1
  114. package/dist/resource/geometry/granny/TriGrannyRes.js +21 -30
  115. package/dist/resource/geometry/granny/TriGrannyRes.js.map +1 -1
  116. package/dist/resource/shader/Tr2EffectRes.js +9 -7
  117. package/dist/resource/shader/Tr2EffectRes.js.map +1 -1
  118. package/dist/resource/shader/Tr2MaterialArea.js +5 -3
  119. package/dist/resource/shader/Tr2MaterialArea.js.map +1 -1
  120. package/dist/resource/shader/Tr2MaterialMesh.js +4 -2
  121. package/dist/resource/shader/Tr2MaterialMesh.js.map +1 -1
  122. package/dist/resource/shader/Tr2MaterialRes.js +5 -3
  123. package/dist/resource/shader/Tr2MaterialRes.js.map +1 -1
  124. package/dist/resource/shader/Tr2Shader.js +26 -21
  125. package/dist/resource/shader/Tr2Shader.js.map +1 -1
  126. package/dist/resource/shader/Tr2ShaderPermutation.js +8 -6
  127. package/dist/resource/shader/Tr2ShaderPermutation.js.map +1 -1
  128. package/dist/resource/shader/reflection/Tr2EffectDefine.js +5 -3
  129. package/dist/resource/shader/reflection/Tr2EffectDefine.js.map +1 -1
  130. package/dist/resource/shader/reflection/Tr2EffectDescription.js +5 -3
  131. package/dist/resource/shader/reflection/Tr2EffectDescription.js.map +1 -1
  132. package/dist/resource/shader/reflection/Tr2EffectLibrary.js +17 -15
  133. package/dist/resource/shader/reflection/Tr2EffectLibrary.js.map +1 -1
  134. package/dist/resource/shader/reflection/Tr2EffectParameterAnnotation.js +11 -9
  135. package/dist/resource/shader/reflection/Tr2EffectParameterAnnotation.js.map +1 -1
  136. package/dist/resource/shader/reflection/Tr2EffectResource.js +8 -6
  137. package/dist/resource/shader/reflection/Tr2EffectResource.js.map +1 -1
  138. package/dist/resource/shader/reflection/Tr2EffectStageInput.js +15 -13
  139. package/dist/resource/shader/reflection/Tr2EffectStageInput.js.map +1 -1
  140. package/dist/resource/shader/reflection/Tr2EffectTechnique.js +7 -5
  141. package/dist/resource/shader/reflection/Tr2EffectTechnique.js.map +1 -1
  142. package/dist/resource/shader/reflection/Tr2Pass.js +11 -9
  143. package/dist/resource/shader/reflection/Tr2Pass.js.map +1 -1
  144. package/dist/resource/shader/sampler/Tr2SamplerSetup.js +8 -6
  145. package/dist/resource/shader/sampler/Tr2SamplerSetup.js.map +1 -1
  146. package/dist/resource/texture/CjsTextureArrayRes.js +400 -411
  147. package/dist/resource/texture/CjsTextureArrayRes.js.map +1 -1
  148. package/dist/resource/texture/Tr2ImageRes.js +99 -95
  149. package/dist/resource/texture/Tr2ImageRes.js.map +1 -1
  150. package/dist/resource/texture/TriTextureRes.js +312 -273
  151. package/dist/resource/texture/TriTextureRes.js.map +1 -1
  152. package/docs/README.md +13 -1
  153. package/docs/architecture.md +3 -3
  154. package/docs/concepts/resource-lifecycle.md +9 -2
  155. package/docs/concepts/shader-resource-model.md +114 -0
  156. package/docs/concepts/writing-an-engine-adapter.md +115 -0
  157. package/docs/formats/README.md +24 -1
  158. package/docs/formats/carbon-effect-container.md +452 -0
  159. package/docs/formats/dxbc/README.md +68 -0
  160. package/docs/formats/dxbc/architecture.md +80 -0
  161. package/docs/formats/dxbc/reference/api.md +77 -0
  162. package/docs/formats/dxbc/reference/classes/README.md +9 -0
  163. package/docs/formats/dxbc/reference/decoded-output.md +122 -0
  164. package/docs/formats/gr2.md +3 -4
  165. package/docs/formats/hlsl/README.md +54 -0
  166. package/docs/formats/hlsl/architecture.md +67 -0
  167. package/docs/formats/hlsl/guides/hydrating-json-output.md +62 -0
  168. package/docs/formats/hlsl/guides/reading-effects.md +64 -0
  169. package/docs/formats/hlsl/reference/advanced-analysis.md +66 -0
  170. package/docs/formats/hlsl/reference/api.md +98 -0
  171. package/docs/formats/hlsl/reference/classes/README.md +11 -0
  172. package/docs/formats/hlsl/reference/json-graph.md +100 -0
  173. package/docs/formats/hlsl/reference/portable-reflection.md +141 -0
  174. package/docs/formats/provenance.md +32 -17
  175. package/docs/formats/webgl/README.md +57 -0
  176. package/docs/formats/webgl/architecture.md +70 -0
  177. package/docs/formats/webgl/carbon-constant-layouts.md +326 -0
  178. package/docs/formats/webgl/decl-io.md +1234 -0
  179. package/docs/formats/webgl/effect-reflection.md +127 -0
  180. package/docs/formats/webgl/memory-structured.md +871 -0
  181. package/docs/formats/webgl/reference/classes/README.md +9 -0
  182. package/docs/formats/webgl/texture-sample.md +964 -0
  183. package/docs/formats/webgpu/README.md +84 -0
  184. package/docs/formats/webgpu/architecture.md +96 -0
  185. package/docs/formats/webgpu/formats/cewgpu.md +216 -0
  186. package/docs/formats/webgpu/guides/effect-packaging.md +191 -0
  187. package/docs/formats/webgpu/reference/api.md +197 -0
  188. package/docs/formats/webgpu/reference/classes/README.md +9 -0
  189. package/docs/formats/webgpu/reference/wgsl-compatibility.md +1543 -0
  190. package/docs/formats/wwise.md +45 -4
  191. package/docs/reference/classes/core.md +80 -0
  192. package/docs/reference/classes/formats.md +24 -34
  193. package/docs/reference/events.md +25 -0
  194. package/docs/reference/motherlode-cache.md +22 -8
  195. package/docs/reference/workers.md +5 -5
  196. package/docs/roadmap.md +61 -41
  197. package/format-notices/bnk/NOTICE +5 -4
  198. package/format-notices/webgl/NOTICE +1 -1
  199. package/package.json +2 -1
  200. package/dist/formats/gr2/core/CjsFormatGr2.js +0 -273
  201. package/dist/formats/gr2/core/CjsFormatGr2.js.map +0 -1
  202. package/dist/formats/webgpu/core/cewgpu/CewgpuPackage.js +0 -415
  203. package/dist/formats/webgpu/core/cewgpu/CewgpuPackage.js.map +0 -1
  204. package/dist/formats/webgpu/core/cewgpu/CewgpuPackageBuilder.js +0 -100
  205. package/dist/formats/webgpu/core/cewgpu/CewgpuPackageBuilder.js.map +0 -1
  206. package/dist/formats/webgpu/core/cewgpu/binary.js +0 -93
  207. package/dist/formats/webgpu/core/cewgpu/binary.js.map +0 -1
  208. package/dist/formats/webgpu/core/cewgpu/tags.js +0 -17
  209. package/dist/formats/webgpu/core/cewgpu/tags.js.map +0 -1
  210. package/dist/formats/webgpu/core/effectPackageValidation.js +0 -1078
  211. package/dist/formats/webgpu/core/effectPackageValidation.js.map +0 -1
@@ -0,0 +1,197 @@
1
+ # Public API reference
2
+
3
+ Status: Evolving
4
+ Scope: `@carbonenginejs/runtime-resource/formats/webgpu`
5
+ Audience: Shader-tool authors and engine integrators
6
+ Summary: Lists the public WebGPU format profile, byte-oriented helpers, options, and output contracts.
7
+
8
+ ## Import
9
+
10
+ ```js
11
+ import CjsWebgpuFormat, {
12
+ CjsWebgpuFormat as WebgpuFormat
13
+ } from "@carbonenginejs/runtime-resource/formats/webgpu";
14
+ ```
15
+
16
+ The default and named exports refer to the same class.
17
+
18
+ ## Reusable profile
19
+
20
+ Construct a profile when several operations share output, source, schema, or
21
+ class-registration options. `permutation` is also reusable by `AnalyzeEffect`
22
+ and `BuildEffect`; current `Read` and `Inspect` derive the translated body or
23
+ Carbon defaults and do not consume that profile field:
24
+
25
+ ```js
26
+ const reader = new WebgpuFormat({
27
+ emit: "json",
28
+ source: "res:/graphics/effect.webgpu/example.sm_hi",
29
+ decodeInstructions: true,
30
+ permutation: null
31
+ });
32
+ ```
33
+
34
+ | Instance method | Purpose |
35
+ | --- | --- |
36
+ | `SetValues(options)` | Merges reusable profile defaults. |
37
+ | `GetValues(options?)` | Returns effective values with optional overrides. |
38
+ | `SetClasses(classes)` | Registers several package-shape constructors. |
39
+ | `SetClass(type, Class)` | Registers or removes one constructor. |
40
+ | `GetClass(type)` | Returns one registered constructor. |
41
+ | `HasClass(type)` | Reports whether a constructor is registered. |
42
+ | `Read(bytes, options?)` | Reads Carbon-record CEWGPU bytes. |
43
+ | `Inspect(bytes, options?)` | Returns a compact container summary. |
44
+ | `AnalyzeEffect(bytes, options?)` | Analyzes compiled-effect bytes without packaging. |
45
+ | `BuildEffect(bytes, options?)` | Translates a version-15 effect to CEWGPU bytes. |
46
+ | `BuildShaderIr(input, options?)` | Builds validated shader IR from DXBC or decoded input. |
47
+ | `BuildWgsl(input, options?)` | Emits supported shader IR as WGSL. |
48
+ | `BuildWgslBindingPlan(programs, options?)` | Allocates one binding layout across a pass. |
49
+ | `BuildWgslSet(entries)` | Assembles emitted shaders and pass layouts. |
50
+ | `ToJSON(value)` | Converts format output to JSON-compatible data. |
51
+
52
+ There is no `Build(chunks)` method. The current wire is a Carbon record tree,
53
+ not a generic chunk container.
54
+
55
+ ## Static helpers
56
+
57
+ | Static helper | Purpose |
58
+ | --- | --- |
59
+ | `isCewgpu(bytes)` | Reports whether bytes have the Carbon-v15 shape. |
60
+ | `read(bytes, options?)` | Reads one container. |
61
+ | `inspect(bytes, options?)` | Inspects one container. |
62
+ | `analyzeEffect(bytes, options?)` | Analyzes one compiled effect. |
63
+ | `buildEffect(bytes, options?)` | Builds CEWGPU bytes from a version-15 effect. |
64
+ | `buildShaderIr(input, options?)` | Builds shader IR. |
65
+ | `buildWgsl(input, options?)` | Emits WGSL. |
66
+ | `buildWgslBindingPlan(programs, options?)` | Allocates a pass binding plan. |
67
+ | `buildWgslSet(entries)` | Builds a portable WGSL set. |
68
+ | `toJSON(value)` | Converts output to JSON-compatible data. |
69
+
70
+ `isCewgpu` checks the first dword for Carbon version 15. CEWGPU has no private
71
+ magic or payload tag, so this is a shape check rather than backend identity.
72
+ Callers establish identity through the resource path that supplied the bytes.
73
+
74
+ ## Profile options
75
+
76
+ | Option | Meaning |
77
+ | --- | --- |
78
+ | `emit` | `"json"` by default or `"raw"` for the internal container reader. |
79
+ | `source` | Caller-owned diagnostic label; it is never opened. |
80
+ | `decodeInstructions` | Includes decoded instruction and IR detail during analysis. |
81
+ | `permutation` | Exact `NAME=VALUE` assertions for `AnalyzeEffect` and `BuildEffect`; ignored by current `Read` and `Inspect`. |
82
+ | `schema` | Optional caller schema record retained by the profile. |
83
+ | `classes` | Optional constructor registrations keyed by `CLASS_KEYS`. |
84
+
85
+ Class registrations are validated and stored for forward compatibility.
86
+ Current JSON reads return plain data rather than hydrated package classes.
87
+
88
+ Raw output is an internal reader over the same bytes. It is not a second wire
89
+ format and should not be persisted.
90
+
91
+ ## Read result
92
+
93
+ JSON `Read` returns:
94
+
95
+ - `format`, Carbon `version`, and `sourcePath`;
96
+ - derived `info` and `metadata`;
97
+ - the complete derived `permutationGraph`;
98
+ - derived `analysis`, `wgsl`, and `backendBodySet`;
99
+ - convenience `stages`, `shaders`, and `layouts` arrays.
100
+
101
+ These records are computed from the Carbon header, descriptions, WGSL program
102
+ slots, and backend blocks. They are not stored chunks. The old `chunks` field
103
+ is intentionally absent.
104
+
105
+ `Inspect` reports the source label, Carbon version, compiler-version bytes,
106
+ permutation count, distinct-body count, and resolved stage/shader/layout
107
+ counts.
108
+
109
+ ## Effect analysis
110
+
111
+ `AnalyzeEffect` accepts supported compiled-effect versions for diagnostic
112
+ analysis. It resolves exact permutation assertions and may include decoded
113
+ DXBC instructions and compiler IR.
114
+
115
+ `BuildEffect` is narrower: current packaging requires the version-15 record
116
+ layout. The wire retains every permutation row and non-program description
117
+ field that the mapping can represent; non-dynamic sampler names are
118
+ unrecoverable and stage order is canonicalized. Source-stage DXBC and the
119
+ caller's source hash are not retained in the wire. The build result retains
120
+ full portable source reflection, including source program bytes. Compiler IR
121
+ is transient and is neither stored in the wire nor returned by `BuildEffect`.
122
+
123
+ Unknown, duplicate, or unresolved permutation assertions fail closed.
124
+
125
+ ## Effect-package options
126
+
127
+ `mode: "selected"` is the default. It translates the resolved body's
128
+ requested complete passes while keeping every permutation row and
129
+ representable non-program description fields in the container.
130
+
131
+ `mode: "all"` first lowers the resolved selection, so an unsupported resolved
132
+ body aborts the build. After that gate succeeds, unsupported later bodies
133
+ remain in the container with empty program slots and appear as unsupported in
134
+ the in-memory body-set view. `allPermutations: true` is a compatibility
135
+ spelling for all mode.
136
+
137
+ `selection` can name a technique, pass index, and complete stage list.
138
+ `bindingPolicy.sharedIdentities` may name compatible cross-stage resources
139
+ that are allowed to share one physical binding.
140
+
141
+ `source` remains a diagnostic label. `sourceIdentity` and `outputPath` are
142
+ returned build provenance; the wire's backend identity still comes from the
143
+ consumer's resource path.
144
+
145
+ ## Build result and qualification
146
+
147
+ `BuildEffect` returns:
148
+
149
+ - `bytes`;
150
+ - build-time `info` and `metadata`;
151
+ - `permutationGraph`, portable `reflection`, and `reflectionBlobs`;
152
+ - selected `analysis` and `wgsl`;
153
+ - `backendBodySet` for all mode;
154
+ - an `inspection` obtained by rereading the emitted bytes; and
155
+ - `qualification`.
156
+
157
+ The richer fields are caller evidence and are not separately stored in the
158
+ container.
159
+
160
+ `qualification.packageValid` reports structural construction. It does not
161
+ claim that every body translated, that a pipeline was prepared, or that a
162
+ draw succeeded. `backendComplete` and `runtimeComplete` retain those broader
163
+ boundaries.
164
+
165
+ ## Binding-plan and WGSL-set helpers
166
+
167
+ `BuildWgslBindingPlan` takes the complete program set for one pass.
168
+ Unshared D3D tuples receive stage-qualified `scopeIdentity` values. A tuple is
169
+ shared only when its base identity appears in `sharedIdentities` and the
170
+ declarations are compatible.
171
+
172
+ `BuildWgslSet` validates shader keys, layouts, numeric slots, and resource
173
+ transforms. Ordinary sets use version 2. A proven physical-resource
174
+ coalescing uses version 3 and carries an explicit transform recipe.
175
+
176
+ ## Static metadata
177
+
178
+ The class exposes `OUTPUT_JSON`, `OUTPUT_RAW`, `CLASS_KEYS`, `type`,
179
+ `mediaTypes`, `inputTypes`, `outputTypes`, `debugOutputTypes`,
180
+ `implementationStatus`, `format`, `analysisFormat`, and `packageVersion`.
181
+
182
+ ## Errors
183
+
184
+ Reads fail closed on malformed Carbon records, sparse or misordered
185
+ permutation tables, out-of-range arena references, trailing record bytes, or a
186
+ program-bearing stage WebGPU cannot express.
187
+
188
+ Builds additionally fail on unsupported source versions, invalid selection,
189
+ unsupported compiler semantics, ambiguous binding plans, non-`main` entry
190
+ points, and malformed backend blocks.
191
+
192
+ ## Related documentation
193
+
194
+ - [Effect packaging guide](../guides/effect-packaging.md)
195
+ - [CEWGPU effect container](../formats/cewgpu.md)
196
+ - [WGSL compatibility](wgsl-compatibility.md)
197
+ - [Class-purpose catalog](classes/README.md)
@@ -0,0 +1,9 @@
1
+ # WebGPU class catalog
2
+
3
+ Status: Deprecated
4
+ Scope: `@carbonenginejs/runtime-resource/formats/webgpu` maintained classes
5
+ Audience: Users, maintainers, and automated readers
6
+ Summary: Points to the canonical package-wide class catalog after format-package consolidation.
7
+
8
+ The maintained WebGPU entries now live in the
9
+ [package-wide formats class catalog](../../../../reference/classes/formats.md#webgpu).