@carbonenginejs/runtime-resource 0.1.0 → 0.8.0

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 (329) hide show
  1. package/FORMAT-PROVENANCE.md +155 -135
  2. package/LICENSE +21 -21
  3. package/NOTICE +29 -29
  4. package/README.md +548 -241
  5. package/dist/CjsMotherLode.js +1271 -56
  6. package/dist/CjsMotherLode.js.map +1 -1
  7. package/dist/CjsResMan.js +3005 -740
  8. package/dist/CjsResMan.js.map +1 -1
  9. package/dist/CjsResManQueue.js +214 -214
  10. package/dist/CjsResource.js +566 -366
  11. package/dist/CjsResource.js.map +1 -1
  12. package/dist/CjsResourceSource.js +59 -59
  13. package/dist/_virtual/_rollupPluginBabelHelpers.js +153 -153
  14. package/dist/format/CjsBlueReader.js +269 -0
  15. package/dist/format/CjsBlueReader.js.map +1 -0
  16. package/dist/format/CjsFormat.js +192 -178
  17. package/dist/format/CjsFormat.js.map +1 -1
  18. package/dist/format/CjsReader.js +18 -0
  19. package/dist/format/CjsReader.js.map +1 -0
  20. package/dist/format/CjsResourceProbe.js +277 -269
  21. package/dist/format/CjsResourceProbe.js.map +1 -1
  22. package/dist/format/payloadContract.js +173 -173
  23. package/dist/formats/black/CjsBlackFormat.js +278 -272
  24. package/dist/formats/black/CjsBlackFormat.js.map +1 -1
  25. package/dist/formats/black/core/CjsBlackBinaryReader.js +153 -153
  26. package/dist/formats/black/core/CjsBlackPropertyReaders.js +382 -382
  27. package/dist/formats/black/core/CjsBlackReader.js +639 -760
  28. package/dist/formats/black/core/CjsBlackReader.js.map +1 -1
  29. package/dist/formats/black/core/CjsBlackSchemaRegistry.js +433 -433
  30. package/dist/formats/black/core/black-schema-v1-2026-07-11.json.js +4 -4
  31. package/dist/formats/black/core/blackConstants.js +7 -7
  32. package/dist/formats/black/core/blackDefinitions.js +10 -10
  33. package/dist/formats/black/core/blackEnums.js +6 -6
  34. package/dist/formats/black/core/blackSchema.js +3 -3
  35. package/dist/formats/black/core/blackVersion.js +22 -22
  36. package/dist/formats/black/core/helpers.js +182 -182
  37. package/dist/formats/black/core/schema.js +4 -4
  38. package/dist/formats/black/index.js +2 -2
  39. package/dist/formats/bnk/CjsBnkFormat.js +238 -245
  40. package/dist/formats/bnk/CjsBnkFormat.js.map +1 -1
  41. package/dist/formats/bnk/core/graph.js +140 -0
  42. package/dist/formats/bnk/core/graph.js.map +1 -0
  43. package/dist/formats/bnk/core/helpers.js +409 -354
  44. package/dist/formats/bnk/core/helpers.js.map +1 -1
  45. package/dist/formats/bnk/core/musicNodes.js +521 -0
  46. package/dist/formats/bnk/core/musicNodes.js.map +1 -0
  47. package/dist/formats/bnk/core/soundbanksInfo.js +246 -246
  48. package/dist/formats/bnk/index.js +2 -3
  49. package/dist/formats/bnk/index.js.map +1 -1
  50. package/dist/formats/cmf/CjsCmfFormat.js +497 -491
  51. package/dist/formats/cmf/CjsCmfFormat.js.map +1 -1
  52. package/dist/formats/cmf/core/binary.js +118 -118
  53. package/dist/formats/cmf/core/buffers.js +233 -233
  54. package/dist/formats/cmf/core/constants.js +47 -47
  55. package/dist/formats/cmf/core/gr2Anim.js +453 -453
  56. package/dist/formats/cmf/core/helpers.js +287 -287
  57. package/dist/formats/cmf/core/pack.js +276 -276
  58. package/dist/formats/cmf/core/schema.js +364 -364
  59. package/dist/formats/cmf/core/shared.js +268 -268
  60. package/dist/formats/cmf/core/writer.js +517 -517
  61. package/dist/formats/cmf/index.js +2 -2
  62. package/dist/formats/dds/CjsDdsFormat.js +193 -187
  63. package/dist/formats/dds/CjsDdsFormat.js.map +1 -1
  64. package/dist/formats/dds/core/bc6h.js +288 -0
  65. package/dist/formats/dds/core/bc6h.js.map +1 -0
  66. package/dist/formats/dds/core/bc7.js +251 -0
  67. package/dist/formats/dds/core/bc7.js.map +1 -0
  68. package/dist/formats/dds/core/helpers.js +815 -812
  69. package/dist/formats/dds/core/helpers.js.map +1 -1
  70. package/dist/formats/dds/index.js +2 -2
  71. package/dist/formats/fbx/CjsFbxFormat.js +266 -260
  72. package/dist/formats/fbx/CjsFbxFormat.js.map +1 -1
  73. package/dist/formats/fbx/core/helpers.js +3901 -3901
  74. package/dist/formats/fbx/index.js +2 -2
  75. package/dist/formats/flac/CjsFlacFormat.js +87 -81
  76. package/dist/formats/flac/CjsFlacFormat.js.map +1 -1
  77. package/dist/formats/flac/core/helpers.js +295 -295
  78. package/dist/formats/flac/index.js +2 -2
  79. package/dist/formats/gif/CjsGifFormat.js +87 -81
  80. package/dist/formats/gif/CjsGifFormat.js.map +1 -1
  81. package/dist/formats/gif/core/helpers.js +360 -360
  82. package/dist/formats/gif/index.js +2 -2
  83. package/dist/formats/gltf/CjsGltfFormat.js +290 -284
  84. package/dist/formats/gltf/CjsGltfFormat.js.map +1 -1
  85. package/dist/formats/gltf/core/helpers.js +292 -292
  86. package/dist/formats/gltf/core/json.js +79 -79
  87. package/dist/formats/gltf/core/parser.js +666 -666
  88. package/dist/formats/gltf/core/targets.js +163 -163
  89. package/dist/formats/gltf/index.js +2 -2
  90. package/dist/formats/index.js +23 -23
  91. package/dist/formats/jpeg/CjsJpegFormat.js +206 -200
  92. package/dist/formats/jpeg/CjsJpegFormat.js.map +1 -1
  93. package/dist/formats/jpeg/core/helpers.js +350 -350
  94. package/dist/formats/jpeg/core/jpeg.js +377 -377
  95. package/dist/formats/jpeg/index.js +2 -2
  96. package/dist/formats/mp3/CjsMp3Format.js +192 -186
  97. package/dist/formats/mp3/CjsMp3Format.js.map +1 -1
  98. package/dist/formats/mp3/core/helpers.js +338 -338
  99. package/dist/formats/mp3/index.js +2 -2
  100. package/dist/formats/mp4/CjsMp4Format.js +191 -185
  101. package/dist/formats/mp4/CjsMp4Format.js.map +1 -1
  102. package/dist/formats/mp4/core/helpers.js +449 -449
  103. package/dist/formats/mp4/index.js +2 -2
  104. package/dist/formats/obj/CjsObjFormat.js +253 -247
  105. package/dist/formats/obj/CjsObjFormat.js.map +1 -1
  106. package/dist/formats/obj/core/helpers.js +573 -573
  107. package/dist/formats/obj/core/json.js +64 -64
  108. package/dist/formats/obj/core/parser.js +321 -321
  109. package/dist/formats/obj/index.js +2 -2
  110. package/dist/formats/ogg/CjsOggFormat.js +88 -82
  111. package/dist/formats/ogg/CjsOggFormat.js.map +1 -1
  112. package/dist/formats/ogg/core/helpers.js +387 -387
  113. package/dist/formats/ogg/core/imdct.js +178 -178
  114. package/dist/formats/ogg/core/vorbis.js +999 -999
  115. package/dist/formats/ogg/index.js +2 -2
  116. package/dist/formats/png/CjsPngFormat.js +195 -189
  117. package/dist/formats/png/CjsPngFormat.js.map +1 -1
  118. package/dist/formats/png/core/helpers.js +583 -583
  119. package/dist/formats/png/index.js +2 -2
  120. package/dist/formats/red/CjsRedFormat.js +261 -247
  121. package/dist/formats/red/CjsRedFormat.js.map +1 -1
  122. package/dist/formats/red/core/CjsRedReader.js +194 -201
  123. package/dist/formats/red/core/CjsRedReader.js.map +1 -1
  124. package/dist/formats/red/core/blackDefinitions.js +3 -3
  125. package/dist/formats/red/core/helpers.js +139 -136
  126. package/dist/formats/red/core/helpers.js.map +1 -1
  127. package/dist/formats/red/core/redGraph.js +68 -68
  128. package/dist/formats/red/core/schema.js +4 -4
  129. package/dist/formats/red/index.js +2 -2
  130. package/dist/formats/stl/CjsStlFormat.js +365 -304
  131. package/dist/formats/stl/CjsStlFormat.js.map +1 -1
  132. package/dist/formats/stl/core/helpers.js +261 -257
  133. package/dist/formats/stl/core/helpers.js.map +1 -1
  134. package/dist/formats/stl/core/json.js +51 -51
  135. package/dist/formats/stl/core/stl.js +629 -544
  136. package/dist/formats/stl/core/stl.js.map +1 -1
  137. package/dist/formats/stl/core/targets.js +163 -163
  138. package/dist/formats/stl/index.js +2 -2
  139. package/dist/formats/tga/CjsTgaFormat.js +192 -186
  140. package/dist/formats/tga/CjsTgaFormat.js.map +1 -1
  141. package/dist/formats/tga/core/helpers.js +446 -446
  142. package/dist/formats/tga/index.js +2 -2
  143. package/dist/formats/wav/CjsWavFormat.js +192 -186
  144. package/dist/formats/wav/CjsWavFormat.js.map +1 -1
  145. package/dist/formats/wav/core/helpers.js +328 -328
  146. package/dist/formats/wav/index.js +2 -2
  147. package/dist/formats/webm/CjsWebmFormat.js +191 -185
  148. package/dist/formats/webm/CjsWebmFormat.js.map +1 -1
  149. package/dist/formats/webm/core/helpers.js +537 -537
  150. package/dist/formats/webm/index.js +2 -2
  151. package/dist/formats/webp/CjsWebpFormat.js +86 -80
  152. package/dist/formats/webp/CjsWebpFormat.js.map +1 -1
  153. package/dist/formats/webp/core/helpers.js +214 -214
  154. package/dist/formats/webp/index.js +2 -2
  155. package/dist/formats/wem/CjsWemFormat.js +241 -197
  156. package/dist/formats/wem/CjsWemFormat.js.map +1 -1
  157. package/dist/formats/wem/core/bitStream.js +259 -259
  158. package/dist/formats/wem/core/codebookLibrary.js +164 -164
  159. package/dist/formats/wem/core/helpers.js +417 -336
  160. package/dist/formats/wem/core/helpers.js.map +1 -1
  161. package/dist/formats/wem/core/packedCodebooksAotuv603.js +30 -30
  162. package/dist/formats/wem/core/ptadpcm.js +77 -0
  163. package/dist/formats/wem/core/ptadpcm.js.map +1 -0
  164. package/dist/formats/wem/core/resolve.js +121 -0
  165. package/dist/formats/wem/core/resolve.js.map +1 -0
  166. package/dist/formats/wem/core/wemToOgg.js +485 -485
  167. package/dist/formats/wem/index.js +2 -2
  168. package/dist/formats/yaml/CjsYamlFormat.js +83 -77
  169. package/dist/formats/yaml/CjsYamlFormat.js.map +1 -1
  170. package/dist/formats/yaml/core/CjsYamlReader.js +305 -304
  171. package/dist/formats/yaml/core/CjsYamlReader.js.map +1 -1
  172. package/dist/formats/yaml/core/helpers.js +160 -160
  173. package/dist/formats/yaml/index.js +2 -2
  174. package/dist/index.js +48 -52
  175. package/dist/index.js.map +1 -1
  176. package/dist/resourcePath.js +18 -18
  177. package/dist/resourceStates.js +9 -9
  178. package/dist/{generated/resources → resources}/AudioGeometryResData.js +47 -47
  179. package/dist/resources/AudioGeometryResData.js.map +1 -0
  180. package/dist/{generated/resources → resources}/GStateBindingCallbackData.js +31 -31
  181. package/dist/resources/GStateBindingCallbackData.js.map +1 -0
  182. package/dist/{generated/resources → resources}/MeshDecalData.js +37 -37
  183. package/dist/resources/MeshDecalData.js.map +1 -0
  184. package/dist/{generated/resources → resources}/MeshDecalLodData.js +34 -34
  185. package/dist/resources/MeshDecalLodData.js.map +1 -0
  186. package/dist/resources/Tr2EffectRes.js +71 -71
  187. package/dist/resources/Tr2GrannyIntersectionResult.js +60 -0
  188. package/dist/resources/Tr2GrannyIntersectionResult.js.map +1 -0
  189. package/dist/resources/Tr2GrannyStateRes.js +44 -44
  190. package/dist/resources/Tr2ImageRes.js +114 -114
  191. package/dist/resources/Tr2LightProfileRes.js +40 -40
  192. package/dist/{generated/resources → resources}/Tr2MaterialArea.js +34 -34
  193. package/dist/resources/Tr2MaterialArea.js.map +1 -0
  194. package/dist/{generated/resources → resources}/Tr2MaterialMesh.js +31 -31
  195. package/dist/resources/Tr2MaterialMesh.js.map +1 -0
  196. package/dist/{generated/resources → resources}/Tr2MaterialRes.js +34 -34
  197. package/dist/resources/Tr2MaterialRes.js.map +1 -0
  198. package/dist/{generated/resources → resources}/Tr2ShaderPermutation.js +43 -43
  199. package/dist/resources/Tr2ShaderPermutation.js.map +1 -0
  200. package/dist/{generated/resources → resources}/Tr2TextureLodManager.js +100 -60
  201. package/dist/resources/Tr2TextureLodManager.js.map +1 -0
  202. package/dist/{generated/resources → resources}/Tr2TextureLodUpdateRequest.js +37 -37
  203. package/dist/resources/Tr2TextureLodUpdateRequest.js.map +1 -0
  204. package/dist/{generated/resources → resources}/Tr2TexturePackChannel.js +37 -37
  205. package/dist/resources/Tr2TexturePackChannel.js.map +1 -0
  206. package/dist/resources/Tr2TexturePipeline.js +68 -0
  207. package/dist/resources/Tr2TexturePipeline.js.map +1 -0
  208. package/dist/{generated/resources → resources}/Tr2TexturePipelineParams.js +34 -34
  209. package/dist/resources/Tr2TexturePipelineParams.js.map +1 -0
  210. package/dist/{generated/resources → resources}/Tr2TexturePipelineStepCompress.js +40 -40
  211. package/dist/resources/Tr2TexturePipelineStepCompress.js.map +1 -0
  212. package/dist/{generated/resources → resources}/Tr2TexturePipelineStepLimitSize.js +34 -34
  213. package/dist/resources/Tr2TexturePipelineStepLimitSize.js.map +1 -0
  214. package/dist/{generated/resources → resources}/Tr2TexturePipelineStepLoad.js +31 -31
  215. package/dist/resources/Tr2TexturePipelineStepLoad.js.map +1 -0
  216. package/dist/{generated/resources → resources}/Tr2TexturePipelineStepPack.js +43 -43
  217. package/dist/resources/Tr2TexturePipelineStepPack.js.map +1 -0
  218. package/dist/resources/TriGeometryRes.js +239 -216
  219. package/dist/resources/TriGeometryRes.js.map +1 -1
  220. package/dist/{generated/resources → resources}/TriGeometryResAreaData.js +59 -59
  221. package/dist/resources/TriGeometryResAreaData.js.map +1 -0
  222. package/dist/{generated/resources → resources}/TriGeometryResJointData.js +38 -38
  223. package/dist/resources/TriGeometryResJointData.js.map +1 -0
  224. package/dist/{generated/resources → resources}/TriGeometryResLodData.js +88 -88
  225. package/dist/resources/TriGeometryResLodData.js.map +1 -0
  226. package/dist/{generated/resources → resources}/TriGeometryResMeshData.js +63 -63
  227. package/dist/resources/TriGeometryResMeshData.js.map +1 -0
  228. package/dist/{generated/resources → resources}/TriGeometryResSkeletonData.js +34 -34
  229. package/dist/resources/TriGeometryResSkeletonData.js.map +1 -0
  230. package/dist/resources/TriGrannyRes.js +43 -43
  231. package/dist/{generated/resources → resources}/TriJointBinding.js +38 -38
  232. package/dist/resources/TriJointBinding.js.map +1 -0
  233. package/dist/{generated/resources → resources}/TriMorphTargetGeometryConstants.js +46 -46
  234. package/dist/resources/TriMorphTargetGeometryConstants.js.map +1 -0
  235. package/dist/{generated/resources → resources}/TriRtGeometryConstants.js +88 -88
  236. package/dist/resources/TriRtGeometryConstants.js.map +1 -0
  237. package/dist/resources/TriTextureRes.js +304 -304
  238. package/dist/{generated/resources → resources}/enums.js +18 -18
  239. package/dist/resources/enums.js.map +1 -0
  240. package/dist/resources/resourceBoundary.js +47 -47
  241. package/dist/resources/texturePipelineBehavior.js +320 -0
  242. package/dist/resources/texturePipelineBehavior.js.map +1 -0
  243. package/dist/texture/CjsTextureArrayRes.js +406 -406
  244. package/dist/texture/CjsTextureParameterProxy.js +133 -133
  245. package/format-notices/black/LICENSE +21 -21
  246. package/format-notices/black/NOTICE +47 -47
  247. package/format-notices/bnk/LICENSE +21 -21
  248. package/format-notices/bnk/NOTICE +20 -17
  249. package/format-notices/cmf/LICENSE +21 -21
  250. package/format-notices/cmf/NOTICE +36 -36
  251. package/format-notices/dds/LICENSE +21 -21
  252. package/format-notices/dds/NOTICE +14 -14
  253. package/format-notices/fbx/LICENSE +21 -21
  254. package/format-notices/fbx/NOTICE +14 -14
  255. package/format-notices/flac/LICENSE +21 -21
  256. package/format-notices/flac/NOTICE +14 -14
  257. package/format-notices/gif/LICENSE +21 -21
  258. package/format-notices/gif/NOTICE +14 -14
  259. package/format-notices/gltf/LICENSE +21 -21
  260. package/format-notices/gltf/NOTICE +27 -27
  261. package/format-notices/jpeg/LICENSE +21 -21
  262. package/format-notices/jpeg/NOTICE +14 -14
  263. package/format-notices/mp3/LICENSE +21 -21
  264. package/format-notices/mp3/NOTICE +14 -14
  265. package/format-notices/mp4/LICENSE +21 -21
  266. package/format-notices/mp4/NOTICE +14 -14
  267. package/format-notices/obj/LICENSE +21 -21
  268. package/format-notices/obj/NOTICE +26 -26
  269. package/format-notices/ogg/LICENSE +21 -21
  270. package/format-notices/ogg/NOTICE +28 -28
  271. package/format-notices/png/LICENSE +21 -21
  272. package/format-notices/png/NOTICE +14 -14
  273. package/format-notices/red/LICENSE +21 -21
  274. package/format-notices/red/NOTICE +31 -31
  275. package/format-notices/stl/LICENSE +21 -21
  276. package/format-notices/stl/NOTICE +21 -21
  277. package/format-notices/tga/LICENSE +21 -21
  278. package/format-notices/tga/NOTICE +14 -14
  279. package/format-notices/wav/LICENSE +21 -21
  280. package/format-notices/wav/NOTICE +14 -14
  281. package/format-notices/webm/LICENSE +21 -21
  282. package/format-notices/webm/NOTICE +14 -14
  283. package/format-notices/webp/LICENSE +21 -21
  284. package/format-notices/webp/NOTICE +14 -14
  285. package/format-notices/wem/LICENSE +57 -57
  286. package/format-notices/wem/NOTICE +33 -33
  287. package/format-notices/yaml/LICENSE +21 -21
  288. package/format-notices/yaml/NOTICE +44 -44
  289. package/package.json +51 -51
  290. package/resource-lifecycle.md +679 -487
  291. package/dist/generated/resources/AudioGeometryResData.js.map +0 -1
  292. package/dist/generated/resources/CmfVertexReader.js +0 -46
  293. package/dist/generated/resources/CmfVertexReader.js.map +0 -1
  294. package/dist/generated/resources/GStateBindingCallbackData.js.map +0 -1
  295. package/dist/generated/resources/MeshDecalData.js.map +0 -1
  296. package/dist/generated/resources/MeshDecalLodData.js.map +0 -1
  297. package/dist/generated/resources/Tr2AsyncSave.js +0 -46
  298. package/dist/generated/resources/Tr2AsyncSave.js.map +0 -1
  299. package/dist/generated/resources/Tr2CmfContents.js +0 -37
  300. package/dist/generated/resources/Tr2CmfContents.js.map +0 -1
  301. package/dist/generated/resources/Tr2GrannyIntersectionResult.js +0 -58
  302. package/dist/generated/resources/Tr2GrannyIntersectionResult.js.map +0 -1
  303. package/dist/generated/resources/Tr2LoadPrepareFence.js +0 -37
  304. package/dist/generated/resources/Tr2LoadPrepareFence.js.map +0 -1
  305. package/dist/generated/resources/Tr2MaterialArea.js.map +0 -1
  306. package/dist/generated/resources/Tr2MaterialMesh.js.map +0 -1
  307. package/dist/generated/resources/Tr2MaterialRes.js.map +0 -1
  308. package/dist/generated/resources/Tr2ShaderPermutation.js.map +0 -1
  309. package/dist/generated/resources/Tr2TextureLodManager.js.map +0 -1
  310. package/dist/generated/resources/Tr2TextureLodUpdateRequest.js.map +0 -1
  311. package/dist/generated/resources/Tr2TexturePackChannel.js.map +0 -1
  312. package/dist/generated/resources/Tr2TexturePipeline.js +0 -44
  313. package/dist/generated/resources/Tr2TexturePipeline.js.map +0 -1
  314. package/dist/generated/resources/Tr2TexturePipelineParams.js.map +0 -1
  315. package/dist/generated/resources/Tr2TexturePipelineStepCompress.js.map +0 -1
  316. package/dist/generated/resources/Tr2TexturePipelineStepLimitSize.js.map +0 -1
  317. package/dist/generated/resources/Tr2TexturePipelineStepLoad.js.map +0 -1
  318. package/dist/generated/resources/Tr2TexturePipelineStepPack.js.map +0 -1
  319. package/dist/generated/resources/TriGeometryResAreaData.js.map +0 -1
  320. package/dist/generated/resources/TriGeometryResJointData.js.map +0 -1
  321. package/dist/generated/resources/TriGeometryResLodData.js.map +0 -1
  322. package/dist/generated/resources/TriGeometryResMeshData.js.map +0 -1
  323. package/dist/generated/resources/TriGeometryResSkeletonData.js.map +0 -1
  324. package/dist/generated/resources/TriJointBinding.js.map +0 -1
  325. package/dist/generated/resources/TriMorphTargetGeometryConstants.js.map +0 -1
  326. package/dist/generated/resources/TriRtGeometryConstants.js.map +0 -1
  327. package/dist/generated/resources/enums.js.map +0 -1
  328. package/dist/generated/resources/index.js +0 -32
  329. package/dist/generated/resources/index.js.map +0 -1
@@ -1,43 +1,43 @@
1
- import { applyDecs2311 as _applyDecs2311 } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import { type } from '@carbonenginejs/core-types/schema';
3
- import { CjsModel } from '@carbonenginejs/core-types/model';
4
-
5
- let _initClass, _init_name, _init_extra_name, _init_options, _init_extra_options, _init_defaultOption, _init_extra_defaultOption, _init_description, _init_extra_description, _init_type, _init_extra_type;
6
-
7
- /** Tr2ShaderPermutation (resources) - generated from schema shapeHash baf42e3d.... */
8
- let _Tr2ShaderPermutation;
9
- class Tr2ShaderPermutation extends CjsModel {
10
- static {
11
- ({
12
- e: [_init_name, _init_extra_name, _init_options, _init_extra_options, _init_defaultOption, _init_extra_defaultOption, _init_description, _init_extra_description, _init_type, _init_extra_type],
13
- c: [_Tr2ShaderPermutation, _initClass]
14
- } = _applyDecs2311(this, [type.define({
15
- className: "Tr2ShaderPermutation",
16
- family: "resources"
17
- })], [[[type, type.string], 16, "name"], [type.list("BlueSharedString"), 0, "options"], [[type, type.uint64], 16, "defaultOption"], [[type, type.string], 16, "description"], [[type, type.uint8], 16, "type"]], 0, void 0, CjsModel));
18
- }
19
- constructor(...args) {
20
- super(...args);
21
- _init_extra_type(this);
22
- }
23
- /** name (BlueSharedString) */
24
- name = _init_name(this, "");
25
-
26
- /** options (std::vector<BlueSharedString>) */
27
- options = (_init_extra_name(this), _init_options(this, []));
28
-
29
- /** defaultOption (size_t) */
30
- defaultOption = (_init_extra_options(this), _init_defaultOption(this, 0));
31
-
32
- /** description (std::string) */
33
- description = (_init_extra_defaultOption(this), _init_description(this, ""));
34
-
35
- /** type (uint8_t) */
36
- type = (_init_extra_description(this), _init_type(this, 0));
37
- static {
38
- _initClass();
39
- }
40
- }
41
-
42
- export { _Tr2ShaderPermutation as Tr2ShaderPermutation };
43
- //# sourceMappingURL=Tr2ShaderPermutation.js.map
1
+ import { applyDecs2311 as _applyDecs2311 } from '../_virtual/_rollupPluginBabelHelpers.js';
2
+ import { type } from '@carbonenginejs/core-types/schema';
3
+ import { CjsModel } from '@carbonenginejs/core-types/model';
4
+
5
+ let _initClass, _init_name, _init_extra_name, _init_options, _init_extra_options, _init_defaultOption, _init_extra_defaultOption, _init_description, _init_extra_description, _init_type, _init_extra_type;
6
+
7
+ /** Tr2ShaderPermutation (resources) - maintained from schema shapeHash baf42e3d.... */
8
+ let _Tr2ShaderPermutation;
9
+ class Tr2ShaderPermutation extends CjsModel {
10
+ static {
11
+ ({
12
+ e: [_init_name, _init_extra_name, _init_options, _init_extra_options, _init_defaultOption, _init_extra_defaultOption, _init_description, _init_extra_description, _init_type, _init_extra_type],
13
+ c: [_Tr2ShaderPermutation, _initClass]
14
+ } = _applyDecs2311(this, [type.define({
15
+ className: "Tr2ShaderPermutation",
16
+ family: "resources"
17
+ })], [[[type, type.string], 16, "name"], [type.list("BlueSharedString"), 0, "options"], [[type, type.uint64], 16, "defaultOption"], [[type, type.string], 16, "description"], [[type, type.uint8], 16, "type"]], 0, void 0, CjsModel));
18
+ }
19
+ constructor(...args) {
20
+ super(...args);
21
+ _init_extra_type(this);
22
+ }
23
+ /** name (BlueSharedString) */
24
+ name = _init_name(this, "");
25
+
26
+ /** options (std::vector<BlueSharedString>) */
27
+ options = (_init_extra_name(this), _init_options(this, []));
28
+
29
+ /** defaultOption (size_t) */
30
+ defaultOption = (_init_extra_options(this), _init_defaultOption(this, 0));
31
+
32
+ /** description (std::string) */
33
+ description = (_init_extra_defaultOption(this), _init_description(this, ""));
34
+
35
+ /** type (uint8_t) */
36
+ type = (_init_extra_description(this), _init_type(this, 0));
37
+ static {
38
+ _initClass();
39
+ }
40
+ }
41
+
42
+ export { _Tr2ShaderPermutation as Tr2ShaderPermutation };
43
+ //# sourceMappingURL=Tr2ShaderPermutation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tr2ShaderPermutation.js","sources":["../../../src/resources/Tr2ShaderPermutation.js"],"sourcesContent":["// Source: trinity/trinity/Resources/Tr2EffectRes.h\r\n// Schema: format-carbon resources/Tr2ShaderPermutation.json; maintained by runtime-resource.\r\nimport { type } from \"@carbonenginejs/core-types/schema\";\r\nimport { CjsModel } from \"@carbonenginejs/core-types/model\";\r\n\r\n/** Tr2ShaderPermutation (resources) - maintained from schema shapeHash baf42e3d.... */\r\n@type.define({ className: \"Tr2ShaderPermutation\", family: \"resources\" })\r\nexport class Tr2ShaderPermutation extends CjsModel\r\n{\r\n\r\n /** name (BlueSharedString) */\r\n @type.string\r\n name = \"\";\r\n\r\n /** options (std::vector<BlueSharedString>) */\r\n @type.list(\"BlueSharedString\")\r\n options = [];\r\n\r\n /** defaultOption (size_t) */\r\n @type.uint64\r\n defaultOption = 0;\r\n\r\n /** description (std::string) */\r\n @type.string\r\n description = \"\";\r\n\r\n /** type (uint8_t) */\r\n @type.uint8\r\n type = 0;\r\n\r\n}\r\n"],"names":["_Tr2ShaderPermutation","Tr2ShaderPermutation","CjsModel","e","_init_name","_init_extra_name","_init_options","_init_extra_options","_init_defaultOption","_init_extra_defaultOption","_init_description","_init_extra_description","_init_type","_init_extra_type","c","_initClass","_applyDecs","type","define","className","family","string","list","uint64","uint8","constructor","args","name","options","defaultOption","description"],"mappings":";;;;;;AAKA;AAAA,IAAAA;AACA,MAAAC,oBAAA,SAC0CC,QAAQ,CAClD;AAAA,EAAA;AAAA,IAAA,CAAA;AAAAC,MAAAA,CAAA,GAAAC,UAAA,EAAAC,gBAAA,EAAAC,aAAA,EAAAC,mBAAA,EAAAC,mBAAA,EAAAC,yBAAA,EAAAC,iBAAA,EAAAC,uBAAA,EAAAC,UAAA,EAAAC,gBAAA,CAAA;MAAAC,CAAA,EAAA,CAAAd,qBAAA,EAAAe,UAAA;AAAA,KAAA,GAAAC,cAAA,CAAA,IAAA,EAAA,CAFCC,IAAI,CAACC,MAAM,CAAC;AAAEC,MAAAA,SAAS,EAAE,sBAAsB;AAAEC,MAAAA,MAAM,EAAE;AAAY,KAAC,CAAC,CAAA,EAAA,CAAA,CAAA,CAKrEH,IAAI,EAAJA,IAAI,CAACI,MAAM,CAAA,EAAA,EAAA,EAAA,MAAA,CAAA,EAAA,CAIXJ,IAAI,CAACK,IAAI,CAAC,kBAAkB,CAAC,EAAA,CAAA,EAAA,SAAA,CAAA,EAAA,CAAA,CAI7BL,IAAI,EAAJA,IAAI,CAACM,MAAM,CAAA,EAAA,EAAA,EAAA,eAAA,CAAA,EAAA,CAAA,CAIXN,IAAI,EAAJA,IAAI,CAACI,MAAM,CAAA,EAAA,EAAA,EAAA,aAAA,CAAA,EAAA,CAAA,CAIXJ,IAAI,EAAJA,IAAI,CAACO,KAAK,4BApB6BtB,QAAQ,CAAA;AAAA;AAAAuB,EAAAA,WAAAA,CAAA,GAAAC,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAAA,IAAA,CAAA;IAAAb,gBAAA,CAAA,IAAA,CAAA;AAAA,EAAA;AAGhD;EAEAc,IAAI,GAAAvB,UAAA,CAAA,IAAA,EAAG,EAAE,CAAA;;AAET;AAEAwB,EAAAA,OAAO,IAAAvB,gBAAA,CAAA,IAAA,CAAA,EAAAC,aAAA,OAAG,EAAE,CAAA;;AAEZ;AAEAuB,EAAAA,aAAa,IAAAtB,mBAAA,CAAA,IAAA,CAAA,EAAAC,mBAAA,OAAG,CAAC,CAAA;;AAEjB;AAEAsB,EAAAA,WAAW,IAAArB,yBAAA,CAAA,IAAA,CAAA,EAAAC,iBAAA,OAAG,EAAE,CAAA;;AAEhB;AAEAO,EAAAA,IAAI,IAAAN,uBAAA,CAAA,IAAA,CAAA,EAAAC,UAAA,OAAG,CAAC,CAAA;AAAC,EAAA;IAAAG,UAAA,EAAA;AAAA;AAEX;;;;"}
@@ -1,60 +1,100 @@
1
- import { applyDecs2311 as _applyDecs2311 } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import { type, carbon, impl } from '@carbonenginejs/core-types/schema';
3
- import { CjsModel } from '@carbonenginejs/core-types/model';
4
-
5
- let _initProto, _initClass, _init_gpuMemoryUsed, _init_extra_gpuMemoryUsed, _init_gpuMemoryAllocated, _init_extra_gpuMemoryAllocated, _init_cpuMemoryUsed, _init_extra_cpuMemoryUsed, _init_cpuMemoryAllocated, _init_extra_cpuMemoryAllocated, _init_gpuUploadSize, _init_extra_gpuUploadSize, _init_gpuMemorySize, _init_extra_gpuMemorySize, _init_cpuMemorySize, _init_extra_cpuMemorySize, _init_currentStats, _init_extra_currentStats, _init_lowDetailVtaFiles, _init_extra_lowDetailVtaFiles;
6
-
7
- /** Tr2TextureLodManager (resources) - generated from schema shapeHash 8ff60d4f.... */
8
- let _Tr2TextureLodManager;
9
- class Tr2TextureLodManager extends CjsModel {
10
- static {
11
- ({
12
- e: [_init_gpuMemoryUsed, _init_extra_gpuMemoryUsed, _init_gpuMemoryAllocated, _init_extra_gpuMemoryAllocated, _init_cpuMemoryUsed, _init_extra_cpuMemoryUsed, _init_cpuMemoryAllocated, _init_extra_cpuMemoryAllocated, _init_gpuUploadSize, _init_extra_gpuUploadSize, _init_gpuMemorySize, _init_extra_gpuMemorySize, _init_cpuMemorySize, _init_extra_cpuMemorySize, _init_currentStats, _init_extra_currentStats, _init_lowDetailVtaFiles, _init_extra_lowDetailVtaFiles, _initProto],
13
- c: [_Tr2TextureLodManager, _initClass]
14
- } = _applyDecs2311(this, [type.define({
15
- className: "Tr2TextureLodManager",
16
- family: "resources"
17
- })], [[[type, type.uint64], 16, "gpuMemoryUsed"], [[type, type.uint64], 16, "gpuMemoryAllocated"], [[type, type.uint64], 16, "cpuMemoryUsed"], [[type, type.uint64], 16, "cpuMemoryAllocated"], [[type, type.uint64], 16, "gpuUploadSize"], [[type, type.unknown], 16, "gpuMemorySize"], [[type, type.unknown], 16, "cpuMemorySize"], [type.rawStruct("Stats"), 0, "currentStats"], [[type, type.boolean], 16, "lowDetailVtaFiles"], [[carbon, carbon.method, impl, impl.notImplemented], 18, "GetManagedTextures"]], 0, void 0, CjsModel));
18
- }
19
- constructor(...args) {
20
- super(...args);
21
- _init_extra_lowDetailVtaFiles(this);
22
- }
23
- /** gpuMemoryUsed (size_t) */
24
- gpuMemoryUsed = (_initProto(this), _init_gpuMemoryUsed(this, 0));
25
-
26
- /** gpuMemoryAllocated (size_t) */
27
- gpuMemoryAllocated = (_init_extra_gpuMemoryUsed(this), _init_gpuMemoryAllocated(this, 0));
28
-
29
- /** cpuMemoryUsed (size_t) */
30
- cpuMemoryUsed = (_init_extra_gpuMemoryAllocated(this), _init_cpuMemoryUsed(this, 0));
31
-
32
- /** cpuMemoryAllocated (size_t) */
33
- cpuMemoryAllocated = (_init_extra_cpuMemoryUsed(this), _init_cpuMemoryAllocated(this, 0));
34
-
35
- /** gpuUploadSize (size_t) */
36
- gpuUploadSize = (_init_extra_cpuMemoryAllocated(this), _init_gpuUploadSize(this, 0));
37
-
38
- /** m_gpuMemorySize (CcpAtomic<uint32_t>) */
39
- gpuMemorySize = (_init_extra_gpuUploadSize(this), _init_gpuMemorySize(this, 0));
40
-
41
- /** m_cpuMemorySize (CcpAtomic<uint32_t>) */
42
- cpuMemorySize = (_init_extra_gpuMemorySize(this), _init_cpuMemorySize(this, 0));
43
-
44
- /** m_currentStats (Stats) */
45
- currentStats = (_init_extra_cpuMemorySize(this), _init_currentStats(this, null));
46
-
47
- /** m_lowDetailVtaFiles (bool) */
48
- lowDetailVtaFiles = (_init_extra_currentStats(this), _init_lowDetailVtaFiles(this, false));
49
-
50
- /** Carbon method GetManagedTextures (MAP_METHOD_AND_WRAP). */
51
- GetManagedTextures(...args) {
52
- throw new Error("Tr2TextureLodManager.GetManagedTextures is not implemented in CarbonEngineJS.");
53
- }
54
- static {
55
- _initClass();
56
- }
57
- }
58
-
59
- export { _Tr2TextureLodManager as Tr2TextureLodManager };
60
- //# sourceMappingURL=Tr2TextureLodManager.js.map
1
+ import { applyDecs2311 as _applyDecs2311 } from '../_virtual/_rollupPluginBabelHelpers.js';
2
+ import { type, carbon, impl } from '@carbonenginejs/core-types/schema';
3
+ import { CjsModel } from '@carbonenginejs/core-types/model';
4
+
5
+ let _initProto, _initClass, _init_gpuMemoryUsed, _init_extra_gpuMemoryUsed, _init_gpuMemoryAllocated, _init_extra_gpuMemoryAllocated, _init_cpuMemoryUsed, _init_extra_cpuMemoryUsed, _init_cpuMemoryAllocated, _init_extra_cpuMemoryAllocated, _init_gpuUploadSize, _init_extra_gpuUploadSize, _init_gpuMemorySize, _init_extra_gpuMemorySize, _init_cpuMemorySize, _init_extra_cpuMemorySize, _init_currentStats, _init_extra_currentStats, _init_lowDetailVtaFiles, _init_extra_lowDetailVtaFiles;
6
+
7
+ /**
8
+ * CPU-side registry for texture resources participating in LOD management.
9
+ *
10
+ * Carbon also accounts for device memory in this class. CarbonEngineJS keeps
11
+ * device allocation and budget policy in engine packages, so this runtime
12
+ * class owns only deterministic resource membership.
13
+ */
14
+ let _Tr2TextureLodManager;
15
+ class Tr2TextureLodManager extends CjsModel {
16
+ static {
17
+ ({
18
+ e: [_init_gpuMemoryUsed, _init_extra_gpuMemoryUsed, _init_gpuMemoryAllocated, _init_extra_gpuMemoryAllocated, _init_cpuMemoryUsed, _init_extra_cpuMemoryUsed, _init_cpuMemoryAllocated, _init_extra_cpuMemoryAllocated, _init_gpuUploadSize, _init_extra_gpuUploadSize, _init_gpuMemorySize, _init_extra_gpuMemorySize, _init_cpuMemorySize, _init_extra_cpuMemorySize, _init_currentStats, _init_extra_currentStats, _init_lowDetailVtaFiles, _init_extra_lowDetailVtaFiles, _initProto],
19
+ c: [_Tr2TextureLodManager, _initClass]
20
+ } = _applyDecs2311(this, [type.define({
21
+ className: "Tr2TextureLodManager",
22
+ family: "resources"
23
+ })], [[[type, type.uint64], 16, "gpuMemoryUsed"], [[type, type.uint64], 16, "gpuMemoryAllocated"], [[type, type.uint64], 16, "cpuMemoryUsed"], [[type, type.uint64], 16, "cpuMemoryAllocated"], [[type, type.uint64], 16, "gpuUploadSize"], [[type, type.unknown], 16, "gpuMemorySize"], [[type, type.unknown], 16, "cpuMemorySize"], [type.rawStruct("Stats"), 0, "currentStats"], [[type, type.boolean], 16, "lowDetailVtaFiles"], [[carbon, carbon.method, impl, impl.implemented], 18, "RegisterTexture"], [[carbon, carbon.method, impl, impl.implemented], 18, "UnregisterTexture"], [[carbon, carbon.method, impl, impl.implemented], 18, "GetManagedTextures"]], 0, void 0, CjsModel));
24
+ }
25
+ /** gpuMemoryUsed (size_t) */
26
+ gpuMemoryUsed = (_initProto(this), _init_gpuMemoryUsed(this, 0));
27
+
28
+ /** gpuMemoryAllocated (size_t) */
29
+ gpuMemoryAllocated = (_init_extra_gpuMemoryUsed(this), _init_gpuMemoryAllocated(this, 0));
30
+
31
+ /** cpuMemoryUsed (size_t) */
32
+ cpuMemoryUsed = (_init_extra_gpuMemoryAllocated(this), _init_cpuMemoryUsed(this, 0));
33
+
34
+ /** cpuMemoryAllocated (size_t) */
35
+ cpuMemoryAllocated = (_init_extra_cpuMemoryUsed(this), _init_cpuMemoryAllocated(this, 0));
36
+
37
+ /** gpuUploadSize (size_t) */
38
+ gpuUploadSize = (_init_extra_cpuMemoryAllocated(this), _init_gpuUploadSize(this, 0));
39
+
40
+ /** m_gpuMemorySize (CcpAtomic<uint32_t>) */
41
+ gpuMemorySize = (_init_extra_gpuUploadSize(this), _init_gpuMemorySize(this, 0));
42
+
43
+ /** m_cpuMemorySize (CcpAtomic<uint32_t>) */
44
+ cpuMemorySize = (_init_extra_gpuMemorySize(this), _init_cpuMemorySize(this, 0));
45
+
46
+ /** m_currentStats (Stats) */
47
+ currentStats = (_init_extra_cpuMemorySize(this), _init_currentStats(this, null));
48
+
49
+ /** m_lowDetailVtaFiles (bool) */
50
+ lowDetailVtaFiles = (_init_extra_currentStats(this), _init_lowDetailVtaFiles(this, false));
51
+ #textures = (_init_extra_lowDetailVtaFiles(this), []);
52
+ constructor(values = null) {
53
+ super();
54
+ this.SetValues(values || {}, {
55
+ markDirty: false,
56
+ skipUpdate: true,
57
+ skipEvents: true
58
+ });
59
+ }
60
+
61
+ /**
62
+ * Append one texture to the managed list in registration order.
63
+ *
64
+ * @param {object} texture Texture resource.
65
+ * @returns {Tr2TextureLodManager} This manager.
66
+ */
67
+ RegisterTexture(texture) {
68
+ if (!texture || typeof texture !== "object" && typeof texture !== "function") {
69
+ throw new TypeError("Tr2TextureLodManager.RegisterTexture requires a texture object.");
70
+ }
71
+ this.#textures.push(texture);
72
+ return this;
73
+ }
74
+
75
+ /**
76
+ * Remove a registered texture.
77
+ *
78
+ * @param {object} texture Texture resource.
79
+ * @returns {Tr2TextureLodManager} This manager.
80
+ */
81
+ UnregisterTexture(texture) {
82
+ this.#textures = this.#textures.filter(entry => entry !== texture);
83
+ return this;
84
+ }
85
+
86
+ /**
87
+ * Return a snapshot of registered texture resources.
88
+ *
89
+ * @returns {object[]} Registered textures in Carbon registration order.
90
+ */
91
+ GetManagedTextures() {
92
+ return this.#textures.slice();
93
+ }
94
+ static {
95
+ _initClass();
96
+ }
97
+ }
98
+
99
+ export { _Tr2TextureLodManager as Tr2TextureLodManager };
100
+ //# sourceMappingURL=Tr2TextureLodManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tr2TextureLodManager.js","sources":["../../../src/resources/Tr2TextureLodManager.js"],"sourcesContent":["// Source: trinity/trinity/Resources/Tr2TextureLodManager.h\r\n// Source: trinity/trinity/Resources/Tr2TextureLodManager.cpp\r\n// Source: trinity/trinity/Resources/Tr2TextureLodManager_Blue.cpp\r\nimport { carbon, impl, type } from \"@carbonenginejs/core-types/schema\";\r\nimport { CjsModel } from \"@carbonenginejs/core-types/model\";\r\n\r\n/**\r\n * CPU-side registry for texture resources participating in LOD management.\r\n *\r\n * Carbon also accounts for device memory in this class. CarbonEngineJS keeps\r\n * device allocation and budget policy in engine packages, so this runtime\r\n * class owns only deterministic resource membership.\r\n */\r\n@type.define({ className: \"Tr2TextureLodManager\", family: \"resources\" })\r\nexport class Tr2TextureLodManager extends CjsModel\r\n{\r\n\r\n /** gpuMemoryUsed (size_t) */\r\n @type.uint64\r\n gpuMemoryUsed = 0;\r\n\r\n /** gpuMemoryAllocated (size_t) */\r\n @type.uint64\r\n gpuMemoryAllocated = 0;\r\n\r\n /** cpuMemoryUsed (size_t) */\r\n @type.uint64\r\n cpuMemoryUsed = 0;\r\n\r\n /** cpuMemoryAllocated (size_t) */\r\n @type.uint64\r\n cpuMemoryAllocated = 0;\r\n\r\n /** gpuUploadSize (size_t) */\r\n @type.uint64\r\n gpuUploadSize = 0;\r\n\r\n /** m_gpuMemorySize (CcpAtomic<uint32_t>) */\r\n @type.unknown\r\n gpuMemorySize = 0;\r\n\r\n /** m_cpuMemorySize (CcpAtomic<uint32_t>) */\r\n @type.unknown\r\n cpuMemorySize = 0;\r\n\r\n /** m_currentStats (Stats) */\r\n @type.rawStruct(\"Stats\")\r\n currentStats = null;\r\n\r\n /** m_lowDetailVtaFiles (bool) */\r\n @type.boolean\r\n lowDetailVtaFiles = false;\r\n\r\n #textures = [];\r\n\r\n constructor(values = null)\r\n {\r\n super();\r\n this.SetValues(values || {}, {\r\n markDirty: false,\r\n skipUpdate: true,\r\n skipEvents: true\r\n });\r\n }\r\n\r\n /**\r\n * Append one texture to the managed list in registration order.\r\n *\r\n * @param {object} texture Texture resource.\r\n * @returns {Tr2TextureLodManager} This manager.\r\n */\r\n @carbon.method\r\n @impl.implemented\r\n RegisterTexture(texture)\r\n {\r\n if (!texture || (typeof texture !== \"object\" && typeof texture !== \"function\"))\r\n {\r\n throw new TypeError(\"Tr2TextureLodManager.RegisterTexture requires a texture object.\");\r\n }\r\n this.#textures.push(texture);\r\n return this;\r\n }\r\n\r\n /**\r\n * Remove a registered texture.\r\n *\r\n * @param {object} texture Texture resource.\r\n * @returns {Tr2TextureLodManager} This manager.\r\n */\r\n @carbon.method\r\n @impl.implemented\r\n UnregisterTexture(texture)\r\n {\r\n this.#textures = this.#textures.filter(entry => entry !== texture);\r\n return this;\r\n }\r\n\r\n /**\r\n * Return a snapshot of registered texture resources.\r\n *\r\n * @returns {object[]} Registered textures in Carbon registration order.\r\n */\r\n @carbon.method\r\n @impl.implemented\r\n GetManagedTextures()\r\n {\r\n return this.#textures.slice();\r\n }\r\n\r\n}\r\n"],"names":["_Tr2TextureLodManager","Tr2TextureLodManager","CjsModel","e","_init_gpuMemoryUsed","_init_extra_gpuMemoryUsed","_init_gpuMemoryAllocated","_init_extra_gpuMemoryAllocated","_init_cpuMemoryUsed","_init_extra_cpuMemoryUsed","_init_cpuMemoryAllocated","_init_extra_cpuMemoryAllocated","_init_gpuUploadSize","_init_extra_gpuUploadSize","_init_gpuMemorySize","_init_extra_gpuMemorySize","_init_cpuMemorySize","_init_extra_cpuMemorySize","_init_currentStats","_init_extra_currentStats","_init_lowDetailVtaFiles","_init_extra_lowDetailVtaFiles","_initProto","c","_initClass","_applyDecs","type","define","className","family","uint64","unknown","rawStruct","boolean","carbon","method","impl","implemented","gpuMemoryUsed","gpuMemoryAllocated","cpuMemoryUsed","cpuMemoryAllocated","gpuUploadSize","gpuMemorySize","cpuMemorySize","currentStats","lowDetailVtaFiles","constructor","values","SetValues","markDirty","skipUpdate","skipEvents","RegisterTexture","texture","TypeError","push","UnregisterTexture","filter","entry","GetManagedTextures","slice"],"mappings":"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"}
@@ -1,37 +1,37 @@
1
- import { applyDecs2311 as _applyDecs2311 } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import { type } from '@carbonenginejs/core-types/schema';
3
- import { CjsModel } from '@carbonenginejs/core-types/model';
4
-
5
- let _initClass, _init_frameNumber, _init_extra_frameNumber, _init_mipChange, _init_extra_mipChange, _init_cachedInRam, _init_extra_cachedInRam;
6
-
7
- /** Tr2TextureLodUpdateRequest (resources) - generated from schema shapeHash 7cfa47a1.... */
8
- let _Tr2TextureLodUpdateR;
9
- class Tr2TextureLodUpdateRequest extends CjsModel {
10
- static {
11
- ({
12
- e: [_init_frameNumber, _init_extra_frameNumber, _init_mipChange, _init_extra_mipChange, _init_cachedInRam, _init_extra_cachedInRam],
13
- c: [_Tr2TextureLodUpdateR, _initClass]
14
- } = _applyDecs2311(this, [type.define({
15
- className: "Tr2TextureLodUpdateRequest",
16
- family: "resources"
17
- })], [[[type, type.uint64], 16, "frameNumber"], [[type, type.int32], 16, "mipChange"], [[type, type.boolean], 16, "cachedInRam"]], 0, void 0, CjsModel));
18
- }
19
- constructor(...args) {
20
- super(...args);
21
- _init_extra_cachedInRam(this);
22
- }
23
- /** frameNumber (uint64_t) */
24
- frameNumber = _init_frameNumber(this, 0);
25
-
26
- /** mipChange (int32_t) */
27
- mipChange = (_init_extra_frameNumber(this), _init_mipChange(this, 0));
28
-
29
- /** cachedInRam (bool) */
30
- cachedInRam = (_init_extra_mipChange(this), _init_cachedInRam(this, false));
31
- static {
32
- _initClass();
33
- }
34
- }
35
-
36
- export { _Tr2TextureLodUpdateR as Tr2TextureLodUpdateRequest };
37
- //# sourceMappingURL=Tr2TextureLodUpdateRequest.js.map
1
+ import { applyDecs2311 as _applyDecs2311 } from '../_virtual/_rollupPluginBabelHelpers.js';
2
+ import { type } from '@carbonenginejs/core-types/schema';
3
+ import { CjsModel } from '@carbonenginejs/core-types/model';
4
+
5
+ let _initClass, _init_frameNumber, _init_extra_frameNumber, _init_mipChange, _init_extra_mipChange, _init_cachedInRam, _init_extra_cachedInRam;
6
+
7
+ /** Tr2TextureLodUpdateRequest (resources) - maintained from schema shapeHash 7cfa47a1.... */
8
+ let _Tr2TextureLodUpdateR;
9
+ class Tr2TextureLodUpdateRequest extends CjsModel {
10
+ static {
11
+ ({
12
+ e: [_init_frameNumber, _init_extra_frameNumber, _init_mipChange, _init_extra_mipChange, _init_cachedInRam, _init_extra_cachedInRam],
13
+ c: [_Tr2TextureLodUpdateR, _initClass]
14
+ } = _applyDecs2311(this, [type.define({
15
+ className: "Tr2TextureLodUpdateRequest",
16
+ family: "resources"
17
+ })], [[[type, type.uint64], 16, "frameNumber"], [[type, type.int32], 16, "mipChange"], [[type, type.boolean], 16, "cachedInRam"]], 0, void 0, CjsModel));
18
+ }
19
+ constructor(...args) {
20
+ super(...args);
21
+ _init_extra_cachedInRam(this);
22
+ }
23
+ /** frameNumber (uint64_t) */
24
+ frameNumber = _init_frameNumber(this, 0);
25
+
26
+ /** mipChange (int32_t) */
27
+ mipChange = (_init_extra_frameNumber(this), _init_mipChange(this, 0));
28
+
29
+ /** cachedInRam (bool) */
30
+ cachedInRam = (_init_extra_mipChange(this), _init_cachedInRam(this, false));
31
+ static {
32
+ _initClass();
33
+ }
34
+ }
35
+
36
+ export { _Tr2TextureLodUpdateR as Tr2TextureLodUpdateRequest };
37
+ //# sourceMappingURL=Tr2TextureLodUpdateRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tr2TextureLodUpdateRequest.js","sources":["../../../src/resources/Tr2TextureLodUpdateRequest.js"],"sourcesContent":["// Source: trinity/trinity/Resources/Tr2TextureLodManager.h\r\n// Schema: format-carbon resources/Tr2TextureLodUpdateRequest.json; maintained by runtime-resource.\r\nimport { type } from \"@carbonenginejs/core-types/schema\";\r\nimport { CjsModel } from \"@carbonenginejs/core-types/model\";\r\n\r\n/** Tr2TextureLodUpdateRequest (resources) - maintained from schema shapeHash 7cfa47a1.... */\r\n@type.define({ className: \"Tr2TextureLodUpdateRequest\", family: \"resources\" })\r\nexport class Tr2TextureLodUpdateRequest extends CjsModel\r\n{\r\n\r\n /** frameNumber (uint64_t) */\r\n @type.uint64\r\n frameNumber = 0;\r\n\r\n /** mipChange (int32_t) */\r\n @type.int32\r\n mipChange = 0;\r\n\r\n /** cachedInRam (bool) */\r\n @type.boolean\r\n cachedInRam = false;\r\n\r\n}\r\n"],"names":["_Tr2TextureLodUpdateR","Tr2TextureLodUpdateRequest","CjsModel","e","_init_frameNumber","_init_extra_frameNumber","_init_mipChange","_init_extra_mipChange","_init_cachedInRam","_init_extra_cachedInRam","c","_initClass","_applyDecs","type","define","className","family","uint64","int32","boolean","constructor","args","frameNumber","mipChange","cachedInRam"],"mappings":";;;;;;AAKA;AAAA,IAAAA;AACA,MAAAC,0BAAA,SACgDC,QAAQ,CACxD;AAAA,EAAA;AAAA,IAAA,CAAA;MAAAC,CAAA,EAAA,CAAAC,iBAAA,EAAAC,uBAAA,EAAAC,eAAA,EAAAC,qBAAA,EAAAC,iBAAA,EAAAC,uBAAA,CAAA;MAAAC,CAAA,EAAA,CAAAV,qBAAA,EAAAW,UAAA;AAAA,KAAA,GAAAC,cAAA,CAAA,IAAA,EAAA,CAFCC,IAAI,CAACC,MAAM,CAAC;AAAEC,MAAAA,SAAS,EAAE,4BAA4B;AAAEC,MAAAA,MAAM,EAAE;KAAa,CAAC,MAK3EH,IAAI,EAAJA,IAAI,CAACI,MAAM,yBAIXJ,IAAI,EAAJA,IAAI,CAACK,KAAK,uBAIVL,IAAI,EAAJA,IAAI,CAACM,OAAO,mCAZiCjB,QAAQ,CAAA;AAAA;AAAAkB,EAAAA,WAAAA,CAAA,GAAAC,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAAA,IAAA,CAAA;IAAAZ,uBAAA,CAAA,IAAA,CAAA;AAAA,EAAA;AAGtD;EAEAa,WAAW,GAAAlB,iBAAA,CAAA,IAAA,EAAG,CAAC,CAAA;;AAEf;AAEAmB,EAAAA,SAAS,IAAAlB,uBAAA,CAAA,IAAA,CAAA,EAAAC,eAAA,OAAG,CAAC,CAAA;;AAEb;AAEAkB,EAAAA,WAAW,IAAAjB,qBAAA,CAAA,IAAA,CAAA,EAAAC,iBAAA,OAAG,KAAK,CAAA;AAAC,EAAA;IAAAG,UAAA,EAAA;AAAA;AAEtB;;;;"}
@@ -1,37 +1,37 @@
1
- import { applyDecs2311 as _applyDecs2311 } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import { io, type } from '@carbonenginejs/core-types/schema';
3
- import { CjsModel } from '@carbonenginejs/core-types/model';
4
-
5
- let _initClass, _init_channel, _init_extra_channel, _init_fill, _init_extra_fill, _init_path, _init_extra_path;
6
-
7
- /** Tr2TexturePackChannel (resources) - generated from schema shapeHash 3ea887a3.... */
8
- let _Tr2TexturePackChanne;
9
- class Tr2TexturePackChannel extends CjsModel {
10
- static {
11
- ({
12
- e: [_init_channel, _init_extra_channel, _init_fill, _init_extra_fill, _init_path, _init_extra_path],
13
- c: [_Tr2TexturePackChanne, _initClass]
14
- } = _applyDecs2311(this, [type.define({
15
- className: "Tr2TexturePackChannel",
16
- family: "resources"
17
- })], [[[io, io.persist, type, type.uint8], 16, "channel"], [[io, io.persist, type, type.uint8], 16, "fill"], [[io, io.persist, type, type.string], 16, "path"]], 0, void 0, CjsModel));
18
- }
19
- constructor(...args) {
20
- super(...args);
21
- _init_extra_path(this);
22
- }
23
- /** m_channel (uint8_t) [READWRITE, PERSIST, ENUM] */
24
- channel = _init_channel(this, 0);
25
-
26
- /** m_fill (uint8_t) [READWRITE, PERSIST] */
27
- fill = (_init_extra_channel(this), _init_fill(this, 0));
28
-
29
- /** m_path (std::wstring) [READWRITE, PERSIST] */
30
- path = (_init_extra_fill(this), _init_path(this, ""));
31
- static {
32
- _initClass();
33
- }
34
- }
35
-
36
- export { _Tr2TexturePackChanne as Tr2TexturePackChannel };
37
- //# sourceMappingURL=Tr2TexturePackChannel.js.map
1
+ import { applyDecs2311 as _applyDecs2311 } from '../_virtual/_rollupPluginBabelHelpers.js';
2
+ import { io, type } from '@carbonenginejs/core-types/schema';
3
+ import { CjsModel } from '@carbonenginejs/core-types/model';
4
+
5
+ let _initClass, _init_channel, _init_extra_channel, _init_fill, _init_extra_fill, _init_path, _init_extra_path;
6
+
7
+ /** Tr2TexturePackChannel (resources) - maintained from schema shapeHash 3ea887a3.... */
8
+ let _Tr2TexturePackChanne;
9
+ class Tr2TexturePackChannel extends CjsModel {
10
+ static {
11
+ ({
12
+ e: [_init_channel, _init_extra_channel, _init_fill, _init_extra_fill, _init_path, _init_extra_path],
13
+ c: [_Tr2TexturePackChanne, _initClass]
14
+ } = _applyDecs2311(this, [type.define({
15
+ className: "Tr2TexturePackChannel",
16
+ family: "resources"
17
+ })], [[[io, io.persist, type, type.uint8], 16, "channel"], [[io, io.persist, type, type.uint8], 16, "fill"], [[io, io.persist, type, type.string], 16, "path"]], 0, void 0, CjsModel));
18
+ }
19
+ constructor(...args) {
20
+ super(...args);
21
+ _init_extra_path(this);
22
+ }
23
+ /** m_channel (uint8_t) [READWRITE, PERSIST, ENUM] */
24
+ channel = _init_channel(this, 0);
25
+
26
+ /** m_fill (uint8_t) [READWRITE, PERSIST] */
27
+ fill = (_init_extra_channel(this), _init_fill(this, 0));
28
+
29
+ /** m_path (std::wstring) [READWRITE, PERSIST] */
30
+ path = (_init_extra_fill(this), _init_path(this, ""));
31
+ static {
32
+ _initClass();
33
+ }
34
+ }
35
+
36
+ export { _Tr2TexturePackChanne as Tr2TexturePackChannel };
37
+ //# sourceMappingURL=Tr2TexturePackChannel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tr2TexturePackChannel.js","sources":["../../../src/resources/Tr2TexturePackChannel.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepPack.h\r\n// Schema: format-carbon resources/Tr2TexturePackChannel.json; maintained by runtime-resource.\r\nimport { io, type } from \"@carbonenginejs/core-types/schema\";\r\nimport { CjsModel } from \"@carbonenginejs/core-types/model\";\r\n\r\n/** Tr2TexturePackChannel (resources) - maintained from schema shapeHash 3ea887a3.... */\r\n@type.define({ className: \"Tr2TexturePackChannel\", family: \"resources\" })\r\nexport class Tr2TexturePackChannel extends CjsModel\r\n{\r\n\r\n /** m_channel (uint8_t) [READWRITE, PERSIST, ENUM] */\r\n @io.persist\r\n @type.uint8\r\n channel = 0;\r\n\r\n /** m_fill (uint8_t) [READWRITE, PERSIST] */\r\n @io.persist\r\n @type.uint8\r\n fill = 0;\r\n\r\n /** m_path (std::wstring) [READWRITE, PERSIST] */\r\n @io.persist\r\n @type.string\r\n path = \"\";\r\n\r\n}\r\n"],"names":["_Tr2TexturePackChanne","Tr2TexturePackChannel","CjsModel","e","_init_channel","_init_extra_channel","_init_fill","_init_extra_fill","_init_path","_init_extra_path","c","_initClass","_applyDecs","type","define","className","family","io","persist","uint8","string","constructor","args","channel","fill","path"],"mappings":";;;;;;AAKA;AAAA,IAAAA;AACA,MAAAC,qBAAA,SAC2CC,QAAQ,CACnD;AAAA,EAAA;AAAA,IAAA,CAAA;MAAAC,CAAA,EAAA,CAAAC,aAAA,EAAAC,mBAAA,EAAAC,UAAA,EAAAC,gBAAA,EAAAC,UAAA,EAAAC,gBAAA,CAAA;MAAAC,CAAA,EAAA,CAAAV,qBAAA,EAAAW,UAAA;AAAA,KAAA,GAAAC,cAAA,CAAA,IAAA,EAAA,CAFCC,IAAI,CAACC,MAAM,CAAC;AAAEC,MAAAA,SAAS,EAAE,uBAAuB;AAAEC,MAAAA,MAAM,EAAE;AAAY,KAAC,CAAC,CAAA,EAAA,CAAA,CAAA,CAKtEC,EAAE,EAAFA,EAAE,CAACC,OAAO,EACVL,IAAI,EAAJA,IAAI,CAACM,KAAK,qBAIVF,EAAE,EAAFA,EAAE,CAACC,OAAO,EACVL,IAAI,EAAJA,IAAI,CAACM,KAAK,CAAA,EAAA,EAAA,EAAA,MAAA,CAAA,EAAA,CAAA,CAIVF,EAAE,EAAFA,EAAE,CAACC,OAAO,EACVL,IAAI,EAAJA,IAAI,CAACO,MAAM,4BAf6BlB,QAAQ,CAAA;AAAA;AAAAmB,EAAAA,WAAAA,CAAA,GAAAC,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAAA,IAAA,CAAA;IAAAb,gBAAA,CAAA,IAAA,CAAA;AAAA,EAAA;AAGjD;EAGAc,OAAO,GAAAnB,aAAA,CAAA,IAAA,EAAG,CAAC,CAAA;;AAEX;AAGAoB,EAAAA,IAAI,IAAAnB,mBAAA,CAAA,IAAA,CAAA,EAAAC,UAAA,OAAG,CAAC,CAAA;;AAER;AAGAmB,EAAAA,IAAI,IAAAlB,gBAAA,CAAA,IAAA,CAAA,EAAAC,UAAA,OAAG,EAAE,CAAA;AAAC,EAAA;IAAAG,UAAA,EAAA;AAAA;AAEZ;;;;"}
@@ -0,0 +1,68 @@
1
+ import { applyDecs2311 as _applyDecs2311 } from '../_virtual/_rollupPluginBabelHelpers.js';
2
+ import { io, type, carbon, impl } from '@carbonenginejs/core-types/schema';
3
+ import { CjsModel } from '@carbonenginejs/core-types/model';
4
+ import { ExecuteTexturePipeline, GetTexturePipelineDependencies } from './texturePipelineBehavior.js';
5
+
6
+ let _initProto, _initClass, _init_pipelineType, _init_extra_pipelineType, _init_steps, _init_extra_steps;
7
+
8
+ /**
9
+ * Carbon texture-specific CPU bitmap transformation pipeline.
10
+ *
11
+ * Inputs are supplied explicitly, through a load callback, or through an
12
+ * injected CjsResMan. The result is a canonical plain RGBA payload.
13
+ */
14
+ let _Tr2TexturePipeline;
15
+ class Tr2TexturePipeline extends CjsModel {
16
+ static {
17
+ ({
18
+ e: [_init_pipelineType, _init_extra_pipelineType, _init_steps, _init_extra_steps, _initProto],
19
+ c: [_Tr2TexturePipeline, _initClass]
20
+ } = _applyDecs2311(this, [type.define({
21
+ className: "Tr2TexturePipeline",
22
+ family: "resources"
23
+ })], [[[io, io.persist, type, type.string], 16, "pipelineType"], [[io, io.persist, void 0, type.list("ITr2TexturePipelineStep")], 16, "steps"], [[carbon, carbon.method, impl, impl.adapted, void 0, impl.reason("Carbon fills an ImageIO::HostBitmap through blocking file reads; JavaScript resolves inputs asynchronously and returns the runtime-resource plain CPU payload.")], 18, "Execute"], [[carbon, carbon.method, impl, impl.implemented], 18, "GetResourceDependencies"]], 0, void 0, CjsModel));
24
+ }
25
+ /** m_pipelineType (std::string) [READWRITE, PERSIST] */
26
+ pipelineType = (_initProto(this), _init_pipelineType(this, ""));
27
+
28
+ /** m_steps (PITr2TexturePipelineStepVector) [READ, PERSIST] */
29
+ steps = (_init_extra_pipelineType(this), _init_steps(this, []));
30
+ constructor(values = null) {
31
+ super(), _init_extra_steps(this);
32
+ this.SetValues(values || {}, {
33
+ markDirty: false,
34
+ skipUpdate: true,
35
+ skipEvents: true
36
+ });
37
+ }
38
+
39
+ /**
40
+ * Execute the CPU pipeline and return a canonical RGBA payload.
41
+ *
42
+ * @param {number} maxWidth Optional caller width limit.
43
+ * @param {number} maxHeight Optional caller height limit.
44
+ * @param {object|null} options Input map, load callback, or CjsResMan.
45
+ * @returns {Promise<object>} Canonical RGBA payload.
46
+ */
47
+ async Execute(maxWidth = 0, maxHeight = 0, options = null) {
48
+ return ExecuteTexturePipeline(this.steps, {
49
+ maxWidth,
50
+ maxHeight
51
+ }, options);
52
+ }
53
+
54
+ /**
55
+ * Return sorted unique resource paths consumed by load and pack steps.
56
+ *
57
+ * @returns {string[]} Resource dependency paths.
58
+ */
59
+ GetResourceDependencies() {
60
+ return GetTexturePipelineDependencies(this.steps);
61
+ }
62
+ static {
63
+ _initClass();
64
+ }
65
+ }
66
+
67
+ export { _Tr2TexturePipeline as Tr2TexturePipeline };
68
+ //# sourceMappingURL=Tr2TexturePipeline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tr2TexturePipeline.js","sources":["../../../src/resources/Tr2TexturePipeline.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipeline.h\r\n// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipeline.cpp\r\n// Source: trinity/trinity/Resources/TexturePipeline/ITr2TexturePipelineStep.h\r\n// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepLoad.cpp\r\n// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepLimitSize.cpp\r\n// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepCompress.cpp\r\n// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepPack.cpp\r\nimport { carbon, impl, io, type } from \"@carbonenginejs/core-types/schema\";\r\nimport { CjsModel } from \"@carbonenginejs/core-types/model\";\r\nimport {\r\n ExecuteTexturePipeline,\r\n GetTexturePipelineDependencies\r\n} from \"./texturePipelineBehavior.js\";\r\n\r\n/**\r\n * Carbon texture-specific CPU bitmap transformation pipeline.\r\n *\r\n * Inputs are supplied explicitly, through a load callback, or through an\r\n * injected CjsResMan. The result is a canonical plain RGBA payload.\r\n */\r\n@type.define({ className: \"Tr2TexturePipeline\", family: \"resources\" })\r\nexport class Tr2TexturePipeline extends CjsModel\r\n{\r\n\r\n /** m_pipelineType (std::string) [READWRITE, PERSIST] */\r\n @io.persist\r\n @type.string\r\n pipelineType = \"\";\r\n\r\n /** m_steps (PITr2TexturePipelineStepVector) [READ, PERSIST] */\r\n @io.persist\r\n @type.list(\"ITr2TexturePipelineStep\")\r\n steps = [];\r\n\r\n constructor(values = null)\r\n {\r\n super();\r\n this.SetValues(values || {}, {\r\n markDirty: false,\r\n skipUpdate: true,\r\n skipEvents: true\r\n });\r\n }\r\n\r\n /**\r\n * Execute the CPU pipeline and return a canonical RGBA payload.\r\n *\r\n * @param {number} maxWidth Optional caller width limit.\r\n * @param {number} maxHeight Optional caller height limit.\r\n * @param {object|null} options Input map, load callback, or CjsResMan.\r\n * @returns {Promise<object>} Canonical RGBA payload.\r\n */\r\n @carbon.method\r\n @impl.adapted\r\n @impl.reason(\"Carbon fills an ImageIO::HostBitmap through blocking file reads; JavaScript resolves inputs asynchronously and returns the runtime-resource plain CPU payload.\")\r\n async Execute(maxWidth = 0, maxHeight = 0, options = null)\r\n {\r\n return ExecuteTexturePipeline(this.steps, { maxWidth, maxHeight }, options);\r\n }\r\n\r\n /**\r\n * Return sorted unique resource paths consumed by load and pack steps.\r\n *\r\n * @returns {string[]} Resource dependency paths.\r\n */\r\n @carbon.method\r\n @impl.implemented\r\n GetResourceDependencies()\r\n {\r\n return GetTexturePipelineDependencies(this.steps);\r\n }\r\n\r\n}\r\n"],"names":["_Tr2TexturePipeline","Tr2TexturePipeline","CjsModel","e","_init_pipelineType","_init_extra_pipelineType","_init_steps","_init_extra_steps","_initProto","c","_initClass","_applyDecs","type","define","className","family","io","persist","string","list","carbon","method","impl","adapted","reason","implemented","pipelineType","steps","constructor","values","SetValues","markDirty","skipUpdate","skipEvents","Execute","maxWidth","maxHeight","options","ExecuteTexturePipeline","GetResourceDependencies","GetTexturePipelineDependencies"],"mappings":";;;;;;;AAcA;AACA;AACA;AACA;AACA;AACA;AALA,IAAAA;AAMA,MAAAC,kBAAA,SACwCC,QAAQ,CAChD;AAAA,EAAA;AAAA,IAAA,CAAA;MAAAC,CAAA,EAAA,CAAAC,kBAAA,EAAAC,wBAAA,EAAAC,WAAA,EAAAC,iBAAA,EAAAC,UAAA,CAAA;MAAAC,CAAA,EAAA,CAAAT,mBAAA,EAAAU,UAAA;AAAA,KAAA,GAAAC,cAAA,CAAA,IAAA,EAAA,CAFCC,IAAI,CAACC,MAAM,CAAC;AAAEC,MAAAA,SAAS,EAAE,oBAAoB;AAAEC,MAAAA,MAAM,EAAE;KAAa,CAAC,CAAA,EAAA,CAAA,CAAA,CAKnEC,EAAE,EAAFA,EAAE,CAACC,OAAO,EACVL,IAAI,EAAJA,IAAI,CAACM,MAAM,CAAA,EAAA,EAAA,EAAA,cAAA,CAAA,EAAA,CAAA,CAIXF,EAAE,EAAFA,EAAE,CAACC,OAAO,EAAA,MAAA,EACVL,IAAI,CAACO,IAAI,CAAC,yBAAyB,CAAC,CAAA,EAAA,EAAA,EAAA,OAAA,CAAA,EAAA,CAAA,CAqBpCC,MAAM,EAANA,MAAM,CAACC,MAAM,EACbC,IAAI,EAAJA,IAAI,CAACC,OAAO,EAAA,MAAA,EACZD,IAAI,CAACE,MAAM,CAAC,gKAAgK,CAAC,CAAA,EAAA,EAAA,EAAA,SAAA,CAAA,EAAA,CAAA,CAW7KJ,MAAM,EAANA,MAAM,CAACC,MAAM,EACbC,IAAI,EAAJA,IAAI,CAACG,WAAW,CAAA,EAAA,EAAA,EAAA,yBAAA,CAAA,CAAA,EAAA,CAAA,EAAA,MAAA,EA7CqBvB,QAAQ,CAAA;AAAA;AAG9C;AAGAwB,EAAAA,YAAY,IAAAlB,UAAA,CAAA,IAAA,CAAA,EAAAJ,kBAAA,OAAG,EAAE,CAAA;;AAEjB;AAGAuB,EAAAA,KAAK,IAAAtB,wBAAA,CAAA,IAAA,CAAA,EAAAC,WAAA,OAAG,EAAE,CAAA;AAEVsB,EAAAA,WAAWA,CAACC,MAAM,GAAG,IAAI,EACzB;IACE,KAAK,EAAE,EAAAtB,iBAAA,CAAA,IAAA,CAAA;AACP,IAAA,IAAI,CAACuB,SAAS,CAACD,MAAM,IAAI,EAAE,EAAE;AAC3BE,MAAAA,SAAS,EAAE,KAAK;AAChBC,MAAAA,UAAU,EAAE,IAAI;AAChBC,MAAAA,UAAU,EAAE;AACd,KAAC,CAAC;AACJ,EAAA;;AAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACE,EAAA,MAGMC,OAAOA,CAACC,QAAQ,GAAG,CAAC,EAAEC,SAAS,GAAG,CAAC,EAAEC,OAAO,GAAG,IAAI,EACzD;AACE,IAAA,OAAOC,sBAAsB,CAAC,IAAI,CAACX,KAAK,EAAE;MAAEQ,QAAQ;AAAEC,MAAAA;KAAW,EAAEC,OAAO,CAAC;AAC7E,EAAA;;AAEA;AACF;AACA;AACA;AACA;AAGEE,EAAAA,uBAAuBA,GACvB;AACE,IAAA,OAAOC,8BAA8B,CAAC,IAAI,CAACb,KAAK,CAAC;AACnD,EAAA;AAAC,EAAA;IAAAjB,UAAA,EAAA;AAAA;AAEH;;;;"}
@@ -1,34 +1,34 @@
1
- import { applyDecs2311 as _applyDecs2311 } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import { type } from '@carbonenginejs/core-types/schema';
3
- import { CjsModel } from '@carbonenginejs/core-types/model';
4
-
5
- let _initClass, _init_maxWidth, _init_extra_maxWidth, _init_maxHeight, _init_extra_maxHeight;
6
-
7
- /** Tr2TexturePipelineParams (resources) - generated from schema shapeHash 36df8e41.... */
8
- let _Tr2TexturePipelinePa;
9
- class Tr2TexturePipelineParams extends CjsModel {
10
- static {
11
- ({
12
- e: [_init_maxWidth, _init_extra_maxWidth, _init_maxHeight, _init_extra_maxHeight],
13
- c: [_Tr2TexturePipelinePa, _initClass]
14
- } = _applyDecs2311(this, [type.define({
15
- className: "Tr2TexturePipelineParams",
16
- family: "resources"
17
- })], [[[type, type.uint32], 16, "maxWidth"], [[type, type.uint32], 16, "maxHeight"]], 0, void 0, CjsModel));
18
- }
19
- constructor(...args) {
20
- super(...args);
21
- _init_extra_maxHeight(this);
22
- }
23
- /** maxWidth (uint32_t) */
24
- maxWidth = _init_maxWidth(this, 0);
25
-
26
- /** maxHeight (uint32_t) */
27
- maxHeight = (_init_extra_maxWidth(this), _init_maxHeight(this, 0));
28
- static {
29
- _initClass();
30
- }
31
- }
32
-
33
- export { _Tr2TexturePipelinePa as Tr2TexturePipelineParams };
34
- //# sourceMappingURL=Tr2TexturePipelineParams.js.map
1
+ import { applyDecs2311 as _applyDecs2311 } from '../_virtual/_rollupPluginBabelHelpers.js';
2
+ import { type } from '@carbonenginejs/core-types/schema';
3
+ import { CjsModel } from '@carbonenginejs/core-types/model';
4
+
5
+ let _initClass, _init_maxWidth, _init_extra_maxWidth, _init_maxHeight, _init_extra_maxHeight;
6
+
7
+ /** Tr2TexturePipelineParams (resources) - maintained from schema shapeHash 36df8e41.... */
8
+ let _Tr2TexturePipelinePa;
9
+ class Tr2TexturePipelineParams extends CjsModel {
10
+ static {
11
+ ({
12
+ e: [_init_maxWidth, _init_extra_maxWidth, _init_maxHeight, _init_extra_maxHeight],
13
+ c: [_Tr2TexturePipelinePa, _initClass]
14
+ } = _applyDecs2311(this, [type.define({
15
+ className: "Tr2TexturePipelineParams",
16
+ family: "resources"
17
+ })], [[[type, type.uint32], 16, "maxWidth"], [[type, type.uint32], 16, "maxHeight"]], 0, void 0, CjsModel));
18
+ }
19
+ constructor(...args) {
20
+ super(...args);
21
+ _init_extra_maxHeight(this);
22
+ }
23
+ /** maxWidth (uint32_t) */
24
+ maxWidth = _init_maxWidth(this, 0);
25
+
26
+ /** maxHeight (uint32_t) */
27
+ maxHeight = (_init_extra_maxWidth(this), _init_maxHeight(this, 0));
28
+ static {
29
+ _initClass();
30
+ }
31
+ }
32
+
33
+ export { _Tr2TexturePipelinePa as Tr2TexturePipelineParams };
34
+ //# sourceMappingURL=Tr2TexturePipelineParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tr2TexturePipelineParams.js","sources":["../../../src/resources/Tr2TexturePipelineParams.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TexturePipeline/ITr2TexturePipelineStep.h\r\n// Schema: format-carbon resources/Tr2TexturePipelineParams.json; maintained by runtime-resource.\r\nimport { type } from \"@carbonenginejs/core-types/schema\";\r\nimport { CjsModel } from \"@carbonenginejs/core-types/model\";\r\n\r\n/** Tr2TexturePipelineParams (resources) - maintained from schema shapeHash 36df8e41.... */\r\n@type.define({ className: \"Tr2TexturePipelineParams\", family: \"resources\" })\r\nexport class Tr2TexturePipelineParams extends CjsModel\r\n{\r\n\r\n /** maxWidth (uint32_t) */\r\n @type.uint32\r\n maxWidth = 0;\r\n\r\n /** maxHeight (uint32_t) */\r\n @type.uint32\r\n maxHeight = 0;\r\n\r\n}\r\n"],"names":["_Tr2TexturePipelinePa","Tr2TexturePipelineParams","CjsModel","e","_init_maxWidth","_init_extra_maxWidth","_init_maxHeight","_init_extra_maxHeight","c","_initClass","_applyDecs","type","define","className","family","uint32","constructor","args","maxWidth","maxHeight"],"mappings":";;;;;;AAKA;AAAA,IAAAA;AACA,MAAAC,wBAAA,SAC8CC,QAAQ,CACtD;AAAA,EAAA;AAAA,IAAA,CAAA;AAAAC,MAAAA,CAAA,GAAAC,cAAA,EAAAC,oBAAA,EAAAC,eAAA,EAAAC,qBAAA,CAAA;MAAAC,CAAA,EAAA,CAAAR,qBAAA,EAAAS,UAAA;AAAA,KAAA,GAAAC,cAAA,CAAA,IAAA,EAAA,CAFCC,IAAI,CAACC,MAAM,CAAC;AAAEC,MAAAA,SAAS,EAAE,0BAA0B;AAAEC,MAAAA,MAAM,EAAE;AAAY,KAAC,CAAC,CAAA,EAAA,CAAA,CAAA,CAKzEH,IAAI,EAAJA,IAAI,CAACI,MAAM,CAAA,EAAA,EAAA,EAAA,UAAA,CAAA,EAAA,CAAA,CAIXJ,IAAI,EAAJA,IAAI,CAACI,MAAM,iCARgCb,QAAQ,CAAA;AAAA;AAAAc,EAAAA,WAAAA,CAAA,GAAAC,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAAA,IAAA,CAAA;IAAAV,qBAAA,CAAA,IAAA,CAAA;AAAA,EAAA;AAGpD;EAEAW,QAAQ,GAAAd,cAAA,CAAA,IAAA,EAAG,CAAC,CAAA;;AAEZ;AAEAe,EAAAA,SAAS,IAAAd,oBAAA,CAAA,IAAA,CAAA,EAAAC,eAAA,OAAG,CAAC,CAAA;AAAC,EAAA;IAAAG,UAAA,EAAA;AAAA;AAEhB;;;;"}