@displayxr/inline3d 1.47.4 → 1.47.6

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/splat.d.ts CHANGED
@@ -1135,6 +1135,18 @@ export interface SplatHandle {
1135
1135
  * it after this resolves. Resolves the number of programs warmed. docs/playcanvas-adapter.md §warmEntity.
1136
1136
  */
1137
1137
  warmEntity(entity: unknown, opts?: { timeoutMs?: number }): Promise<number>;
1138
+ /**
1139
+ * `engine: 'playcanvas'` only (a no-op returning `{ programs: 0, container: null }` on Spark).
1140
+ * Destroy `entity` — content you added under `handle.engine.root` — and release what it held on
1141
+ * the GPU: the shader programs its materials linked (PlayCanvas never frees a program by itself:
1142
+ * its ProgramLibrary caches every variant for the device's life, and `Material.destroy()` does
1143
+ * not destroy them), and, with `asset`, the glTF container it was instantiated from (unloaded
1144
+ * and taken out of the registry unless something else in the tile still draws from it). A
1145
+ * program another material still uses is kept. Call it for whatever a content swap replaces.
1146
+ * Returns the number of programs destroyed and what happened to the container.
1147
+ * docs/content-lifecycle-rules.md.
1148
+ */
1149
+ releaseEntity(entity: unknown, opts?: { asset?: unknown }): { programs: number; container: 'unloaded' | 'in-use' | null };
1138
1150
  setStereo(opts: SplatStereoOptions | null): SplatHandle;
1139
1151
  /**
1140
1152
  * The `depth` option's comfort factor in force, in (0, 1]: what the display rig's ipdFactor and