@react-three/fiber 10.0.0-canary.164c7be → 10.0.0-canary.1be335a
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.cjs +344 -145
- package/dist/index.d.cts +49 -25
- package/dist/index.d.mts +49 -25
- package/dist/index.d.ts +49 -25
- package/dist/index.mjs +347 -148
- package/dist/legacy.cjs +299 -100
- package/dist/legacy.d.cts +49 -24
- package/dist/legacy.d.mts +49 -24
- package/dist/legacy.d.ts +49 -24
- package/dist/legacy.mjs +301 -102
- package/dist/webgpu/index.cjs +631 -673
- package/dist/webgpu/index.d.cts +83 -29
- package/dist/webgpu/index.d.mts +83 -29
- package/dist/webgpu/index.d.ts +83 -29
- package/dist/webgpu/index.mjs +634 -676
- package/package.json +3 -3
- package/readme.md +2 -3
package/dist/webgpu/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as three_webgpu from 'three/webgpu';
|
|
2
|
-
import { RenderTarget, WebGPURenderer, Node, StorageTexture, Data3DTexture, CanvasTarget, ShaderNodeObject, 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, 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, Object3D, Frustum, OrthographicCamera, WebGPURendererParameters } from 'three/webgpu';
|
|
2
|
+
import { CubeRenderTarget, RenderTarget, WebGPURenderer, Node, StorageTexture, Data3DTexture, CanvasTarget, ShaderNodeObject, 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, 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, Object3D, Frustum, OrthographicCamera, WebGPURendererParameters } from 'three/webgpu';
|
|
3
3
|
import { Inspector } from 'three/addons/inspector/Inspector.js';
|
|
4
4
|
import * as THREE$1 from 'three';
|
|
5
5
|
import { Color as Color$1, ColorRepresentation, Euler as Euler$1, Loader, RenderTargetOptions as RenderTargetOptions$1 } from 'three';
|
|
@@ -49,12 +49,16 @@ type WebGLShadowMap = never;
|
|
|
49
49
|
|
|
50
50
|
declare const WebGLRenderTarget: any;
|
|
51
51
|
|
|
52
|
+
declare const WebGLCubeRenderTarget: any;
|
|
53
|
+
|
|
52
54
|
var THREE = /*#__PURE__*/_mergeNamespaces({
|
|
53
55
|
__proto__: null,
|
|
56
|
+
CubeRenderTargetCompat: CubeRenderTarget,
|
|
54
57
|
Inspector: Inspector,
|
|
55
58
|
R3F_BUILD_LEGACY: R3F_BUILD_LEGACY,
|
|
56
59
|
R3F_BUILD_WEBGPU: R3F_BUILD_WEBGPU,
|
|
57
60
|
RenderTargetCompat: RenderTarget,
|
|
61
|
+
WebGLCubeRenderTarget: WebGLCubeRenderTarget,
|
|
58
62
|
WebGLRenderTarget: WebGLRenderTarget,
|
|
59
63
|
WebGLRenderer: WebGLRenderer,
|
|
60
64
|
WebGLRendererParameters: WebGLRendererParameters,
|
|
@@ -498,7 +502,7 @@ interface InternalState {
|
|
|
498
502
|
canvasTarget?: CanvasTarget
|
|
499
503
|
/**
|
|
500
504
|
* Whether multi-canvas rendering is active.
|
|
501
|
-
* True when any canvas uses `
|
|
505
|
+
* True when any canvas uses `renderer={{ primaryCanvas: 'id' }}` to share a renderer.
|
|
502
506
|
* When true, setCanvasTarget is called before each render.
|
|
503
507
|
*/
|
|
504
508
|
isMultiCanvas?: boolean
|
|
@@ -596,8 +600,8 @@ interface RootState {
|
|
|
596
600
|
setSize: (width?: number, height?: number, top?: number, left?: number) => void
|
|
597
601
|
/** Shortcut to manual setting the pixel ratio */
|
|
598
602
|
setDpr: (dpr: Dpr) => void
|
|
599
|
-
/** Shortcut to setting frameloop flags */
|
|
600
|
-
setFrameloop: (frameloop
|
|
603
|
+
/** Shortcut to setting frameloop flags. No args resets to 'always'. */
|
|
604
|
+
setFrameloop: (frameloop?: Frameloop) => void
|
|
601
605
|
/** Set error state to propagate to error boundary */
|
|
602
606
|
setError: (error: Error | null) => void
|
|
603
607
|
/** Current error state (null when no error) */
|
|
@@ -615,7 +619,7 @@ interface RootState {
|
|
|
615
619
|
/** Internal: refcount per texture key, driven by mounted useTexture consumers (registry enrollment is on by default) */
|
|
616
620
|
_textureRefs: Map<string, number>
|
|
617
621
|
/** WebGPU RenderPipeline instance - use useRenderPipeline() hook */
|
|
618
|
-
renderPipeline:
|
|
622
|
+
renderPipeline: ThreeRenderPipeline | null
|
|
619
623
|
/** Global TSL pass nodes for render pipeline - use useRenderPipeline() hook */
|
|
620
624
|
passes: Record<string, any>
|
|
621
625
|
/** Internal version counter for HMR - incremented by rebuildNodes/rebuildUniforms to bust memoization */
|
|
@@ -908,8 +912,6 @@ interface Instance<O = any> {
|
|
|
908
912
|
attach?: AttachType<O>
|
|
909
913
|
previousAttach?: any
|
|
910
914
|
isHidden: boolean
|
|
911
|
-
/** Deferred ref props to apply in commitMount */
|
|
912
|
-
deferredRefs?: Array<{ prop: string; ref: React$1.RefObject<any> }>
|
|
913
915
|
/** Set of props that have been applied via once() */
|
|
914
916
|
appliedOnce?: Set<string>
|
|
915
917
|
}
|
|
@@ -1146,10 +1148,21 @@ type RenderTargetOptions = RenderTargetOptions$1
|
|
|
1146
1148
|
//* Global Types ==============================
|
|
1147
1149
|
|
|
1148
1150
|
declare global {
|
|
1149
|
-
/**
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1151
|
+
/**
|
|
1152
|
+
* Uniform node type.
|
|
1153
|
+
*
|
|
1154
|
+
* This is three's own `UniformNode`, not a re-declaration of it. It previously was a
|
|
1155
|
+
* hand-rolled `interface UniformNode<T> extends Node { value: T }`, which shadowed the real
|
|
1156
|
+
* exported type globally — so R3F's ~58 references resolved to an approximation that was
|
|
1157
|
+
* missing members three actually ships (`setName` among them) and had drifted to the wrong
|
|
1158
|
+
* arity when three made `UniformNode` two-parameter.
|
|
1159
|
+
*
|
|
1160
|
+
* three's signature is `UniformNode<TNodeType, TValue>`. R3F only ever varies the value type,
|
|
1161
|
+
* so the node type is fixed to `unknown` and the single parameter is kept for call-site
|
|
1162
|
+
* ergonomics. The result is three's structural type, so members stay in sync with the
|
|
1163
|
+
* installed three instead of needing to be mirrored by hand.
|
|
1164
|
+
*/
|
|
1165
|
+
type UniformNode<T = unknown> = three_webgpu.UniformNode<unknown, T>
|
|
1153
1166
|
|
|
1154
1167
|
/**
|
|
1155
1168
|
* ShaderCallable - the return type of Fn()
|
|
@@ -1294,13 +1307,14 @@ declare module 'three/tsl' {
|
|
|
1294
1307
|
): ShaderCallable<R>
|
|
1295
1308
|
}
|
|
1296
1309
|
|
|
1297
|
-
/**
|
|
1298
|
-
* RenderPipeline Types for useRenderPipeline hook (WebGPU only)
|
|
1299
|
-
*/
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
1310
|
declare global {
|
|
1311
|
+
/**
|
|
1312
|
+
* three's own render pipeline type. Named here so the rest of R3F refers to three's shape
|
|
1313
|
+
* rather than `any`. three r183 renamed `PostProcessing` to `RenderPipeline`; our peer floor
|
|
1314
|
+
* is r185, so the new name is the only one.
|
|
1315
|
+
*/
|
|
1316
|
+
type ThreeRenderPipeline = three_webgpu.RenderPipeline
|
|
1317
|
+
|
|
1304
1318
|
/** Pass record - stores TSL pass nodes for render pipeline */
|
|
1305
1319
|
type PassRecord = Record<string, any>
|
|
1306
1320
|
|
|
@@ -1315,7 +1329,7 @@ declare global {
|
|
|
1315
1329
|
/** Current passes from state */
|
|
1316
1330
|
passes: PassRecord
|
|
1317
1331
|
/** RenderPipeline instance (null if not initialized) */
|
|
1318
|
-
renderPipeline:
|
|
1332
|
+
renderPipeline: ThreeRenderPipeline | null
|
|
1319
1333
|
/** Clear all passes from state */
|
|
1320
1334
|
clearPasses: () => void
|
|
1321
1335
|
/** Reset RenderPipeline entirely (clears PP + passes) */
|
|
@@ -1496,7 +1510,7 @@ declare namespace three_d {
|
|
|
1496
1510
|
* a single WebGPURenderer using Three.js CanvasTarget API.
|
|
1497
1511
|
*
|
|
1498
1512
|
* Primary canvas: Has `id` prop, creates its own renderer, registers here
|
|
1499
|
-
* Secondary canvas: Has `
|
|
1513
|
+
* Secondary canvas: Has `renderer={{ primaryCanvas: 'id' }}`, shares primary's renderer via CanvasTarget
|
|
1500
1514
|
*/
|
|
1501
1515
|
|
|
1502
1516
|
interface PrimaryCanvasEntry {
|
|
@@ -1564,12 +1578,23 @@ type EnvironmentLoaderProps = {
|
|
|
1564
1578
|
* const texture = useEnvironment({ preset: 'sunset' })
|
|
1565
1579
|
* ```
|
|
1566
1580
|
*/
|
|
1567
|
-
declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>): Texture$1<unknown> | CubeTexture
|
|
1581
|
+
declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>): Texture$1<unknown, THREE$1.TextureEventMap> | CubeTexture<unknown>;
|
|
1568
1582
|
declare namespace useEnvironment {
|
|
1569
1583
|
var preload: (preloadOptions?: EnvironmentLoaderPreloadOptions) => void;
|
|
1570
1584
|
var clear: (clearOptions?: EnvironmentLoaderClearOptions) => void;
|
|
1571
1585
|
}
|
|
1572
|
-
|
|
1586
|
+
/**
|
|
1587
|
+
* Options accepted by `useEnvironment.preload`.
|
|
1588
|
+
*
|
|
1589
|
+
* `colorSpace` is deliberately omitted: preload only warms the loader cache, and colorSpace is
|
|
1590
|
+
* applied to the texture by `useEnvironment()` at use time, per consumer. Accepting it here would
|
|
1591
|
+
* advertise an option this function silently ignores.
|
|
1592
|
+
*
|
|
1593
|
+
* This previously read `Omit<…, 'encoding'>` — omitting a key that does not exist on
|
|
1594
|
+
* `EnvironmentLoaderProps`, a leftover from three's pre-`colorSpace` `encoding` API. That made the
|
|
1595
|
+
* type equivalent to the full props, so `colorSpace` was accepted and then dropped on the floor.
|
|
1596
|
+
*/
|
|
1597
|
+
type EnvironmentLoaderPreloadOptions = Omit<EnvironmentLoaderProps, 'colorSpace'>;
|
|
1573
1598
|
type EnvironmentLoaderClearOptions = Pick<EnvironmentLoaderProps, 'files' | 'preset'>;
|
|
1574
1599
|
|
|
1575
1600
|
/**
|
|
@@ -1819,10 +1844,10 @@ declare function getLoader<L extends LoaderLike | ConstructorRepresentation<Load
|
|
|
1819
1844
|
* Note: this hook's caller must be wrapped with `React.Suspense`
|
|
1820
1845
|
* @see https://docs.pmnd.rs/react-three-fiber/api/hooks#useloader
|
|
1821
1846
|
*/
|
|
1822
|
-
declare function useLoader<I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I, extensions?: Extensions<L>, onProgress?: (event: ProgressEvent<EventTarget>) => void): I extends any[] ? LoaderResult<L>[] : LoaderResult<L>;
|
|
1847
|
+
declare function useLoader<I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I, extensions?: Extensions<L>, onProgress?: (event: ProgressEvent<EventTarget>) => void, cacheKey?: InputLike): I extends any[] ? LoaderResult<L>[] : LoaderResult<L>;
|
|
1823
1848
|
declare namespace useLoader {
|
|
1824
|
-
var preload: <I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I, extensions?: Extensions<L>, onProgress?: (event: ProgressEvent<EventTarget>) => void) => void;
|
|
1825
|
-
var clear: <I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I) => void;
|
|
1849
|
+
var preload: <I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I, extensions?: Extensions<L>, onProgress?: (event: ProgressEvent<EventTarget>) => void, cacheKey?: InputLike) => void;
|
|
1850
|
+
var clear: <I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I, cacheKey?: InputLike) => void;
|
|
1826
1851
|
var loader: typeof getLoader;
|
|
1827
1852
|
}
|
|
1828
1853
|
|
|
@@ -3796,9 +3821,12 @@ declare function useUniforms<T extends UniformInputRecord>(uniforms: T): Uniform
|
|
|
3796
3821
|
declare function useUniforms<T extends UniformInputRecord>(uniforms: T, scope: string): UniformsWithUtils<UniformRecord<UniformNode>>;
|
|
3797
3822
|
/**
|
|
3798
3823
|
* Global rebuildUniforms function for HMR integration.
|
|
3799
|
-
*
|
|
3824
|
+
* Invalidates cached uniforms and increments _hmrVersion to trigger re-creation.
|
|
3800
3825
|
* Call this when HMR is detected to refresh all uniform creators.
|
|
3801
3826
|
*
|
|
3827
|
+
* Resolves to the primary store so shared TSL resources rebuild on the
|
|
3828
|
+
* authoritative store.
|
|
3829
|
+
*
|
|
3802
3830
|
* @param store - The R3F store (from useStore or context)
|
|
3803
3831
|
* @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
|
|
3804
3832
|
*/
|
|
@@ -3882,9 +3910,12 @@ declare function useNodes<T extends Record<string, TSLNodeLike>>(creator: NodeCr
|
|
|
3882
3910
|
declare function useNodes<T extends Record<string, TSLNodeLike>>(creator: NodeCreator<T>, scope: string): NodesWithUtils<T>;
|
|
3883
3911
|
/**
|
|
3884
3912
|
* Global rebuildNodes function for HMR integration.
|
|
3885
|
-
*
|
|
3913
|
+
* Invalidates cached nodes and increments _hmrVersion to trigger re-creation.
|
|
3886
3914
|
* Call this when HMR is detected to refresh all node creators.
|
|
3887
3915
|
*
|
|
3916
|
+
* Resolves to the primary store so shared TSL resources rebuild on the
|
|
3917
|
+
* authoritative store.
|
|
3918
|
+
*
|
|
3888
3919
|
* @param store - The R3F store (from useStore or context)
|
|
3889
3920
|
* @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
|
|
3890
3921
|
*/
|
|
@@ -3961,9 +3992,12 @@ declare function useBuffers<T extends Record<string, BufferLike>>(creator: Buffe
|
|
|
3961
3992
|
declare function useBuffers<T extends Record<string, BufferLike>>(creator: BufferCreator<T>, scope: string): BuffersWithUtils<T>;
|
|
3962
3993
|
/**
|
|
3963
3994
|
* Global rebuildBuffers function for HMR integration.
|
|
3964
|
-
*
|
|
3995
|
+
* Invalidates cached buffers and increments _hmrVersion to trigger re-creation.
|
|
3965
3996
|
* Call this when HMR is detected to refresh all buffer creators.
|
|
3966
3997
|
*
|
|
3998
|
+
* Resolves to the primary store so shared TSL resources rebuild on the
|
|
3999
|
+
* authoritative store.
|
|
4000
|
+
*
|
|
3967
4001
|
* @param store - The R3F store (from useStore or context)
|
|
3968
4002
|
* @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
|
|
3969
4003
|
*/
|
|
@@ -3995,14 +4029,34 @@ declare function useGPUStorage<T extends Record<string, StorageLike>>(creator: S
|
|
|
3995
4029
|
declare function useGPUStorage<T extends Record<string, StorageLike>>(creator: StorageCreator<T>, scope: string): StorageWithUtils<T>;
|
|
3996
4030
|
/**
|
|
3997
4031
|
* Global rebuildStorage function for HMR integration.
|
|
3998
|
-
*
|
|
4032
|
+
* Invalidates cached storage and increments _hmrVersion to trigger re-creation.
|
|
3999
4033
|
* Call this when HMR is detected to refresh all storage creators.
|
|
4000
4034
|
*
|
|
4035
|
+
* Resolves to the primary store so shared TSL resources rebuild on the
|
|
4036
|
+
* authoritative store.
|
|
4037
|
+
*
|
|
4001
4038
|
* @param store - The R3F store (from useStore or context)
|
|
4002
4039
|
* @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
|
|
4003
4040
|
*/
|
|
4004
4041
|
declare function rebuildAllStorage(store: ReturnType<typeof useStore>, scope?: string): void;
|
|
4005
4042
|
|
|
4043
|
+
/**
|
|
4044
|
+
* Re-export from core - useTextures is now a core R3F hook (a reactive Texture registry).
|
|
4045
|
+
*
|
|
4046
|
+
* This file maintains backwards compatibility for existing webgpu imports.
|
|
4047
|
+
*/
|
|
4048
|
+
|
|
4049
|
+
/**
|
|
4050
|
+
* @deprecated The registry now stores plain `Texture` objects, not TSL nodes. Use `Texture` directly.
|
|
4051
|
+
* Kept as an alias for backwards compatibility.
|
|
4052
|
+
*/
|
|
4053
|
+
type TextureEntry = Texture$1;
|
|
4054
|
+
/**
|
|
4055
|
+
* @deprecated The registry now stores plain `Texture` objects, not TSL nodes. Use `Texture` directly.
|
|
4056
|
+
* Kept as an alias for backwards compatibility.
|
|
4057
|
+
*/
|
|
4058
|
+
type TextureNode = Texture$1;
|
|
4059
|
+
|
|
4006
4060
|
interface TextureOperations {
|
|
4007
4061
|
add: (key: string, value: any) => void;
|
|
4008
4062
|
addMultiple: (items: Map<string, any> | Record<string, any>) => void;
|
|
@@ -4098,4 +4152,4 @@ interface WebGPURootState extends Omit<RootState, 'renderer' | 'gl' | 'internal'
|
|
|
4098
4152
|
}
|
|
4099
4153
|
|
|
4100
4154
|
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, act, addAfterEffect, addEffect, addTail, advance, applyProps, attach, buildGraph, calculateDpr, clearNodeScope, clearRootNodes, clearRootUniforms, clearScope, context, createEvents, createPointerEvents, createPortal, createRoot, createScopedStore, createStore, createTextureOperations, 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, rebuildAllBuffers, rebuildAllNodes, rebuildAllStorage, rebuildAllUniforms, reconciler, registerPrimary, removeInteractivity, removeNodes, removeUniforms, resolve, unmountComponentAtNode, unregisterPrimary, updateCamera, updateFrustum, useBridge, useBuffers, useEnvironment, useFrame, useGPUStorage, useGraph, useInstanceHandle, useIsomorphicLayoutEffect, useLoader, useLocalNodes, useMutableCallback, useNodes, useRenderPipeline, useRenderTarget, useStore, useTexture, useTextures, useThree, useUniform, useUniforms, waitForPrimary };
|
|
4101
|
-
export type { Act, Args, ArgsProp, AttachFnType, AttachType, BackgroundConfig, BackgroundProp, BaseRendererProps, Bridge, BufferCreator, BufferLike, BufferRecord, BufferStore, BuffersWithUtils, Camera, CameraProps, CanvasProps, CanvasSchedulerConfig, Catalogue, ClearBuffersFn, ClearNodesFn, ClearStorageFn, ClearUniformsFn, Color, ColorManagementConfig, ComputeFunction, ConstructorRepresentation, CreatorState, DefaultGLProps, DefaultRendererProps, Disposable, DisposeBuffersFn, DisposeOptions, DisposeStorageFn, DomEvent, Dpr, ElementProps, EnvironmentLoaderProps, EnvironmentProps, EquConfig, Euler, EventHandlers, EventManager, EventProps, Events, Extensions, FiberRoot, FilterFunction, FrameCallback, FrameNextCallback, FrameNextState, FrameState, Frameloop, GLProps, GLTFLike, GeometryProps, GeometryTransformProps, GlobalEffectType, GlobalRenderCallback, HostConfig, InferLoadResult, InjectState, InputLike, Instance, InstanceProps, WebGPUInternalState as InternalState, Intersection, IntersectionEvent, IsAllOptional, IsOptional, Layers, LegacyInternalState, LegacyRenderer, LegacyRootState, LoaderInstance, LoaderLike, LoaderResult, LocalNodeCreator, MappedTextureType, MathProps, MathRepresentation, MathType, MathTypes, Matrix3, Matrix4, Mutable, MutableOrReadonlyParameters, NodeCreator, NodeProps, NodeRecord, NodesWithUtils, NonFunctionKeys, ObjectMap, OffscreenCanvas$1 as OffscreenCanvas, Overwrite, Performance, PointerCaptureTarget, PointerState, PresetsType, PrimaryCanvasEntry, Properties, Quaternion, WebGPUR3FRenderer as R3FRenderer, RaycastableRepresentation, ReactProps, RebuildBuffersFn, RebuildNodesFn, RebuildStorageFn, RebuildUniformsFn, ReconcilerRoot, RemoveBuffersFn, RemoveNodesFn, RemoveStorageFn, RemoveUniformsFn, RenderCallback, RenderProps, RenderTargetOptions, Renderer, RendererConfigExtended, RendererFactory, RendererProps, Root, WebGPURootState as RootState, RootStore, ScopedStoreType, SetBlock, Size, StorageCreator, StorageLike, StorageRecord, StorageStore, StorageWithUtils, Subscription, TSLNode, TSLNodeInput, TextureInput, TextureOperations, TextureResult, ThreeCamera, ThreeElement, ThreeElements, ThreeElementsImpl, ThreeEvent, ThreeExports, ThreeToJSXElements, UnblockProps, UniformCreator, UniformValue, UniformsWithUtils, UseTextureOptions, UseTexturesReturn, Vector2, Vector3, Vector4, VectorRepresentation, Viewport, VisibilityEntry, WebGLDefaultProps, WebGLProps, WebGLShadowConfig, WebGPUDefaultProps, WebGPUProps, WebGPUShadowConfig, XRManager, XRPointerConfig };
|
|
4155
|
+
export type { Act, Args, ArgsProp, AttachFnType, AttachType, BackgroundConfig, BackgroundProp, BaseRendererProps, Bridge, BufferCreator, BufferLike, BufferRecord, BufferStore, BuffersWithUtils, Camera, CameraProps, CanvasProps, CanvasSchedulerConfig, Catalogue, ClearBuffersFn, ClearNodesFn, ClearStorageFn, ClearUniformsFn, Color, ColorManagementConfig, ComputeFunction, ConstructorRepresentation, CreatorState, DefaultGLProps, DefaultRendererProps, Disposable, DisposeBuffersFn, DisposeOptions, DisposeStorageFn, DomEvent, Dpr, ElementProps, EnvironmentLoaderProps, EnvironmentProps, EquConfig, Euler, EventHandlers, EventManager, EventProps, Events, Extensions, FiberRoot, FilterFunction, FrameCallback, FrameNextCallback, FrameNextState, FrameState, Frameloop, GLProps, GLTFLike, GeometryProps, GeometryTransformProps, GlobalEffectType, GlobalRenderCallback, HostConfig, InferLoadResult, InjectState, InputLike, Instance, InstanceProps, WebGPUInternalState as InternalState, Intersection, IntersectionEvent, IsAllOptional, IsOptional, Layers, LegacyInternalState, LegacyRenderer, LegacyRootState, LoaderInstance, LoaderLike, LoaderResult, LocalNodeCreator, MappedTextureType, MathProps, MathRepresentation, MathType, MathTypes, Matrix3, Matrix4, Mutable, MutableOrReadonlyParameters, NodeCreator, NodeProps, NodeRecord, NodesWithUtils, NonFunctionKeys, ObjectMap, OffscreenCanvas$1 as OffscreenCanvas, Overwrite, Performance, PointerCaptureTarget, PointerState, PresetsType, PrimaryCanvasEntry, Properties, Quaternion, WebGPUR3FRenderer as R3FRenderer, RaycastableRepresentation, ReactProps, RebuildBuffersFn, RebuildNodesFn, RebuildStorageFn, RebuildUniformsFn, ReconcilerRoot, RemoveBuffersFn, RemoveNodesFn, RemoveStorageFn, RemoveUniformsFn, RenderCallback, RenderProps, RenderTargetOptions, Renderer, RendererConfigExtended, RendererFactory, RendererProps, Root, WebGPURootState as RootState, RootStore, ScopedStoreType, SetBlock, Size, StorageCreator, StorageLike, StorageRecord, StorageStore, StorageWithUtils, Subscription, TSLNode, TSLNodeInput, TextureEntry, TextureInput, TextureNode, TextureOperations, TextureResult, ThreeCamera, ThreeElement, ThreeElements, ThreeElementsImpl, ThreeEvent, ThreeExports, ThreeToJSXElements, UnblockProps, UniformCreator, UniformValue, UniformsWithUtils, UseTextureOptions, UseTexturesReturn, Vector2, Vector3, Vector4, VectorRepresentation, Viewport, VisibilityEntry, WebGLDefaultProps, WebGLProps, WebGLShadowConfig, WebGPUDefaultProps, WebGPUProps, WebGPUShadowConfig, XRManager, XRPointerConfig };
|
package/dist/webgpu/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as three_webgpu from 'three/webgpu';
|
|
2
|
-
import { RenderTarget, WebGPURenderer, Node, StorageTexture, Data3DTexture, CanvasTarget, ShaderNodeObject, 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, 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, Object3D, Frustum, OrthographicCamera, WebGPURendererParameters } from 'three/webgpu';
|
|
2
|
+
import { CubeRenderTarget, RenderTarget, WebGPURenderer, Node, StorageTexture, Data3DTexture, CanvasTarget, ShaderNodeObject, 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, 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, Object3D, Frustum, OrthographicCamera, WebGPURendererParameters } from 'three/webgpu';
|
|
3
3
|
import { Inspector } from 'three/addons/inspector/Inspector.js';
|
|
4
4
|
import * as THREE$1 from 'three';
|
|
5
5
|
import { Color as Color$1, ColorRepresentation, Euler as Euler$1, Loader, RenderTargetOptions as RenderTargetOptions$1 } from 'three';
|
|
@@ -49,12 +49,16 @@ type WebGLShadowMap = never;
|
|
|
49
49
|
|
|
50
50
|
declare const WebGLRenderTarget: any;
|
|
51
51
|
|
|
52
|
+
declare const WebGLCubeRenderTarget: any;
|
|
53
|
+
|
|
52
54
|
var THREE = /*#__PURE__*/_mergeNamespaces({
|
|
53
55
|
__proto__: null,
|
|
56
|
+
CubeRenderTargetCompat: CubeRenderTarget,
|
|
54
57
|
Inspector: Inspector,
|
|
55
58
|
R3F_BUILD_LEGACY: R3F_BUILD_LEGACY,
|
|
56
59
|
R3F_BUILD_WEBGPU: R3F_BUILD_WEBGPU,
|
|
57
60
|
RenderTargetCompat: RenderTarget,
|
|
61
|
+
WebGLCubeRenderTarget: WebGLCubeRenderTarget,
|
|
58
62
|
WebGLRenderTarget: WebGLRenderTarget,
|
|
59
63
|
WebGLRenderer: WebGLRenderer,
|
|
60
64
|
WebGLRendererParameters: WebGLRendererParameters,
|
|
@@ -498,7 +502,7 @@ interface InternalState {
|
|
|
498
502
|
canvasTarget?: CanvasTarget
|
|
499
503
|
/**
|
|
500
504
|
* Whether multi-canvas rendering is active.
|
|
501
|
-
* True when any canvas uses `
|
|
505
|
+
* True when any canvas uses `renderer={{ primaryCanvas: 'id' }}` to share a renderer.
|
|
502
506
|
* When true, setCanvasTarget is called before each render.
|
|
503
507
|
*/
|
|
504
508
|
isMultiCanvas?: boolean
|
|
@@ -596,8 +600,8 @@ interface RootState {
|
|
|
596
600
|
setSize: (width?: number, height?: number, top?: number, left?: number) => void
|
|
597
601
|
/** Shortcut to manual setting the pixel ratio */
|
|
598
602
|
setDpr: (dpr: Dpr) => void
|
|
599
|
-
/** Shortcut to setting frameloop flags */
|
|
600
|
-
setFrameloop: (frameloop
|
|
603
|
+
/** Shortcut to setting frameloop flags. No args resets to 'always'. */
|
|
604
|
+
setFrameloop: (frameloop?: Frameloop) => void
|
|
601
605
|
/** Set error state to propagate to error boundary */
|
|
602
606
|
setError: (error: Error | null) => void
|
|
603
607
|
/** Current error state (null when no error) */
|
|
@@ -615,7 +619,7 @@ interface RootState {
|
|
|
615
619
|
/** Internal: refcount per texture key, driven by mounted useTexture consumers (registry enrollment is on by default) */
|
|
616
620
|
_textureRefs: Map<string, number>
|
|
617
621
|
/** WebGPU RenderPipeline instance - use useRenderPipeline() hook */
|
|
618
|
-
renderPipeline:
|
|
622
|
+
renderPipeline: ThreeRenderPipeline | null
|
|
619
623
|
/** Global TSL pass nodes for render pipeline - use useRenderPipeline() hook */
|
|
620
624
|
passes: Record<string, any>
|
|
621
625
|
/** Internal version counter for HMR - incremented by rebuildNodes/rebuildUniforms to bust memoization */
|
|
@@ -908,8 +912,6 @@ interface Instance<O = any> {
|
|
|
908
912
|
attach?: AttachType<O>
|
|
909
913
|
previousAttach?: any
|
|
910
914
|
isHidden: boolean
|
|
911
|
-
/** Deferred ref props to apply in commitMount */
|
|
912
|
-
deferredRefs?: Array<{ prop: string; ref: React$1.RefObject<any> }>
|
|
913
915
|
/** Set of props that have been applied via once() */
|
|
914
916
|
appliedOnce?: Set<string>
|
|
915
917
|
}
|
|
@@ -1146,10 +1148,21 @@ type RenderTargetOptions = RenderTargetOptions$1
|
|
|
1146
1148
|
//* Global Types ==============================
|
|
1147
1149
|
|
|
1148
1150
|
declare global {
|
|
1149
|
-
/**
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1151
|
+
/**
|
|
1152
|
+
* Uniform node type.
|
|
1153
|
+
*
|
|
1154
|
+
* This is three's own `UniformNode`, not a re-declaration of it. It previously was a
|
|
1155
|
+
* hand-rolled `interface UniformNode<T> extends Node { value: T }`, which shadowed the real
|
|
1156
|
+
* exported type globally — so R3F's ~58 references resolved to an approximation that was
|
|
1157
|
+
* missing members three actually ships (`setName` among them) and had drifted to the wrong
|
|
1158
|
+
* arity when three made `UniformNode` two-parameter.
|
|
1159
|
+
*
|
|
1160
|
+
* three's signature is `UniformNode<TNodeType, TValue>`. R3F only ever varies the value type,
|
|
1161
|
+
* so the node type is fixed to `unknown` and the single parameter is kept for call-site
|
|
1162
|
+
* ergonomics. The result is three's structural type, so members stay in sync with the
|
|
1163
|
+
* installed three instead of needing to be mirrored by hand.
|
|
1164
|
+
*/
|
|
1165
|
+
type UniformNode<T = unknown> = three_webgpu.UniformNode<unknown, T>
|
|
1153
1166
|
|
|
1154
1167
|
/**
|
|
1155
1168
|
* ShaderCallable - the return type of Fn()
|
|
@@ -1294,13 +1307,14 @@ declare module 'three/tsl' {
|
|
|
1294
1307
|
): ShaderCallable<R>
|
|
1295
1308
|
}
|
|
1296
1309
|
|
|
1297
|
-
/**
|
|
1298
|
-
* RenderPipeline Types for useRenderPipeline hook (WebGPU only)
|
|
1299
|
-
*/
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
1310
|
declare global {
|
|
1311
|
+
/**
|
|
1312
|
+
* three's own render pipeline type. Named here so the rest of R3F refers to three's shape
|
|
1313
|
+
* rather than `any`. three r183 renamed `PostProcessing` to `RenderPipeline`; our peer floor
|
|
1314
|
+
* is r185, so the new name is the only one.
|
|
1315
|
+
*/
|
|
1316
|
+
type ThreeRenderPipeline = three_webgpu.RenderPipeline
|
|
1317
|
+
|
|
1304
1318
|
/** Pass record - stores TSL pass nodes for render pipeline */
|
|
1305
1319
|
type PassRecord = Record<string, any>
|
|
1306
1320
|
|
|
@@ -1315,7 +1329,7 @@ declare global {
|
|
|
1315
1329
|
/** Current passes from state */
|
|
1316
1330
|
passes: PassRecord
|
|
1317
1331
|
/** RenderPipeline instance (null if not initialized) */
|
|
1318
|
-
renderPipeline:
|
|
1332
|
+
renderPipeline: ThreeRenderPipeline | null
|
|
1319
1333
|
/** Clear all passes from state */
|
|
1320
1334
|
clearPasses: () => void
|
|
1321
1335
|
/** Reset RenderPipeline entirely (clears PP + passes) */
|
|
@@ -1496,7 +1510,7 @@ declare namespace three_d {
|
|
|
1496
1510
|
* a single WebGPURenderer using Three.js CanvasTarget API.
|
|
1497
1511
|
*
|
|
1498
1512
|
* Primary canvas: Has `id` prop, creates its own renderer, registers here
|
|
1499
|
-
* Secondary canvas: Has `
|
|
1513
|
+
* Secondary canvas: Has `renderer={{ primaryCanvas: 'id' }}`, shares primary's renderer via CanvasTarget
|
|
1500
1514
|
*/
|
|
1501
1515
|
|
|
1502
1516
|
interface PrimaryCanvasEntry {
|
|
@@ -1564,12 +1578,23 @@ type EnvironmentLoaderProps = {
|
|
|
1564
1578
|
* const texture = useEnvironment({ preset: 'sunset' })
|
|
1565
1579
|
* ```
|
|
1566
1580
|
*/
|
|
1567
|
-
declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>): Texture$1<unknown> | CubeTexture
|
|
1581
|
+
declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>): Texture$1<unknown, THREE$1.TextureEventMap> | CubeTexture<unknown>;
|
|
1568
1582
|
declare namespace useEnvironment {
|
|
1569
1583
|
var preload: (preloadOptions?: EnvironmentLoaderPreloadOptions) => void;
|
|
1570
1584
|
var clear: (clearOptions?: EnvironmentLoaderClearOptions) => void;
|
|
1571
1585
|
}
|
|
1572
|
-
|
|
1586
|
+
/**
|
|
1587
|
+
* Options accepted by `useEnvironment.preload`.
|
|
1588
|
+
*
|
|
1589
|
+
* `colorSpace` is deliberately omitted: preload only warms the loader cache, and colorSpace is
|
|
1590
|
+
* applied to the texture by `useEnvironment()` at use time, per consumer. Accepting it here would
|
|
1591
|
+
* advertise an option this function silently ignores.
|
|
1592
|
+
*
|
|
1593
|
+
* This previously read `Omit<…, 'encoding'>` — omitting a key that does not exist on
|
|
1594
|
+
* `EnvironmentLoaderProps`, a leftover from three's pre-`colorSpace` `encoding` API. That made the
|
|
1595
|
+
* type equivalent to the full props, so `colorSpace` was accepted and then dropped on the floor.
|
|
1596
|
+
*/
|
|
1597
|
+
type EnvironmentLoaderPreloadOptions = Omit<EnvironmentLoaderProps, 'colorSpace'>;
|
|
1573
1598
|
type EnvironmentLoaderClearOptions = Pick<EnvironmentLoaderProps, 'files' | 'preset'>;
|
|
1574
1599
|
|
|
1575
1600
|
/**
|
|
@@ -1819,10 +1844,10 @@ declare function getLoader<L extends LoaderLike | ConstructorRepresentation<Load
|
|
|
1819
1844
|
* Note: this hook's caller must be wrapped with `React.Suspense`
|
|
1820
1845
|
* @see https://docs.pmnd.rs/react-three-fiber/api/hooks#useloader
|
|
1821
1846
|
*/
|
|
1822
|
-
declare function useLoader<I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I, extensions?: Extensions<L>, onProgress?: (event: ProgressEvent<EventTarget>) => void): I extends any[] ? LoaderResult<L>[] : LoaderResult<L>;
|
|
1847
|
+
declare function useLoader<I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I, extensions?: Extensions<L>, onProgress?: (event: ProgressEvent<EventTarget>) => void, cacheKey?: InputLike): I extends any[] ? LoaderResult<L>[] : LoaderResult<L>;
|
|
1823
1848
|
declare namespace useLoader {
|
|
1824
|
-
var preload: <I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I, extensions?: Extensions<L>, onProgress?: (event: ProgressEvent<EventTarget>) => void) => void;
|
|
1825
|
-
var clear: <I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I) => void;
|
|
1849
|
+
var preload: <I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I, extensions?: Extensions<L>, onProgress?: (event: ProgressEvent<EventTarget>) => void, cacheKey?: InputLike) => void;
|
|
1850
|
+
var clear: <I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I, cacheKey?: InputLike) => void;
|
|
1826
1851
|
var loader: typeof getLoader;
|
|
1827
1852
|
}
|
|
1828
1853
|
|
|
@@ -3796,9 +3821,12 @@ declare function useUniforms<T extends UniformInputRecord>(uniforms: T): Uniform
|
|
|
3796
3821
|
declare function useUniforms<T extends UniformInputRecord>(uniforms: T, scope: string): UniformsWithUtils<UniformRecord<UniformNode>>;
|
|
3797
3822
|
/**
|
|
3798
3823
|
* Global rebuildUniforms function for HMR integration.
|
|
3799
|
-
*
|
|
3824
|
+
* Invalidates cached uniforms and increments _hmrVersion to trigger re-creation.
|
|
3800
3825
|
* Call this when HMR is detected to refresh all uniform creators.
|
|
3801
3826
|
*
|
|
3827
|
+
* Resolves to the primary store so shared TSL resources rebuild on the
|
|
3828
|
+
* authoritative store.
|
|
3829
|
+
*
|
|
3802
3830
|
* @param store - The R3F store (from useStore or context)
|
|
3803
3831
|
* @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
|
|
3804
3832
|
*/
|
|
@@ -3882,9 +3910,12 @@ declare function useNodes<T extends Record<string, TSLNodeLike>>(creator: NodeCr
|
|
|
3882
3910
|
declare function useNodes<T extends Record<string, TSLNodeLike>>(creator: NodeCreator<T>, scope: string): NodesWithUtils<T>;
|
|
3883
3911
|
/**
|
|
3884
3912
|
* Global rebuildNodes function for HMR integration.
|
|
3885
|
-
*
|
|
3913
|
+
* Invalidates cached nodes and increments _hmrVersion to trigger re-creation.
|
|
3886
3914
|
* Call this when HMR is detected to refresh all node creators.
|
|
3887
3915
|
*
|
|
3916
|
+
* Resolves to the primary store so shared TSL resources rebuild on the
|
|
3917
|
+
* authoritative store.
|
|
3918
|
+
*
|
|
3888
3919
|
* @param store - The R3F store (from useStore or context)
|
|
3889
3920
|
* @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
|
|
3890
3921
|
*/
|
|
@@ -3961,9 +3992,12 @@ declare function useBuffers<T extends Record<string, BufferLike>>(creator: Buffe
|
|
|
3961
3992
|
declare function useBuffers<T extends Record<string, BufferLike>>(creator: BufferCreator<T>, scope: string): BuffersWithUtils<T>;
|
|
3962
3993
|
/**
|
|
3963
3994
|
* Global rebuildBuffers function for HMR integration.
|
|
3964
|
-
*
|
|
3995
|
+
* Invalidates cached buffers and increments _hmrVersion to trigger re-creation.
|
|
3965
3996
|
* Call this when HMR is detected to refresh all buffer creators.
|
|
3966
3997
|
*
|
|
3998
|
+
* Resolves to the primary store so shared TSL resources rebuild on the
|
|
3999
|
+
* authoritative store.
|
|
4000
|
+
*
|
|
3967
4001
|
* @param store - The R3F store (from useStore or context)
|
|
3968
4002
|
* @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
|
|
3969
4003
|
*/
|
|
@@ -3995,14 +4029,34 @@ declare function useGPUStorage<T extends Record<string, StorageLike>>(creator: S
|
|
|
3995
4029
|
declare function useGPUStorage<T extends Record<string, StorageLike>>(creator: StorageCreator<T>, scope: string): StorageWithUtils<T>;
|
|
3996
4030
|
/**
|
|
3997
4031
|
* Global rebuildStorage function for HMR integration.
|
|
3998
|
-
*
|
|
4032
|
+
* Invalidates cached storage and increments _hmrVersion to trigger re-creation.
|
|
3999
4033
|
* Call this when HMR is detected to refresh all storage creators.
|
|
4000
4034
|
*
|
|
4035
|
+
* Resolves to the primary store so shared TSL resources rebuild on the
|
|
4036
|
+
* authoritative store.
|
|
4037
|
+
*
|
|
4001
4038
|
* @param store - The R3F store (from useStore or context)
|
|
4002
4039
|
* @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
|
|
4003
4040
|
*/
|
|
4004
4041
|
declare function rebuildAllStorage(store: ReturnType<typeof useStore>, scope?: string): void;
|
|
4005
4042
|
|
|
4043
|
+
/**
|
|
4044
|
+
* Re-export from core - useTextures is now a core R3F hook (a reactive Texture registry).
|
|
4045
|
+
*
|
|
4046
|
+
* This file maintains backwards compatibility for existing webgpu imports.
|
|
4047
|
+
*/
|
|
4048
|
+
|
|
4049
|
+
/**
|
|
4050
|
+
* @deprecated The registry now stores plain `Texture` objects, not TSL nodes. Use `Texture` directly.
|
|
4051
|
+
* Kept as an alias for backwards compatibility.
|
|
4052
|
+
*/
|
|
4053
|
+
type TextureEntry = Texture$1;
|
|
4054
|
+
/**
|
|
4055
|
+
* @deprecated The registry now stores plain `Texture` objects, not TSL nodes. Use `Texture` directly.
|
|
4056
|
+
* Kept as an alias for backwards compatibility.
|
|
4057
|
+
*/
|
|
4058
|
+
type TextureNode = Texture$1;
|
|
4059
|
+
|
|
4006
4060
|
interface TextureOperations {
|
|
4007
4061
|
add: (key: string, value: any) => void;
|
|
4008
4062
|
addMultiple: (items: Map<string, any> | Record<string, any>) => void;
|
|
@@ -4098,4 +4152,4 @@ interface WebGPURootState extends Omit<RootState, 'renderer' | 'gl' | 'internal'
|
|
|
4098
4152
|
}
|
|
4099
4153
|
|
|
4100
4154
|
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, act, addAfterEffect, addEffect, addTail, advance, applyProps, attach, buildGraph, calculateDpr, clearNodeScope, clearRootNodes, clearRootUniforms, clearScope, context, createEvents, createPointerEvents, createPortal, createRoot, createScopedStore, createStore, createTextureOperations, 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, rebuildAllBuffers, rebuildAllNodes, rebuildAllStorage, rebuildAllUniforms, reconciler, registerPrimary, removeInteractivity, removeNodes, removeUniforms, resolve, unmountComponentAtNode, unregisterPrimary, updateCamera, updateFrustum, useBridge, useBuffers, useEnvironment, useFrame, useGPUStorage, useGraph, useInstanceHandle, useIsomorphicLayoutEffect, useLoader, useLocalNodes, useMutableCallback, useNodes, useRenderPipeline, useRenderTarget, useStore, useTexture, useTextures, useThree, useUniform, useUniforms, waitForPrimary };
|
|
4101
|
-
export type { Act, Args, ArgsProp, AttachFnType, AttachType, BackgroundConfig, BackgroundProp, BaseRendererProps, Bridge, BufferCreator, BufferLike, BufferRecord, BufferStore, BuffersWithUtils, Camera, CameraProps, CanvasProps, CanvasSchedulerConfig, Catalogue, ClearBuffersFn, ClearNodesFn, ClearStorageFn, ClearUniformsFn, Color, ColorManagementConfig, ComputeFunction, ConstructorRepresentation, CreatorState, DefaultGLProps, DefaultRendererProps, Disposable, DisposeBuffersFn, DisposeOptions, DisposeStorageFn, DomEvent, Dpr, ElementProps, EnvironmentLoaderProps, EnvironmentProps, EquConfig, Euler, EventHandlers, EventManager, EventProps, Events, Extensions, FiberRoot, FilterFunction, FrameCallback, FrameNextCallback, FrameNextState, FrameState, Frameloop, GLProps, GLTFLike, GeometryProps, GeometryTransformProps, GlobalEffectType, GlobalRenderCallback, HostConfig, InferLoadResult, InjectState, InputLike, Instance, InstanceProps, WebGPUInternalState as InternalState, Intersection, IntersectionEvent, IsAllOptional, IsOptional, Layers, LegacyInternalState, LegacyRenderer, LegacyRootState, LoaderInstance, LoaderLike, LoaderResult, LocalNodeCreator, MappedTextureType, MathProps, MathRepresentation, MathType, MathTypes, Matrix3, Matrix4, Mutable, MutableOrReadonlyParameters, NodeCreator, NodeProps, NodeRecord, NodesWithUtils, NonFunctionKeys, ObjectMap, OffscreenCanvas$1 as OffscreenCanvas, Overwrite, Performance, PointerCaptureTarget, PointerState, PresetsType, PrimaryCanvasEntry, Properties, Quaternion, WebGPUR3FRenderer as R3FRenderer, RaycastableRepresentation, ReactProps, RebuildBuffersFn, RebuildNodesFn, RebuildStorageFn, RebuildUniformsFn, ReconcilerRoot, RemoveBuffersFn, RemoveNodesFn, RemoveStorageFn, RemoveUniformsFn, RenderCallback, RenderProps, RenderTargetOptions, Renderer, RendererConfigExtended, RendererFactory, RendererProps, Root, WebGPURootState as RootState, RootStore, ScopedStoreType, SetBlock, Size, StorageCreator, StorageLike, StorageRecord, StorageStore, StorageWithUtils, Subscription, TSLNode, TSLNodeInput, TextureInput, TextureOperations, TextureResult, ThreeCamera, ThreeElement, ThreeElements, ThreeElementsImpl, ThreeEvent, ThreeExports, ThreeToJSXElements, UnblockProps, UniformCreator, UniformValue, UniformsWithUtils, UseTextureOptions, UseTexturesReturn, Vector2, Vector3, Vector4, VectorRepresentation, Viewport, VisibilityEntry, WebGLDefaultProps, WebGLProps, WebGLShadowConfig, WebGPUDefaultProps, WebGPUProps, WebGPUShadowConfig, XRManager, XRPointerConfig };
|
|
4155
|
+
export type { Act, Args, ArgsProp, AttachFnType, AttachType, BackgroundConfig, BackgroundProp, BaseRendererProps, Bridge, BufferCreator, BufferLike, BufferRecord, BufferStore, BuffersWithUtils, Camera, CameraProps, CanvasProps, CanvasSchedulerConfig, Catalogue, ClearBuffersFn, ClearNodesFn, ClearStorageFn, ClearUniformsFn, Color, ColorManagementConfig, ComputeFunction, ConstructorRepresentation, CreatorState, DefaultGLProps, DefaultRendererProps, Disposable, DisposeBuffersFn, DisposeOptions, DisposeStorageFn, DomEvent, Dpr, ElementProps, EnvironmentLoaderProps, EnvironmentProps, EquConfig, Euler, EventHandlers, EventManager, EventProps, Events, Extensions, FiberRoot, FilterFunction, FrameCallback, FrameNextCallback, FrameNextState, FrameState, Frameloop, GLProps, GLTFLike, GeometryProps, GeometryTransformProps, GlobalEffectType, GlobalRenderCallback, HostConfig, InferLoadResult, InjectState, InputLike, Instance, InstanceProps, WebGPUInternalState as InternalState, Intersection, IntersectionEvent, IsAllOptional, IsOptional, Layers, LegacyInternalState, LegacyRenderer, LegacyRootState, LoaderInstance, LoaderLike, LoaderResult, LocalNodeCreator, MappedTextureType, MathProps, MathRepresentation, MathType, MathTypes, Matrix3, Matrix4, Mutable, MutableOrReadonlyParameters, NodeCreator, NodeProps, NodeRecord, NodesWithUtils, NonFunctionKeys, ObjectMap, OffscreenCanvas$1 as OffscreenCanvas, Overwrite, Performance, PointerCaptureTarget, PointerState, PresetsType, PrimaryCanvasEntry, Properties, Quaternion, WebGPUR3FRenderer as R3FRenderer, RaycastableRepresentation, ReactProps, RebuildBuffersFn, RebuildNodesFn, RebuildStorageFn, RebuildUniformsFn, ReconcilerRoot, RemoveBuffersFn, RemoveNodesFn, RemoveStorageFn, RemoveUniformsFn, RenderCallback, RenderProps, RenderTargetOptions, Renderer, RendererConfigExtended, RendererFactory, RendererProps, Root, WebGPURootState as RootState, RootStore, ScopedStoreType, SetBlock, Size, StorageCreator, StorageLike, StorageRecord, StorageStore, StorageWithUtils, Subscription, TSLNode, TSLNodeInput, TextureEntry, TextureInput, TextureNode, TextureOperations, TextureResult, ThreeCamera, ThreeElement, ThreeElements, ThreeElementsImpl, ThreeEvent, ThreeExports, ThreeToJSXElements, UnblockProps, UniformCreator, UniformValue, UniformsWithUtils, UseTextureOptions, UseTexturesReturn, Vector2, Vector3, Vector4, VectorRepresentation, Viewport, VisibilityEntry, WebGLDefaultProps, WebGLProps, WebGLShadowConfig, WebGPUDefaultProps, WebGPUProps, WebGPUShadowConfig, XRManager, XRPointerConfig };
|