@forgeax/engine-vfx 0.1.6 → 0.1.19
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/dist/.tsbuildinfo +1 -1
- package/dist/gpu-loader.d.ts +2 -3
- package/dist/gpu-loader.d.ts.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/gpu-loader.ts +5 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forgeax/engine-vfx",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"LICENSE"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@forgeax/engine-assets-runtime": "0.1.
|
|
33
|
-
"@forgeax/engine-ecs": "0.1.
|
|
34
|
-
"@forgeax/engine-plugin": "0.1.
|
|
35
|
-
"@forgeax/engine-types": "0.1.
|
|
32
|
+
"@forgeax/engine-assets-runtime": "0.1.19",
|
|
33
|
+
"@forgeax/engine-ecs": "0.1.19",
|
|
34
|
+
"@forgeax/engine-plugin": "0.1.19",
|
|
35
|
+
"@forgeax/engine-types": "0.1.19"
|
|
36
36
|
},
|
|
37
37
|
"forgeax": {
|
|
38
38
|
"metrics": {
|
package/src/gpu-loader.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type {
|
|
2
|
+
AssetRegistry as LegacyAssetRegistry,
|
|
3
|
+
RuntimeAssetRegistry,
|
|
4
|
+
} from '@forgeax/engine-assets-runtime';
|
|
3
5
|
import type {
|
|
4
6
|
AssetDecoderContribution,
|
|
5
7
|
AssetKind,
|
|
@@ -273,7 +275,7 @@ export const vfxGpuEffectContribution: AssetDecoderContribution<
|
|
|
273
275
|
};
|
|
274
276
|
|
|
275
277
|
export async function loadVfxGpuEffect(
|
|
276
|
-
registry: LegacyAssetRegistry |
|
|
278
|
+
registry: LegacyAssetRegistry | RuntimeAssetRegistry,
|
|
277
279
|
guid: string,
|
|
278
280
|
): Promise<Result<VfxGpuEffectAsset, unknown>> {
|
|
279
281
|
if ('load' in registry) {
|