@3dverse/api 0.15.0 → 0.17.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 +1585 -54
- package/dist/index.js +64 -5
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +59 -4
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
|
@@ -172,6 +172,17 @@ 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?: 'slang' | 'glsl';
|
|
179
|
+
} | {
|
|
180
|
+
/** What the asset is, which tells the tool opening it */
|
|
181
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
182
|
+
} | {
|
|
183
|
+
/** What the asset is, which tells the tool opening it */
|
|
184
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
185
|
+
};
|
|
175
186
|
/**
|
|
176
187
|
* The `source file` object represents the source file imported into 3dverse.
|
|
177
188
|
* This object contains the original uploaded file, along with the source file metadata.
|
|
@@ -192,6 +203,7 @@ export type SourceFile = {
|
|
|
192
203
|
type: AssetType;
|
|
193
204
|
/** Whether the asset has a thumbnail */
|
|
194
205
|
has_thumbnail: boolean;
|
|
206
|
+
meta: AssetMeta;
|
|
195
207
|
};
|
|
196
208
|
/** The types of the assets converted from the source file */
|
|
197
209
|
contained_asset_types?: Array<AssetType>;
|
|
@@ -271,130 +283,1501 @@ export type AssetsCount = {
|
|
|
271
283
|
/** Total number of assets in target folder of specific type. */
|
|
272
284
|
[asset_type: string]: number;
|
|
273
285
|
};
|
|
274
|
-
|
|
286
|
+
/** Assets grouped by their container, i.e. the plural of their type; a container with no asset is left out */
|
|
287
|
+
export type AssetsByContainer = {
|
|
275
288
|
action_maps?: Array<{
|
|
276
289
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
277
290
|
asset_id: string;
|
|
291
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
292
|
+
has_thumbnail: boolean;
|
|
293
|
+
/** 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 */
|
|
294
|
+
meta: {
|
|
295
|
+
/** What the asset is, which tells the tool opening it */
|
|
296
|
+
kind?: 'slang' | 'glsl';
|
|
297
|
+
} | {
|
|
298
|
+
/** What the asset is, which tells the tool opening it */
|
|
299
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
300
|
+
} | {
|
|
301
|
+
/** What the asset is, which tells the tool opening it */
|
|
302
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
303
|
+
};
|
|
278
304
|
name: string;
|
|
279
305
|
}>;
|
|
280
306
|
animation_graphs?: Array<{
|
|
281
307
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
282
308
|
asset_id: string;
|
|
309
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
310
|
+
has_thumbnail: boolean;
|
|
311
|
+
/** 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 */
|
|
312
|
+
meta: {
|
|
313
|
+
/** What the asset is, which tells the tool opening it */
|
|
314
|
+
kind?: 'slang' | 'glsl';
|
|
315
|
+
} | {
|
|
316
|
+
/** What the asset is, which tells the tool opening it */
|
|
317
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
318
|
+
} | {
|
|
319
|
+
/** What the asset is, which tells the tool opening it */
|
|
320
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
321
|
+
};
|
|
283
322
|
name: string;
|
|
284
323
|
}>;
|
|
285
324
|
animation_sequences?: Array<{
|
|
286
325
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
287
326
|
asset_id: string;
|
|
327
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
328
|
+
has_thumbnail: boolean;
|
|
329
|
+
/** 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 */
|
|
330
|
+
meta: {
|
|
331
|
+
/** What the asset is, which tells the tool opening it */
|
|
332
|
+
kind?: 'slang' | 'glsl';
|
|
333
|
+
} | {
|
|
334
|
+
/** What the asset is, which tells the tool opening it */
|
|
335
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
336
|
+
} | {
|
|
337
|
+
/** What the asset is, which tells the tool opening it */
|
|
338
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
339
|
+
};
|
|
288
340
|
name: string;
|
|
289
341
|
}>;
|
|
290
342
|
animation_sets?: Array<{
|
|
291
343
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
292
344
|
asset_id: string;
|
|
345
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
346
|
+
has_thumbnail: boolean;
|
|
347
|
+
/** 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 */
|
|
348
|
+
meta: {
|
|
349
|
+
/** What the asset is, which tells the tool opening it */
|
|
350
|
+
kind?: 'slang' | 'glsl';
|
|
351
|
+
} | {
|
|
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
|
+
};
|
|
293
358
|
name: string;
|
|
294
359
|
}>;
|
|
295
360
|
animations?: Array<{
|
|
296
361
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
297
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?: 'slang' | 'glsl';
|
|
369
|
+
} | {
|
|
370
|
+
/** What the asset is, which tells the tool opening it */
|
|
371
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
372
|
+
} | {
|
|
373
|
+
/** What the asset is, which tells the tool opening it */
|
|
374
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
375
|
+
};
|
|
298
376
|
name: string;
|
|
299
377
|
}>;
|
|
300
378
|
collision_geometries?: Array<{
|
|
301
379
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
302
380
|
asset_id: string;
|
|
381
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
382
|
+
has_thumbnail: boolean;
|
|
383
|
+
/** 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 */
|
|
384
|
+
meta: {
|
|
385
|
+
/** What the asset is, which tells the tool opening it */
|
|
386
|
+
kind?: 'slang' | 'glsl';
|
|
387
|
+
} | {
|
|
388
|
+
/** What the asset is, which tells the tool opening it */
|
|
389
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
390
|
+
} | {
|
|
391
|
+
/** What the asset is, which tells the tool opening it */
|
|
392
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
393
|
+
};
|
|
303
394
|
name: string;
|
|
304
395
|
}>;
|
|
305
396
|
cubemaps?: Array<{
|
|
306
397
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
307
398
|
asset_id: string;
|
|
399
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
400
|
+
has_thumbnail: boolean;
|
|
401
|
+
/** 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 */
|
|
402
|
+
meta: {
|
|
403
|
+
/** What the asset is, which tells the tool opening it */
|
|
404
|
+
kind?: 'slang' | 'glsl';
|
|
405
|
+
} | {
|
|
406
|
+
/** What the asset is, which tells the tool opening it */
|
|
407
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
408
|
+
} | {
|
|
409
|
+
/** What the asset is, which tells the tool opening it */
|
|
410
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
411
|
+
};
|
|
308
412
|
name: string;
|
|
309
413
|
}>;
|
|
310
414
|
event_maps?: Array<{
|
|
311
415
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
312
416
|
asset_id: string;
|
|
417
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
418
|
+
has_thumbnail: boolean;
|
|
419
|
+
/** 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 */
|
|
420
|
+
meta: {
|
|
421
|
+
/** What the asset is, which tells the tool opening it */
|
|
422
|
+
kind?: 'slang' | 'glsl';
|
|
423
|
+
} | {
|
|
424
|
+
/** What the asset is, which tells the tool opening it */
|
|
425
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
426
|
+
} | {
|
|
427
|
+
/** What the asset is, which tells the tool opening it */
|
|
428
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
429
|
+
};
|
|
313
430
|
name: string;
|
|
314
431
|
}>;
|
|
315
432
|
materials?: Array<{
|
|
316
433
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
317
434
|
asset_id: string;
|
|
435
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
436
|
+
has_thumbnail: boolean;
|
|
437
|
+
/** 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 */
|
|
438
|
+
meta: {
|
|
439
|
+
/** What the asset is, which tells the tool opening it */
|
|
440
|
+
kind?: 'slang' | 'glsl';
|
|
441
|
+
} | {
|
|
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
|
+
};
|
|
318
448
|
name: string;
|
|
319
449
|
}>;
|
|
320
450
|
meshes?: Array<{
|
|
321
451
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
322
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?: 'slang' | 'glsl';
|
|
459
|
+
} | {
|
|
460
|
+
/** What the asset is, which tells the tool opening it */
|
|
461
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
462
|
+
} | {
|
|
463
|
+
/** What the asset is, which tells the tool opening it */
|
|
464
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
465
|
+
};
|
|
323
466
|
name: string;
|
|
324
467
|
}>;
|
|
325
468
|
modules?: Array<{
|
|
326
469
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
327
470
|
asset_id: string;
|
|
471
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
472
|
+
has_thumbnail: boolean;
|
|
473
|
+
/** 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 */
|
|
474
|
+
meta: {
|
|
475
|
+
/** What the asset is, which tells the tool opening it */
|
|
476
|
+
kind?: 'slang' | 'glsl';
|
|
477
|
+
} | {
|
|
478
|
+
/** What the asset is, which tells the tool opening it */
|
|
479
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
480
|
+
} | {
|
|
481
|
+
/** What the asset is, which tells the tool opening it */
|
|
482
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
483
|
+
};
|
|
328
484
|
name: string;
|
|
329
485
|
}>;
|
|
330
486
|
navmeshes?: Array<{
|
|
331
487
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
332
488
|
asset_id: string;
|
|
489
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
490
|
+
has_thumbnail: boolean;
|
|
491
|
+
/** 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 */
|
|
492
|
+
meta: {
|
|
493
|
+
/** What the asset is, which tells the tool opening it */
|
|
494
|
+
kind?: 'slang' | 'glsl';
|
|
495
|
+
} | {
|
|
496
|
+
/** What the asset is, which tells the tool opening it */
|
|
497
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
498
|
+
} | {
|
|
499
|
+
/** What the asset is, which tells the tool opening it */
|
|
500
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
501
|
+
};
|
|
333
502
|
name: string;
|
|
334
503
|
}>;
|
|
335
504
|
point_clouds?: Array<{
|
|
336
505
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
337
506
|
asset_id: string;
|
|
507
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
508
|
+
has_thumbnail: boolean;
|
|
509
|
+
/** 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 */
|
|
510
|
+
meta: {
|
|
511
|
+
/** What the asset is, which tells the tool opening it */
|
|
512
|
+
kind?: 'slang' | 'glsl';
|
|
513
|
+
} | {
|
|
514
|
+
/** What the asset is, which tells the tool opening it */
|
|
515
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
516
|
+
} | {
|
|
517
|
+
/** What the asset is, which tells the tool opening it */
|
|
518
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
519
|
+
};
|
|
338
520
|
name: string;
|
|
339
521
|
}>;
|
|
340
522
|
render_graphs?: Array<{
|
|
341
523
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
342
524
|
asset_id: string;
|
|
525
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
526
|
+
has_thumbnail: boolean;
|
|
527
|
+
/** 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 */
|
|
528
|
+
meta: {
|
|
529
|
+
/** What the asset is, which tells the tool opening it */
|
|
530
|
+
kind?: 'slang' | 'glsl';
|
|
531
|
+
} | {
|
|
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
|
+
};
|
|
343
538
|
name: string;
|
|
344
539
|
}>;
|
|
345
540
|
scenes?: Array<{
|
|
346
541
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
347
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?: 'slang' | 'glsl';
|
|
549
|
+
} | {
|
|
550
|
+
/** What the asset is, which tells the tool opening it */
|
|
551
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
552
|
+
} | {
|
|
553
|
+
/** What the asset is, which tells the tool opening it */
|
|
554
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
555
|
+
};
|
|
348
556
|
name: string;
|
|
349
557
|
}>;
|
|
350
558
|
scripts?: Array<{
|
|
351
559
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
352
560
|
asset_id: string;
|
|
561
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
562
|
+
has_thumbnail: boolean;
|
|
563
|
+
/** 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 */
|
|
564
|
+
meta: {
|
|
565
|
+
/** What the asset is, which tells the tool opening it */
|
|
566
|
+
kind?: 'slang' | 'glsl';
|
|
567
|
+
} | {
|
|
568
|
+
/** What the asset is, which tells the tool opening it */
|
|
569
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
570
|
+
} | {
|
|
571
|
+
/** What the asset is, which tells the tool opening it */
|
|
572
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
573
|
+
};
|
|
353
574
|
name: string;
|
|
354
575
|
}>;
|
|
355
576
|
shader_contexts?: Array<{
|
|
356
577
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
357
578
|
asset_id: string;
|
|
579
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
580
|
+
has_thumbnail: boolean;
|
|
581
|
+
/** 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 */
|
|
582
|
+
meta: {
|
|
583
|
+
/** What the asset is, which tells the tool opening it */
|
|
584
|
+
kind?: 'slang' | 'glsl';
|
|
585
|
+
} | {
|
|
586
|
+
/** What the asset is, which tells the tool opening it */
|
|
587
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
588
|
+
} | {
|
|
589
|
+
/** What the asset is, which tells the tool opening it */
|
|
590
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
591
|
+
};
|
|
358
592
|
name: string;
|
|
359
593
|
}>;
|
|
360
594
|
shaders?: Array<{
|
|
361
595
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
362
596
|
asset_id: string;
|
|
597
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
598
|
+
has_thumbnail: boolean;
|
|
599
|
+
/** 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 */
|
|
600
|
+
meta: {
|
|
601
|
+
/** What the asset is, which tells the tool opening it */
|
|
602
|
+
kind?: 'slang' | 'glsl';
|
|
603
|
+
} | {
|
|
604
|
+
/** What the asset is, which tells the tool opening it */
|
|
605
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
606
|
+
} | {
|
|
607
|
+
/** What the asset is, which tells the tool opening it */
|
|
608
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
609
|
+
};
|
|
363
610
|
name: string;
|
|
364
611
|
}>;
|
|
365
612
|
skeletons?: Array<{
|
|
366
613
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
367
614
|
asset_id: string;
|
|
615
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
616
|
+
has_thumbnail: boolean;
|
|
617
|
+
/** 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 */
|
|
618
|
+
meta: {
|
|
619
|
+
/** What the asset is, which tells the tool opening it */
|
|
620
|
+
kind?: 'slang' | 'glsl';
|
|
621
|
+
} | {
|
|
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
|
+
};
|
|
368
628
|
name: string;
|
|
369
629
|
}>;
|
|
370
630
|
sounds?: Array<{
|
|
371
631
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
372
632
|
asset_id: string;
|
|
633
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
634
|
+
has_thumbnail: boolean;
|
|
635
|
+
/** 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 */
|
|
636
|
+
meta: {
|
|
637
|
+
/** What the asset is, which tells the tool opening it */
|
|
638
|
+
kind?: 'slang' | 'glsl';
|
|
639
|
+
} | {
|
|
640
|
+
/** What the asset is, which tells the tool opening it */
|
|
641
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
642
|
+
} | {
|
|
643
|
+
/** What the asset is, which tells the tool opening it */
|
|
644
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
645
|
+
};
|
|
373
646
|
name: string;
|
|
374
647
|
}>;
|
|
375
648
|
textures?: Array<{
|
|
376
649
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
377
650
|
asset_id: string;
|
|
651
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
652
|
+
has_thumbnail: boolean;
|
|
653
|
+
/** 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 */
|
|
654
|
+
meta: {
|
|
655
|
+
/** What the asset is, which tells the tool opening it */
|
|
656
|
+
kind?: 'slang' | 'glsl';
|
|
657
|
+
} | {
|
|
658
|
+
/** What the asset is, which tells the tool opening it */
|
|
659
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
660
|
+
} | {
|
|
661
|
+
/** What the asset is, which tells the tool opening it */
|
|
662
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
663
|
+
};
|
|
378
664
|
name: string;
|
|
379
665
|
}>;
|
|
380
666
|
textures_3d?: Array<{
|
|
381
667
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
382
668
|
asset_id: string;
|
|
669
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
670
|
+
has_thumbnail: boolean;
|
|
671
|
+
/** 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 */
|
|
672
|
+
meta: {
|
|
673
|
+
/** What the asset is, which tells the tool opening it */
|
|
674
|
+
kind?: 'slang' | 'glsl';
|
|
675
|
+
} | {
|
|
676
|
+
/** What the asset is, which tells the tool opening it */
|
|
677
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
678
|
+
} | {
|
|
679
|
+
/** What the asset is, which tells the tool opening it */
|
|
680
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
681
|
+
};
|
|
682
|
+
name: string;
|
|
683
|
+
}>;
|
|
684
|
+
volume_materials?: Array<{
|
|
685
|
+
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
686
|
+
asset_id: string;
|
|
687
|
+
/** Whether the content service stores a thumbnail of the asset */
|
|
688
|
+
has_thumbnail: boolean;
|
|
689
|
+
/** 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 */
|
|
690
|
+
meta: {
|
|
691
|
+
/** What the asset is, which tells the tool opening it */
|
|
692
|
+
kind?: 'slang' | 'glsl';
|
|
693
|
+
} | {
|
|
694
|
+
/** What the asset is, which tells the tool opening it */
|
|
695
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
696
|
+
} | {
|
|
697
|
+
/** What the asset is, which tells the tool opening it */
|
|
698
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
699
|
+
};
|
|
700
|
+
name: string;
|
|
701
|
+
}>;
|
|
702
|
+
};
|
|
703
|
+
export type AssetTypeCreatable = 'action_map' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'cubemap' | 'event_map' | 'material' | 'module' | 'render_graph' | 'scene' | 'script' | 'shader' | 'volume_material';
|
|
704
|
+
/** Asset description */
|
|
705
|
+
export type BasicAssetDescription = {
|
|
706
|
+
uuid?: AssetId;
|
|
707
|
+
name: string;
|
|
708
|
+
};
|
|
709
|
+
export type AssetCreatableWithType = {
|
|
710
|
+
/** Action map for a controller */
|
|
711
|
+
asset_description: {
|
|
712
|
+
actions: {
|
|
713
|
+
[action_name: string]: {
|
|
714
|
+
[_additionalproperties_: string]: any;
|
|
715
|
+
};
|
|
716
|
+
};
|
|
717
|
+
/** Name of the asset */
|
|
718
|
+
name: string;
|
|
719
|
+
/** Unique identifier for the asset */
|
|
720
|
+
uuid: string;
|
|
721
|
+
};
|
|
722
|
+
asset_type: 'action_map';
|
|
723
|
+
} | {
|
|
724
|
+
/** An animation graph */
|
|
725
|
+
asset_description: {
|
|
726
|
+
/** Inputs used by the graph */
|
|
727
|
+
inputDescriptor: Array<{
|
|
728
|
+
[_additionalproperties_: string]: any;
|
|
729
|
+
}>;
|
|
730
|
+
/** Name of the asset */
|
|
731
|
+
name: string;
|
|
732
|
+
/** Animation state machines */
|
|
733
|
+
stateMachines: Array<{
|
|
734
|
+
/** States of the state machine */
|
|
735
|
+
states?: Array<{
|
|
736
|
+
/** The name of the state */
|
|
737
|
+
name?: string;
|
|
738
|
+
/** The nodes of this state's animation graph */
|
|
739
|
+
nodes?: Array<{
|
|
740
|
+
/** Indices of input nodes of the parent animation graph */
|
|
741
|
+
inputs?: Array<number>;
|
|
742
|
+
/** Type of the node */
|
|
743
|
+
nodeType?: StrictUnion<0 | 1 | 2 | 3 | 100 | 101 | 200 | 201>;
|
|
744
|
+
/** Settings associated to this node */
|
|
745
|
+
settings?: StrictUnion<{
|
|
746
|
+
/** The animation to play */
|
|
747
|
+
animationKey: number;
|
|
748
|
+
/** Whether the animation should loop back to the start when done */
|
|
749
|
+
loop?: boolean;
|
|
750
|
+
/** Multiplier factor for the speed */
|
|
751
|
+
playbackSpeed?: number;
|
|
752
|
+
/** Change the animation starting point. Expects a normalized value from 0 to 1 */
|
|
753
|
+
startOffset?: number;
|
|
754
|
+
/** Change the animation ending point. Expects a normalized value from 0 to 1 */
|
|
755
|
+
stopOffset?: number;
|
|
756
|
+
} | {
|
|
757
|
+
/** 1D control points */
|
|
758
|
+
controlPoints: Array<{
|
|
759
|
+
animationKey: number;
|
|
760
|
+
coords: number;
|
|
761
|
+
}>;
|
|
762
|
+
/** Horizontal axis */
|
|
763
|
+
horizontalAxis: {
|
|
764
|
+
/** The axis name */
|
|
765
|
+
name: string;
|
|
766
|
+
/** Maximum value of the axis */
|
|
767
|
+
rangeMax: number;
|
|
768
|
+
/** Minimum value of the axis */
|
|
769
|
+
rangeMin: number;
|
|
770
|
+
};
|
|
771
|
+
/** Whether the animation should loop back to the start when done */
|
|
772
|
+
loop?: boolean;
|
|
773
|
+
/** Multiplier factor for the speed */
|
|
774
|
+
playbackSpeed?: number;
|
|
775
|
+
/** Change the animation starting point. Expects a normalized value from 0 to 1 */
|
|
776
|
+
startOffset?: number;
|
|
777
|
+
/** Change the animation ending point. Expects a normalized value from 0 to 1 */
|
|
778
|
+
stopOffset?: number;
|
|
779
|
+
} | {
|
|
780
|
+
/** 2D control points */
|
|
781
|
+
controlPoints: Array<{
|
|
782
|
+
animationKey: number;
|
|
783
|
+
coords: Array<number>;
|
|
784
|
+
}>;
|
|
785
|
+
/** Horizontal axis */
|
|
786
|
+
horizontalAxis: {
|
|
787
|
+
/** The axis name */
|
|
788
|
+
name: string;
|
|
789
|
+
/** Maximum value of the axis */
|
|
790
|
+
rangeMax: number;
|
|
791
|
+
/** Minimum value of the axis */
|
|
792
|
+
rangeMin: number;
|
|
793
|
+
};
|
|
794
|
+
/** Whether the animation should loop back to the start when done */
|
|
795
|
+
loop?: boolean;
|
|
796
|
+
/** Multiplier factor for the speed */
|
|
797
|
+
playbackSpeed?: number;
|
|
798
|
+
/** Change the animation starting point. Expects a normalized value from 0 to 1 */
|
|
799
|
+
startOffset?: number;
|
|
800
|
+
/** Change the animation ending point. Expects a normalized value from 0 to 1 */
|
|
801
|
+
stopOffset?: number;
|
|
802
|
+
/** Vertical axis */
|
|
803
|
+
verticalAxis: {
|
|
804
|
+
/** The axis name */
|
|
805
|
+
name: string;
|
|
806
|
+
/** Maximum value of the axis */
|
|
807
|
+
rangeMax: number;
|
|
808
|
+
/** Minimum value of the axis */
|
|
809
|
+
rangeMin: number;
|
|
810
|
+
};
|
|
811
|
+
} | {
|
|
812
|
+
/** Bone mask keys. Used to find the corresponding bone mask in the animation set */
|
|
813
|
+
boneMasks: Array<number>;
|
|
814
|
+
/** Blend weights */
|
|
815
|
+
weights: Array<number | string>;
|
|
816
|
+
} | {
|
|
817
|
+
/** Probabilities of each input animation to be selected */
|
|
818
|
+
probabilities: Array<number>;
|
|
819
|
+
} | {
|
|
820
|
+
/** Index of the state machine to run */
|
|
821
|
+
stateMachineIndex: number;
|
|
822
|
+
} | {
|
|
823
|
+
/** End bone. This bone will try to reach the target. */
|
|
824
|
+
endBone: number | string;
|
|
825
|
+
/** Mid bone. Must be ancestor of end bone. */
|
|
826
|
+
midBone: number | string;
|
|
827
|
+
/** 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. */
|
|
828
|
+
poleVector: Array<number> | string;
|
|
829
|
+
/** 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 */
|
|
830
|
+
soften: number | string;
|
|
831
|
+
/** Start bone. Must be ancestor of mid bone. */
|
|
832
|
+
startBone: number | string;
|
|
833
|
+
/** The target which the endBone will try to reach. In world space */
|
|
834
|
+
target: Array<number> | string;
|
|
835
|
+
/** Twist angle rotates IK chain around the vector defined by start-to-target vector */
|
|
836
|
+
twistAngle: number | string;
|
|
837
|
+
/** Weight given to the whole IK process, allowing blending in and out */
|
|
838
|
+
weight: number | string;
|
|
839
|
+
} | {
|
|
840
|
+
/** This is the bone which will aim at the target */
|
|
841
|
+
aimingBone: number | string;
|
|
842
|
+
/** Weight given to IK for each bone of the chain (except for the last bone which is 1). This directly affect correction spreading */
|
|
843
|
+
boneWeight: number | string;
|
|
844
|
+
/** Number of bones (from the predefined hierarchy) that are corrected by IK */
|
|
845
|
+
chainLength: number | string;
|
|
846
|
+
/** Weight given to the whole aim process, allowing blending in and out */
|
|
847
|
+
chainWeight: number | string;
|
|
848
|
+
/** Bone space forward vector. Default is z axis. */
|
|
849
|
+
forward: Array<number> | string;
|
|
850
|
+
/** Offset position from the aiming bone in local-space, that will aim at target */
|
|
851
|
+
offset: Array<number> | string;
|
|
852
|
+
/** The target that the forward vector will be aimed towards. In world space */
|
|
853
|
+
target: Array<number> | string;
|
|
854
|
+
/** Bone space up vector. Used to keep the bone oriented in the same direction as the pole vector. Default is y axis. */
|
|
855
|
+
up: Array<number> | string;
|
|
856
|
+
}>;
|
|
857
|
+
}>;
|
|
858
|
+
/** The transitions coming from the current state */
|
|
859
|
+
transitionIndices?: Array<number>;
|
|
860
|
+
}>;
|
|
861
|
+
/** All transition between all states */
|
|
862
|
+
transitions?: Array<{
|
|
863
|
+
/** A variant of either exit time, data object entry or transition func index (depending on transition type) */
|
|
864
|
+
condition?: number | string | number;
|
|
865
|
+
/** The duration of the transition for blending purposes */
|
|
866
|
+
durationInMs?: number;
|
|
867
|
+
/** The index of the state to transition to */
|
|
868
|
+
nextStateIndex?: number;
|
|
869
|
+
/** The transition type. */
|
|
870
|
+
type?: StrictUnion<0 | 1 | 2 | 3>;
|
|
871
|
+
}>;
|
|
872
|
+
}>;
|
|
873
|
+
/** Unique identifier for the asset */
|
|
874
|
+
uuid: string;
|
|
875
|
+
};
|
|
876
|
+
asset_type: 'animation_graph';
|
|
877
|
+
} | {
|
|
878
|
+
/** An animated sequence of component properties */
|
|
879
|
+
asset_description: {
|
|
880
|
+
/** Duration of the animation in milliseconds */
|
|
881
|
+
durationInMs: number;
|
|
882
|
+
/** Name of the asset */
|
|
883
|
+
name: string;
|
|
884
|
+
/** The size in byte of the compiled animation sequence library */
|
|
885
|
+
payloadSize?: number;
|
|
886
|
+
/** The array of track UUIDs at play in this animation sequence */
|
|
887
|
+
trackUUIDs: Array<string>;
|
|
888
|
+
/** Unique identifier for the asset */
|
|
889
|
+
uuid: string;
|
|
890
|
+
};
|
|
891
|
+
asset_type: 'animation_sequence';
|
|
892
|
+
} | {
|
|
893
|
+
/** An animation set linked to an animation graph */
|
|
894
|
+
asset_description: {
|
|
895
|
+
/** Parent animation graph */
|
|
896
|
+
animationGraphUUID: string;
|
|
897
|
+
/** The animation set */
|
|
898
|
+
animationSet: Array<{
|
|
899
|
+
/** Key of the animation in the animation graph */
|
|
900
|
+
animationKey: number;
|
|
901
|
+
/** The referenced animation for the specified key */
|
|
902
|
+
animationRef: string;
|
|
903
|
+
}>;
|
|
904
|
+
/** The bone mask set */
|
|
905
|
+
boneMaskSet?: Array<{
|
|
906
|
+
/** The bone mask. An array of floats which corresponds to the weight per bone */
|
|
907
|
+
boneMask: Array<number>;
|
|
908
|
+
/** Key of the bone mask in the animation graph */
|
|
909
|
+
boneMaskKey: number;
|
|
910
|
+
}>;
|
|
911
|
+
/** Name of the asset */
|
|
912
|
+
name: string;
|
|
913
|
+
/** Unique identifier for the asset */
|
|
914
|
+
uuid: string;
|
|
915
|
+
};
|
|
916
|
+
asset_type: 'animation_set';
|
|
917
|
+
} | {
|
|
918
|
+
/** A cubemap is a set of 6 textures forming a cube */
|
|
919
|
+
asset_description: {
|
|
920
|
+
/** The 6 images forming the cube faces */
|
|
921
|
+
faces: Array<string>;
|
|
922
|
+
/** Name of the asset */
|
|
923
|
+
name: string;
|
|
924
|
+
/** Unique identifier for the asset */
|
|
925
|
+
uuid: string;
|
|
926
|
+
};
|
|
927
|
+
asset_type: 'cubemap';
|
|
928
|
+
} | {
|
|
929
|
+
/** A list of events with a description of their parameters */
|
|
930
|
+
asset_description: {
|
|
931
|
+
/** A map of events and their parameters descriptors */
|
|
932
|
+
events: {
|
|
933
|
+
/** Event name to parameters descriptor */
|
|
934
|
+
[event_name: string]: Array<{
|
|
935
|
+
/** Parameter default value */
|
|
936
|
+
default?: number | string | boolean | Array<number> | {
|
|
937
|
+
[_additionalproperties_: string]: any;
|
|
938
|
+
};
|
|
939
|
+
/** Parameter name */
|
|
940
|
+
name: string;
|
|
941
|
+
/** Parameter native type */
|
|
942
|
+
nativeType: 'entity_ref' | 'int32_t' | 'float' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'quat' | 'mat4' | 'string';
|
|
943
|
+
/** Parameter type */
|
|
944
|
+
type: 'entity' | 'bool' | 'int' | 'uint' | 'float' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'color' | 'vec4' | 'ivec4' | 'quat' | 'mat4' | 'string';
|
|
945
|
+
}>;
|
|
946
|
+
};
|
|
947
|
+
/** Name of the asset */
|
|
948
|
+
name: string;
|
|
949
|
+
/** Unique identifier for the asset */
|
|
950
|
+
uuid: string;
|
|
951
|
+
};
|
|
952
|
+
asset_type: 'event_map';
|
|
953
|
+
} | {
|
|
954
|
+
/** A material implementing a shader */
|
|
955
|
+
asset_description: {
|
|
956
|
+
/** Data object following the descriptor of the attached shader */
|
|
957
|
+
dataJson: {
|
|
958
|
+
[_additionalproperties_: string]: any;
|
|
959
|
+
};
|
|
960
|
+
/** Whether the faces of the geometry are rendered from both sides or not */
|
|
961
|
+
isDoubleSided: boolean;
|
|
962
|
+
/** Name of the asset */
|
|
963
|
+
name: string;
|
|
964
|
+
/** The implemented shader */
|
|
965
|
+
shaderRef: string;
|
|
966
|
+
/** Unique identifier for the asset */
|
|
967
|
+
uuid: string;
|
|
968
|
+
};
|
|
969
|
+
asset_type: 'material';
|
|
970
|
+
} | {
|
|
971
|
+
/** Source code from a git repository that could be used in a shader, a script or in an algorithm */
|
|
972
|
+
asset_description: {
|
|
973
|
+
/** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */
|
|
974
|
+
debugPayloadSize?: number;
|
|
975
|
+
functions: {
|
|
976
|
+
[function_name: string]: {
|
|
977
|
+
[_additionalproperties_: string]: any;
|
|
978
|
+
};
|
|
979
|
+
};
|
|
980
|
+
/** Other modules this module uses */
|
|
981
|
+
moduleDependencies?: Array<string>;
|
|
982
|
+
/** Name of the asset */
|
|
983
|
+
name: string;
|
|
984
|
+
/** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */
|
|
985
|
+
payloadSize?: number;
|
|
986
|
+
/** Unique identifier for the asset */
|
|
987
|
+
uuid: string;
|
|
988
|
+
};
|
|
989
|
+
asset_type: 'module';
|
|
990
|
+
} | {
|
|
991
|
+
/** A render graph used by a camera */
|
|
992
|
+
asset_description: {
|
|
993
|
+
/** All blend states */
|
|
994
|
+
blendStateDescriptions?: Array<{
|
|
995
|
+
/** Selects which blend operation is used to calculate the alpha values to write to the color attachment. */
|
|
996
|
+
alphaBlendOp?: number;
|
|
997
|
+
/** 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. */
|
|
998
|
+
blendEnable?: boolean;
|
|
999
|
+
/** Selects which blend operation is used to calculate the RGB values to write to the color attachment. */
|
|
1000
|
+
colorBlendOp?: number;
|
|
1001
|
+
/** 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. */
|
|
1002
|
+
colorWriteMask?: number;
|
|
1003
|
+
/** Selects which blend factor is used to determine the destination factor Da. */
|
|
1004
|
+
dstAlphaBlendFactor?: number;
|
|
1005
|
+
/** Selects which blend factor is used to determine the destination factors (Dr,Dg,Db). */
|
|
1006
|
+
dstColorBlendFactor?: number;
|
|
1007
|
+
/** Selects which blend factor is used to determine the source factor Sa. */
|
|
1008
|
+
srcAlphaBlendFactor?: number;
|
|
1009
|
+
/** Selects which blend factor is used to determine the source factors (Sr,Sg,Sb). */
|
|
1010
|
+
srcColorBlendFactor?: number;
|
|
1011
|
+
}>;
|
|
1012
|
+
/** Descriptions of all buffers */
|
|
1013
|
+
bufferDescriptions?: Array<{
|
|
1014
|
+
/** 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 */
|
|
1015
|
+
elementCount?: number | Array<number>;
|
|
1016
|
+
/** Size in bytes of a single element in the buffer */
|
|
1017
|
+
elementSize?: number;
|
|
1018
|
+
/** Buffer name */
|
|
1019
|
+
name?: string;
|
|
1020
|
+
/** How this buffer is going to be used */
|
|
1021
|
+
usage?: number;
|
|
1022
|
+
}>;
|
|
1023
|
+
/** Conditions referenced by conditionIndex */
|
|
1024
|
+
conditions?: Array<string>;
|
|
1025
|
+
/** The index of the render target to blit into the canvas */
|
|
1026
|
+
defaultRenderTargetIndex?: number;
|
|
1027
|
+
/** The order in which to interpret the nodes */
|
|
1028
|
+
graphOrder: Array<Array<number>>;
|
|
1029
|
+
/** Input descriptor used to parse input data */
|
|
1030
|
+
inputDescriptor: Array<{
|
|
1031
|
+
/** Categories */
|
|
1032
|
+
categories?: Array<string>;
|
|
1033
|
+
/** Parameter default value */
|
|
1034
|
+
default?: number | string | boolean | Array<number> | {
|
|
1035
|
+
[_additionalproperties_: string]: any;
|
|
1036
|
+
};
|
|
1037
|
+
/** Parameter name */
|
|
1038
|
+
name: string;
|
|
1039
|
+
/** Parameter native type */
|
|
1040
|
+
nativeType: 'texture2d_ref' | 'stencil_op' | 'render_target_index' | 'buffer_reference' | 'string' | 'int32_t' | 'float' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'quat' | 'mat4';
|
|
1041
|
+
/** Parameter type */
|
|
1042
|
+
type: 'texture' | 'stencil_op' | 'render_target' | 'buffer' | 'string' | 'bool' | 'int' | 'uint' | 'float' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'color' | 'vec4' | 'ivec4' | 'quat' | 'mat4';
|
|
1043
|
+
}>;
|
|
1044
|
+
/** Name of the asset */
|
|
1045
|
+
name: string;
|
|
1046
|
+
/** Descriptions of all nodes */
|
|
1047
|
+
nodeDataDescriptions: Array<({
|
|
1048
|
+
type: 0;
|
|
1049
|
+
} | {
|
|
1050
|
+
/** 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 */
|
|
1051
|
+
batchType?: number;
|
|
1052
|
+
/** Specialization constants values for the specified shader */
|
|
1053
|
+
constantsJson?: {
|
|
1054
|
+
[_additionalproperties_: string]: any;
|
|
1055
|
+
};
|
|
1056
|
+
/** Data provided to the shader through the node data buffer */
|
|
1057
|
+
dataJson?: {
|
|
1058
|
+
[_additionalproperties_: string]: any;
|
|
1059
|
+
};
|
|
1060
|
+
/** Description of a shader pipeline */
|
|
1061
|
+
pipelineDescription?: {
|
|
1062
|
+
/** Index of the stencil state for back face rendering */
|
|
1063
|
+
backFaceStencilOpStateIndex?: number;
|
|
1064
|
+
/** Color blend attachement states */
|
|
1065
|
+
blendStateIndices?: Array<number>;
|
|
1066
|
+
/** Cull mode */
|
|
1067
|
+
cullMode?: number;
|
|
1068
|
+
/** Whether to enable depth bias or not */
|
|
1069
|
+
depthBiasEnable?: boolean;
|
|
1070
|
+
/** Depth compare operator */
|
|
1071
|
+
depthCompareOp?: number;
|
|
1072
|
+
/** Wether to enable depth test or not */
|
|
1073
|
+
depthTestEnable?: boolean;
|
|
1074
|
+
/** Wether to enable depth write or not */
|
|
1075
|
+
depthWriteEnable?: boolean;
|
|
1076
|
+
/** Front face */
|
|
1077
|
+
frontFace?: number;
|
|
1078
|
+
/** Index of the stencil state for front face rendering */
|
|
1079
|
+
frontFaceStencilOpStateIndex?: number;
|
|
1080
|
+
/** Polygon mode */
|
|
1081
|
+
polygonMode?: number;
|
|
1082
|
+
/** Primitive topology */
|
|
1083
|
+
topology?: number;
|
|
1084
|
+
};
|
|
1085
|
+
/** A reference to a shader */
|
|
1086
|
+
shaderRef?: string;
|
|
1087
|
+
type: 1;
|
|
1088
|
+
} | {
|
|
1089
|
+
/** 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 */
|
|
1090
|
+
batchType?: number;
|
|
1091
|
+
/** Data provided to the shader through the node data buffer */
|
|
1092
|
+
dataJson?: {
|
|
1093
|
+
[_additionalproperties_: string]: any;
|
|
1094
|
+
};
|
|
1095
|
+
/** Description of a shader pipeline */
|
|
1096
|
+
pipelineDescription?: {
|
|
1097
|
+
/** Index of the stencil state for back face rendering */
|
|
1098
|
+
backFaceStencilOpStateIndex?: number;
|
|
1099
|
+
/** Color blend attachement states */
|
|
1100
|
+
blendStateIndices?: Array<number>;
|
|
1101
|
+
/** Cull mode */
|
|
1102
|
+
cullMode?: number;
|
|
1103
|
+
/** Whether to enable depth bias or not */
|
|
1104
|
+
depthBiasEnable?: boolean;
|
|
1105
|
+
/** Depth compare operator */
|
|
1106
|
+
depthCompareOp?: number;
|
|
1107
|
+
/** Wether to enable depth test or not */
|
|
1108
|
+
depthTestEnable?: boolean;
|
|
1109
|
+
/** Wether to enable depth write or not */
|
|
1110
|
+
depthWriteEnable?: boolean;
|
|
1111
|
+
/** Front face */
|
|
1112
|
+
frontFace?: number;
|
|
1113
|
+
/** Index of the stencil state for front face rendering */
|
|
1114
|
+
frontFaceStencilOpStateIndex?: number;
|
|
1115
|
+
/** Polygon mode */
|
|
1116
|
+
polygonMode?: number;
|
|
1117
|
+
/** Primitive topology */
|
|
1118
|
+
topology?: number;
|
|
1119
|
+
};
|
|
1120
|
+
/** Index into shaderContexts of the descriptor providing the shader context data for this node */
|
|
1121
|
+
shaderContextIndex: number;
|
|
1122
|
+
type: 2;
|
|
1123
|
+
} | {
|
|
1124
|
+
/** @deprecated Const data type */
|
|
1125
|
+
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;
|
|
1126
|
+
/** Specialization constants values for the specified shader */
|
|
1127
|
+
constantsJson?: {
|
|
1128
|
+
[_additionalproperties_: string]: any;
|
|
1129
|
+
};
|
|
1130
|
+
/** Data provided to the shader through the node data buffer */
|
|
1131
|
+
dataJson?: {
|
|
1132
|
+
[_additionalproperties_: string]: any;
|
|
1133
|
+
};
|
|
1134
|
+
/** A reference to a shader */
|
|
1135
|
+
shaderRef?: string;
|
|
1136
|
+
type: 3;
|
|
1137
|
+
} | {
|
|
1138
|
+
filter?: number;
|
|
1139
|
+
/** Source render target */
|
|
1140
|
+
inputRenderTargetIndices?: Array<number>;
|
|
1141
|
+
/** Destination render target */
|
|
1142
|
+
outputRenderTargetIndices?: Array<number>;
|
|
1143
|
+
type: 4;
|
|
1144
|
+
} | {
|
|
1145
|
+
/** Specialization constants values for the specified shader */
|
|
1146
|
+
constantsJson?: {
|
|
1147
|
+
[_additionalproperties_: string]: any;
|
|
1148
|
+
};
|
|
1149
|
+
/** Data provided to the shader through the node data buffer */
|
|
1150
|
+
dataJson?: {
|
|
1151
|
+
[_additionalproperties_: string]: any;
|
|
1152
|
+
};
|
|
1153
|
+
/** A reference to a shader */
|
|
1154
|
+
shaderRef?: string;
|
|
1155
|
+
type: 5;
|
|
1156
|
+
} | {
|
|
1157
|
+
/** Source render target */
|
|
1158
|
+
inputRenderTargetIndices?: Array<number>;
|
|
1159
|
+
/** Destination render target */
|
|
1160
|
+
outputRenderTargetIndices?: Array<number>;
|
|
1161
|
+
type: 6;
|
|
1162
|
+
} | {
|
|
1163
|
+
/** Source render target */
|
|
1164
|
+
inputRenderTargetIndices?: Array<number>;
|
|
1165
|
+
/** Destination render target */
|
|
1166
|
+
outputRenderTargetIndices?: Array<number>;
|
|
1167
|
+
type: 7;
|
|
1168
|
+
} | {
|
|
1169
|
+
/** Specialization constants values for the specified shader */
|
|
1170
|
+
constantsJson?: {
|
|
1171
|
+
[_additionalproperties_: string]: any;
|
|
1172
|
+
};
|
|
1173
|
+
/** Data provided to the shader through the node data buffer */
|
|
1174
|
+
dataJson?: {
|
|
1175
|
+
[_additionalproperties_: string]: any;
|
|
1176
|
+
};
|
|
1177
|
+
/** Description of a shader pipeline */
|
|
1178
|
+
pipelineDescription?: {
|
|
1179
|
+
/** Index of the stencil state for back face rendering */
|
|
1180
|
+
backFaceStencilOpStateIndex?: number;
|
|
1181
|
+
/** Color blend attachement states */
|
|
1182
|
+
blendStateIndices?: Array<number>;
|
|
1183
|
+
/** Cull mode */
|
|
1184
|
+
cullMode?: number;
|
|
1185
|
+
/** Whether to enable depth bias or not */
|
|
1186
|
+
depthBiasEnable?: boolean;
|
|
1187
|
+
/** Depth compare operator */
|
|
1188
|
+
depthCompareOp?: number;
|
|
1189
|
+
/** Wether to enable depth test or not */
|
|
1190
|
+
depthTestEnable?: boolean;
|
|
1191
|
+
/** Wether to enable depth write or not */
|
|
1192
|
+
depthWriteEnable?: boolean;
|
|
1193
|
+
/** Front face */
|
|
1194
|
+
frontFace?: number;
|
|
1195
|
+
/** Index of the stencil state for front face rendering */
|
|
1196
|
+
frontFaceStencilOpStateIndex?: number;
|
|
1197
|
+
/** Polygon mode */
|
|
1198
|
+
polygonMode?: number;
|
|
1199
|
+
/** Primitive topology */
|
|
1200
|
+
topology?: number;
|
|
1201
|
+
};
|
|
1202
|
+
/** A reference to a shader */
|
|
1203
|
+
shaderRef?: string;
|
|
1204
|
+
type: 8;
|
|
1205
|
+
} | {
|
|
1206
|
+
filter?: number;
|
|
1207
|
+
/** Source render target */
|
|
1208
|
+
inputRenderTargetIndices?: Array<number>;
|
|
1209
|
+
/** Mip generation mode */
|
|
1210
|
+
mode?: (0 | 1) & number;
|
|
1211
|
+
type: 9;
|
|
1212
|
+
} | {
|
|
1213
|
+
/** Source render target */
|
|
1214
|
+
inputRenderTargetIndices?: Array<number>;
|
|
1215
|
+
type: 10;
|
|
1216
|
+
} | {
|
|
1217
|
+
/** Specialization constants values for the specified shader */
|
|
1218
|
+
constantsJson?: {
|
|
1219
|
+
[_additionalproperties_: string]: any;
|
|
1220
|
+
};
|
|
1221
|
+
/** Data provided to the shader through the node data buffer */
|
|
1222
|
+
dataJson?: {
|
|
1223
|
+
[_additionalproperties_: string]: any;
|
|
1224
|
+
};
|
|
1225
|
+
/** Source render target */
|
|
1226
|
+
inputRenderTargetIndices?: Array<number>;
|
|
1227
|
+
/** Mip generation mode */
|
|
1228
|
+
mode?: (0 | 1) & number;
|
|
1229
|
+
/** A reference to a shader */
|
|
1230
|
+
shaderRef?: string;
|
|
1231
|
+
type: 11;
|
|
1232
|
+
} | {
|
|
1233
|
+
/** Clear value */
|
|
1234
|
+
clearValue?: Array<number> | Array<number> | Array<number> | {
|
|
1235
|
+
depth: number;
|
|
1236
|
+
stencil: number;
|
|
1237
|
+
};
|
|
1238
|
+
/** Type of clearValue */
|
|
1239
|
+
clearValueType?: StrictUnion<0 | 1 | 2 | 3>;
|
|
1240
|
+
/** Render targets to clear */
|
|
1241
|
+
outputRenderTargetIndices?: Array<number>;
|
|
1242
|
+
type: 13;
|
|
1243
|
+
} | {
|
|
1244
|
+
/** Name of the buffer */
|
|
1245
|
+
bufferName?: string;
|
|
1246
|
+
/** Offset in the buffer */
|
|
1247
|
+
bufferOffset?: number;
|
|
1248
|
+
/** Size of the buffer; 0 for whole size */
|
|
1249
|
+
bufferSize?: number;
|
|
1250
|
+
/** Value to fill the buffer with */
|
|
1251
|
+
bufferValue?: number;
|
|
1252
|
+
type: 15;
|
|
1253
|
+
} | {
|
|
1254
|
+
/** Specialization constants values for the specified shader */
|
|
1255
|
+
constantsJson?: {
|
|
1256
|
+
[_additionalproperties_: string]: any;
|
|
1257
|
+
};
|
|
1258
|
+
/** Data provided to the shader through the node data buffer */
|
|
1259
|
+
dataJson?: {
|
|
1260
|
+
[_additionalproperties_: string]: any;
|
|
1261
|
+
};
|
|
1262
|
+
/** Description of a shader pipeline */
|
|
1263
|
+
pipelineDescription?: {
|
|
1264
|
+
/** Index of the stencil state for back face rendering */
|
|
1265
|
+
backFaceStencilOpStateIndex?: number;
|
|
1266
|
+
/** Color blend attachement states */
|
|
1267
|
+
blendStateIndices?: Array<number>;
|
|
1268
|
+
/** Cull mode */
|
|
1269
|
+
cullMode?: number;
|
|
1270
|
+
/** Whether to enable depth bias or not */
|
|
1271
|
+
depthBiasEnable?: boolean;
|
|
1272
|
+
/** Depth compare operator */
|
|
1273
|
+
depthCompareOp?: number;
|
|
1274
|
+
/** Wether to enable depth test or not */
|
|
1275
|
+
depthTestEnable?: boolean;
|
|
1276
|
+
/** Wether to enable depth write or not */
|
|
1277
|
+
depthWriteEnable?: boolean;
|
|
1278
|
+
/** Front face */
|
|
1279
|
+
frontFace?: number;
|
|
1280
|
+
/** Index of the stencil state for front face rendering */
|
|
1281
|
+
frontFaceStencilOpStateIndex?: number;
|
|
1282
|
+
/** Polygon mode */
|
|
1283
|
+
polygonMode?: number;
|
|
1284
|
+
/** Primitive topology */
|
|
1285
|
+
topology?: number;
|
|
1286
|
+
};
|
|
1287
|
+
/** A reference to a shader */
|
|
1288
|
+
shaderRef?: string;
|
|
1289
|
+
type: 16;
|
|
1290
|
+
} | {
|
|
1291
|
+
/** Data provided to the shader through the node data buffer */
|
|
1292
|
+
dataJson?: {
|
|
1293
|
+
[_additionalproperties_: string]: any;
|
|
1294
|
+
};
|
|
1295
|
+
/** Index into shaderContexts of the descriptor providing the shader context data for this node */
|
|
1296
|
+
shaderContextIndex: number;
|
|
1297
|
+
type: 17;
|
|
1298
|
+
} | {
|
|
1299
|
+
/** Depth bias clamp */
|
|
1300
|
+
depthBiasClamp?: number;
|
|
1301
|
+
/** Depth bias constant factor */
|
|
1302
|
+
depthBiasConstantFactor?: number;
|
|
1303
|
+
/** Depth bias slope factor */
|
|
1304
|
+
depthBiasSlopeFactor?: number;
|
|
1305
|
+
type: 18;
|
|
1306
|
+
} | {
|
|
1307
|
+
/** Specialization constants values for the specified shader */
|
|
1308
|
+
constantsJson?: {
|
|
1309
|
+
[_additionalproperties_: string]: any;
|
|
1310
|
+
};
|
|
1311
|
+
/** Data provided to the shader through the node data buffer */
|
|
1312
|
+
dataJson?: {
|
|
1313
|
+
[_additionalproperties_: string]: any;
|
|
1314
|
+
};
|
|
1315
|
+
/** A reference to a shader */
|
|
1316
|
+
shaderRef?: string;
|
|
1317
|
+
type: 19;
|
|
1318
|
+
}) & {
|
|
1319
|
+
/** Index into the conditions array; -1 if unconditional */
|
|
1320
|
+
conditionIndex?: number;
|
|
1321
|
+
/** Node name */
|
|
1322
|
+
name?: string;
|
|
1323
|
+
/** Node type */
|
|
1324
|
+
type: (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19) & number;
|
|
1325
|
+
}>;
|
|
1326
|
+
/** The index of the render target used for occlusion */
|
|
1327
|
+
occlusionInputDepthRenderTargetIndex?: number;
|
|
1328
|
+
/** Descriptions of all render passes */
|
|
1329
|
+
renderPassDescriptions: Array<{
|
|
1330
|
+
/** The attachments clear colors */
|
|
1331
|
+
attachmentClearColors?: Array<Array<number>>;
|
|
1332
|
+
/** The attachment descriptions */
|
|
1333
|
+
attachmentDescriptions?: Array<{
|
|
1334
|
+
/** Final layout */
|
|
1335
|
+
finalLayout?: number;
|
|
1336
|
+
/** Attachment description flags */
|
|
1337
|
+
flags?: number;
|
|
1338
|
+
/** Format */
|
|
1339
|
+
format?: number;
|
|
1340
|
+
/** Initial layout */
|
|
1341
|
+
initialLayout?: number;
|
|
1342
|
+
/** Load op */
|
|
1343
|
+
loadOp?: number;
|
|
1344
|
+
/** Sample count */
|
|
1345
|
+
samples?: number;
|
|
1346
|
+
/** Stencil load op */
|
|
1347
|
+
stencilLoadOp?: number;
|
|
1348
|
+
/** Stencil store op */
|
|
1349
|
+
stencilStoreOp?: number;
|
|
1350
|
+
/** Store op */
|
|
1351
|
+
storeOp?: number;
|
|
1352
|
+
}>;
|
|
1353
|
+
/** The indices of the render targets used as color attachments for this render pass */
|
|
1354
|
+
colorAttachmentIndices?: Array<number>;
|
|
1355
|
+
/** The attachment references of the render targets used as color attachments for this render pass */
|
|
1356
|
+
colorAttachmentReferences?: Array<{
|
|
1357
|
+
/** Attachment */
|
|
1358
|
+
attachment?: number;
|
|
1359
|
+
/** Layout */
|
|
1360
|
+
layout?: number;
|
|
1361
|
+
}>;
|
|
1362
|
+
/** Index into the conditions array; -1 if unconditional */
|
|
1363
|
+
conditionIndex?: number;
|
|
1364
|
+
/** The index of the render target used as depth attachment for this render pass */
|
|
1365
|
+
depthAttachmentIndex?: number;
|
|
1366
|
+
/** The attachment reference of the render target used as depth attachment for this render pass */
|
|
1367
|
+
depthAttachmentReference?: {
|
|
1368
|
+
/** Attachment */
|
|
1369
|
+
attachment?: number;
|
|
1370
|
+
/** Layout */
|
|
1371
|
+
layout?: number;
|
|
1372
|
+
};
|
|
1373
|
+
/** Render pass name */
|
|
1374
|
+
name?: string;
|
|
1375
|
+
/** The indices of the nodes composing this render pass */
|
|
1376
|
+
nodeIndices?: Array<number>;
|
|
1377
|
+
/** The indices of the render targets used as resolve attachments for this render pass */
|
|
1378
|
+
resolveAttachmentIndices?: Array<number>;
|
|
1379
|
+
/** The attachment references of the render targets used as resolve attachments for this render pass */
|
|
1380
|
+
resolveAttachmentReferences?: Array<{
|
|
1381
|
+
/** Attachment */
|
|
1382
|
+
attachment?: number;
|
|
1383
|
+
/** Layout */
|
|
1384
|
+
layout?: number;
|
|
1385
|
+
}>;
|
|
1386
|
+
/** Multisampling */
|
|
1387
|
+
sampleCount?: number;
|
|
1388
|
+
}>;
|
|
1389
|
+
/** Descriptions of all render targets */
|
|
1390
|
+
renderTargetDescriptions: Array<{
|
|
1391
|
+
/** The aspect of the image to use, in the graph */
|
|
1392
|
+
aspect?: number;
|
|
1393
|
+
/** The denoiser target this render target maps to */
|
|
1394
|
+
denoiserTarget?: (-1 | 0 | 1 | 2 | 3) & number;
|
|
1395
|
+
/** The extent of the render target, leave at 0 to use the canvas extent */
|
|
1396
|
+
extent?: Array<number>;
|
|
1397
|
+
/** Flags to use on image creation */
|
|
1398
|
+
flags?: number;
|
|
1399
|
+
/** Format of the render target */
|
|
1400
|
+
format?: number;
|
|
1401
|
+
/** Memory type */
|
|
1402
|
+
memoryType?: (0 | 1 | 2 | 3) & number;
|
|
1403
|
+
/** How the image is accessed */
|
|
1404
|
+
memoryUsage?: (0 | 1 | 2 | 3) & number;
|
|
1405
|
+
/** Minimum mip size, leave at 0 for single mip level */
|
|
1406
|
+
minMipSize?: number;
|
|
1407
|
+
/** Render target name */
|
|
1408
|
+
name?: string;
|
|
1409
|
+
/** The picking target this render target maps to */
|
|
1410
|
+
pickingTarget?: (-1 | 0 | 1) & number;
|
|
1411
|
+
/** Number of samples per pixel */
|
|
1412
|
+
sampleCount?: number;
|
|
1413
|
+
/** THe sampler to use when accessing this render target */
|
|
1414
|
+
samplerType?: number;
|
|
1415
|
+
/** Tiling of the image */
|
|
1416
|
+
tiling?: number;
|
|
1417
|
+
/** How this render target is going to be used */
|
|
1418
|
+
usage?: number;
|
|
1419
|
+
}>;
|
|
1420
|
+
/** Data descriptors for the shader contexts referenced by shaderContextIndex */
|
|
1421
|
+
shaderContexts?: Array<Array<{
|
|
1422
|
+
/** 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 */
|
|
1423
|
+
bufferProperties?: {
|
|
1424
|
+
/** 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 */
|
|
1425
|
+
elementCount: number | Array<number>;
|
|
1426
|
+
/** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */
|
|
1427
|
+
elementSize: number;
|
|
1428
|
+
/** How this buffer is going to be used */
|
|
1429
|
+
usage: number;
|
|
1430
|
+
};
|
|
1431
|
+
/** Categories */
|
|
1432
|
+
categories?: Array<string>;
|
|
1433
|
+
/** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
|
|
1434
|
+
default?: number | boolean | Array<number> | string;
|
|
1435
|
+
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
1436
|
+
description?: string;
|
|
1437
|
+
/** 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 */
|
|
1438
|
+
id?: number;
|
|
1439
|
+
/** 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) */
|
|
1440
|
+
isReferenceResource?: boolean;
|
|
1441
|
+
/** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */
|
|
1442
|
+
list?: Array<{
|
|
1443
|
+
description?: string;
|
|
1444
|
+
name: string;
|
|
1445
|
+
value: number;
|
|
1446
|
+
}>;
|
|
1447
|
+
/** Parameter name */
|
|
1448
|
+
name: string;
|
|
1449
|
+
/** Parameter native type */
|
|
1450
|
+
nativeType: 'vec4' | 'vec3' | 'vec2' | 'float' | 'int32_t' | 'texture2d_ref' | 'render_target_index' | 'buffer_reference';
|
|
1451
|
+
/** Parameter offset in bytes */
|
|
1452
|
+
offset: number;
|
|
1453
|
+
/** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */
|
|
1454
|
+
properties?: {
|
|
1455
|
+
/** For a parameter of type "texture" or "render_target_index": the underlying pixel type's exact format */
|
|
1456
|
+
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
1457
|
+
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
1458
|
+
openMode?: 'read' | 'write' | 'readwrite';
|
|
1459
|
+
/** 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) */
|
|
1460
|
+
spec?: {
|
|
1461
|
+
[_additionalproperties_: string]: number | boolean;
|
|
1462
|
+
};
|
|
1463
|
+
};
|
|
1464
|
+
/** Parameter type */
|
|
1465
|
+
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
1466
|
+
}>>;
|
|
1467
|
+
/** All stencil states */
|
|
1468
|
+
stencilOpStateDescriptions?: Array<{
|
|
1469
|
+
/** Compare mask */
|
|
1470
|
+
compareMask?: number;
|
|
1471
|
+
/** Compare operator */
|
|
1472
|
+
compareOp?: number;
|
|
1473
|
+
/** Depth fail operator */
|
|
1474
|
+
depthFailOp?: number;
|
|
1475
|
+
/** Fail operator */
|
|
1476
|
+
failOp?: number;
|
|
1477
|
+
/** Pass operator */
|
|
1478
|
+
passOp?: number;
|
|
1479
|
+
/** Reference */
|
|
1480
|
+
reference?: number;
|
|
1481
|
+
/** Write mask */
|
|
1482
|
+
writeMask?: number;
|
|
1483
|
+
}>;
|
|
1484
|
+
/** Unique identifier for the asset */
|
|
1485
|
+
uuid: string;
|
|
1486
|
+
};
|
|
1487
|
+
asset_type: 'render_graph';
|
|
1488
|
+
} | {
|
|
1489
|
+
/** A scene is a collection of entities */
|
|
1490
|
+
asset_description: {
|
|
1491
|
+
/** Bounding box in local space */
|
|
1492
|
+
aabb: {
|
|
1493
|
+
/** Maximum point of the box */
|
|
1494
|
+
max: Array<number>;
|
|
1495
|
+
/** Minimum point of the box */
|
|
1496
|
+
min: Array<number>;
|
|
1497
|
+
};
|
|
1498
|
+
/** Flat list of entities */
|
|
1499
|
+
entities: Array<{
|
|
1500
|
+
[_additionalproperties_: string]: any;
|
|
1501
|
+
}>;
|
|
1502
|
+
/** Name of the asset */
|
|
1503
|
+
name: string;
|
|
1504
|
+
/** Total number of direct triangles in the scene */
|
|
1505
|
+
triangleCount?: number;
|
|
1506
|
+
/** Unique identifier for the asset */
|
|
1507
|
+
uuid: string;
|
|
1508
|
+
};
|
|
1509
|
+
asset_type: 'scene';
|
|
1510
|
+
} | {
|
|
1511
|
+
/** A runtime script */
|
|
1512
|
+
asset_description: {
|
|
1513
|
+
/** The events that the script listens to, referenced by name */
|
|
1514
|
+
eventNames?: Array<string>;
|
|
1515
|
+
/** The description of the data object that the caller should provide to the script */
|
|
1516
|
+
inputDescriptor: Array<{
|
|
1517
|
+
/** Parameter default value */
|
|
1518
|
+
default?: number | string | boolean | Array<number> | {
|
|
1519
|
+
[_additionalproperties_: string]: any;
|
|
1520
|
+
};
|
|
1521
|
+
/** Parameter name */
|
|
1522
|
+
name: string;
|
|
1523
|
+
/** Parameter native type */
|
|
1524
|
+
nativeType: 'entity_ref' | 'int32_t' | 'float' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'quat' | 'mat4' | 'string';
|
|
1525
|
+
/** Parameter type */
|
|
1526
|
+
type: 'entity' | 'bool' | 'int' | 'uint' | 'float' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'color' | 'vec4' | 'ivec4' | 'quat' | 'mat4' | 'string';
|
|
1527
|
+
}>;
|
|
1528
|
+
/** Name of the asset */
|
|
1529
|
+
name: string;
|
|
1530
|
+
/** An optional list of references to other scripts that the current script might call */
|
|
1531
|
+
subScripts?: Array<string>;
|
|
1532
|
+
/** Unique identifier for the asset */
|
|
1533
|
+
uuid: string;
|
|
1534
|
+
};
|
|
1535
|
+
asset_type: 'script';
|
|
1536
|
+
} | {
|
|
1537
|
+
/** A GPU shader */
|
|
1538
|
+
asset_description: {
|
|
1539
|
+
/** The blend mode for the shader, used for batching purposes. Only valid for material shaders */
|
|
1540
|
+
blendMode?: StrictUnion<0 | 1 | 2 | 3>;
|
|
1541
|
+
/** Compute shader settings. Only valid for compute shaders */
|
|
1542
|
+
computeSettings?: {
|
|
1543
|
+
/** Global group reference */
|
|
1544
|
+
sizeReference?: StrictUnion<0 | 1 | 2 | 3>;
|
|
1545
|
+
/** Size of the workgroup */
|
|
1546
|
+
workgroupSize?: Array<number>;
|
|
1547
|
+
/** Scaling factor to apply to the total workgroup count */
|
|
1548
|
+
workloadScalingFactor?: Array<number>;
|
|
1549
|
+
};
|
|
1550
|
+
/** Data descriptor for specialization constants */
|
|
1551
|
+
constantDescriptor?: Array<{
|
|
1552
|
+
/** Constant default value */
|
|
1553
|
+
default: number | boolean;
|
|
1554
|
+
/** Description */
|
|
1555
|
+
description?: string;
|
|
1556
|
+
/** Display name */
|
|
1557
|
+
displayName?: string;
|
|
1558
|
+
/** Constant name */
|
|
1559
|
+
name: string;
|
|
1560
|
+
/** Constant type */
|
|
1561
|
+
type: 'bool' | 'int' | 'uint' | 'float';
|
|
1562
|
+
}>;
|
|
1563
|
+
/** The size in byte of the same code built with its debug symbols, unoptimized: the optional `debug` payload, when built */
|
|
1564
|
+
debugPayloadSize?: number;
|
|
1565
|
+
/** GLSL extensions required by this shader, detected from the SPIR-V capabilities declared by its compiled modules or set by its author */
|
|
1566
|
+
glslExtensions?: Array<{
|
|
1567
|
+
/** Behavior of its #extension directive */
|
|
1568
|
+
behavior?: 'require' | 'enable' | 'warn' | 'disable';
|
|
1569
|
+
/** SPIR-V capability id that requires this extension (e.g. 5347 for PhysicalStorageBufferAddresses) */
|
|
1570
|
+
capabilityId?: number;
|
|
1571
|
+
/** GLSL extension name, e.g. "GL_EXT_buffer_reference" */
|
|
1572
|
+
name: string;
|
|
1573
|
+
/** Stage its #extension directive is written in, or "all_stages" */
|
|
1574
|
+
stage?: string;
|
|
1575
|
+
}>;
|
|
1576
|
+
/** Data descriptor for material shaders */
|
|
1577
|
+
materialDescriptor?: Array<{
|
|
1578
|
+
/** 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 */
|
|
1579
|
+
bufferProperties?: {
|
|
1580
|
+
/** 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 */
|
|
1581
|
+
elementCount: number | Array<number>;
|
|
1582
|
+
/** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */
|
|
1583
|
+
elementSize: number;
|
|
1584
|
+
/** How this buffer is going to be used */
|
|
1585
|
+
usage: number;
|
|
1586
|
+
};
|
|
1587
|
+
/** Categories */
|
|
1588
|
+
categories?: Array<string>;
|
|
1589
|
+
/** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
|
|
1590
|
+
default?: number | boolean | Array<number> | string;
|
|
1591
|
+
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
1592
|
+
description?: string;
|
|
1593
|
+
/** 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 */
|
|
1594
|
+
id?: number;
|
|
1595
|
+
/** 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) */
|
|
1596
|
+
isReferenceResource?: boolean;
|
|
1597
|
+
/** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */
|
|
1598
|
+
list?: Array<{
|
|
1599
|
+
description?: string;
|
|
1600
|
+
name: string;
|
|
1601
|
+
value: number;
|
|
1602
|
+
}>;
|
|
1603
|
+
/** Parameter name */
|
|
1604
|
+
name: string;
|
|
1605
|
+
/** Parameter native type */
|
|
1606
|
+
nativeType: 'vec4' | 'vec3' | 'vec2' | 'float' | 'int32_t' | 'texture2d_ref' | 'render_target_index' | 'buffer_reference';
|
|
1607
|
+
/** Parameter offset in bytes */
|
|
1608
|
+
offset: number;
|
|
1609
|
+
/** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */
|
|
1610
|
+
properties?: {
|
|
1611
|
+
/** For a parameter of type "texture" or "render_target_index": the underlying pixel type's exact format */
|
|
1612
|
+
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
1613
|
+
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
1614
|
+
openMode?: 'read' | 'write' | 'readwrite';
|
|
1615
|
+
/** 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) */
|
|
1616
|
+
spec?: {
|
|
1617
|
+
[_additionalproperties_: string]: number | boolean;
|
|
1618
|
+
};
|
|
1619
|
+
};
|
|
1620
|
+
/** Parameter type */
|
|
1621
|
+
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
1622
|
+
}>;
|
|
1623
|
+
/** Descriptions of all modules that compose this shader */
|
|
1624
|
+
moduleDescriptions?: Array<{
|
|
1625
|
+
/** Names of the bindings used by this module */
|
|
1626
|
+
bindings?: Array<string>;
|
|
1627
|
+
/** Constants used by this module */
|
|
1628
|
+
constants?: {
|
|
1629
|
+
[_additionalproperties_: string]: Array<number>;
|
|
1630
|
+
};
|
|
1631
|
+
/** Entry point of the shader module */
|
|
1632
|
+
entryPoint?: string;
|
|
1633
|
+
/** 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 */
|
|
1634
|
+
outputs?: Array<{
|
|
1635
|
+
/** Output location */
|
|
1636
|
+
location: number;
|
|
1637
|
+
/** Output variable name */
|
|
1638
|
+
name: string;
|
|
1639
|
+
/** Output variable type */
|
|
1640
|
+
type: 'bool' | 'int8' | 'int16' | 'int32' | 'int64' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'float16' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'pointer';
|
|
1641
|
+
}>;
|
|
1642
|
+
/** Offset in byte in the shader payload buffer */
|
|
1643
|
+
payloadOffset: number;
|
|
1644
|
+
/** Size in byte of the compiled module */
|
|
1645
|
+
payloadSize: number;
|
|
1646
|
+
/** Push constant members used by this module, used to validate push constant layout compatibility across the pipeline's stages */
|
|
1647
|
+
pushConstants?: Array<{
|
|
1648
|
+
/** Push constant member name */
|
|
1649
|
+
name: string;
|
|
1650
|
+
/** Offset in byte within the push constant block */
|
|
1651
|
+
offset: number;
|
|
1652
|
+
/** Size in byte of the push constant member */
|
|
1653
|
+
size: number;
|
|
1654
|
+
/** Push constant member type */
|
|
1655
|
+
type: 'bool' | 'int8' | 'int16' | 'int32' | 'int64' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'float16' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'pointer';
|
|
1656
|
+
}>;
|
|
1657
|
+
/** The shader stage */
|
|
1658
|
+
shaderStage: number;
|
|
1659
|
+
/** Bit mask of the descriptor bindings used by this module, bit N for binding N */
|
|
1660
|
+
usedBindings: number;
|
|
1661
|
+
}>;
|
|
1662
|
+
/** Name of the asset */
|
|
383
1663
|
name: string;
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
1664
|
+
/** Data descriptor for render graph node shaders */
|
|
1665
|
+
nodeDataDescriptor?: Array<{
|
|
1666
|
+
/** 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 */
|
|
1667
|
+
bufferProperties?: {
|
|
1668
|
+
/** 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 */
|
|
1669
|
+
elementCount: number | Array<number>;
|
|
1670
|
+
/** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */
|
|
1671
|
+
elementSize: number;
|
|
1672
|
+
/** How this buffer is going to be used */
|
|
1673
|
+
usage: number;
|
|
1674
|
+
};
|
|
1675
|
+
/** Categories */
|
|
1676
|
+
categories?: Array<string>;
|
|
1677
|
+
/** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
|
|
1678
|
+
default?: number | boolean | Array<number> | string;
|
|
1679
|
+
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
1680
|
+
description?: string;
|
|
1681
|
+
/** 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 */
|
|
1682
|
+
id?: number;
|
|
1683
|
+
/** 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) */
|
|
1684
|
+
isReferenceResource?: boolean;
|
|
1685
|
+
/** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */
|
|
1686
|
+
list?: Array<{
|
|
1687
|
+
description?: string;
|
|
1688
|
+
name: string;
|
|
1689
|
+
value: number;
|
|
1690
|
+
}>;
|
|
1691
|
+
/** Parameter name */
|
|
1692
|
+
name: string;
|
|
1693
|
+
/** Parameter native type */
|
|
1694
|
+
nativeType: 'vec4' | 'vec3' | 'vec2' | 'float' | 'int32_t' | 'texture2d_ref' | 'render_target_index' | 'buffer_reference';
|
|
1695
|
+
/** Parameter offset in bytes */
|
|
1696
|
+
offset: number;
|
|
1697
|
+
/** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */
|
|
1698
|
+
properties?: {
|
|
1699
|
+
/** For a parameter of type "texture" or "render_target_index": the underlying pixel type's exact format */
|
|
1700
|
+
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
1701
|
+
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
1702
|
+
openMode?: 'read' | 'write' | 'readwrite';
|
|
1703
|
+
/** 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) */
|
|
1704
|
+
spec?: {
|
|
1705
|
+
[_additionalproperties_: string]: number | boolean;
|
|
1706
|
+
};
|
|
1707
|
+
};
|
|
1708
|
+
/** Parameter type */
|
|
1709
|
+
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
1710
|
+
}>;
|
|
1711
|
+
/** Hash of the node data descriptor, used to detect changes in the descriptor */
|
|
1712
|
+
nodeDataDescriptorHash?: number;
|
|
1713
|
+
/** The size in byte of the compiled shader code (accumulated size of all modules) */
|
|
1714
|
+
payloadSize?: number;
|
|
1715
|
+
/** Reference to the shader context associated with this shader. Only present for shaders that use one. */
|
|
1716
|
+
shaderContextRef?: string;
|
|
1717
|
+
/** Vulkan bit mask of all shader stages present in this shader */
|
|
1718
|
+
shaderStages?: number;
|
|
1719
|
+
/** Unique identifier for the asset */
|
|
1720
|
+
uuid: string;
|
|
1721
|
+
/** Vertex description. Only valid when a vertex shader module is present */
|
|
1722
|
+
vertexDescriptor?: Array<{
|
|
1723
|
+
/** Binding number */
|
|
1724
|
+
binding: number;
|
|
1725
|
+
/** Format */
|
|
1726
|
+
format: number;
|
|
1727
|
+
/** Location */
|
|
1728
|
+
location: number;
|
|
1729
|
+
/** Offset */
|
|
1730
|
+
offset: number;
|
|
1731
|
+
/** Semantic */
|
|
1732
|
+
semantic: (1 | 2 | 4 | 8 | 16 | 32) & number;
|
|
1733
|
+
/** Stride between consecutive elements within the buffer */
|
|
1734
|
+
stride: number;
|
|
1735
|
+
}>;
|
|
1736
|
+
};
|
|
1737
|
+
asset_type: 'shader';
|
|
1738
|
+
} | {
|
|
1739
|
+
/** A material applied to a volume (3d texture) */
|
|
1740
|
+
asset_description: {
|
|
1741
|
+
/** The albedo look up table */
|
|
1742
|
+
albedoLUT?: Array<{
|
|
1743
|
+
/** The normalized key for this entry */
|
|
1744
|
+
key?: number;
|
|
1745
|
+
/** The value associated to the key */
|
|
1746
|
+
value?: Array<number> | number;
|
|
1747
|
+
}>;
|
|
1748
|
+
/** The metallic look up table */
|
|
1749
|
+
metallicLUT?: Array<{
|
|
1750
|
+
/** The normalized key for this entry */
|
|
1751
|
+
key?: number;
|
|
1752
|
+
/** The value associated to the key */
|
|
1753
|
+
value?: Array<number> | number;
|
|
1754
|
+
}>;
|
|
1755
|
+
/** Name of the asset */
|
|
388
1756
|
name: string;
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
1757
|
+
/** The opacity look up table */
|
|
1758
|
+
opacityLUT?: Array<{
|
|
1759
|
+
/** The normalized key for this entry */
|
|
1760
|
+
key?: number;
|
|
1761
|
+
/** The value associated to the key */
|
|
1762
|
+
value?: Array<number> | number;
|
|
1763
|
+
}>;
|
|
1764
|
+
/** The maximum voxel value handled by the material */
|
|
1765
|
+
rangeMax: number;
|
|
1766
|
+
/** The minimum voxel value handled material */
|
|
1767
|
+
rangeMin: number;
|
|
1768
|
+
/** The roughness look up table */
|
|
1769
|
+
roughnessLUT?: Array<{
|
|
1770
|
+
/** The normalized key for this entry */
|
|
1771
|
+
key?: number;
|
|
1772
|
+
/** The value associated to the key */
|
|
1773
|
+
value?: Array<number> | number;
|
|
1774
|
+
}>;
|
|
1775
|
+
/** Unique identifier for the asset */
|
|
1776
|
+
uuid: string;
|
|
1777
|
+
};
|
|
1778
|
+
asset_type: 'volume_material';
|
|
396
1779
|
};
|
|
397
|
-
export type
|
|
1780
|
+
export type AssetCreationFromDescription = ({
|
|
398
1781
|
/** Action map for a controller */
|
|
399
1782
|
asset_description: {
|
|
400
1783
|
actions: {
|
|
@@ -658,6 +2041,8 @@ export type AssetCreatableWithType = {
|
|
|
658
2041
|
} | {
|
|
659
2042
|
/** Source code from a git repository that could be used in a shader, a script or in an algorithm */
|
|
660
2043
|
asset_description: {
|
|
2044
|
+
/** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */
|
|
2045
|
+
debugPayloadSize?: number;
|
|
661
2046
|
functions: {
|
|
662
2047
|
[function_name: string]: {
|
|
663
2048
|
[_additionalproperties_: string]: any;
|
|
@@ -667,6 +2052,8 @@ export type AssetCreatableWithType = {
|
|
|
667
2052
|
moduleDependencies?: Array<string>;
|
|
668
2053
|
/** Name of the asset */
|
|
669
2054
|
name: string;
|
|
2055
|
+
/** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */
|
|
2056
|
+
payloadSize?: number;
|
|
670
2057
|
/** Unique identifier for the asset */
|
|
671
2058
|
uuid: string;
|
|
672
2059
|
};
|
|
@@ -1114,8 +2501,8 @@ export type AssetCreatableWithType = {
|
|
|
1114
2501
|
};
|
|
1115
2502
|
/** Categories */
|
|
1116
2503
|
categories?: Array<string>;
|
|
1117
|
-
/** Parameter default value */
|
|
1118
|
-
default?: number | boolean | Array<number
|
|
2504
|
+
/** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
|
|
2505
|
+
default?: number | boolean | Array<number> | string;
|
|
1119
2506
|
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
1120
2507
|
description?: string;
|
|
1121
2508
|
/** 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 */
|
|
@@ -1270,8 +2657,8 @@ export type AssetCreatableWithType = {
|
|
|
1270
2657
|
};
|
|
1271
2658
|
/** Categories */
|
|
1272
2659
|
categories?: Array<string>;
|
|
1273
|
-
/** Parameter default value */
|
|
1274
|
-
default?: number | boolean | Array<number
|
|
2660
|
+
/** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
|
|
2661
|
+
default?: number | boolean | Array<number> | string;
|
|
1275
2662
|
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
1276
2663
|
description?: string;
|
|
1277
2664
|
/** 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 */
|
|
@@ -1358,8 +2745,8 @@ export type AssetCreatableWithType = {
|
|
|
1358
2745
|
};
|
|
1359
2746
|
/** Categories */
|
|
1360
2747
|
categories?: Array<string>;
|
|
1361
|
-
/** Parameter default value */
|
|
1362
|
-
default?: number | boolean | Array<number
|
|
2748
|
+
/** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
|
|
2749
|
+
default?: number | boolean | Array<number> | string;
|
|
1363
2750
|
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
1364
2751
|
description?: string;
|
|
1365
2752
|
/** 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 */
|
|
@@ -1460,6 +2847,9 @@ export type AssetCreatableWithType = {
|
|
|
1460
2847
|
uuid: string;
|
|
1461
2848
|
};
|
|
1462
2849
|
asset_type: 'volume_material';
|
|
2850
|
+
}) & {
|
|
2851
|
+
/** The asset's metadata, as its type declares them, none by default */
|
|
2852
|
+
meta?: AssetMeta;
|
|
1463
2853
|
};
|
|
1464
2854
|
export type AssetItem = {
|
|
1465
2855
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
@@ -1826,6 +3216,14 @@ export type EnvironmentAssetListFilters = {
|
|
|
1826
3216
|
include_public_assets?: boolean;
|
|
1827
3217
|
};
|
|
1828
3218
|
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';
|
|
3219
|
+
/** A change of an asset's metadata, merged into them, a key set to null removed, the others kept */
|
|
3220
|
+
export type AssetMetaChange = {
|
|
3221
|
+
kind?: 'slang' | 'glsl' | null;
|
|
3222
|
+
} | {
|
|
3223
|
+
kind?: 'statechart' | 'coroutine' | 'custom' | null;
|
|
3224
|
+
} | {
|
|
3225
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph' | null;
|
|
3226
|
+
};
|
|
1829
3227
|
/** An asset as platform-management holds it, where it is included, and how it was edited */
|
|
1830
3228
|
export type AssetDetails = {
|
|
1831
3229
|
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 +3304,17 @@ export type AssetDetails = {
|
|
|
1906
3304
|
};
|
|
1907
3305
|
/** The library exporting the asset, if any */
|
|
1908
3306
|
library_id?: string;
|
|
3307
|
+
/** 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 */
|
|
3308
|
+
meta: {
|
|
3309
|
+
/** What the asset is, which tells the tool opening it */
|
|
3310
|
+
kind?: 'slang' | 'glsl';
|
|
3311
|
+
} | {
|
|
3312
|
+
/** What the asset is, which tells the tool opening it */
|
|
3313
|
+
kind?: 'statechart' | 'coroutine' | 'custom';
|
|
3314
|
+
} | {
|
|
3315
|
+
/** What the asset is, which tells the tool opening it */
|
|
3316
|
+
kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';
|
|
3317
|
+
};
|
|
1909
3318
|
name: string;
|
|
1910
3319
|
/** Unique identifier of an organization */
|
|
1911
3320
|
organization_id: string;
|
|
@@ -2267,6 +3676,8 @@ export type AssetDescription = {
|
|
|
2267
3676
|
/** Unique identifier for the asset */
|
|
2268
3677
|
uuid: string;
|
|
2269
3678
|
} | {
|
|
3679
|
+
/** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */
|
|
3680
|
+
debugPayloadSize?: number;
|
|
2270
3681
|
functions: {
|
|
2271
3682
|
[function_name: string]: {
|
|
2272
3683
|
[_additionalproperties_: string]: any;
|
|
@@ -2276,6 +3687,8 @@ export type AssetDescription = {
|
|
|
2276
3687
|
moduleDependencies?: Array<string>;
|
|
2277
3688
|
/** Name of the asset */
|
|
2278
3689
|
name: string;
|
|
3690
|
+
/** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */
|
|
3691
|
+
payloadSize?: number;
|
|
2279
3692
|
/** Unique identifier for the asset */
|
|
2280
3693
|
uuid: string;
|
|
2281
3694
|
} | {
|
|
@@ -2801,8 +4214,8 @@ export type AssetDescription = {
|
|
|
2801
4214
|
};
|
|
2802
4215
|
/** Categories */
|
|
2803
4216
|
categories?: Array<string>;
|
|
2804
|
-
/** Parameter default value */
|
|
2805
|
-
default?: number | boolean | Array<number
|
|
4217
|
+
/** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
|
|
4218
|
+
default?: number | boolean | Array<number> | string;
|
|
2806
4219
|
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
2807
4220
|
description?: string;
|
|
2808
4221
|
/** 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 */
|
|
@@ -2945,8 +4358,8 @@ export type AssetDescription = {
|
|
|
2945
4358
|
};
|
|
2946
4359
|
/** Categories */
|
|
2947
4360
|
categories?: Array<string>;
|
|
2948
|
-
/** Parameter default value */
|
|
2949
|
-
default?: number | boolean | Array<number
|
|
4361
|
+
/** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
|
|
4362
|
+
default?: number | boolean | Array<number> | string;
|
|
2950
4363
|
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
2951
4364
|
description?: string;
|
|
2952
4365
|
/** 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 */
|
|
@@ -3033,8 +4446,8 @@ export type AssetDescription = {
|
|
|
3033
4446
|
};
|
|
3034
4447
|
/** Categories */
|
|
3035
4448
|
categories?: Array<string>;
|
|
3036
|
-
/** Parameter default value */
|
|
3037
|
-
default?: number | boolean | Array<number
|
|
4449
|
+
/** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
|
|
4450
|
+
default?: number | boolean | Array<number> | string;
|
|
3038
4451
|
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
3039
4452
|
description?: string;
|
|
3040
4453
|
/** 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 */
|
|
@@ -3106,8 +4519,8 @@ export type AssetDescription = {
|
|
|
3106
4519
|
};
|
|
3107
4520
|
/** Categories */
|
|
3108
4521
|
categories?: Array<string>;
|
|
3109
|
-
/** Parameter default value */
|
|
3110
|
-
default?: number | boolean | Array<number
|
|
4522
|
+
/** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
|
|
4523
|
+
default?: number | boolean | Array<number> | string;
|
|
3111
4524
|
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
3112
4525
|
description?: string;
|
|
3113
4526
|
/** 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 */
|
|
@@ -3520,6 +4933,8 @@ export type EditableAssetDescription = {
|
|
|
3520
4933
|
/** Unique identifier for the asset */
|
|
3521
4934
|
uuid: string;
|
|
3522
4935
|
} | {
|
|
4936
|
+
/** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */
|
|
4937
|
+
debugPayloadSize?: number;
|
|
3523
4938
|
functions: {
|
|
3524
4939
|
[function_name: string]: {
|
|
3525
4940
|
[_additionalproperties_: string]: any;
|
|
@@ -3529,6 +4944,8 @@ export type EditableAssetDescription = {
|
|
|
3529
4944
|
moduleDependencies?: Array<string>;
|
|
3530
4945
|
/** Name of the asset */
|
|
3531
4946
|
name: string;
|
|
4947
|
+
/** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */
|
|
4948
|
+
payloadSize?: number;
|
|
3532
4949
|
/** Unique identifier for the asset */
|
|
3533
4950
|
uuid: string;
|
|
3534
4951
|
} | {
|
|
@@ -3972,8 +5389,8 @@ export type EditableAssetDescription = {
|
|
|
3972
5389
|
};
|
|
3973
5390
|
/** Categories */
|
|
3974
5391
|
categories?: Array<string>;
|
|
3975
|
-
/** Parameter default value */
|
|
3976
|
-
default?: number | boolean | Array<number
|
|
5392
|
+
/** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
|
|
5393
|
+
default?: number | boolean | Array<number> | string;
|
|
3977
5394
|
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
3978
5395
|
description?: string;
|
|
3979
5396
|
/** 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 */
|
|
@@ -4116,8 +5533,8 @@ export type EditableAssetDescription = {
|
|
|
4116
5533
|
};
|
|
4117
5534
|
/** Categories */
|
|
4118
5535
|
categories?: Array<string>;
|
|
4119
|
-
/** Parameter default value */
|
|
4120
|
-
default?: number | boolean | Array<number
|
|
5536
|
+
/** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
|
|
5537
|
+
default?: number | boolean | Array<number> | string;
|
|
4121
5538
|
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
4122
5539
|
description?: string;
|
|
4123
5540
|
/** 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 */
|
|
@@ -4204,8 +5621,8 @@ export type EditableAssetDescription = {
|
|
|
4204
5621
|
};
|
|
4205
5622
|
/** Categories */
|
|
4206
5623
|
categories?: Array<string>;
|
|
4207
|
-
/** Parameter default value */
|
|
4208
|
-
default?: number | boolean | Array<number
|
|
5624
|
+
/** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
|
|
5625
|
+
default?: number | boolean | Array<number> | string;
|
|
4209
5626
|
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
4210
5627
|
description?: string;
|
|
4211
5628
|
/** 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 */
|
|
@@ -4301,8 +5718,28 @@ export type EditableAssetDescription = {
|
|
|
4301
5718
|
/** Unique identifier for the asset */
|
|
4302
5719
|
uuid: string;
|
|
4303
5720
|
};
|
|
4304
|
-
export type AssetContainerWithPayload = 'animations' | 'animation_graphs' | 'animation_sequences' | 'collision_geometries' | 'meshes' | 'navmeshes' | 'point_clouds' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d';
|
|
5721
|
+
export type AssetContainerWithPayload = 'animations' | 'animation_graphs' | 'animation_sequences' | 'collision_geometries' | 'meshes' | 'modules' | 'navmeshes' | 'point_clouds' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d';
|
|
4305
5722
|
export type AssetContainerWithGraph = 'animation_graphs' | 'render_graphs' | 'scripts' | 'shaders';
|
|
5723
|
+
/** A tool keeping a document of an asset, and when it last wrote it */
|
|
5724
|
+
export type AssetDocumentSummary = {
|
|
5725
|
+
/** A tool editing assets, which keeps a document of its own for each, e.g. `graph-editor` */
|
|
5726
|
+
tool_id: string;
|
|
5727
|
+
updated_at: string;
|
|
5728
|
+
};
|
|
5729
|
+
/** A tool editing assets, which keeps a document of its own for each, e.g. `graph-editor` */
|
|
5730
|
+
export type ToolId = string;
|
|
5731
|
+
/** The document a tool keeps of an asset, in a format of its own, which names the assets it uses by references of its own, and the assets those references stand for, which cannot be deleted while it names them: neither dependencies of the asset nor references. A copy of the asset takes the document as it is, its references standing for the copies of the assets duplicated with it. */
|
|
5732
|
+
export type AssetDocument = {
|
|
5733
|
+
/** The asset each reference of the document stands for */
|
|
5734
|
+
dependencies: {
|
|
5735
|
+
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
5736
|
+
[_additionalproperties_: string]: string;
|
|
5737
|
+
};
|
|
5738
|
+
/** The tool's document, as it wrote it, holding no asset id but its own references */
|
|
5739
|
+
document: {
|
|
5740
|
+
[_additionalproperties_: string]: any;
|
|
5741
|
+
};
|
|
5742
|
+
};
|
|
4306
5743
|
export type AssetContainerWithCode = 'animation_graphs' | 'animation_sequences' | 'modules' | 'scripts' | 'shaders';
|
|
4307
5744
|
/** 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`. */
|
|
4308
5745
|
export type AssetCode = {
|
|
@@ -5949,7 +7386,7 @@ export type FolderInput = {
|
|
|
5949
7386
|
name: string;
|
|
5950
7387
|
subfolders?: Array<FolderInput>;
|
|
5951
7388
|
};
|
|
5952
|
-
export type
|
|
7389
|
+
export type AssetCreationFromDescriptionInput = ({
|
|
5953
7390
|
/** Action map for a controller */
|
|
5954
7391
|
asset_description: {
|
|
5955
7392
|
actions: {
|
|
@@ -6199,6 +7636,8 @@ export type AssetCreatableWithTypeInput = {
|
|
|
6199
7636
|
} | {
|
|
6200
7637
|
/** Source code from a git repository that could be used in a shader, a script or in an algorithm */
|
|
6201
7638
|
asset_description: {
|
|
7639
|
+
/** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */
|
|
7640
|
+
debugPayloadSize?: number;
|
|
6202
7641
|
functions: {
|
|
6203
7642
|
[function_name: string]: {
|
|
6204
7643
|
[_additionalproperties_: string]: any;
|
|
@@ -6208,6 +7647,8 @@ export type AssetCreatableWithTypeInput = {
|
|
|
6208
7647
|
moduleDependencies?: Array<string>;
|
|
6209
7648
|
/** Name of the asset */
|
|
6210
7649
|
name: string;
|
|
7650
|
+
/** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */
|
|
7651
|
+
payloadSize?: number;
|
|
6211
7652
|
};
|
|
6212
7653
|
asset_type: 'module';
|
|
6213
7654
|
} | {
|
|
@@ -6653,8 +8094,8 @@ export type AssetCreatableWithTypeInput = {
|
|
|
6653
8094
|
};
|
|
6654
8095
|
/** Categories */
|
|
6655
8096
|
categories?: Array<string>;
|
|
6656
|
-
/** Parameter default value */
|
|
6657
|
-
default?: number | boolean | Array<number
|
|
8097
|
+
/** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
|
|
8098
|
+
default?: number | boolean | Array<number> | string;
|
|
6658
8099
|
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
6659
8100
|
description?: string;
|
|
6660
8101
|
/** 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 */
|
|
@@ -6803,8 +8244,8 @@ export type AssetCreatableWithTypeInput = {
|
|
|
6803
8244
|
};
|
|
6804
8245
|
/** Categories */
|
|
6805
8246
|
categories?: Array<string>;
|
|
6806
|
-
/** Parameter default value */
|
|
6807
|
-
default?: number | boolean | Array<number
|
|
8247
|
+
/** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
|
|
8248
|
+
default?: number | boolean | Array<number> | string;
|
|
6808
8249
|
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
6809
8250
|
description?: string;
|
|
6810
8251
|
/** 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 */
|
|
@@ -6891,8 +8332,8 @@ export type AssetCreatableWithTypeInput = {
|
|
|
6891
8332
|
};
|
|
6892
8333
|
/** Categories */
|
|
6893
8334
|
categories?: Array<string>;
|
|
6894
|
-
/** Parameter default value */
|
|
6895
|
-
default?: number | boolean | Array<number
|
|
8335
|
+
/** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
|
|
8336
|
+
default?: number | boolean | Array<number> | string;
|
|
6896
8337
|
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
6897
8338
|
description?: string;
|
|
6898
8339
|
/** 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 */
|
|
@@ -6989,6 +8430,9 @@ export type AssetCreatableWithTypeInput = {
|
|
|
6989
8430
|
}>;
|
|
6990
8431
|
};
|
|
6991
8432
|
asset_type: 'volume_material';
|
|
8433
|
+
}) & {
|
|
8434
|
+
/** The asset's metadata, as its type declares them, none by default */
|
|
8435
|
+
meta?: AssetMeta;
|
|
6992
8436
|
};
|
|
6993
8437
|
export type EditableAssetDescriptionInput = {
|
|
6994
8438
|
actions: {
|
|
@@ -7210,6 +8654,8 @@ export type EditableAssetDescriptionInput = {
|
|
|
7210
8654
|
/** The implemented shader */
|
|
7211
8655
|
shaderRef: string;
|
|
7212
8656
|
} | {
|
|
8657
|
+
/** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */
|
|
8658
|
+
debugPayloadSize?: number;
|
|
7213
8659
|
functions: {
|
|
7214
8660
|
[function_name: string]: {
|
|
7215
8661
|
[_additionalproperties_: string]: any;
|
|
@@ -7219,6 +8665,8 @@ export type EditableAssetDescriptionInput = {
|
|
|
7219
8665
|
moduleDependencies?: Array<string>;
|
|
7220
8666
|
/** Name of the asset */
|
|
7221
8667
|
name: string;
|
|
8668
|
+
/** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */
|
|
8669
|
+
payloadSize?: number;
|
|
7222
8670
|
} | {
|
|
7223
8671
|
/** All blend states */
|
|
7224
8672
|
blendStateDescriptions?: Array<{
|
|
@@ -7660,8 +9108,8 @@ export type EditableAssetDescriptionInput = {
|
|
|
7660
9108
|
};
|
|
7661
9109
|
/** Categories */
|
|
7662
9110
|
categories?: Array<string>;
|
|
7663
|
-
/** Parameter default value */
|
|
7664
|
-
default?: number | boolean | Array<number
|
|
9111
|
+
/** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
|
|
9112
|
+
default?: number | boolean | Array<number> | string;
|
|
7665
9113
|
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
7666
9114
|
description?: string;
|
|
7667
9115
|
/** 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 */
|
|
@@ -7798,8 +9246,8 @@ export type EditableAssetDescriptionInput = {
|
|
|
7798
9246
|
};
|
|
7799
9247
|
/** Categories */
|
|
7800
9248
|
categories?: Array<string>;
|
|
7801
|
-
/** Parameter default value */
|
|
7802
|
-
default?: number | boolean | Array<number
|
|
9249
|
+
/** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
|
|
9250
|
+
default?: number | boolean | Array<number> | string;
|
|
7803
9251
|
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
7804
9252
|
description?: string;
|
|
7805
9253
|
/** 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 */
|
|
@@ -7886,8 +9334,8 @@ export type EditableAssetDescriptionInput = {
|
|
|
7886
9334
|
};
|
|
7887
9335
|
/** Categories */
|
|
7888
9336
|
categories?: Array<string>;
|
|
7889
|
-
/** Parameter default value */
|
|
7890
|
-
default?: number | boolean | Array<number
|
|
9337
|
+
/** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */
|
|
9338
|
+
default?: number | boolean | Array<number> | string;
|
|
7891
9339
|
/** Description of the parameter, shown by tools. Not read by the engine */
|
|
7892
9340
|
description?: string;
|
|
7893
9341
|
/** 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 */
|
|
@@ -8657,7 +10105,7 @@ export declare function listFolderAssets({ folder_id, offset, limit, filters, re
|
|
|
8657
10105
|
limit?: number;
|
|
8658
10106
|
filters?: AssetListFilters;
|
|
8659
10107
|
recursive?: boolean;
|
|
8660
|
-
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): Promise<ResponseWithHeaders<
|
|
10108
|
+
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): Promise<ResponseWithHeaders<AssetsByContainer, {
|
|
8661
10109
|
'x-assets-count': AssetsCount;
|
|
8662
10110
|
link?: string;
|
|
8663
10111
|
'x-total-count'?: number;
|
|
@@ -8678,8 +10126,10 @@ export declare function createAsset({ folder_id, asset_creation_options, }: {
|
|
|
8678
10126
|
folder_id: FolderId;
|
|
8679
10127
|
asset_creation_options: StrictUnion<{
|
|
8680
10128
|
asset_type: AssetTypeCreatable;
|
|
10129
|
+
/** The asset's metadata, as its type declares them, none by default */
|
|
10130
|
+
meta?: AssetMeta;
|
|
8681
10131
|
name: string;
|
|
8682
|
-
} |
|
|
10132
|
+
} | AssetCreationFromDescriptionInput | {
|
|
8683
10133
|
asset_type: AssetType;
|
|
8684
10134
|
copy_from_asset_id: AssetId;
|
|
8685
10135
|
new_asset_name?: string;
|
|
@@ -8842,7 +10292,7 @@ export declare function updateSourceFile({ source_file_id, name, }: {
|
|
|
8842
10292
|
*/
|
|
8843
10293
|
export declare function listSourceFileAssets({ source_file_id, }: {
|
|
8844
10294
|
source_file_id: SourceFileId;
|
|
8845
|
-
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): AxiosPromise<
|
|
10295
|
+
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): AxiosPromise<AssetsByContainer>;
|
|
8846
10296
|
/**
|
|
8847
10297
|
* Imports files into a folder: source files, converted into assets, or asset packages, imported as they are. The
|
|
8848
10298
|
* files are sent in a multipart body, or given by URL, for the import to download them: in a JSON body when none is
|
|
@@ -9199,7 +10649,7 @@ export declare function listAssets({ offset, limit, filters, }: {
|
|
|
9199
10649
|
offset?: number;
|
|
9200
10650
|
limit?: number;
|
|
9201
10651
|
filters?: EnvironmentAssetListFilters;
|
|
9202
|
-
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): Promise<ResponseWithHeaders<
|
|
10652
|
+
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): Promise<ResponseWithHeaders<AssetsByContainer, {
|
|
9203
10653
|
link?: string;
|
|
9204
10654
|
'x-total-count'?: number;
|
|
9205
10655
|
}>>;
|
|
@@ -9233,7 +10683,8 @@ export declare function deleteAsset({ asset_container, asset_id, }: {
|
|
|
9233
10683
|
asset_id: AssetId;
|
|
9234
10684
|
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): Promise<AxiosResponse<any, any, {}, any>>;
|
|
9235
10685
|
/**
|
|
9236
|
-
* Renames the asset.
|
|
10686
|
+
* Renames the asset, or changes its metadata, what the tools made of it, e.g. a shader's or a script's kind: merged
|
|
10687
|
+
* into them, a key set to null removed, the others kept, as its type declares them. What the body leaves out is kept.
|
|
9237
10688
|
* @throws {InvalidParameter}
|
|
9238
10689
|
* @throws {MissingAuthorizationHeader}
|
|
9239
10690
|
* @throws {InvalidApiKey}
|
|
@@ -9243,12 +10694,14 @@ export declare function deleteAsset({ asset_container, asset_id, }: {
|
|
|
9243
10694
|
* @throws {InsufficientPermissions}
|
|
9244
10695
|
* @throws {TooManyRequests}
|
|
9245
10696
|
*/
|
|
9246
|
-
export declare function
|
|
10697
|
+
export declare function updateAsset({ asset_container, asset_id, name, meta, }: {
|
|
9247
10698
|
asset_container: AssetContainer;
|
|
9248
10699
|
asset_id: AssetId;
|
|
9249
|
-
name
|
|
10700
|
+
name?: string;
|
|
10701
|
+
meta?: AssetMetaChange;
|
|
9250
10702
|
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): Promise<AxiosResponse<any, {
|
|
9251
10703
|
name: string;
|
|
10704
|
+
meta: AssetMetaChange;
|
|
9252
10705
|
}, {}, any>>;
|
|
9253
10706
|
/**
|
|
9254
10707
|
* Gets the asset details from the specified asset.
|
|
@@ -9439,6 +10892,84 @@ export declare function updateAssetGraph({ asset_container_with_graph, asset_id,
|
|
|
9439
10892
|
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): Promise<AxiosResponse<any, {
|
|
9440
10893
|
[_additionalproperties_: string]: any;
|
|
9441
10894
|
}, {}, any>>;
|
|
10895
|
+
/**
|
|
10896
|
+
* The tools keeping a document of the asset, by id, each with when it last wrote it.
|
|
10897
|
+
* @throws {InvalidParameter}
|
|
10898
|
+
* @throws {MissingAuthorizationHeader}
|
|
10899
|
+
* @throws {InvalidApiKey}
|
|
10900
|
+
* @throws {Unauthorized}
|
|
10901
|
+
* @throws {InvalidAuthorization}
|
|
10902
|
+
* @throws {InsufficientSecurityScope}
|
|
10903
|
+
* @throws {InsufficientPermissions}
|
|
10904
|
+
* @throws {TooManyRequests}
|
|
10905
|
+
*/
|
|
10906
|
+
export declare function listAssetDocuments({ asset_container, asset_id, }: {
|
|
10907
|
+
asset_container: AssetContainer;
|
|
10908
|
+
asset_id: AssetId;
|
|
10909
|
+
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): AxiosPromise<Array<AssetDocumentSummary>>;
|
|
10910
|
+
/**
|
|
10911
|
+
* The document a tool keeps of the asset, as it wrote it, with the asset each of its references stands for.
|
|
10912
|
+
* @throws {InvalidParameter}
|
|
10913
|
+
* @throws {MissingAuthorizationHeader}
|
|
10914
|
+
* @throws {InvalidApiKey}
|
|
10915
|
+
* @throws {Unauthorized}
|
|
10916
|
+
* @throws {InvalidAuthorization}
|
|
10917
|
+
* @throws {InsufficientSecurityScope}
|
|
10918
|
+
* @throws {InsufficientPermissions}
|
|
10919
|
+
* @throws {TooManyRequests}
|
|
10920
|
+
*/
|
|
10921
|
+
export declare function getAssetDocument({ asset_container, asset_id, tool_id, }: {
|
|
10922
|
+
asset_container: AssetContainer;
|
|
10923
|
+
asset_id: AssetId;
|
|
10924
|
+
tool_id: ToolId;
|
|
10925
|
+
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): AxiosPromise<AssetDocument>;
|
|
10926
|
+
/**
|
|
10927
|
+
* Creates or replaces the document a tool keeps of the asset, in a format of its own, which names the assets it uses
|
|
10928
|
+
* by references of its own, with the asset each stands for (`dependencies`): each must exist, be within the asset's
|
|
10929
|
+
* environment or shared with it, and be readable by the caller. They cannot be deleted while the document names
|
|
10930
|
+
* them, though they are neither dependencies of the asset, which its description alone gives, nor references.
|
|
10931
|
+
* Nothing is written when one is refused. A copy of the asset takes the document as it is, its references standing
|
|
10932
|
+
* for the copies of the assets duplicated with it.
|
|
10933
|
+
* @throws {InvalidParameter}
|
|
10934
|
+
* @throws {MissingAuthorizationHeader}
|
|
10935
|
+
* @throws {InvalidApiKey}
|
|
10936
|
+
* @throws {Unauthorized}
|
|
10937
|
+
* @throws {InvalidAuthorization}
|
|
10938
|
+
* @throws {InsufficientSecurityScope}
|
|
10939
|
+
* @throws {InsufficientPermissions}
|
|
10940
|
+
* @throws {TooManyRequests}
|
|
10941
|
+
*/
|
|
10942
|
+
export declare function putAssetDocument({ asset_container, asset_id, tool_id, dependencies, document, }: {
|
|
10943
|
+
asset_container: AssetContainer;
|
|
10944
|
+
asset_id: AssetId;
|
|
10945
|
+
tool_id: ToolId;
|
|
10946
|
+
/** The asset each reference of the document stands for */
|
|
10947
|
+
dependencies: {
|
|
10948
|
+
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
10949
|
+
[_additionalproperties_: string]: string;
|
|
10950
|
+
};
|
|
10951
|
+
/** The tool's document, as it wrote it, holding no asset id but its own references */
|
|
10952
|
+
document: {
|
|
10953
|
+
[_additionalproperties_: string]: any;
|
|
10954
|
+
};
|
|
10955
|
+
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): AxiosPromise<AssetDocument>;
|
|
10956
|
+
/**
|
|
10957
|
+
* Deletes the document a tool keeps of the asset, and releases the assets it used for it. Deleting it again, or one
|
|
10958
|
+
* never written, answers the same.
|
|
10959
|
+
* @throws {InvalidParameter}
|
|
10960
|
+
* @throws {MissingAuthorizationHeader}
|
|
10961
|
+
* @throws {InvalidApiKey}
|
|
10962
|
+
* @throws {Unauthorized}
|
|
10963
|
+
* @throws {InvalidAuthorization}
|
|
10964
|
+
* @throws {InsufficientSecurityScope}
|
|
10965
|
+
* @throws {InsufficientPermissions}
|
|
10966
|
+
* @throws {TooManyRequests}
|
|
10967
|
+
*/
|
|
10968
|
+
export declare function deleteAssetDocument({ asset_container, asset_id, tool_id, }: {
|
|
10969
|
+
asset_container: AssetContainer;
|
|
10970
|
+
asset_id: AssetId;
|
|
10971
|
+
tool_id: ToolId;
|
|
10972
|
+
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): Promise<AxiosResponse<any, any, {}, any>>;
|
|
9442
10973
|
/**
|
|
9443
10974
|
* Gets the edit history of the specified asset: the distinct `contributors` (so a consumer can resolve them to display names) and the chronological `timeline` of modifications.
|
|
9444
10975
|
* @throws {InvalidParameter}
|