@3dverse/api 0.14.0 → 0.16.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.
- package/dist/_prebuild/wrapper.d.ts +1403 -22
- package/dist/index.js +25 -5
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +23 -4
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
|
@@ -172,6 +172,14 @@ export type SourceFileId = string;
|
|
|
172
172
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
173
173
|
export type AssetId = string;
|
|
174
174
|
export type AssetType = 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'navmesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material';
|
|
175
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
176
|
+
export type AssetMeta = {
|
|
177
|
+
/** What the asset is, which tells the tool opening it */
|
|
178
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
179
|
+
} | {
|
|
180
|
+
/** What the asset is, which tells the tool opening it */
|
|
181
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
182
|
+
};
|
|
175
183
|
/**
|
|
176
184
|
* The `source file` object represents the source file imported into 3dverse.
|
|
177
185
|
* This object contains the original uploaded file, along with the source file metadata.
|
|
@@ -192,6 +200,7 @@ export type SourceFile = {
|
|
|
192
200
|
type: AssetType;
|
|
193
201
|
/** Whether the asset has a thumbnail */
|
|
194
202
|
has_thumbnail: boolean;
|
|
203
|
+
meta: AssetMeta;
|
|
195
204
|
};
|
|
196
205
|
/** The types of the assets converted from the source file */
|
|
197
206
|
contained_asset_types?: Array<AssetType>;
|
|
@@ -271,130 +280,1428 @@ export type AssetsCount = {
|
|
|
271
280
|
/** Total number of assets in target folder of specific type. */
|
|
272
281
|
[asset_type: string]: number;
|
|
273
282
|
};
|
|
274
|
-
|
|
283
|
+
/** Assets grouped by their container, i.e. the plural of their type; a container with no asset is left out */
|
|
284
|
+
export type AssetsByContainer = {
|
|
275
285
|
action_maps?: Array<{
|
|
276
286
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
277
287
|
asset_id: string;
|
|
288
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
289
|
+
has_thumbnail: boolean;
|
|
290
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
291
|
+
meta: {
|
|
292
|
+
/** What the asset is, which tells the tool opening it */
|
|
293
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
294
|
+
} | {
|
|
295
|
+
/** What the asset is, which tells the tool opening it */
|
|
296
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
297
|
+
};
|
|
278
298
|
name: string;
|
|
279
299
|
}>;
|
|
280
300
|
animation_graphs?: Array<{
|
|
281
301
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
282
302
|
asset_id: string;
|
|
303
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
304
|
+
has_thumbnail: boolean;
|
|
305
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
306
|
+
meta: {
|
|
307
|
+
/** What the asset is, which tells the tool opening it */
|
|
308
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
309
|
+
} | {
|
|
310
|
+
/** What the asset is, which tells the tool opening it */
|
|
311
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
312
|
+
};
|
|
283
313
|
name: string;
|
|
284
314
|
}>;
|
|
285
315
|
animation_sequences?: Array<{
|
|
286
316
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
287
317
|
asset_id: string;
|
|
318
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
319
|
+
has_thumbnail: boolean;
|
|
320
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
321
|
+
meta: {
|
|
322
|
+
/** What the asset is, which tells the tool opening it */
|
|
323
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
324
|
+
} | {
|
|
325
|
+
/** What the asset is, which tells the tool opening it */
|
|
326
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
327
|
+
};
|
|
288
328
|
name: string;
|
|
289
329
|
}>;
|
|
290
330
|
animation_sets?: Array<{
|
|
291
331
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
292
332
|
asset_id: string;
|
|
333
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
334
|
+
has_thumbnail: boolean;
|
|
335
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
336
|
+
meta: {
|
|
337
|
+
/** What the asset is, which tells the tool opening it */
|
|
338
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
339
|
+
} | {
|
|
340
|
+
/** What the asset is, which tells the tool opening it */
|
|
341
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
342
|
+
};
|
|
293
343
|
name: string;
|
|
294
344
|
}>;
|
|
295
345
|
animations?: Array<{
|
|
296
346
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
297
347
|
asset_id: string;
|
|
348
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
349
|
+
has_thumbnail: boolean;
|
|
350
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
351
|
+
meta: {
|
|
352
|
+
/** What the asset is, which tells the tool opening it */
|
|
353
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
354
|
+
} | {
|
|
355
|
+
/** What the asset is, which tells the tool opening it */
|
|
356
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
357
|
+
};
|
|
298
358
|
name: string;
|
|
299
359
|
}>;
|
|
300
360
|
collision_geometries?: Array<{
|
|
301
361
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
302
362
|
asset_id: string;
|
|
363
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
364
|
+
has_thumbnail: boolean;
|
|
365
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
366
|
+
meta: {
|
|
367
|
+
/** What the asset is, which tells the tool opening it */
|
|
368
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
369
|
+
} | {
|
|
370
|
+
/** What the asset is, which tells the tool opening it */
|
|
371
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
372
|
+
};
|
|
303
373
|
name: string;
|
|
304
374
|
}>;
|
|
305
375
|
cubemaps?: Array<{
|
|
306
376
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
307
377
|
asset_id: string;
|
|
378
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
379
|
+
has_thumbnail: boolean;
|
|
380
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
381
|
+
meta: {
|
|
382
|
+
/** What the asset is, which tells the tool opening it */
|
|
383
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
384
|
+
} | {
|
|
385
|
+
/** What the asset is, which tells the tool opening it */
|
|
386
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
387
|
+
};
|
|
308
388
|
name: string;
|
|
309
389
|
}>;
|
|
310
390
|
event_maps?: Array<{
|
|
311
391
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
312
392
|
asset_id: string;
|
|
393
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
394
|
+
has_thumbnail: boolean;
|
|
395
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
396
|
+
meta: {
|
|
397
|
+
/** What the asset is, which tells the tool opening it */
|
|
398
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
399
|
+
} | {
|
|
400
|
+
/** What the asset is, which tells the tool opening it */
|
|
401
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
402
|
+
};
|
|
313
403
|
name: string;
|
|
314
404
|
}>;
|
|
315
405
|
materials?: Array<{
|
|
316
406
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
317
407
|
asset_id: string;
|
|
408
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
409
|
+
has_thumbnail: boolean;
|
|
410
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
411
|
+
meta: {
|
|
412
|
+
/** What the asset is, which tells the tool opening it */
|
|
413
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
414
|
+
} | {
|
|
415
|
+
/** What the asset is, which tells the tool opening it */
|
|
416
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
417
|
+
};
|
|
318
418
|
name: string;
|
|
319
419
|
}>;
|
|
320
420
|
meshes?: Array<{
|
|
321
421
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
322
422
|
asset_id: string;
|
|
423
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
424
|
+
has_thumbnail: boolean;
|
|
425
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
426
|
+
meta: {
|
|
427
|
+
/** What the asset is, which tells the tool opening it */
|
|
428
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
429
|
+
} | {
|
|
430
|
+
/** What the asset is, which tells the tool opening it */
|
|
431
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
432
|
+
};
|
|
323
433
|
name: string;
|
|
324
434
|
}>;
|
|
325
435
|
modules?: Array<{
|
|
326
436
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
327
437
|
asset_id: string;
|
|
438
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
439
|
+
has_thumbnail: boolean;
|
|
440
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
441
|
+
meta: {
|
|
442
|
+
/** What the asset is, which tells the tool opening it */
|
|
443
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
444
|
+
} | {
|
|
445
|
+
/** What the asset is, which tells the tool opening it */
|
|
446
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
447
|
+
};
|
|
328
448
|
name: string;
|
|
329
449
|
}>;
|
|
330
450
|
navmeshes?: Array<{
|
|
331
451
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
332
452
|
asset_id: string;
|
|
453
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
454
|
+
has_thumbnail: boolean;
|
|
455
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
456
|
+
meta: {
|
|
457
|
+
/** What the asset is, which tells the tool opening it */
|
|
458
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
459
|
+
} | {
|
|
460
|
+
/** What the asset is, which tells the tool opening it */
|
|
461
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
462
|
+
};
|
|
333
463
|
name: string;
|
|
334
464
|
}>;
|
|
335
465
|
point_clouds?: Array<{
|
|
336
466
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
337
467
|
asset_id: string;
|
|
468
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
469
|
+
has_thumbnail: boolean;
|
|
470
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
471
|
+
meta: {
|
|
472
|
+
/** What the asset is, which tells the tool opening it */
|
|
473
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
474
|
+
} | {
|
|
475
|
+
/** What the asset is, which tells the tool opening it */
|
|
476
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
477
|
+
};
|
|
338
478
|
name: string;
|
|
339
479
|
}>;
|
|
340
480
|
render_graphs?: Array<{
|
|
341
481
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
342
482
|
asset_id: string;
|
|
483
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
484
|
+
has_thumbnail: boolean;
|
|
485
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
486
|
+
meta: {
|
|
487
|
+
/** What the asset is, which tells the tool opening it */
|
|
488
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
489
|
+
} | {
|
|
490
|
+
/** What the asset is, which tells the tool opening it */
|
|
491
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
492
|
+
};
|
|
343
493
|
name: string;
|
|
344
494
|
}>;
|
|
345
495
|
scenes?: Array<{
|
|
346
496
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
347
497
|
asset_id: string;
|
|
498
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
499
|
+
has_thumbnail: boolean;
|
|
500
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
501
|
+
meta: {
|
|
502
|
+
/** What the asset is, which tells the tool opening it */
|
|
503
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
504
|
+
} | {
|
|
505
|
+
/** What the asset is, which tells the tool opening it */
|
|
506
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
507
|
+
};
|
|
348
508
|
name: string;
|
|
349
509
|
}>;
|
|
350
510
|
scripts?: Array<{
|
|
351
511
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
352
512
|
asset_id: string;
|
|
513
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
514
|
+
has_thumbnail: boolean;
|
|
515
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
516
|
+
meta: {
|
|
517
|
+
/** What the asset is, which tells the tool opening it */
|
|
518
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
519
|
+
} | {
|
|
520
|
+
/** What the asset is, which tells the tool opening it */
|
|
521
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
522
|
+
};
|
|
353
523
|
name: string;
|
|
354
524
|
}>;
|
|
355
525
|
shader_contexts?: Array<{
|
|
356
526
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
357
527
|
asset_id: string;
|
|
528
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
529
|
+
has_thumbnail: boolean;
|
|
530
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
531
|
+
meta: {
|
|
532
|
+
/** What the asset is, which tells the tool opening it */
|
|
533
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
534
|
+
} | {
|
|
535
|
+
/** What the asset is, which tells the tool opening it */
|
|
536
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
537
|
+
};
|
|
358
538
|
name: string;
|
|
359
539
|
}>;
|
|
360
540
|
shaders?: Array<{
|
|
361
541
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
362
542
|
asset_id: string;
|
|
543
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
544
|
+
has_thumbnail: boolean;
|
|
545
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
546
|
+
meta: {
|
|
547
|
+
/** What the asset is, which tells the tool opening it */
|
|
548
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
549
|
+
} | {
|
|
550
|
+
/** What the asset is, which tells the tool opening it */
|
|
551
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
552
|
+
};
|
|
363
553
|
name: string;
|
|
364
554
|
}>;
|
|
365
555
|
skeletons?: Array<{
|
|
366
556
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
367
557
|
asset_id: string;
|
|
558
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
559
|
+
has_thumbnail: boolean;
|
|
560
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
561
|
+
meta: {
|
|
562
|
+
/** What the asset is, which tells the tool opening it */
|
|
563
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
564
|
+
} | {
|
|
565
|
+
/** What the asset is, which tells the tool opening it */
|
|
566
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
567
|
+
};
|
|
368
568
|
name: string;
|
|
369
569
|
}>;
|
|
370
570
|
sounds?: Array<{
|
|
371
571
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
372
572
|
asset_id: string;
|
|
573
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
574
|
+
has_thumbnail: boolean;
|
|
575
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
576
|
+
meta: {
|
|
577
|
+
/** What the asset is, which tells the tool opening it */
|
|
578
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
579
|
+
} | {
|
|
580
|
+
/** What the asset is, which tells the tool opening it */
|
|
581
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
582
|
+
};
|
|
373
583
|
name: string;
|
|
374
584
|
}>;
|
|
375
585
|
textures?: Array<{
|
|
376
586
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
377
587
|
asset_id: string;
|
|
588
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
589
|
+
has_thumbnail: boolean;
|
|
590
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
591
|
+
meta: {
|
|
592
|
+
/** What the asset is, which tells the tool opening it */
|
|
593
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
594
|
+
} | {
|
|
595
|
+
/** What the asset is, which tells the tool opening it */
|
|
596
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
597
|
+
};
|
|
378
598
|
name: string;
|
|
379
599
|
}>;
|
|
380
600
|
textures_3d?: Array<{
|
|
381
601
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
382
602
|
asset_id: string;
|
|
603
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
604
|
+
has_thumbnail: boolean;
|
|
605
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
606
|
+
meta: {
|
|
607
|
+
/** What the asset is, which tells the tool opening it */
|
|
608
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
609
|
+
} | {
|
|
610
|
+
/** What the asset is, which tells the tool opening it */
|
|
611
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
612
|
+
};
|
|
613
|
+
name: string;
|
|
614
|
+
}>;
|
|
615
|
+
volume_materials?: Array<{
|
|
616
|
+
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
617
|
+
asset_id: string;
|
|
618
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
619
|
+
has_thumbnail: boolean;
|
|
620
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
621
|
+
meta: {
|
|
622
|
+
/** What the asset is, which tells the tool opening it */
|
|
623
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
624
|
+
} | {
|
|
625
|
+
/** What the asset is, which tells the tool opening it */
|
|
626
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
627
|
+
};
|
|
628
|
+
name: string;
|
|
629
|
+
}>;
|
|
630
|
+
};
|
|
631
|
+
export type AssetTypeCreatable = 'action_map' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'cubemap' | 'event_map' | 'material' | 'module' | 'render_graph' | 'scene' | 'script' | 'shader' | 'volume_material';
|
|
632
|
+
/** Asset description */
|
|
633
|
+
export type BasicAssetDescription = {
|
|
634
|
+
uuid?: AssetId;
|
|
635
|
+
name: string;
|
|
636
|
+
};
|
|
637
|
+
export type AssetCreatableWithType = {
|
|
638
|
+
/** Action map for a controller */
|
|
639
|
+
asset_description: {
|
|
640
|
+
actions: {
|
|
641
|
+
[action_name: string]: {
|
|
642
|
+
[_additionalproperties_: string]: any;
|
|
643
|
+
};
|
|
644
|
+
};
|
|
645
|
+
/** Name of the asset */
|
|
646
|
+
name: string;
|
|
647
|
+
/** Unique identifier for the asset */
|
|
648
|
+
uuid: string;
|
|
649
|
+
};
|
|
650
|
+
asset_type: 'action_map';
|
|
651
|
+
} | {
|
|
652
|
+
/** An animation graph */
|
|
653
|
+
asset_description: {
|
|
654
|
+
/** Inputs used by the graph */
|
|
655
|
+
inputDescriptor: Array<{
|
|
656
|
+
[_additionalproperties_: string]: any;
|
|
657
|
+
}>;
|
|
658
|
+
/** Name of the asset */
|
|
659
|
+
name: string;
|
|
660
|
+
/** Animation state machines */
|
|
661
|
+
stateMachines: Array<{
|
|
662
|
+
/** States of the state machine */
|
|
663
|
+
states?: Array<{
|
|
664
|
+
/** The name of the state */
|
|
665
|
+
name?: string;
|
|
666
|
+
/** The nodes of this state's animation graph */
|
|
667
|
+
nodes?: Array<{
|
|
668
|
+
/** Indices of input nodes of the parent animation graph */
|
|
669
|
+
inputs?: Array<number>;
|
|
670
|
+
/** Type of the node */
|
|
671
|
+
nodeType?: StrictUnion<0 | 1 | 2 | 3 | 100 | 101 | 200 | 201>;
|
|
672
|
+
/** Settings associated to this node */
|
|
673
|
+
settings?: StrictUnion<{
|
|
674
|
+
/** The animation to play */
|
|
675
|
+
animationKey: number;
|
|
676
|
+
/** Whether the animation should loop back to the start when done */
|
|
677
|
+
loop?: boolean;
|
|
678
|
+
/** Multiplier factor for the speed */
|
|
679
|
+
playbackSpeed?: number;
|
|
680
|
+
/** Change the animation starting point. Expects a normalized value from 0 to 1 */
|
|
681
|
+
startOffset?: number;
|
|
682
|
+
/** Change the animation ending point. Expects a normalized value from 0 to 1 */
|
|
683
|
+
stopOffset?: number;
|
|
684
|
+
} | {
|
|
685
|
+
/** 1D control points */
|
|
686
|
+
controlPoints: Array<{
|
|
687
|
+
animationKey: number;
|
|
688
|
+
coords: number;
|
|
689
|
+
}>;
|
|
690
|
+
/** Horizontal axis */
|
|
691
|
+
horizontalAxis: {
|
|
692
|
+
/** The axis name */
|
|
693
|
+
name: string;
|
|
694
|
+
/** Maximum value of the axis */
|
|
695
|
+
rangeMax: number;
|
|
696
|
+
/** Minimum value of the axis */
|
|
697
|
+
rangeMin: number;
|
|
698
|
+
};
|
|
699
|
+
/** Whether the animation should loop back to the start when done */
|
|
700
|
+
loop?: boolean;
|
|
701
|
+
/** Multiplier factor for the speed */
|
|
702
|
+
playbackSpeed?: number;
|
|
703
|
+
/** Change the animation starting point. Expects a normalized value from 0 to 1 */
|
|
704
|
+
startOffset?: number;
|
|
705
|
+
/** Change the animation ending point. Expects a normalized value from 0 to 1 */
|
|
706
|
+
stopOffset?: number;
|
|
707
|
+
} | {
|
|
708
|
+
/** 2D control points */
|
|
709
|
+
controlPoints: Array<{
|
|
710
|
+
animationKey: number;
|
|
711
|
+
coords: Array<number>;
|
|
712
|
+
}>;
|
|
713
|
+
/** Horizontal axis */
|
|
714
|
+
horizontalAxis: {
|
|
715
|
+
/** The axis name */
|
|
716
|
+
name: string;
|
|
717
|
+
/** Maximum value of the axis */
|
|
718
|
+
rangeMax: number;
|
|
719
|
+
/** Minimum value of the axis */
|
|
720
|
+
rangeMin: number;
|
|
721
|
+
};
|
|
722
|
+
/** Whether the animation should loop back to the start when done */
|
|
723
|
+
loop?: boolean;
|
|
724
|
+
/** Multiplier factor for the speed */
|
|
725
|
+
playbackSpeed?: number;
|
|
726
|
+
/** Change the animation starting point. Expects a normalized value from 0 to 1 */
|
|
727
|
+
startOffset?: number;
|
|
728
|
+
/** Change the animation ending point. Expects a normalized value from 0 to 1 */
|
|
729
|
+
stopOffset?: number;
|
|
730
|
+
/** Vertical axis */
|
|
731
|
+
verticalAxis: {
|
|
732
|
+
/** The axis name */
|
|
733
|
+
name: string;
|
|
734
|
+
/** Maximum value of the axis */
|
|
735
|
+
rangeMax: number;
|
|
736
|
+
/** Minimum value of the axis */
|
|
737
|
+
rangeMin: number;
|
|
738
|
+
};
|
|
739
|
+
} | {
|
|
740
|
+
/** Bone mask keys. Used to find the corresponding bone mask in the animation set */
|
|
741
|
+
boneMasks: Array<number>;
|
|
742
|
+
/** Blend weights */
|
|
743
|
+
weights: Array<number | string>;
|
|
744
|
+
} | {
|
|
745
|
+
/** Probabilities of each input animation to be selected */
|
|
746
|
+
probabilities: Array<number>;
|
|
747
|
+
} | {
|
|
748
|
+
/** Index of the state machine to run */
|
|
749
|
+
stateMachineIndex: number;
|
|
750
|
+
} | {
|
|
751
|
+
/** End bone. This bone will try to reach the target. */
|
|
752
|
+
endBone: number | string;
|
|
753
|
+
/** Mid bone. Must be ancestor of end bone. */
|
|
754
|
+
midBone: number | string;
|
|
755
|
+
/** The pole vector which defines where the direction the middle bone should point to, allowing to control IK chain orientation. In model space of the skeleton. */
|
|
756
|
+
poleVector: Array<number> | string;
|
|
757
|
+
/** Soften ratio, allowing the chain to gradually fall behind the target position. This prevents the bone chain from snapping into the final position, softening the final degrees before the bone chain becomes flat */
|
|
758
|
+
soften: number | string;
|
|
759
|
+
/** Start bone. Must be ancestor of mid bone. */
|
|
760
|
+
startBone: number | string;
|
|
761
|
+
/** The target which the endBone will try to reach. In world space */
|
|
762
|
+
target: Array<number> | string;
|
|
763
|
+
/** Twist angle rotates IK chain around the vector defined by start-to-target vector */
|
|
764
|
+
twistAngle: number | string;
|
|
765
|
+
/** Weight given to the whole IK process, allowing blending in and out */
|
|
766
|
+
weight: number | string;
|
|
767
|
+
} | {
|
|
768
|
+
/** This is the bone which will aim at the target */
|
|
769
|
+
aimingBone: number | string;
|
|
770
|
+
/** Weight given to IK for each bone of the chain (except for the last bone which is 1). This directly affect correction spreading */
|
|
771
|
+
boneWeight: number | string;
|
|
772
|
+
/** Number of bones (from the predefined hierarchy) that are corrected by IK */
|
|
773
|
+
chainLength: number | string;
|
|
774
|
+
/** Weight given to the whole aim process, allowing blending in and out */
|
|
775
|
+
chainWeight: number | string;
|
|
776
|
+
/** Bone space forward vector. Default is z axis. */
|
|
777
|
+
forward: Array<number> | string;
|
|
778
|
+
/** Offset position from the aiming bone in local-space, that will aim at target */
|
|
779
|
+
offset: Array<number> | string;
|
|
780
|
+
/** The target that the forward vector will be aimed towards. In world space */
|
|
781
|
+
target: Array<number> | string;
|
|
782
|
+
/** Bone space up vector. Used to keep the bone oriented in the same direction as the pole vector. Default is y axis. */
|
|
783
|
+
up: Array<number> | string;
|
|
784
|
+
}>;
|
|
785
|
+
}>;
|
|
786
|
+
/** The transitions coming from the current state */
|
|
787
|
+
transitionIndices?: Array<number>;
|
|
788
|
+
}>;
|
|
789
|
+
/** All transition between all states */
|
|
790
|
+
transitions?: Array<{
|
|
791
|
+
/** A variant of either exit time, data object entry or transition func index (depending on transition type) */
|
|
792
|
+
condition?: number | string | number;
|
|
793
|
+
/** The duration of the transition for blending purposes */
|
|
794
|
+
durationInMs?: number;
|
|
795
|
+
/** The index of the state to transition to */
|
|
796
|
+
nextStateIndex?: number;
|
|
797
|
+
/** The transition type. */
|
|
798
|
+
type?: StrictUnion<0 | 1 | 2 | 3>;
|
|
799
|
+
}>;
|
|
800
|
+
}>;
|
|
801
|
+
/** Unique identifier for the asset */
|
|
802
|
+
uuid: string;
|
|
803
|
+
};
|
|
804
|
+
asset_type: 'animation_graph';
|
|
805
|
+
} | {
|
|
806
|
+
/** An animated sequence of component properties */
|
|
807
|
+
asset_description: {
|
|
808
|
+
/** Duration of the animation in milliseconds */
|
|
809
|
+
durationInMs: number;
|
|
810
|
+
/** Name of the asset */
|
|
811
|
+
name: string;
|
|
812
|
+
/** The size in byte of the compiled animation sequence library */
|
|
813
|
+
payloadSize?: number;
|
|
814
|
+
/** The array of track UUIDs at play in this animation sequence */
|
|
815
|
+
trackUUIDs: Array<string>;
|
|
816
|
+
/** Unique identifier for the asset */
|
|
817
|
+
uuid: string;
|
|
818
|
+
};
|
|
819
|
+
asset_type: 'animation_sequence';
|
|
820
|
+
} | {
|
|
821
|
+
/** An animation set linked to an animation graph */
|
|
822
|
+
asset_description: {
|
|
823
|
+
/** Parent animation graph */
|
|
824
|
+
animationGraphUUID: string;
|
|
825
|
+
/** The animation set */
|
|
826
|
+
animationSet: Array<{
|
|
827
|
+
/** Key of the animation in the animation graph */
|
|
828
|
+
animationKey: number;
|
|
829
|
+
/** The referenced animation for the specified key */
|
|
830
|
+
animationRef: string;
|
|
831
|
+
}>;
|
|
832
|
+
/** The bone mask set */
|
|
833
|
+
boneMaskSet?: Array<{
|
|
834
|
+
/** The bone mask. An array of floats which corresponds to the weight per bone */
|
|
835
|
+
boneMask: Array<number>;
|
|
836
|
+
/** Key of the bone mask in the animation graph */
|
|
837
|
+
boneMaskKey: number;
|
|
838
|
+
}>;
|
|
839
|
+
/** Name of the asset */
|
|
840
|
+
name: string;
|
|
841
|
+
/** Unique identifier for the asset */
|
|
842
|
+
uuid: string;
|
|
843
|
+
};
|
|
844
|
+
asset_type: 'animation_set';
|
|
845
|
+
} | {
|
|
846
|
+
/** A cubemap is a set of 6 textures forming a cube */
|
|
847
|
+
asset_description: {
|
|
848
|
+
/** The 6 images forming the cube faces */
|
|
849
|
+
faces: Array<string>;
|
|
850
|
+
/** Name of the asset */
|
|
851
|
+
name: string;
|
|
852
|
+
/** Unique identifier for the asset */
|
|
853
|
+
uuid: string;
|
|
854
|
+
};
|
|
855
|
+
asset_type: 'cubemap';
|
|
856
|
+
} | {
|
|
857
|
+
/** A list of events with a description of their parameters */
|
|
858
|
+
asset_description: {
|
|
859
|
+
/** A map of events and their parameters descriptors */
|
|
860
|
+
events: {
|
|
861
|
+
/** Event name to parameters descriptor */
|
|
862
|
+
[event_name: string]: Array<{
|
|
863
|
+
/** Parameter default value */
|
|
864
|
+
default?: number | string | boolean | Array<number> | {
|
|
865
|
+
[_additionalproperties_: string]: any;
|
|
866
|
+
};
|
|
867
|
+
/** Parameter name */
|
|
868
|
+
name: string;
|
|
869
|
+
/** Parameter native type */
|
|
870
|
+
nativeType: 'entity_ref' | 'int32_t' | 'float' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'quat' | 'mat4' | 'string';
|
|
871
|
+
/** Parameter type */
|
|
872
|
+
type: 'entity' | 'bool' | 'int' | 'uint' | 'float' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'color' | 'vec4' | 'ivec4' | 'quat' | 'mat4' | 'string';
|
|
873
|
+
}>;
|
|
874
|
+
};
|
|
875
|
+
/** Name of the asset */
|
|
876
|
+
name: string;
|
|
877
|
+
/** Unique identifier for the asset */
|
|
878
|
+
uuid: string;
|
|
879
|
+
};
|
|
880
|
+
asset_type: 'event_map';
|
|
881
|
+
} | {
|
|
882
|
+
/** A material implementing a shader */
|
|
883
|
+
asset_description: {
|
|
884
|
+
/** Data object following the descriptor of the attached shader */
|
|
885
|
+
dataJson: {
|
|
886
|
+
[_additionalproperties_: string]: any;
|
|
887
|
+
};
|
|
888
|
+
/** Whether the faces of the geometry are rendered from both sides or not */
|
|
889
|
+
isDoubleSided: boolean;
|
|
890
|
+
/** Name of the asset */
|
|
891
|
+
name: string;
|
|
892
|
+
/** The implemented shader */
|
|
893
|
+
shaderRef: string;
|
|
894
|
+
/** Unique identifier for the asset */
|
|
895
|
+
uuid: string;
|
|
896
|
+
};
|
|
897
|
+
asset_type: 'material';
|
|
898
|
+
} | {
|
|
899
|
+
/** Source code from a git repository that could be used in a shader, a script or in an algorithm */
|
|
900
|
+
asset_description: {
|
|
901
|
+
functions: {
|
|
902
|
+
[function_name: string]: {
|
|
903
|
+
[_additionalproperties_: string]: any;
|
|
904
|
+
};
|
|
905
|
+
};
|
|
906
|
+
/** Other modules this module uses */
|
|
907
|
+
moduleDependencies?: Array<string>;
|
|
908
|
+
/** Name of the asset */
|
|
909
|
+
name: string;
|
|
910
|
+
/** Unique identifier for the asset */
|
|
911
|
+
uuid: string;
|
|
912
|
+
};
|
|
913
|
+
asset_type: 'module';
|
|
914
|
+
} | {
|
|
915
|
+
/** A render graph used by a camera */
|
|
916
|
+
asset_description: {
|
|
917
|
+
/** All blend states */
|
|
918
|
+
blendStateDescriptions?: Array<{
|
|
919
|
+
/** Selects which blend operation is used to calculate the alpha values to write to the color attachment. */
|
|
920
|
+
alphaBlendOp?: number;
|
|
921
|
+
/** Controls whether blending is enabled for the corresponding color attachment. If blending is not enabled, the source fragment’s color for that attachment is passed through unmodified. */
|
|
922
|
+
blendEnable?: boolean;
|
|
923
|
+
/** Selects which blend operation is used to calculate the RGB values to write to the color attachment. */
|
|
924
|
+
colorBlendOp?: number;
|
|
925
|
+
/** Bitmask of VkColorComponentFlagBits specifying which of the R, G, B, and/or A components are enabled for writing, as described for the Color Write Mask. */
|
|
926
|
+
colorWriteMask?: number;
|
|
927
|
+
/** Selects which blend factor is used to determine the destination factor Da. */
|
|
928
|
+
dstAlphaBlendFactor?: number;
|
|
929
|
+
/** Selects which blend factor is used to determine the destination factors (Dr,Dg,Db). */
|
|
930
|
+
dstColorBlendFactor?: number;
|
|
931
|
+
/** Selects which blend factor is used to determine the source factor Sa. */
|
|
932
|
+
srcAlphaBlendFactor?: number;
|
|
933
|
+
/** Selects which blend factor is used to determine the source factors (Sr,Sg,Sb). */
|
|
934
|
+
srcColorBlendFactor?: number;
|
|
935
|
+
}>;
|
|
936
|
+
/** Descriptions of all buffers */
|
|
937
|
+
bufferDescriptions?: Array<{
|
|
938
|
+
/** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */
|
|
939
|
+
elementCount?: number | Array<number>;
|
|
940
|
+
/** Size in bytes of a single element in the buffer */
|
|
941
|
+
elementSize?: number;
|
|
942
|
+
/** Buffer name */
|
|
943
|
+
name?: string;
|
|
944
|
+
/** How this buffer is going to be used */
|
|
945
|
+
usage?: number;
|
|
946
|
+
}>;
|
|
947
|
+
/** Conditions referenced by conditionIndex */
|
|
948
|
+
conditions?: Array<string>;
|
|
949
|
+
/** The index of the render target to blit into the canvas */
|
|
950
|
+
defaultRenderTargetIndex?: number;
|
|
951
|
+
/** The order in which to interpret the nodes */
|
|
952
|
+
graphOrder: Array<Array<number>>;
|
|
953
|
+
/** Input descriptor used to parse input data */
|
|
954
|
+
inputDescriptor: Array<{
|
|
955
|
+
/** Categories */
|
|
956
|
+
categories?: Array<string>;
|
|
957
|
+
/** Parameter default value */
|
|
958
|
+
default?: number | string | boolean | Array<number> | {
|
|
959
|
+
[_additionalproperties_: string]: any;
|
|
960
|
+
};
|
|
961
|
+
/** Parameter name */
|
|
962
|
+
name: string;
|
|
963
|
+
/** Parameter native type */
|
|
964
|
+
nativeType: 'texture2d_ref' | 'stencil_op' | 'render_target_index' | 'buffer_reference' | 'string' | 'int32_t' | 'float' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'quat' | 'mat4';
|
|
965
|
+
/** Parameter type */
|
|
966
|
+
type: 'texture' | 'stencil_op' | 'render_target' | 'buffer' | 'string' | 'bool' | 'int' | 'uint' | 'float' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'color' | 'vec4' | 'ivec4' | 'quat' | 'mat4';
|
|
967
|
+
}>;
|
|
968
|
+
/** Name of the asset */
|
|
969
|
+
name: string;
|
|
970
|
+
/** Descriptions of all nodes */
|
|
971
|
+
nodeDataDescriptions: Array<({
|
|
972
|
+
type: 0;
|
|
973
|
+
} | {
|
|
974
|
+
/** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */
|
|
975
|
+
batchType?: number;
|
|
976
|
+
/** Specialization constants values for the specified shader */
|
|
977
|
+
constantsJson?: {
|
|
978
|
+
[_additionalproperties_: string]: any;
|
|
979
|
+
};
|
|
980
|
+
/** Data provided to the shader through the node data buffer */
|
|
981
|
+
dataJson?: {
|
|
982
|
+
[_additionalproperties_: string]: any;
|
|
983
|
+
};
|
|
984
|
+
/** Description of a shader pipeline */
|
|
985
|
+
pipelineDescription?: {
|
|
986
|
+
/** Index of the stencil state for back face rendering */
|
|
987
|
+
backFaceStencilOpStateIndex?: number;
|
|
988
|
+
/** Color blend attachement states */
|
|
989
|
+
blendStateIndices?: Array<number>;
|
|
990
|
+
/** Cull mode */
|
|
991
|
+
cullMode?: number;
|
|
992
|
+
/** Whether to enable depth bias or not */
|
|
993
|
+
depthBiasEnable?: boolean;
|
|
994
|
+
/** Depth compare operator */
|
|
995
|
+
depthCompareOp?: number;
|
|
996
|
+
/** Wether to enable depth test or not */
|
|
997
|
+
depthTestEnable?: boolean;
|
|
998
|
+
/** Wether to enable depth write or not */
|
|
999
|
+
depthWriteEnable?: boolean;
|
|
1000
|
+
/** Front face */
|
|
1001
|
+
frontFace?: number;
|
|
1002
|
+
/** Index of the stencil state for front face rendering */
|
|
1003
|
+
frontFaceStencilOpStateIndex?: number;
|
|
1004
|
+
/** Polygon mode */
|
|
1005
|
+
polygonMode?: number;
|
|
1006
|
+
/** Primitive topology */
|
|
1007
|
+
topology?: number;
|
|
1008
|
+
};
|
|
1009
|
+
/** A reference to a shader */
|
|
1010
|
+
shaderRef?: string;
|
|
1011
|
+
type: 1;
|
|
1012
|
+
} | {
|
|
1013
|
+
/** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */
|
|
1014
|
+
batchType?: number;
|
|
1015
|
+
/** Data provided to the shader through the node data buffer */
|
|
1016
|
+
dataJson?: {
|
|
1017
|
+
[_additionalproperties_: string]: any;
|
|
1018
|
+
};
|
|
1019
|
+
/** Description of a shader pipeline */
|
|
1020
|
+
pipelineDescription?: {
|
|
1021
|
+
/** Index of the stencil state for back face rendering */
|
|
1022
|
+
backFaceStencilOpStateIndex?: number;
|
|
1023
|
+
/** Color blend attachement states */
|
|
1024
|
+
blendStateIndices?: Array<number>;
|
|
1025
|
+
/** Cull mode */
|
|
1026
|
+
cullMode?: number;
|
|
1027
|
+
/** Whether to enable depth bias or not */
|
|
1028
|
+
depthBiasEnable?: boolean;
|
|
1029
|
+
/** Depth compare operator */
|
|
1030
|
+
depthCompareOp?: number;
|
|
1031
|
+
/** Wether to enable depth test or not */
|
|
1032
|
+
depthTestEnable?: boolean;
|
|
1033
|
+
/** Wether to enable depth write or not */
|
|
1034
|
+
depthWriteEnable?: boolean;
|
|
1035
|
+
/** Front face */
|
|
1036
|
+
frontFace?: number;
|
|
1037
|
+
/** Index of the stencil state for front face rendering */
|
|
1038
|
+
frontFaceStencilOpStateIndex?: number;
|
|
1039
|
+
/** Polygon mode */
|
|
1040
|
+
polygonMode?: number;
|
|
1041
|
+
/** Primitive topology */
|
|
1042
|
+
topology?: number;
|
|
1043
|
+
};
|
|
1044
|
+
/** Index into shaderContexts of the descriptor providing the shader context data for this node */
|
|
1045
|
+
shaderContextIndex: number;
|
|
1046
|
+
type: 2;
|
|
1047
|
+
} | {
|
|
1048
|
+
/** @deprecated Const data type */
|
|
1049
|
+
constDataType?: (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24) & number;
|
|
1050
|
+
/** Specialization constants values for the specified shader */
|
|
1051
|
+
constantsJson?: {
|
|
1052
|
+
[_additionalproperties_: string]: any;
|
|
1053
|
+
};
|
|
1054
|
+
/** Data provided to the shader through the node data buffer */
|
|
1055
|
+
dataJson?: {
|
|
1056
|
+
[_additionalproperties_: string]: any;
|
|
1057
|
+
};
|
|
1058
|
+
/** A reference to a shader */
|
|
1059
|
+
shaderRef?: string;
|
|
1060
|
+
type: 3;
|
|
1061
|
+
} | {
|
|
1062
|
+
filter?: number;
|
|
1063
|
+
/** Source render target */
|
|
1064
|
+
inputRenderTargetIndices?: Array<number>;
|
|
1065
|
+
/** Destination render target */
|
|
1066
|
+
outputRenderTargetIndices?: Array<number>;
|
|
1067
|
+
type: 4;
|
|
1068
|
+
} | {
|
|
1069
|
+
/** Specialization constants values for the specified shader */
|
|
1070
|
+
constantsJson?: {
|
|
1071
|
+
[_additionalproperties_: string]: any;
|
|
1072
|
+
};
|
|
1073
|
+
/** Data provided to the shader through the node data buffer */
|
|
1074
|
+
dataJson?: {
|
|
1075
|
+
[_additionalproperties_: string]: any;
|
|
1076
|
+
};
|
|
1077
|
+
/** A reference to a shader */
|
|
1078
|
+
shaderRef?: string;
|
|
1079
|
+
type: 5;
|
|
1080
|
+
} | {
|
|
1081
|
+
/** Source render target */
|
|
1082
|
+
inputRenderTargetIndices?: Array<number>;
|
|
1083
|
+
/** Destination render target */
|
|
1084
|
+
outputRenderTargetIndices?: Array<number>;
|
|
1085
|
+
type: 6;
|
|
1086
|
+
} | {
|
|
1087
|
+
/** Source render target */
|
|
1088
|
+
inputRenderTargetIndices?: Array<number>;
|
|
1089
|
+
/** Destination render target */
|
|
1090
|
+
outputRenderTargetIndices?: Array<number>;
|
|
1091
|
+
type: 7;
|
|
1092
|
+
} | {
|
|
1093
|
+
/** Specialization constants values for the specified shader */
|
|
1094
|
+
constantsJson?: {
|
|
1095
|
+
[_additionalproperties_: string]: any;
|
|
1096
|
+
};
|
|
1097
|
+
/** Data provided to the shader through the node data buffer */
|
|
1098
|
+
dataJson?: {
|
|
1099
|
+
[_additionalproperties_: string]: any;
|
|
1100
|
+
};
|
|
1101
|
+
/** Description of a shader pipeline */
|
|
1102
|
+
pipelineDescription?: {
|
|
1103
|
+
/** Index of the stencil state for back face rendering */
|
|
1104
|
+
backFaceStencilOpStateIndex?: number;
|
|
1105
|
+
/** Color blend attachement states */
|
|
1106
|
+
blendStateIndices?: Array<number>;
|
|
1107
|
+
/** Cull mode */
|
|
1108
|
+
cullMode?: number;
|
|
1109
|
+
/** Whether to enable depth bias or not */
|
|
1110
|
+
depthBiasEnable?: boolean;
|
|
1111
|
+
/** Depth compare operator */
|
|
1112
|
+
depthCompareOp?: number;
|
|
1113
|
+
/** Wether to enable depth test or not */
|
|
1114
|
+
depthTestEnable?: boolean;
|
|
1115
|
+
/** Wether to enable depth write or not */
|
|
1116
|
+
depthWriteEnable?: boolean;
|
|
1117
|
+
/** Front face */
|
|
1118
|
+
frontFace?: number;
|
|
1119
|
+
/** Index of the stencil state for front face rendering */
|
|
1120
|
+
frontFaceStencilOpStateIndex?: number;
|
|
1121
|
+
/** Polygon mode */
|
|
1122
|
+
polygonMode?: number;
|
|
1123
|
+
/** Primitive topology */
|
|
1124
|
+
topology?: number;
|
|
1125
|
+
};
|
|
1126
|
+
/** A reference to a shader */
|
|
1127
|
+
shaderRef?: string;
|
|
1128
|
+
type: 8;
|
|
1129
|
+
} | {
|
|
1130
|
+
filter?: number;
|
|
1131
|
+
/** Source render target */
|
|
1132
|
+
inputRenderTargetIndices?: Array<number>;
|
|
1133
|
+
/** Mip generation mode */
|
|
1134
|
+
mode?: (0 | 1) & number;
|
|
1135
|
+
type: 9;
|
|
1136
|
+
} | {
|
|
1137
|
+
/** Source render target */
|
|
1138
|
+
inputRenderTargetIndices?: Array<number>;
|
|
1139
|
+
type: 10;
|
|
1140
|
+
} | {
|
|
1141
|
+
/** Specialization constants values for the specified shader */
|
|
1142
|
+
constantsJson?: {
|
|
1143
|
+
[_additionalproperties_: string]: any;
|
|
1144
|
+
};
|
|
1145
|
+
/** Data provided to the shader through the node data buffer */
|
|
1146
|
+
dataJson?: {
|
|
1147
|
+
[_additionalproperties_: string]: any;
|
|
1148
|
+
};
|
|
1149
|
+
/** Source render target */
|
|
1150
|
+
inputRenderTargetIndices?: Array<number>;
|
|
1151
|
+
/** Mip generation mode */
|
|
1152
|
+
mode?: (0 | 1) & number;
|
|
1153
|
+
/** A reference to a shader */
|
|
1154
|
+
shaderRef?: string;
|
|
1155
|
+
type: 11;
|
|
1156
|
+
} | {
|
|
1157
|
+
/** Clear value */
|
|
1158
|
+
clearValue?: Array<number> | Array<number> | Array<number> | {
|
|
1159
|
+
depth: number;
|
|
1160
|
+
stencil: number;
|
|
1161
|
+
};
|
|
1162
|
+
/** Type of clearValue */
|
|
1163
|
+
clearValueType?: StrictUnion<0 | 1 | 2 | 3>;
|
|
1164
|
+
/** Render targets to clear */
|
|
1165
|
+
outputRenderTargetIndices?: Array<number>;
|
|
1166
|
+
type: 13;
|
|
1167
|
+
} | {
|
|
1168
|
+
/** Name of the buffer */
|
|
1169
|
+
bufferName?: string;
|
|
1170
|
+
/** Offset in the buffer */
|
|
1171
|
+
bufferOffset?: number;
|
|
1172
|
+
/** Size of the buffer; 0 for whole size */
|
|
1173
|
+
bufferSize?: number;
|
|
1174
|
+
/** Value to fill the buffer with */
|
|
1175
|
+
bufferValue?: number;
|
|
1176
|
+
type: 15;
|
|
1177
|
+
} | {
|
|
1178
|
+
/** Specialization constants values for the specified shader */
|
|
1179
|
+
constantsJson?: {
|
|
1180
|
+
[_additionalproperties_: string]: any;
|
|
1181
|
+
};
|
|
1182
|
+
/** Data provided to the shader through the node data buffer */
|
|
1183
|
+
dataJson?: {
|
|
1184
|
+
[_additionalproperties_: string]: any;
|
|
1185
|
+
};
|
|
1186
|
+
/** Description of a shader pipeline */
|
|
1187
|
+
pipelineDescription?: {
|
|
1188
|
+
/** Index of the stencil state for back face rendering */
|
|
1189
|
+
backFaceStencilOpStateIndex?: number;
|
|
1190
|
+
/** Color blend attachement states */
|
|
1191
|
+
blendStateIndices?: Array<number>;
|
|
1192
|
+
/** Cull mode */
|
|
1193
|
+
cullMode?: number;
|
|
1194
|
+
/** Whether to enable depth bias or not */
|
|
1195
|
+
depthBiasEnable?: boolean;
|
|
1196
|
+
/** Depth compare operator */
|
|
1197
|
+
depthCompareOp?: number;
|
|
1198
|
+
/** Wether to enable depth test or not */
|
|
1199
|
+
depthTestEnable?: boolean;
|
|
1200
|
+
/** Wether to enable depth write or not */
|
|
1201
|
+
depthWriteEnable?: boolean;
|
|
1202
|
+
/** Front face */
|
|
1203
|
+
frontFace?: number;
|
|
1204
|
+
/** Index of the stencil state for front face rendering */
|
|
1205
|
+
frontFaceStencilOpStateIndex?: number;
|
|
1206
|
+
/** Polygon mode */
|
|
1207
|
+
polygonMode?: number;
|
|
1208
|
+
/** Primitive topology */
|
|
1209
|
+
topology?: number;
|
|
1210
|
+
};
|
|
1211
|
+
/** A reference to a shader */
|
|
1212
|
+
shaderRef?: string;
|
|
1213
|
+
type: 16;
|
|
1214
|
+
} | {
|
|
1215
|
+
/** Data provided to the shader through the node data buffer */
|
|
1216
|
+
dataJson?: {
|
|
1217
|
+
[_additionalproperties_: string]: any;
|
|
1218
|
+
};
|
|
1219
|
+
/** Index into shaderContexts of the descriptor providing the shader context data for this node */
|
|
1220
|
+
shaderContextIndex: number;
|
|
1221
|
+
type: 17;
|
|
1222
|
+
} | {
|
|
1223
|
+
/** Depth bias clamp */
|
|
1224
|
+
depthBiasClamp?: number;
|
|
1225
|
+
/** Depth bias constant factor */
|
|
1226
|
+
depthBiasConstantFactor?: number;
|
|
1227
|
+
/** Depth bias slope factor */
|
|
1228
|
+
depthBiasSlopeFactor?: number;
|
|
1229
|
+
type: 18;
|
|
1230
|
+
} | {
|
|
1231
|
+
/** Specialization constants values for the specified shader */
|
|
1232
|
+
constantsJson?: {
|
|
1233
|
+
[_additionalproperties_: string]: any;
|
|
1234
|
+
};
|
|
1235
|
+
/** Data provided to the shader through the node data buffer */
|
|
1236
|
+
dataJson?: {
|
|
1237
|
+
[_additionalproperties_: string]: any;
|
|
1238
|
+
};
|
|
1239
|
+
/** A reference to a shader */
|
|
1240
|
+
shaderRef?: string;
|
|
1241
|
+
type: 19;
|
|
1242
|
+
}) & {
|
|
1243
|
+
/** Index into the conditions array; -1 if unconditional */
|
|
1244
|
+
conditionIndex?: number;
|
|
1245
|
+
/** Node name */
|
|
1246
|
+
name?: string;
|
|
1247
|
+
/** Node type */
|
|
1248
|
+
type: (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19) & number;
|
|
1249
|
+
}>;
|
|
1250
|
+
/** The index of the render target used for occlusion */
|
|
1251
|
+
occlusionInputDepthRenderTargetIndex?: number;
|
|
1252
|
+
/** Descriptions of all render passes */
|
|
1253
|
+
renderPassDescriptions: Array<{
|
|
1254
|
+
/** The attachments clear colors */
|
|
1255
|
+
attachmentClearColors?: Array<Array<number>>;
|
|
1256
|
+
/** The attachment descriptions */
|
|
1257
|
+
attachmentDescriptions?: Array<{
|
|
1258
|
+
/** Final layout */
|
|
1259
|
+
finalLayout?: number;
|
|
1260
|
+
/** Attachment description flags */
|
|
1261
|
+
flags?: number;
|
|
1262
|
+
/** Format */
|
|
1263
|
+
format?: number;
|
|
1264
|
+
/** Initial layout */
|
|
1265
|
+
initialLayout?: number;
|
|
1266
|
+
/** Load op */
|
|
1267
|
+
loadOp?: number;
|
|
1268
|
+
/** Sample count */
|
|
1269
|
+
samples?: number;
|
|
1270
|
+
/** Stencil load op */
|
|
1271
|
+
stencilLoadOp?: number;
|
|
1272
|
+
/** Stencil store op */
|
|
1273
|
+
stencilStoreOp?: number;
|
|
1274
|
+
/** Store op */
|
|
1275
|
+
storeOp?: number;
|
|
1276
|
+
}>;
|
|
1277
|
+
/** The indices of the render targets used as color attachments for this render pass */
|
|
1278
|
+
colorAttachmentIndices?: Array<number>;
|
|
1279
|
+
/** The attachment references of the render targets used as color attachments for this render pass */
|
|
1280
|
+
colorAttachmentReferences?: Array<{
|
|
1281
|
+
/** Attachment */
|
|
1282
|
+
attachment?: number;
|
|
1283
|
+
/** Layout */
|
|
1284
|
+
layout?: number;
|
|
1285
|
+
}>;
|
|
1286
|
+
/** Index into the conditions array; -1 if unconditional */
|
|
1287
|
+
conditionIndex?: number;
|
|
1288
|
+
/** The index of the render target used as depth attachment for this render pass */
|
|
1289
|
+
depthAttachmentIndex?: number;
|
|
1290
|
+
/** The attachment reference of the render target used as depth attachment for this render pass */
|
|
1291
|
+
depthAttachmentReference?: {
|
|
1292
|
+
/** Attachment */
|
|
1293
|
+
attachment?: number;
|
|
1294
|
+
/** Layout */
|
|
1295
|
+
layout?: number;
|
|
1296
|
+
};
|
|
1297
|
+
/** Render pass name */
|
|
1298
|
+
name?: string;
|
|
1299
|
+
/** The indices of the nodes composing this render pass */
|
|
1300
|
+
nodeIndices?: Array<number>;
|
|
1301
|
+
/** The indices of the render targets used as resolve attachments for this render pass */
|
|
1302
|
+
resolveAttachmentIndices?: Array<number>;
|
|
1303
|
+
/** The attachment references of the render targets used as resolve attachments for this render pass */
|
|
1304
|
+
resolveAttachmentReferences?: Array<{
|
|
1305
|
+
/** Attachment */
|
|
1306
|
+
attachment?: number;
|
|
1307
|
+
/** Layout */
|
|
1308
|
+
layout?: number;
|
|
1309
|
+
}>;
|
|
1310
|
+
/** Multisampling */
|
|
1311
|
+
sampleCount?: number;
|
|
1312
|
+
}>;
|
|
1313
|
+
/** Descriptions of all render targets */
|
|
1314
|
+
renderTargetDescriptions: Array<{
|
|
1315
|
+
/** The aspect of the image to use, in the graph */
|
|
1316
|
+
aspect?: number;
|
|
1317
|
+
/** The denoiser target this render target maps to */
|
|
1318
|
+
denoiserTarget?: (-1 | 0 | 1 | 2 | 3) & number;
|
|
1319
|
+
/** The extent of the render target, leave at 0 to use the canvas extent */
|
|
1320
|
+
extent?: Array<number>;
|
|
1321
|
+
/** Flags to use on image creation */
|
|
1322
|
+
flags?: number;
|
|
1323
|
+
/** Format of the render target */
|
|
1324
|
+
format?: number;
|
|
1325
|
+
/** Memory type */
|
|
1326
|
+
memoryType?: (0 | 1 | 2 | 3) & number;
|
|
1327
|
+
/** How the image is accessed */
|
|
1328
|
+
memoryUsage?: (0 | 1 | 2 | 3) & number;
|
|
1329
|
+
/** Minimum mip size, leave at 0 for single mip level */
|
|
1330
|
+
minMipSize?: number;
|
|
1331
|
+
/** Render target name */
|
|
1332
|
+
name?: string;
|
|
1333
|
+
/** The picking target this render target maps to */
|
|
1334
|
+
pickingTarget?: (-1 | 0 | 1) & number;
|
|
1335
|
+
/** Number of samples per pixel */
|
|
1336
|
+
sampleCount?: number;
|
|
1337
|
+
/** THe sampler to use when accessing this render target */
|
|
1338
|
+
samplerType?: number;
|
|
1339
|
+
/** Tiling of the image */
|
|
1340
|
+
tiling?: number;
|
|
1341
|
+
/** How this render target is going to be used */
|
|
1342
|
+
usage?: number;
|
|
1343
|
+
}>;
|
|
1344
|
+
/** Data descriptors for the shader contexts referenced by shaderContextIndex */
|
|
1345
|
+
shaderContexts?: Array<Array<{
|
|
1346
|
+
/** Additional properties for a parameter of type "buffer": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */
|
|
1347
|
+
bufferProperties?: {
|
|
1348
|
+
/** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */
|
|
1349
|
+
elementCount: number | Array<number>;
|
|
1350
|
+
/** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */
|
|
1351
|
+
elementSize: number;
|
|
1352
|
+
/** How this buffer is going to be used */
|
|
1353
|
+
usage: number;
|
|
1354
|
+
};
|
|
1355
|
+
/** Categories */
|
|
1356
|
+
categories?: Array<string>;
|
|
1357
|
+
/** Parameter default value */
|
|
1358
|
+
default?: number | boolean | Array<number>;
|
|
1359
|
+
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
1360
|
+
description?: string;
|
|
1361
|
+
/** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
|
|
1362
|
+
id?: number;
|
|
1363
|
+
/** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */
|
|
1364
|
+
isReferenceResource?: boolean;
|
|
1365
|
+
/** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */
|
|
1366
|
+
list?: Array<{
|
|
1367
|
+
description?: string;
|
|
1368
|
+
name: string;
|
|
1369
|
+
value: number;
|
|
1370
|
+
}>;
|
|
1371
|
+
/** Parameter name */
|
|
1372
|
+
name: string;
|
|
1373
|
+
/** Parameter native type */
|
|
1374
|
+
nativeType: 'vec4' | 'vec3' | 'vec2' | 'float' | 'int32_t' | 'texture2d_ref' | 'render_target_index' | 'buffer_reference';
|
|
1375
|
+
/** Parameter offset in bytes */
|
|
1376
|
+
offset: number;
|
|
1377
|
+
/** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */
|
|
1378
|
+
properties?: {
|
|
1379
|
+
/** For a parameter of type "texture" or "render_target_index": the underlying pixel type's exact format */
|
|
1380
|
+
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
1381
|
+
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
1382
|
+
openMode?: 'read' | 'write' | 'readwrite';
|
|
1383
|
+
/** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
|
|
1384
|
+
spec?: {
|
|
1385
|
+
[_additionalproperties_: string]: number | boolean;
|
|
1386
|
+
};
|
|
1387
|
+
};
|
|
1388
|
+
/** Parameter type */
|
|
1389
|
+
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
1390
|
+
}>>;
|
|
1391
|
+
/** All stencil states */
|
|
1392
|
+
stencilOpStateDescriptions?: Array<{
|
|
1393
|
+
/** Compare mask */
|
|
1394
|
+
compareMask?: number;
|
|
1395
|
+
/** Compare operator */
|
|
1396
|
+
compareOp?: number;
|
|
1397
|
+
/** Depth fail operator */
|
|
1398
|
+
depthFailOp?: number;
|
|
1399
|
+
/** Fail operator */
|
|
1400
|
+
failOp?: number;
|
|
1401
|
+
/** Pass operator */
|
|
1402
|
+
passOp?: number;
|
|
1403
|
+
/** Reference */
|
|
1404
|
+
reference?: number;
|
|
1405
|
+
/** Write mask */
|
|
1406
|
+
writeMask?: number;
|
|
1407
|
+
}>;
|
|
1408
|
+
/** Unique identifier for the asset */
|
|
1409
|
+
uuid: string;
|
|
1410
|
+
};
|
|
1411
|
+
asset_type: 'render_graph';
|
|
1412
|
+
} | {
|
|
1413
|
+
/** A scene is a collection of entities */
|
|
1414
|
+
asset_description: {
|
|
1415
|
+
/** Bounding box in local space */
|
|
1416
|
+
aabb: {
|
|
1417
|
+
/** Maximum point of the box */
|
|
1418
|
+
max: Array<number>;
|
|
1419
|
+
/** Minimum point of the box */
|
|
1420
|
+
min: Array<number>;
|
|
1421
|
+
};
|
|
1422
|
+
/** Flat list of entities */
|
|
1423
|
+
entities: Array<{
|
|
1424
|
+
[_additionalproperties_: string]: any;
|
|
1425
|
+
}>;
|
|
1426
|
+
/** Name of the asset */
|
|
1427
|
+
name: string;
|
|
1428
|
+
/** Total number of direct triangles in the scene */
|
|
1429
|
+
triangleCount?: number;
|
|
1430
|
+
/** Unique identifier for the asset */
|
|
1431
|
+
uuid: string;
|
|
1432
|
+
};
|
|
1433
|
+
asset_type: 'scene';
|
|
1434
|
+
} | {
|
|
1435
|
+
/** A runtime script */
|
|
1436
|
+
asset_description: {
|
|
1437
|
+
/** The events that the script listens to, referenced by name */
|
|
1438
|
+
eventNames?: Array<string>;
|
|
1439
|
+
/** The description of the data object that the caller should provide to the script */
|
|
1440
|
+
inputDescriptor: Array<{
|
|
1441
|
+
/** Parameter default value */
|
|
1442
|
+
default?: number | string | boolean | Array<number> | {
|
|
1443
|
+
[_additionalproperties_: string]: any;
|
|
1444
|
+
};
|
|
1445
|
+
/** Parameter name */
|
|
1446
|
+
name: string;
|
|
1447
|
+
/** Parameter native type */
|
|
1448
|
+
nativeType: 'entity_ref' | 'int32_t' | 'float' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'quat' | 'mat4' | 'string';
|
|
1449
|
+
/** Parameter type */
|
|
1450
|
+
type: 'entity' | 'bool' | 'int' | 'uint' | 'float' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'color' | 'vec4' | 'ivec4' | 'quat' | 'mat4' | 'string';
|
|
1451
|
+
}>;
|
|
1452
|
+
/** Name of the asset */
|
|
1453
|
+
name: string;
|
|
1454
|
+
/** An optional list of references to other scripts that the current script might call */
|
|
1455
|
+
subScripts?: Array<string>;
|
|
1456
|
+
/** Unique identifier for the asset */
|
|
1457
|
+
uuid: string;
|
|
1458
|
+
};
|
|
1459
|
+
asset_type: 'script';
|
|
1460
|
+
} | {
|
|
1461
|
+
/** A GPU shader */
|
|
1462
|
+
asset_description: {
|
|
1463
|
+
/** The blend mode for the shader, used for batching purposes. Only valid for material shaders */
|
|
1464
|
+
blendMode?: StrictUnion<0 | 1 | 2 | 3>;
|
|
1465
|
+
/** Compute shader settings. Only valid for compute shaders */
|
|
1466
|
+
computeSettings?: {
|
|
1467
|
+
/** Global group reference */
|
|
1468
|
+
sizeReference?: StrictUnion<0 | 1 | 2 | 3>;
|
|
1469
|
+
/** Size of the workgroup */
|
|
1470
|
+
workgroupSize?: Array<number>;
|
|
1471
|
+
/** Scaling factor to apply to the total workgroup count */
|
|
1472
|
+
workloadScalingFactor?: Array<number>;
|
|
1473
|
+
};
|
|
1474
|
+
/** Data descriptor for specialization constants */
|
|
1475
|
+
constantDescriptor?: Array<{
|
|
1476
|
+
/** Constant default value */
|
|
1477
|
+
default: number | boolean;
|
|
1478
|
+
/** Description */
|
|
1479
|
+
description?: string;
|
|
1480
|
+
/** Display name */
|
|
1481
|
+
displayName?: string;
|
|
1482
|
+
/** Constant name */
|
|
1483
|
+
name: string;
|
|
1484
|
+
/** Constant type */
|
|
1485
|
+
type: 'bool' | 'int' | 'uint' | 'float';
|
|
1486
|
+
}>;
|
|
1487
|
+
/** The size in byte of the same code built with its debug symbols, unoptimized: the optional `debug` payload, when built */
|
|
1488
|
+
debugPayloadSize?: number;
|
|
1489
|
+
/** GLSL extensions required by this shader, detected from the SPIR-V capabilities declared by its compiled modules or set by its author */
|
|
1490
|
+
glslExtensions?: Array<{
|
|
1491
|
+
/** Behavior of its #extension directive */
|
|
1492
|
+
behavior?: 'require' | 'enable' | 'warn' | 'disable';
|
|
1493
|
+
/** SPIR-V capability id that requires this extension (e.g. 5347 for PhysicalStorageBufferAddresses) */
|
|
1494
|
+
capabilityId?: number;
|
|
1495
|
+
/** GLSL extension name, e.g. "GL_EXT_buffer_reference" */
|
|
1496
|
+
name: string;
|
|
1497
|
+
/** Stage its #extension directive is written in, or "all_stages" */
|
|
1498
|
+
stage?: string;
|
|
1499
|
+
}>;
|
|
1500
|
+
/** Data descriptor for material shaders */
|
|
1501
|
+
materialDescriptor?: Array<{
|
|
1502
|
+
/** Additional properties for a parameter of type "buffer": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */
|
|
1503
|
+
bufferProperties?: {
|
|
1504
|
+
/** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */
|
|
1505
|
+
elementCount: number | Array<number>;
|
|
1506
|
+
/** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */
|
|
1507
|
+
elementSize: number;
|
|
1508
|
+
/** How this buffer is going to be used */
|
|
1509
|
+
usage: number;
|
|
1510
|
+
};
|
|
1511
|
+
/** Categories */
|
|
1512
|
+
categories?: Array<string>;
|
|
1513
|
+
/** Parameter default value */
|
|
1514
|
+
default?: number | boolean | Array<number>;
|
|
1515
|
+
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
1516
|
+
description?: string;
|
|
1517
|
+
/** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
|
|
1518
|
+
id?: number;
|
|
1519
|
+
/** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */
|
|
1520
|
+
isReferenceResource?: boolean;
|
|
1521
|
+
/** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */
|
|
1522
|
+
list?: Array<{
|
|
1523
|
+
description?: string;
|
|
1524
|
+
name: string;
|
|
1525
|
+
value: number;
|
|
1526
|
+
}>;
|
|
1527
|
+
/** Parameter name */
|
|
1528
|
+
name: string;
|
|
1529
|
+
/** Parameter native type */
|
|
1530
|
+
nativeType: 'vec4' | 'vec3' | 'vec2' | 'float' | 'int32_t' | 'texture2d_ref' | 'render_target_index' | 'buffer_reference';
|
|
1531
|
+
/** Parameter offset in bytes */
|
|
1532
|
+
offset: number;
|
|
1533
|
+
/** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */
|
|
1534
|
+
properties?: {
|
|
1535
|
+
/** For a parameter of type "texture" or "render_target_index": the underlying pixel type's exact format */
|
|
1536
|
+
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
1537
|
+
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
1538
|
+
openMode?: 'read' | 'write' | 'readwrite';
|
|
1539
|
+
/** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
|
|
1540
|
+
spec?: {
|
|
1541
|
+
[_additionalproperties_: string]: number | boolean;
|
|
1542
|
+
};
|
|
1543
|
+
};
|
|
1544
|
+
/** Parameter type */
|
|
1545
|
+
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
1546
|
+
}>;
|
|
1547
|
+
/** Descriptions of all modules that compose this shader */
|
|
1548
|
+
moduleDescriptions?: Array<{
|
|
1549
|
+
/** Names of the bindings used by this module */
|
|
1550
|
+
bindings?: Array<string>;
|
|
1551
|
+
/** Constants used by this module */
|
|
1552
|
+
constants?: {
|
|
1553
|
+
[_additionalproperties_: string]: Array<number>;
|
|
1554
|
+
};
|
|
1555
|
+
/** Entry point of the shader module */
|
|
1556
|
+
entryPoint?: string;
|
|
1557
|
+
/** Outputs of this shader module (e.g. a fragment shader's color attachments, or the last stage's varying outputs), used to validate the module's compatibility with a render pipeline */
|
|
1558
|
+
outputs?: Array<{
|
|
1559
|
+
/** Output location */
|
|
1560
|
+
location: number;
|
|
1561
|
+
/** Output variable name */
|
|
1562
|
+
name: string;
|
|
1563
|
+
/** Output variable type */
|
|
1564
|
+
type: 'bool' | 'int8' | 'int16' | 'int32' | 'int64' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'float16' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'pointer';
|
|
1565
|
+
}>;
|
|
1566
|
+
/** Offset in byte in the shader payload buffer */
|
|
1567
|
+
payloadOffset: number;
|
|
1568
|
+
/** Size in byte of the compiled module */
|
|
1569
|
+
payloadSize: number;
|
|
1570
|
+
/** Push constant members used by this module, used to validate push constant layout compatibility across the pipeline's stages */
|
|
1571
|
+
pushConstants?: Array<{
|
|
1572
|
+
/** Push constant member name */
|
|
1573
|
+
name: string;
|
|
1574
|
+
/** Offset in byte within the push constant block */
|
|
1575
|
+
offset: number;
|
|
1576
|
+
/** Size in byte of the push constant member */
|
|
1577
|
+
size: number;
|
|
1578
|
+
/** Push constant member type */
|
|
1579
|
+
type: 'bool' | 'int8' | 'int16' | 'int32' | 'int64' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'float16' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'pointer';
|
|
1580
|
+
}>;
|
|
1581
|
+
/** The shader stage */
|
|
1582
|
+
shaderStage: number;
|
|
1583
|
+
/** Bit mask of the descriptor bindings used by this module, bit N for binding N */
|
|
1584
|
+
usedBindings: number;
|
|
1585
|
+
}>;
|
|
1586
|
+
/** Name of the asset */
|
|
383
1587
|
name: string;
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
1588
|
+
/** Data descriptor for render graph node shaders */
|
|
1589
|
+
nodeDataDescriptor?: Array<{
|
|
1590
|
+
/** Additional properties for a parameter of type "buffer": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */
|
|
1591
|
+
bufferProperties?: {
|
|
1592
|
+
/** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */
|
|
1593
|
+
elementCount: number | Array<number>;
|
|
1594
|
+
/** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */
|
|
1595
|
+
elementSize: number;
|
|
1596
|
+
/** How this buffer is going to be used */
|
|
1597
|
+
usage: number;
|
|
1598
|
+
};
|
|
1599
|
+
/** Categories */
|
|
1600
|
+
categories?: Array<string>;
|
|
1601
|
+
/** Parameter default value */
|
|
1602
|
+
default?: number | boolean | Array<number>;
|
|
1603
|
+
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
1604
|
+
description?: string;
|
|
1605
|
+
/** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */
|
|
1606
|
+
id?: number;
|
|
1607
|
+
/** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */
|
|
1608
|
+
isReferenceResource?: boolean;
|
|
1609
|
+
/** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */
|
|
1610
|
+
list?: Array<{
|
|
1611
|
+
description?: string;
|
|
1612
|
+
name: string;
|
|
1613
|
+
value: number;
|
|
1614
|
+
}>;
|
|
1615
|
+
/** Parameter name */
|
|
1616
|
+
name: string;
|
|
1617
|
+
/** Parameter native type */
|
|
1618
|
+
nativeType: 'vec4' | 'vec3' | 'vec2' | 'float' | 'int32_t' | 'texture2d_ref' | 'render_target_index' | 'buffer_reference';
|
|
1619
|
+
/** Parameter offset in bytes */
|
|
1620
|
+
offset: number;
|
|
1621
|
+
/** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */
|
|
1622
|
+
properties?: {
|
|
1623
|
+
/** For a parameter of type "texture" or "render_target_index": the underlying pixel type's exact format */
|
|
1624
|
+
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
1625
|
+
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
1626
|
+
openMode?: 'read' | 'write' | 'readwrite';
|
|
1627
|
+
/** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
|
|
1628
|
+
spec?: {
|
|
1629
|
+
[_additionalproperties_: string]: number | boolean;
|
|
1630
|
+
};
|
|
1631
|
+
};
|
|
1632
|
+
/** Parameter type */
|
|
1633
|
+
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
1634
|
+
}>;
|
|
1635
|
+
/** Hash of the node data descriptor, used to detect changes in the descriptor */
|
|
1636
|
+
nodeDataDescriptorHash?: number;
|
|
1637
|
+
/** The size in byte of the compiled shader code (accumulated size of all modules) */
|
|
1638
|
+
payloadSize?: number;
|
|
1639
|
+
/** Reference to the shader context associated with this shader. Only present for shaders that use one. */
|
|
1640
|
+
shaderContextRef?: string;
|
|
1641
|
+
/** Vulkan bit mask of all shader stages present in this shader */
|
|
1642
|
+
shaderStages?: number;
|
|
1643
|
+
/** Unique identifier for the asset */
|
|
1644
|
+
uuid: string;
|
|
1645
|
+
/** Vertex description. Only valid when a vertex shader module is present */
|
|
1646
|
+
vertexDescriptor?: Array<{
|
|
1647
|
+
/** Binding number */
|
|
1648
|
+
binding: number;
|
|
1649
|
+
/** Format */
|
|
1650
|
+
format: number;
|
|
1651
|
+
/** Location */
|
|
1652
|
+
location: number;
|
|
1653
|
+
/** Offset */
|
|
1654
|
+
offset: number;
|
|
1655
|
+
/** Semantic */
|
|
1656
|
+
semantic: (1 | 2 | 4 | 8 | 16 | 32) & number;
|
|
1657
|
+
/** Stride between consecutive elements within the buffer */
|
|
1658
|
+
stride: number;
|
|
1659
|
+
}>;
|
|
1660
|
+
};
|
|
1661
|
+
asset_type: 'shader';
|
|
1662
|
+
} | {
|
|
1663
|
+
/** A material applied to a volume (3d texture) */
|
|
1664
|
+
asset_description: {
|
|
1665
|
+
/** The albedo look up table */
|
|
1666
|
+
albedoLUT?: Array<{
|
|
1667
|
+
/** The normalized key for this entry */
|
|
1668
|
+
key?: number;
|
|
1669
|
+
/** The value associated to the key */
|
|
1670
|
+
value?: Array<number> | number;
|
|
1671
|
+
}>;
|
|
1672
|
+
/** The metallic look up table */
|
|
1673
|
+
metallicLUT?: Array<{
|
|
1674
|
+
/** The normalized key for this entry */
|
|
1675
|
+
key?: number;
|
|
1676
|
+
/** The value associated to the key */
|
|
1677
|
+
value?: Array<number> | number;
|
|
1678
|
+
}>;
|
|
1679
|
+
/** Name of the asset */
|
|
388
1680
|
name: string;
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
1681
|
+
/** The opacity look up table */
|
|
1682
|
+
opacityLUT?: Array<{
|
|
1683
|
+
/** The normalized key for this entry */
|
|
1684
|
+
key?: number;
|
|
1685
|
+
/** The value associated to the key */
|
|
1686
|
+
value?: Array<number> | number;
|
|
1687
|
+
}>;
|
|
1688
|
+
/** The maximum voxel value handled by the material */
|
|
1689
|
+
rangeMax: number;
|
|
1690
|
+
/** The minimum voxel value handled material */
|
|
1691
|
+
rangeMin: number;
|
|
1692
|
+
/** The roughness look up table */
|
|
1693
|
+
roughnessLUT?: Array<{
|
|
1694
|
+
/** The normalized key for this entry */
|
|
1695
|
+
key?: number;
|
|
1696
|
+
/** The value associated to the key */
|
|
1697
|
+
value?: Array<number> | number;
|
|
1698
|
+
}>;
|
|
1699
|
+
/** Unique identifier for the asset */
|
|
1700
|
+
uuid: string;
|
|
1701
|
+
};
|
|
1702
|
+
asset_type: 'volume_material';
|
|
396
1703
|
};
|
|
397
|
-
export type
|
|
1704
|
+
export type AssetCreationFromDescription = ({
|
|
398
1705
|
/** Action map for a controller */
|
|
399
1706
|
asset_description: {
|
|
400
1707
|
actions: {
|
|
@@ -1460,6 +2767,9 @@ export type AssetCreatableWithType = {
|
|
|
1460
2767
|
uuid: string;
|
|
1461
2768
|
};
|
|
1462
2769
|
asset_type: 'volume_material';
|
|
2770
|
+
}) & {
|
|
2771
|
+
/** The asset's metadata, as its type declares them, none by default */
|
|
2772
|
+
meta?: AssetMeta;
|
|
1463
2773
|
};
|
|
1464
2774
|
export type AssetItem = {
|
|
1465
2775
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
@@ -1826,6 +3136,12 @@ export type EnvironmentAssetListFilters = {
|
|
|
1826
3136
|
include_public_assets?: boolean;
|
|
1827
3137
|
};
|
|
1828
3138
|
export type AssetContainer = 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'navmeshes' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'shader_contexts' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d' | 'volume_materials';
|
|
3139
|
+
/** A change of an asset's metadata, merged into them, a key set to null removed, the others kept */
|
|
3140
|
+
export type AssetMetaChange = {
|
|
3141
|
+
kind?: 'statechart' | 'coroutine' | 'custom' | null;
|
|
3142
|
+
} | {
|
|
3143
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph' | null;
|
|
3144
|
+
};
|
|
1829
3145
|
/** An asset as platform-management holds it, where it is included, and how it was edited */
|
|
1830
3146
|
export type AssetDetails = {
|
|
1831
3147
|
asset_container: 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'navmeshes' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'shader_contexts' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d' | 'volume_materials';
|
|
@@ -1906,6 +3222,14 @@ export type AssetDetails = {
|
|
|
1906
3222
|
};
|
|
1907
3223
|
/** The library exporting the asset, if any */
|
|
1908
3224
|
library_id?: string;
|
|
3225
|
+
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
3226
|
+
meta: {
|
|
3227
|
+
/** What the asset is, which tells the tool opening it */
|
|
3228
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
3229
|
+
} | {
|
|
3230
|
+
/** What the asset is, which tells the tool opening it */
|
|
3231
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
3232
|
+
};
|
|
1909
3233
|
name: string;
|
|
1910
3234
|
/** Unique identifier of an organization */
|
|
1911
3235
|
organization_id: string;
|
|
@@ -4303,7 +5627,34 @@ export type EditableAssetDescription = {
|
|
|
4303
5627
|
};
|
|
4304
5628
|
export type AssetContainerWithPayload = 'animations' | 'animation_graphs' | 'animation_sequences' | 'collision_geometries' | 'meshes' | 'navmeshes' | 'point_clouds' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d';
|
|
4305
5629
|
export type AssetContainerWithGraph = 'animation_graphs' | 'render_graphs' | 'scripts' | 'shaders';
|
|
4306
|
-
export type AssetContainerWithCode = 'animation_sequences' | 'modules' | 'scripts' | 'shaders';
|
|
5630
|
+
export type AssetContainerWithCode = 'animation_graphs' | 'animation_sequences' | 'modules' | 'scripts' | 'shaders';
|
|
5631
|
+
/** The code replacing an asset's, as its caller sends it. Left open, to be extended through `allOf`, as the route adds the user: a body taking it alone closes it with `unevaluatedProperties: false`. */
|
|
5632
|
+
export type AssetCode = {
|
|
5633
|
+
/** The C++ code, built against the asset type's precompiled header, which it needs not include */
|
|
5634
|
+
code: string;
|
|
5635
|
+
/** Whether to build its debug library too, with its symbols, for the engine's developers */
|
|
5636
|
+
debug?: boolean;
|
|
5637
|
+
};
|
|
5638
|
+
export type AssetCodeInput = {
|
|
5639
|
+
/** The C++ code, built against the asset type's precompiled header, which it needs not include */
|
|
5640
|
+
code: string;
|
|
5641
|
+
/** Whether to build its debug library too, with its symbols, for the engine's developers */
|
|
5642
|
+
debug?: boolean;
|
|
5643
|
+
};
|
|
5644
|
+
/** The build of an asset's code, which replaced the asset's. */
|
|
5645
|
+
export type AssetCodeBuild = {
|
|
5646
|
+
/** Whether the asset's description changed, which a script's code tells */
|
|
5647
|
+
description_changed: boolean;
|
|
5648
|
+
/** The compiler's warnings */
|
|
5649
|
+
warnings: Array<{
|
|
5650
|
+
column?: number;
|
|
5651
|
+
/** The header it is in, relative to the toolchain, none for the code itself */
|
|
5652
|
+
file?: string;
|
|
5653
|
+
line?: number;
|
|
5654
|
+
message: string;
|
|
5655
|
+
severity: 'error' | 'warning' | 'note';
|
|
5656
|
+
}>;
|
|
5657
|
+
};
|
|
4307
5658
|
export type AssetContainerExportable = 'meshes' | 'sounds';
|
|
4308
5659
|
export type Vector3 = Array<number>;
|
|
4309
5660
|
/** An entity of a scene: its components, by class. */
|
|
@@ -5922,7 +7273,7 @@ export type FolderInput = {
|
|
|
5922
7273
|
name: string;
|
|
5923
7274
|
subfolders?: Array<FolderInput>;
|
|
5924
7275
|
};
|
|
5925
|
-
export type
|
|
7276
|
+
export type AssetCreationFromDescriptionInput = ({
|
|
5926
7277
|
/** Action map for a controller */
|
|
5927
7278
|
asset_description: {
|
|
5928
7279
|
actions: {
|
|
@@ -6962,6 +8313,9 @@ export type AssetCreatableWithTypeInput = {
|
|
|
6962
8313
|
}>;
|
|
6963
8314
|
};
|
|
6964
8315
|
asset_type: 'volume_material';
|
|
8316
|
+
}) & {
|
|
8317
|
+
/** The asset's metadata, as its type declares them, none by default */
|
|
8318
|
+
meta?: AssetMeta;
|
|
6965
8319
|
};
|
|
6966
8320
|
export type EditableAssetDescriptionInput = {
|
|
6967
8321
|
actions: {
|
|
@@ -8630,7 +9984,7 @@ export declare function listFolderAssets({ folder_id, offset, limit, filters, re
|
|
|
8630
9984
|
limit?: number;
|
|
8631
9985
|
filters?: AssetListFilters;
|
|
8632
9986
|
recursive?: boolean;
|
|
8633
|
-
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): Promise<ResponseWithHeaders<
|
|
9987
|
+
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): Promise<ResponseWithHeaders<AssetsByContainer, {
|
|
8634
9988
|
'x-assets-count': AssetsCount;
|
|
8635
9989
|
link?: string;
|
|
8636
9990
|
'x-total-count'?: number;
|
|
@@ -8651,8 +10005,10 @@ export declare function createAsset({ folder_id, asset_creation_options, }: {
|
|
|
8651
10005
|
folder_id: FolderId;
|
|
8652
10006
|
asset_creation_options: StrictUnion<{
|
|
8653
10007
|
asset_type: AssetTypeCreatable;
|
|
10008
|
+
/** The asset's metadata, as its type declares them, none by default */
|
|
10009
|
+
meta?: AssetMeta;
|
|
8654
10010
|
name: string;
|
|
8655
|
-
} |
|
|
10011
|
+
} | AssetCreationFromDescriptionInput | {
|
|
8656
10012
|
asset_type: AssetType;
|
|
8657
10013
|
copy_from_asset_id: AssetId;
|
|
8658
10014
|
new_asset_name?: string;
|
|
@@ -8815,7 +10171,7 @@ export declare function updateSourceFile({ source_file_id, name, }: {
|
|
|
8815
10171
|
*/
|
|
8816
10172
|
export declare function listSourceFileAssets({ source_file_id, }: {
|
|
8817
10173
|
source_file_id: SourceFileId;
|
|
8818
|
-
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): AxiosPromise<
|
|
10174
|
+
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): AxiosPromise<AssetsByContainer>;
|
|
8819
10175
|
/**
|
|
8820
10176
|
* Imports files into a folder: source files, converted into assets, or asset packages, imported as they are. The
|
|
8821
10177
|
* files are sent in a multipart body, or given by URL, for the import to download them: in a JSON body when none is
|
|
@@ -9172,7 +10528,7 @@ export declare function listAssets({ offset, limit, filters, }: {
|
|
|
9172
10528
|
offset?: number;
|
|
9173
10529
|
limit?: number;
|
|
9174
10530
|
filters?: EnvironmentAssetListFilters;
|
|
9175
|
-
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): Promise<ResponseWithHeaders<
|
|
10531
|
+
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): Promise<ResponseWithHeaders<AssetsByContainer, {
|
|
9176
10532
|
link?: string;
|
|
9177
10533
|
'x-total-count'?: number;
|
|
9178
10534
|
}>>;
|
|
@@ -9206,7 +10562,8 @@ export declare function deleteAsset({ asset_container, asset_id, }: {
|
|
|
9206
10562
|
asset_id: AssetId;
|
|
9207
10563
|
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): Promise<AxiosResponse<any, any, {}, any>>;
|
|
9208
10564
|
/**
|
|
9209
|
-
* Renames the asset.
|
|
10565
|
+
* Renames the asset, or changes its metadata, what the tools made of it, e.g. a shader's or a script's kind: merged
|
|
10566
|
+
* into them, a key set to null removed, the others kept, as its type declares them. What the body leaves out is kept.
|
|
9210
10567
|
* @throws {InvalidParameter}
|
|
9211
10568
|
* @throws {MissingAuthorizationHeader}
|
|
9212
10569
|
* @throws {InvalidApiKey}
|
|
@@ -9216,12 +10573,14 @@ export declare function deleteAsset({ asset_container, asset_id, }: {
|
|
|
9216
10573
|
* @throws {InsufficientPermissions}
|
|
9217
10574
|
* @throws {TooManyRequests}
|
|
9218
10575
|
*/
|
|
9219
|
-
export declare function
|
|
10576
|
+
export declare function updateAsset({ asset_container, asset_id, name, meta, }: {
|
|
9220
10577
|
asset_container: AssetContainer;
|
|
9221
10578
|
asset_id: AssetId;
|
|
9222
|
-
name
|
|
10579
|
+
name?: string;
|
|
10580
|
+
meta?: AssetMetaChange;
|
|
9223
10581
|
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): Promise<AxiosResponse<any, {
|
|
9224
10582
|
name: string;
|
|
10583
|
+
meta: AssetMetaChange;
|
|
9225
10584
|
}, {}, any>>;
|
|
9226
10585
|
/**
|
|
9227
10586
|
* Gets the asset details from the specified asset.
|
|
@@ -9459,6 +10818,28 @@ export declare function getAssetCode({ asset_container_with_code, asset_id, }: {
|
|
|
9459
10818
|
asset_container_with_code: AssetContainerWithCode;
|
|
9460
10819
|
asset_id: AssetId;
|
|
9461
10820
|
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): AxiosPromise<string>;
|
|
10821
|
+
/**
|
|
10822
|
+
* Replaces the C++ code of a script, animation sequence or animation graph, once asset-compiler built it: code which
|
|
10823
|
+
* fails to build replaces nothing, and answers its diagnostics. A script's description is read from its code, and the
|
|
10824
|
+
* answer tells whether it changed; the caller must be able to read the assets it references. The build takes a few
|
|
10825
|
+
* seconds.
|
|
10826
|
+
* @throws {InvalidParameter}
|
|
10827
|
+
* @throws {MissingAuthorizationHeader}
|
|
10828
|
+
* @throws {InvalidApiKey}
|
|
10829
|
+
* @throws {Unauthorized}
|
|
10830
|
+
* @throws {InvalidAuthorization}
|
|
10831
|
+
* @throws {InsufficientSecurityScope}
|
|
10832
|
+
* @throws {InsufficientPermissions}
|
|
10833
|
+
* @throws {TooManyRequests}
|
|
10834
|
+
*/
|
|
10835
|
+
export declare function replaceAssetCode({ asset_container_with_code, asset_id, code, debug, }: {
|
|
10836
|
+
asset_container_with_code: AssetContainerWithCode;
|
|
10837
|
+
asset_id: AssetId;
|
|
10838
|
+
/** The C++ code, built against the asset type's precompiled header, which it needs not include */
|
|
10839
|
+
code: string;
|
|
10840
|
+
/** Whether to build its debug library too, with its symbols, for the engine's developers */
|
|
10841
|
+
debug?: boolean;
|
|
10842
|
+
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): AxiosPromise<AssetCodeBuild>;
|
|
9462
10843
|
/**
|
|
9463
10844
|
* Gets the asset thumbnail from the specified asset.
|
|
9464
10845
|
* @throws {InvalidParameter}
|