@react-three/fiber 10.0.0-canary.dc0ec15 → 10.0.0-canary.de17310

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/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as three_examples_jsm_inspector_Inspector_js from 'three/examples/jsm/inspector/Inspector.js';
2
- import * as three_webgpu from 'three/webgpu';
3
- import { CubeRenderTarget, RenderTarget, WebGPURenderer, Node, StorageTexture, Storage3DTexture, StorageArrayTexture, Data3DTexture, CanvasTarget, Euler as Euler$2, Color as Color$2, ColorRepresentation as ColorRepresentation$1, Layers as Layers$1, Raycaster, Intersection as Intersection$1, BufferGeometry, Matrix4 as Matrix4$1, Quaternion as Quaternion$1, Object3D, Vector2 as Vector2$1, Vector3 as Vector3$1, Vector4 as Vector4$1, Matrix3 as Matrix3$1, Loader as Loader$1, ColorSpace, Texture as Texture$1, CubeTexture, Scene, Frustum, OrthographicCamera } from 'three/webgpu';
2
+ import * as webgpu from 'three/webgpu';
3
+ import { CubeRenderTarget, RenderTarget, WebGPURenderer, CanvasTarget, Euler as Euler$2, Color as Color$2, ColorRepresentation as ColorRepresentation$1, Layers as Layers$1, Raycaster, Intersection as Intersection$1, BufferGeometry, Matrix4 as Matrix4$1, Quaternion as Quaternion$1, Object3D, Vector2 as Vector2$1, Vector3 as Vector3$1, Vector4 as Vector4$1, Matrix3 as Matrix3$1, Loader as Loader$1, ColorSpace, Texture as Texture$1, CubeTexture, Scene, Frustum, OrthographicCamera } from 'three/webgpu';
4
4
  import * as THREE$1 from 'three';
5
5
  import { WebGLCubeRenderTarget, WebGLRenderTarget, WebGLRenderer, Color as Color$1, ColorRepresentation, Euler as Euler$1, Loader, RenderTargetOptions as RenderTargetOptions$1 } from 'three';
6
6
  import { WebGLRendererParameters } from 'three/src/renderers/WebGLRenderer.js';
@@ -300,90 +300,6 @@ type FrameNextCallback = FrameCallback$1<RootState>
300
300
  /** Alias for FrameNextCallback */
301
301
  type FrameCallback = FrameNextCallback
302
302
 
303
- //* Buffer Types (useBuffers) ========================================
304
-
305
- /**
306
- * Buffer-like types for GPU compute and storage operations.
307
- * Includes raw CPU arrays, Three.js buffer attributes, and TSL buffer nodes.
308
- *
309
- * @example
310
- * ```tsx
311
- * const { positions, velocities } = useBuffers(() => ({
312
- * positions: instancedArray(count, 'vec3'), // StorageBufferNode
313
- * velocities: new Float32Array(count * 3), // TypedArray
314
- * }), 'particles')
315
- * ```
316
- */
317
- type BufferLike =
318
- | Float32Array
319
- | Uint32Array
320
- | Int32Array
321
- | Float64Array
322
- | Uint8Array
323
- | Int8Array
324
- | Uint16Array
325
- | Int16Array
326
- | THREE$1.BufferAttribute // Base class for all buffer attributes
327
- | THREE$1.InterleavedBufferAttribute
328
- | Node // TSL buffer nodes (instancedArray, storage)
329
-
330
- /** Flat record of buffer-like values (no nested scopes) */
331
- type BufferRecord = Record<string, BufferLike>
332
-
333
- /**
334
- * Buffer store that can contain both root-level buffers and scoped buffer objects.
335
- * Structure: { positions: Float32Array, particles: { vel: StorageBufferNode } }
336
- */
337
- type BufferStore = Record<string, BufferLike | BufferRecord>
338
-
339
- //* Node Types (useNodes) ========================================
340
-
341
- /**
342
- * Every node representation `useNodes` accepts and `state.nodes` holds: three's real `Node`,
343
- * the callable proxy `Fn()` returns, and the legacy structural shape (`uuid`/`nodeType`) older
344
- * code passes through. Creators are constrained to this same type, so the shape a creator returns
345
- * and the shape the store holds are one type by construction.
346
- */
347
- type NodeLike = TSLNodeType | LegacyTSLNodeLike
348
-
349
- /** Flat record of TSL nodes (no nested scopes) */
350
- type NodeRecord<T extends NodeLike = NodeLike> = Record<string, T>
351
-
352
- /**
353
- * Node store that can contain both root-level nodes and scoped node objects.
354
- * Structure: { wobble: OperatorNode, fx: { blur: ShaderCallable } }
355
- */
356
- type NodeStore = Record<string, NodeLike | NodeRecord>
357
-
358
- //* Storage Types (useGPUStorage) ========================================
359
-
360
- /**
361
- * GPU storage types for texture-based storage operations.
362
- * Includes Three.js storage textures and TSL storage texture nodes.
363
- *
364
- * @example
365
- * ```tsx
366
- * const { heightMap } = useGPUStorage(() => ({
367
- * heightMap: new StorageTexture(512, 512),
368
- * }), 'terrain')
369
- * ```
370
- */
371
- type StorageLike =
372
- | StorageTexture // 2D GPU storage texture
373
- | Storage3DTexture // 3D GPU storage texture (volumes, fluid grids)
374
- | StorageArrayTexture // 2D-array GPU storage texture
375
- | Data3DTexture // 3D texture (can be used as storage)
376
- | Node // TSL storage texture nodes (storageTexture)
377
-
378
- /** Flat record of storage-like values (no nested scopes) */
379
- type StorageRecord = Record<string, StorageLike>
380
-
381
- /**
382
- * Storage store that can contain both root-level storage and scoped storage objects.
383
- * Structure: { heightMap: StorageTexture, terrain: { normal: StorageTextureNode } }
384
- */
385
- type StorageStore = Record<string, StorageLike | StorageRecord>
386
-
387
303
  //* Renderer Types ========================================
388
304
 
389
305
  /** Default renderer type - union of WebGL and WebGPU renderers */
@@ -556,12 +472,13 @@ interface RootState {
556
472
  /** Get current state */
557
473
  get: StoreApi<RootState>['getState']
558
474
  /**
559
- * Reference to the authoritative store for shared TSL resources (uniforms, nodes, etc).
475
+ * The store of the canvas that owns this root's renderer.
560
476
  * - For primary/independent canvases: points to its own store (self-reference)
561
477
  * - For secondary canvases: points to the primary canvas's store
478
+ * - Portals copy it from their parent
562
479
  *
563
- * Hooks like useNodes/useUniforms should read from primaryStore to ensure
564
- * consistent shared state across all canvases sharing a renderer.
480
+ * Anything shared per renderer rather than per canvas (e.g. @react-three/tsl's resources)
481
+ * resolves through it.
565
482
  */
566
483
  primaryStore: RootStore
567
484
  /** @deprecated Use `renderer` instead. The instance of the renderer (typed as WebGLRenderer for backwards compat) */
@@ -624,24 +541,10 @@ interface RootState {
624
541
  setError: (error: Error | null) => void
625
542
  /** Current error state (null when no error) */
626
543
  error: Error | null
627
- /** Global TSL uniform nodes - root-level uniforms + scoped sub-objects. Use useUniforms() hook */
628
- uniforms: UniformStore
629
- /** Global TSL nodes - root-level nodes + scoped sub-objects. Use useNodes() hook */
630
- nodes: NodeStore
631
- /** Global TSL buffer nodes - root-level buffers + scoped sub-objects. Use useBuffers() hook */
632
- buffers: BufferStore
633
- /** Global GPU storage (textures, etc.) - root-level storage + scoped sub-objects. Use useGPUStorage() hook */
634
- gpuStorage: StorageStore
635
544
  /** Global Texture registry (key → Texture, usually keyed by URL) - use useTextures() hook for access + lifecycle */
636
545
  textures: Map<string, THREE$1.Texture>
637
546
  /** Internal: refcount per texture key, driven by mounted useTexture consumers (registry enrollment is on by default) */
638
547
  _textureRefs: Map<string, number>
639
- /** WebGPU RenderPipeline instance - use useRenderPipeline() hook */
640
- renderPipeline: ThreeRenderPipeline | null
641
- /** Global TSL pass nodes for render pipeline - use useRenderPipeline() hook */
642
- passes: PassRecord
643
- /** Internal version counter for HMR - incremented by rebuildNodes/rebuildUniforms to bust memoization */
644
- _hmrVersion: number
645
548
  /** Internal: whether setSize() has taken ownership of canvas dimensions */
646
549
  _sizeImperative: boolean
647
550
  /** Internal: stored size props from Canvas for reset functionality */
@@ -1172,243 +1075,6 @@ interface LegacyRootState extends Omit<RootState, 'renderer' | 'internal'> {
1172
1075
 
1173
1076
  type RenderTargetOptions = RenderTargetOptions$1
1174
1077
 
1175
- //* Global TSL Types ==============================
1176
-
1177
- declare global {
1178
- /**
1179
- * Broad callable-node fallback for dynamic store readers.
1180
- * Creator hooks preserve the exact function signatures inferred from Three's `Fn`.
1181
- */
1182
- type CallableTSLNode = ((...params: never[]) => unknown) & {
1183
- readonly shaderNode: unknown
1184
- readonly id: number
1185
- }
1186
-
1187
- /** Legacy structural node accepted when at least one historical marker exists. */
1188
- type LegacyTSLNodeLike = {
1189
- label?: ((label: string) => unknown) | string
1190
- setName?: (name: string) => unknown
1191
- } & ({ uuid: string | undefined; nodeType?: string | null } | { uuid?: string; nodeType: string | null | undefined })
1192
-
1193
- /** Node type accepted by broad dynamic node-store readers. */
1194
- type TSLNodeType = three_webgpu.Node | CallableTSLNode
1195
-
1196
- /**
1197
- * Derive Three's shader node type from an existing node or a supported raw input.
1198
- * Existing InputNode generics take precedence over structural value normalization.
1199
- * Both generics must be inferred because Three's UniformNode intersects an unknown-typed
1200
- * InputNode base with its concrete InputNode specialization.
1201
- */
1202
- type UniformNodeType<T> = T extends three_webgpu.UniformNode<infer TNodeType, infer _TValue>
1203
- ? TNodeType
1204
- : T extends three_webgpu.InputNode<infer TNodeType, infer _TValue>
1205
- ? TNodeType
1206
- : T extends number
1207
- ? 'float'
1208
- : T extends boolean
1209
- ? 'bool'
1210
- : T extends string | three_webgpu.Color | { r: number; g: number; b: number }
1211
- ? 'color'
1212
- : T extends three_webgpu.Vector4 | { x: number; y: number; z: number; w: number }
1213
- ? 'vec4'
1214
- : T extends three_webgpu.Vector3 | { x: number; y: number; z: number }
1215
- ? 'vec3'
1216
- : T extends three_webgpu.Vector2 | { x: number; y: number }
1217
- ? 'vec2'
1218
- : T extends three_webgpu.Matrix4
1219
- ? 'mat4'
1220
- : T extends three_webgpu.Matrix3
1221
- ? 'mat3'
1222
- : T extends three_webgpu.Matrix2
1223
- ? 'mat2'
1224
- : unknown
1225
-
1226
- /** Derive the normalized JavaScript value stored by a uniform node. */
1227
- type UniformNodeValue<T> = T extends three_webgpu.UniformNode<infer _TNodeType, infer TValue>
1228
- ? TValue
1229
- : T extends three_webgpu.InputNode<infer _TNodeType, infer TValue>
1230
- ? TValue
1231
- : T extends string | { r: number; g: number; b: number }
1232
- ? three_webgpu.Color
1233
- : T extends { x: number; y: number; z: number; w: number }
1234
- ? three_webgpu.Vector4
1235
- : T extends { x: number; y: number; z: number }
1236
- ? three_webgpu.Vector3
1237
- : T extends { x: number; y: number }
1238
- ? three_webgpu.Vector2
1239
- : T extends number
1240
- ? number
1241
- : T extends boolean
1242
- ? boolean
1243
- : T
1244
-
1245
- /** Three's exact UniformNode with shader and value generics derived from an input. */
1246
- type UniformNodeFor<T> = three_webgpu.UniformNode<UniformNodeType<T>, UniformNodeValue<T>>
1247
-
1248
- /** Preserve every input key while mapping values to exact Three uniform nodes. */
1249
- type UniformNodesFor<T extends UniformInputRecord> = {
1250
- [K in keyof T]: UniformNodeFor<T[K]>
1251
- }
1252
-
1253
- /** Backward-compatible single-parameter uniform alias. */
1254
- type UniformNode<T = unknown> = UniformNodeFor<T>
1255
-
1256
- /** Flat record of uniform nodes (no nested scopes) */
1257
- type UniformRecord<T extends UniformNode = UniformNode> = Record<string, T>
1258
-
1259
- /**
1260
- * Uniform store that can contain both root-level uniforms and scoped uniform objects
1261
- * Used by state.uniforms which has structure like:
1262
- * { uTime: UniformNode, player: { uHealth: UniformNode }, enemy: { uHealth: UniformNode } }
1263
- */
1264
- type UniformStore = Record<string, UniformNode | UniformRecord>
1265
-
1266
- /**
1267
- * Helper to safely access a uniform node from the store.
1268
- * Use this when accessing state.uniforms to get proper typing.
1269
- * @example
1270
- * const uTime = uniforms.uTime as UniformNode<number>
1271
- * const uColor = uniforms.uColor as UniformNode<import('three/webgpu').Color>
1272
- */
1273
- type GetUniform<T = unknown> = UniformNode<T>
1274
-
1275
- /**
1276
- * Acceptable input values for useUniforms - raw values that get converted to UniformNodes
1277
- * Supports:
1278
- * - Primitives: number, string (color), boolean
1279
- * - Three.js types: Color, Vector2/3/4, Matrix2/3/4
1280
- * - Plain objects: { x, y, z, w } converted to vectors
1281
- * - TSL nodes: color(), vec3(), float() for type casting
1282
- * - UniformNode: existing uniforms (reused as-is)
1283
- */
1284
- type UniformValue =
1285
- | number
1286
- | string
1287
- | boolean
1288
- | three_webgpu.Color
1289
- | three_webgpu.Vector2
1290
- | three_webgpu.Vector3
1291
- | three_webgpu.Vector4
1292
- | three_webgpu.Matrix2
1293
- | three_webgpu.Matrix3
1294
- | three_webgpu.Matrix4
1295
- | { x: number; y: number }
1296
- | { x: number; y: number; z: number }
1297
- | { x: number; y: number; z: number; w: number }
1298
- | { r: number; g: number; b: number; a?: number } // Plain objects converted to Color
1299
- | three_webgpu.Node // TSL nodes like color(), vec3(), float() for type casting
1300
- | UniformNode
1301
-
1302
- /** Input record for useUniforms - accepts raw values or UniformNodes */
1303
- type UniformInputRecord = Record<string, UniformValue>
1304
- }
1305
-
1306
- declare global {
1307
- /**
1308
- * three's own render pipeline type. Named here so the rest of R3F refers to three's shape
1309
- * rather than `any`. three r183 renamed `PostProcessing` to `RenderPipeline`; our peer floor
1310
- * is r185, so the new name is the only one.
1311
- */
1312
- type ThreeRenderPipeline = three_webgpu.RenderPipeline
1313
-
1314
- /**
1315
- * The pass `useRenderPipeline` creates for you: three's own `PassNode`, as returned by
1316
- * `pass(scene, camera)` from `three/tsl`. Referenced from three so members like
1317
- * `getTextureNode`, `setMRT` and `dispose` track the installed version.
1318
- */
1319
- type ScenePassNode = three_webgpu.PassNode
1320
-
1321
- /**
1322
- * Pass record - stores TSL pass nodes for render pipeline.
1323
- *
1324
- * `scenePass` is the only key the library owns. It is optional here because this is also the
1325
- * shape of `state.passes`, which is `{}` before the pipeline exists and again after `reset()`
1326
- * or `clearPasses()`. Inside the callbacks it is always present; see
1327
- * {@link RenderPipelineCallbackState}.
1328
- *
1329
- * Every other key is user-registered, via a callback's return value. Those are TSL nodes of
1330
- * any kind, not only passes: texture reads of an MRT attachment, effect nodes, extra
1331
- * `pass()` instances. `Node` is the common base, so that is the bound. Narrow at the call
1332
- * site when you need a member, e.g. `passes.velocity as TextureNode`.
1333
- *
1334
- * The index signature admits `undefined` because a key may simply not be registered, and
1335
- * because the optional `scenePass` must be assignable to it: under `skipLibCheck: false` an
1336
- * optional property whose type excludes `undefined` from the index signature is an error
1337
- * (TS2411) for every consumer compiling these declarations.
1338
- */
1339
- interface PassRecord {
1340
- scenePass?: ScenePassNode
1341
- [key: string]: three_webgpu.Node | undefined
1342
- }
1343
-
1344
- /**
1345
- * State passed to pipeline callbacks after the active pipeline has been created.
1346
- *
1347
- * `passes.scenePass` is required here: the hook installs the default scene pass before either
1348
- * callback runs, so callbacks can use it without a guard or a cast.
1349
- *
1350
- * `renderer` is narrowed to `WebGPURenderer` and `isLegacy` to `false`: the hook throws under
1351
- * the legacy renderer before either callback can run, so a callback never sees WebGL.
1352
- */
1353
- type RenderPipelineCallbackState = RootState & {
1354
- renderPipeline: ThreeRenderPipeline
1355
- passes: PassRecord & { scenePass: ScenePassNode }
1356
- renderer: three_webgpu.WebGPURenderer
1357
- isLegacy: false
1358
- }
1359
-
1360
- /**
1361
- * What a callback may return to register entries into `state.passes`.
1362
- *
1363
- * `scenePass` is reserved. The hook owns that entry and its lifecycle: it caches the pass it
1364
- * created, and `rebuild()` / `reset()` dispose that cached pass. A callback overwriting the
1365
- * store entry would leave the store pointing at a node the hook never disposes, and the hook
1366
- * disposing a pass nothing references. So returning it is a type error.
1367
- */
1368
- type RegisteredPasses = Record<string, three_webgpu.Node> & { scenePass?: never }
1369
-
1370
- /** Setup callback - runs first to configure MRT, create additional passes */
1371
- type RenderPipelineSetupCallback = (state: RenderPipelineCallbackState) => RegisteredPasses | void
1372
-
1373
- /** Main callback - runs second to configure outputNode, create effect passes */
1374
- type RenderPipelineMainCallback = (state: RenderPipelineCallbackState) => RegisteredPasses | void
1375
-
1376
- /** The imperative half of useRenderPipeline's return value, present in every state */
1377
- interface UseRenderPipelineActions {
1378
- /** Current passes from state */
1379
- passes: PassRecord
1380
- /** Clear all passes from state */
1381
- clearPasses: () => void
1382
- /** Reset RenderPipeline entirely (clears PP + passes) */
1383
- reset: () => void
1384
- /** Re-run setup/main callbacks with current closure values */
1385
- rebuild: () => void
1386
- }
1387
-
1388
- /**
1389
- * Return type for useRenderPipeline hook, discriminated on `isReady`.
1390
- *
1391
- * `if (isReady)` narrows `renderPipeline` to non-null, which is what the docs already tell
1392
- * callers to check. `passes.scenePass` deliberately stays optional in the ready branch:
1393
- * `clearPasses()` empties the record while leaving the pipeline in place.
1394
- */
1395
- type UseRenderPipelineReturn = UseRenderPipelineActions &
1396
- (
1397
- | {
1398
- /** True when RenderPipeline is configured and ready */
1399
- isReady: true
1400
- /** RenderPipeline instance */
1401
- renderPipeline: ThreeRenderPipeline
1402
- }
1403
- | {
1404
- /** False until the pipeline has been created */
1405
- isReady: false
1406
- /** Not initialized yet, or torn down by reset() */
1407
- renderPipeline: null
1408
- }
1409
- )
1410
- }
1411
-
1412
1078
  type MutableOrReadonlyParameters<T extends (...args: any) => any> = Parameters<T> | Readonly<Parameters<T>>
1413
1079
 
1414
1080
  interface MathRepresentation {
@@ -3900,4 +3566,4 @@ declare function isOnce(value: unknown): value is {
3900
3566
  declare function Canvas(props: CanvasProps): react_jsx_runtime.JSX.Element;
3901
3567
 
3902
3568
  export { Block, Canvas, Environment, EnvironmentCube, EnvironmentMap, EnvironmentPortal, ErrorBoundary, FROM_REF, IsObject, ONCE, Portal, R3F_BUILD_LEGACY, R3F_BUILD_WEBGPU, REACT_INTERNAL_PROPS, RESERVED_PROPS, three_d as ReactThreeFiber, Texture, _roots, addAfterEffect, addEffect, addTail, advance, applyProps, attach, buildGraph, calculateDpr, context, createEvents, createPointerEvents, createPortal, createRoot, createStore, detach, diffProps, dispose, createPointerEvents as events, extend, findInitialRoot, flushSync, fromRef, getInstanceProps, getPrimary, getPrimaryIds, getRootState, getUuidPrefix, hasConstructor, hasPrimary, invalidate, invalidateInstance, is, isColorRepresentation, isCopyable, isFromRef, isObject3D, isOnce, isOrthographicCamera, isRef, isRenderer, isTexture, isVectorLike, once, prepare, presetsObj, reconciler, registerPrimary, registerRootExtension, removeInteractivity, resolve, setRenderOverride, swapInteractivity, unmountComponentAtNode, unregisterPrimary, updateCamera, updateFrustum, useBridge, useEnvironment, useFrame, useGraph, useInstanceHandle, useIsomorphicLayoutEffect, useLoader, useMutableCallback, useRenderTarget, useStore, useTexture, useTextures, useThree, waitForPrimary };
3903
- export type { Act, Args, ArgsProp, AttachFnType, AttachType, BackgroundConfig, BackgroundProp, BaseRendererProps, Bridge, BufferLike, BufferRecord, BufferStore, Camera, CameraProps, CanvasProps, CanvasSchedulerConfig, Catalogue, Color, ColorManagementConfig, ComputeFunction, ConstructorRepresentation, DefaultGLProps, DefaultRendererProps, Disposable, DisposeOptions, DomEvent, Dpr, ElementProps, EnvironmentLoaderProps, EnvironmentProps, EquConfig, Euler, EventHandlers, EventManager, EventProps, Events, Extensions, FiberRoot, FilterFunction, FrameCallback, FrameNextCallback, FrameNextState, FrameState, Frameloop, FromRefMarker, GLProps, GLTFLike, GeometryProps, GeometryTransformProps, GlobalEffectType, GlobalRenderCallback, HostConfig, InferLoadResult, InjectState, InputLike, Instance, InstanceProps, InternalState, Intersection, IntersectionEvent, IsAllOptional, IsOptional, Layers, LegacyInternalState, LegacyRenderer, LegacyRootState, LoaderInstance, LoaderLike, LoaderResult, MappedTextureType, MathProps, MathRepresentation, MathType, MathTypes, Matrix3, Matrix4, Mutable, MutableOrReadonlyParameters, NodeLike, NodeProps, NodeRecord, NodeStore, NonFunctionKeys, Object3DMethod, ObjectMap, OffscreenCanvas$1 as OffscreenCanvas, OnceValue, Overwrite, Performance, PointerCaptureTarget, PointerState, PresetsType, PrimaryCanvasEntry, Properties, Quaternion, R3FRenderer, RaycastableRepresentation, ReactProps, ReconcilerRoot, RenderCallback, RenderProps, RenderTargetOptions, Renderer, RendererConfigExtended, RendererFactory, RendererProps, Root, RootExtension, RootState, RootStore, SetBlock, Size, StorageLike, StorageRecord, StorageStore, Subscription, TSLNodeInput, TextureInput, TextureResult, ThreeCamera, ThreeElement, ThreeElements, ThreeElementsImpl, ThreeEvent, ThreeExports, ThreeToJSXElements, UnblockProps, UseTextureOptions, UseTexturesReturn, Vector2, Vector3, Vector4, VectorRepresentation, Viewport, VisibilityEntry, WebGLDefaultProps, WebGLProps, WebGLShadowConfig, XRManager, XRPointerConfig };
3569
+ export type { Act, Args, ArgsProp, AttachFnType, AttachType, BackgroundConfig, BackgroundProp, BaseRendererProps, Bridge, Camera, CameraProps, CanvasProps, CanvasSchedulerConfig, Catalogue, Color, ColorManagementConfig, ComputeFunction, ConstructorRepresentation, DefaultGLProps, DefaultRendererProps, Disposable, DisposeOptions, DomEvent, Dpr, ElementProps, EnvironmentLoaderProps, EnvironmentProps, EquConfig, Euler, EventHandlers, EventManager, EventProps, Events, Extensions, FiberRoot, FilterFunction, FrameCallback, FrameNextCallback, FrameNextState, FrameState, Frameloop, FromRefMarker, GLProps, GLTFLike, GeometryProps, GeometryTransformProps, GlobalEffectType, GlobalRenderCallback, HostConfig, InferLoadResult, InjectState, InputLike, Instance, InstanceProps, InternalState, Intersection, IntersectionEvent, IsAllOptional, IsOptional, Layers, LegacyInternalState, LegacyRenderer, LegacyRootState, LoaderInstance, LoaderLike, LoaderResult, MappedTextureType, MathProps, MathRepresentation, MathType, MathTypes, Matrix3, Matrix4, Mutable, MutableOrReadonlyParameters, NodeProps, NonFunctionKeys, Object3DMethod, ObjectMap, OffscreenCanvas$1 as OffscreenCanvas, OnceValue, Overwrite, Performance, PointerCaptureTarget, PointerState, PresetsType, PrimaryCanvasEntry, Properties, Quaternion, R3FRenderer, RaycastableRepresentation, ReactProps, ReconcilerRoot, RenderCallback, RenderProps, RenderTargetOptions, Renderer, RendererConfigExtended, RendererFactory, RendererProps, Root, RootExtension, RootState, RootStore, SetBlock, Size, Subscription, TSLNodeInput, TextureInput, TextureResult, ThreeCamera, ThreeElement, ThreeElements, ThreeElementsImpl, ThreeEvent, ThreeExports, ThreeToJSXElements, UnblockProps, UseTextureOptions, UseTexturesReturn, Vector2, Vector3, Vector4, VectorRepresentation, Viewport, VisibilityEntry, WebGLDefaultProps, WebGLProps, WebGLShadowConfig, XRManager, XRPointerConfig };
package/dist/index.mjs CHANGED
@@ -13953,16 +13953,10 @@ const createStore = (invalidate, advance) => {
13953
13953
  },
13954
13954
  setError: (error) => set(() => ({ error })),
13955
13955
  error: null,
13956
- //* TSL State (managed via hooks: useUniforms, useNodes, useBuffers, useGPUStorage, useTextures, useRenderPipeline) ==============================
13957
- uniforms: {},
13958
- nodes: {},
13959
- buffers: {},
13960
- gpuStorage: {},
13956
+ //* Texture registry (useTextures) ==============================
13957
+ // TSL fields (uniforms, nodes, ..., renderPipeline) are added by @react-three/tsl's root extension.
13961
13958
  textures: /* @__PURE__ */ new Map(),
13962
13959
  _textureRefs: /* @__PURE__ */ new Map(),
13963
- renderPipeline: null,
13964
- passes: {},
13965
- _hmrVersion: 0,
13966
13960
  _sizeImperative: false,
13967
13961
  _sizeProps: null,
13968
13962
  previousRoot: void 0,
package/dist/legacy.cjs CHANGED
@@ -13975,16 +13975,10 @@ const createStore = (invalidate, advance) => {
13975
13975
  },
13976
13976
  setError: (error) => set(() => ({ error })),
13977
13977
  error: null,
13978
- //* TSL State (managed via hooks: useUniforms, useNodes, useBuffers, useGPUStorage, useTextures, useRenderPipeline) ==============================
13979
- uniforms: {},
13980
- nodes: {},
13981
- buffers: {},
13982
- gpuStorage: {},
13978
+ //* Texture registry (useTextures) ==============================
13979
+ // TSL fields (uniforms, nodes, ..., renderPipeline) are added by @react-three/tsl's root extension.
13983
13980
  textures: /* @__PURE__ */ new Map(),
13984
13981
  _textureRefs: /* @__PURE__ */ new Map(),
13985
- renderPipeline: null,
13986
- passes: {},
13987
- _hmrVersion: 0,
13988
13982
  _sizeImperative: false,
13989
13983
  _sizeProps: null,
13990
13984
  previousRoot: void 0,