@react-three/fiber 10.0.0-canary.4f316e6 → 10.0.0-canary.5140ac8

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.
Files changed (37) hide show
  1. package/dist/chunks/webgpu.cjs +37 -0
  2. package/dist/chunks/webgpu.mjs +21 -0
  3. package/dist/extension.cjs +13 -0
  4. package/dist/extension.d.cts +19 -0
  5. package/dist/extension.d.mts +19 -0
  6. package/dist/extension.d.ts +19 -0
  7. package/dist/extension.mjs +1 -0
  8. package/dist/index.cjs +97 -15372
  9. package/dist/index.d.cts +123 -3883
  10. package/dist/index.d.mts +123 -3883
  11. package/dist/index.d.ts +123 -3883
  12. package/dist/index.mjs +10 -15273
  13. package/dist/legacy.cjs +105 -15312
  14. package/dist/legacy.d.cts +114 -3882
  15. package/dist/legacy.d.mts +114 -3882
  16. package/dist/legacy.d.ts +114 -3882
  17. package/dist/legacy.mjs +21 -15229
  18. package/dist/shared/fiber.Biz9olEe.mjs +481 -0
  19. package/dist/shared/fiber.C6hitYDY.d.cts +48 -0
  20. package/dist/shared/fiber.C_MFx7We.d.cts +1237 -0
  21. package/dist/shared/fiber.C_MFx7We.d.mts +1237 -0
  22. package/dist/shared/fiber.C_MFx7We.d.ts +1237 -0
  23. package/dist/shared/fiber.CaF-CYl7.mjs +16562 -0
  24. package/dist/shared/fiber.CtivZ3IY.d.ts +2494 -0
  25. package/dist/shared/fiber.CvlK0a1Z.d.mts +2494 -0
  26. package/dist/shared/fiber.D4fD6H74.d.mts +48 -0
  27. package/dist/shared/fiber.DEF5PVV3.cjs +16660 -0
  28. package/dist/shared/fiber.DfiCufha.cjs +521 -0
  29. package/dist/shared/fiber.VTTQNnlj.d.cts +2494 -0
  30. package/dist/shared/fiber.YgTUGbja.d.ts +48 -0
  31. package/dist/webgpu/index.cjs +100 -16212
  32. package/dist/webgpu/index.d.cts +124 -4198
  33. package/dist/webgpu/index.d.mts +124 -4198
  34. package/dist/webgpu/index.d.ts +124 -4198
  35. package/dist/webgpu/index.mjs +15 -16096
  36. package/package.json +13 -10
  37. package/readme.md +1 -1
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ const THREE = require('three/webgpu');
4
+ const tsl = require('three/tsl');
5
+
6
+ function _interopNamespaceCompat(e) {
7
+ if (e && typeof e === 'object' && 'default' in e) return e;
8
+ const n = Object.create(null);
9
+ if (e) {
10
+ for (const k in e) {
11
+ n[k] = e[k];
12
+ }
13
+ }
14
+ n.default = e;
15
+ return n;
16
+ }
17
+
18
+ const THREE__namespace = /*#__PURE__*/_interopNamespaceCompat(THREE);
19
+
20
+ const webgpuSupport = {
21
+ kind: "webgpu",
22
+ three: THREE__namespace,
23
+ Renderer: THREE__namespace.WebGPURenderer,
24
+ RenderTarget: THREE__namespace.RenderTarget,
25
+ CubeRenderTarget: THREE__namespace.CubeRenderTarget,
26
+ CanvasTarget: THREE__namespace.CanvasTarget,
27
+ // What the occlusion observer (core/visibility.ts) is built from
28
+ occlusion: {
29
+ Node: THREE__namespace.Node,
30
+ NodeUpdateType: THREE__namespace.NodeUpdateType,
31
+ MeshBasicNodeMaterial: THREE__namespace.MeshBasicNodeMaterial,
32
+ uniform: tsl.uniform,
33
+ nodeObject: tsl.nodeObject
34
+ }
35
+ };
36
+
37
+ exports.webgpuSupport = webgpuSupport;
@@ -0,0 +1,21 @@
1
+ import * as THREE from 'three/webgpu';
2
+ import { nodeObject, uniform } from 'three/tsl';
3
+
4
+ const webgpuSupport = {
5
+ kind: "webgpu",
6
+ three: THREE,
7
+ Renderer: THREE.WebGPURenderer,
8
+ RenderTarget: THREE.RenderTarget,
9
+ CubeRenderTarget: THREE.CubeRenderTarget,
10
+ CanvasTarget: THREE.CanvasTarget,
11
+ // What the occlusion observer (core/visibility.ts) is built from
12
+ occlusion: {
13
+ Node: THREE.Node,
14
+ NodeUpdateType: THREE.NodeUpdateType,
15
+ MeshBasicNodeMaterial: THREE.MeshBasicNodeMaterial,
16
+ uniform,
17
+ nodeObject
18
+ }
19
+ };
20
+
21
+ export { webgpuSupport };
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ const textureStaging = require('./shared/fiber.DfiCufha.cjs');
4
+
5
+
6
+
7
+ exports.context = textureStaging.context;
8
+ exports.getTextureView = textureStaging.getTextureView;
9
+ exports.registerRootExtension = textureStaging.registerRootExtension;
10
+ exports.setRenderOverride = textureStaging.setRenderOverride;
11
+ exports.useFrame = textureStaging.useFrame;
12
+ exports.useStore = textureStaging.useStore;
13
+ exports.useThree = textureStaging.useThree;
@@ -0,0 +1,19 @@
1
+ import { K as RootStore } from './shared/fiber.C_MFx7We.cjs';
2
+ export { aF as Act, aG as Bridge, W as Camera, a2 as ComputeFunction, aL as Disposable, _ as DomEvent, D as Dpr, aK as EquConfig, a0 as EventHandlers, a4 as EventManager, $ as Events, a1 as FilterFunction, aP as FrameCallback, aO as FrameNextCallback, aM as FrameNextState, aN as FrameState, F as Frameloop, I as InternalState, U as Intersection, Y as IntersectionEvent, aD as IsAllOptional, aC as IsOptional, aB as Mutable, ay as NonFunctionKeys, aJ as ObjectMap, az as Overwrite, H as Performance, a5 as PointerCaptureTarget, P as PointerState, aA as Properties, y as R3FRenderer, B as RenderCallback, w as RootExtension, J as RootState, aH as SetBlock, z as Size, S as Subscription, aE as ThreeCamera, Z as ThreeEvent, aI as UnblockProps, A as Viewport, a6 as VisibilityEntry, X as XRManager, a3 as XRPointerConfig, x as context, u as registerRootExtension, v as setRenderOverride, a$ as useStore, b0 as useThree } from './shared/fiber.C_MFx7We.cjs';
3
+ export { u as useFrame } from './shared/fiber.C6hitYDY.cjs';
4
+ import { Texture } from 'three';
5
+ export { AddPhaseOptions, FrameControls, FrameNextControls, FrameTimingState, RootOptions, SchedulerApi, UseFrameNextOptions, UseFrameOptions } from '@pmndrs/scheduler';
6
+ import 'three/webgpu';
7
+ import 'react';
8
+ import 'zustand';
9
+ import 'zustand/traditional';
10
+ import 'three/tsl';
11
+
12
+ /**
13
+ * The texture registry as a reader during render should see it: registered textures, plus those a
14
+ * `useTexture` earlier in this render loaded but has not registered yet. Returns the registry Map
15
+ * itself when nothing is staged. Read-only: register through `useTexture` / `useTextures().add`.
16
+ */
17
+ declare function getTextureView(store: RootStore): ReadonlyMap<string, Texture>;
18
+
19
+ export { RootStore, getTextureView };
@@ -0,0 +1,19 @@
1
+ import { K as RootStore } from './shared/fiber.C_MFx7We.mjs';
2
+ export { aF as Act, aG as Bridge, W as Camera, a2 as ComputeFunction, aL as Disposable, _ as DomEvent, D as Dpr, aK as EquConfig, a0 as EventHandlers, a4 as EventManager, $ as Events, a1 as FilterFunction, aP as FrameCallback, aO as FrameNextCallback, aM as FrameNextState, aN as FrameState, F as Frameloop, I as InternalState, U as Intersection, Y as IntersectionEvent, aD as IsAllOptional, aC as IsOptional, aB as Mutable, ay as NonFunctionKeys, aJ as ObjectMap, az as Overwrite, H as Performance, a5 as PointerCaptureTarget, P as PointerState, aA as Properties, y as R3FRenderer, B as RenderCallback, w as RootExtension, J as RootState, aH as SetBlock, z as Size, S as Subscription, aE as ThreeCamera, Z as ThreeEvent, aI as UnblockProps, A as Viewport, a6 as VisibilityEntry, X as XRManager, a3 as XRPointerConfig, x as context, u as registerRootExtension, v as setRenderOverride, a$ as useStore, b0 as useThree } from './shared/fiber.C_MFx7We.mjs';
3
+ export { u as useFrame } from './shared/fiber.D4fD6H74.mjs';
4
+ import { Texture } from 'three';
5
+ export { AddPhaseOptions, FrameControls, FrameNextControls, FrameTimingState, RootOptions, SchedulerApi, UseFrameNextOptions, UseFrameOptions } from '@pmndrs/scheduler';
6
+ import 'three/webgpu';
7
+ import 'react';
8
+ import 'zustand';
9
+ import 'zustand/traditional';
10
+ import 'three/tsl';
11
+
12
+ /**
13
+ * The texture registry as a reader during render should see it: registered textures, plus those a
14
+ * `useTexture` earlier in this render loaded but has not registered yet. Returns the registry Map
15
+ * itself when nothing is staged. Read-only: register through `useTexture` / `useTextures().add`.
16
+ */
17
+ declare function getTextureView(store: RootStore): ReadonlyMap<string, Texture>;
18
+
19
+ export { RootStore, getTextureView };
@@ -0,0 +1,19 @@
1
+ import { K as RootStore } from './shared/fiber.C_MFx7We.js';
2
+ export { aF as Act, aG as Bridge, W as Camera, a2 as ComputeFunction, aL as Disposable, _ as DomEvent, D as Dpr, aK as EquConfig, a0 as EventHandlers, a4 as EventManager, $ as Events, a1 as FilterFunction, aP as FrameCallback, aO as FrameNextCallback, aM as FrameNextState, aN as FrameState, F as Frameloop, I as InternalState, U as Intersection, Y as IntersectionEvent, aD as IsAllOptional, aC as IsOptional, aB as Mutable, ay as NonFunctionKeys, aJ as ObjectMap, az as Overwrite, H as Performance, a5 as PointerCaptureTarget, P as PointerState, aA as Properties, y as R3FRenderer, B as RenderCallback, w as RootExtension, J as RootState, aH as SetBlock, z as Size, S as Subscription, aE as ThreeCamera, Z as ThreeEvent, aI as UnblockProps, A as Viewport, a6 as VisibilityEntry, X as XRManager, a3 as XRPointerConfig, x as context, u as registerRootExtension, v as setRenderOverride, a$ as useStore, b0 as useThree } from './shared/fiber.C_MFx7We.js';
3
+ export { u as useFrame } from './shared/fiber.YgTUGbja.js';
4
+ import { Texture } from 'three';
5
+ export { AddPhaseOptions, FrameControls, FrameNextControls, FrameTimingState, RootOptions, SchedulerApi, UseFrameNextOptions, UseFrameOptions } from '@pmndrs/scheduler';
6
+ import 'three/webgpu';
7
+ import 'react';
8
+ import 'zustand';
9
+ import 'zustand/traditional';
10
+ import 'three/tsl';
11
+
12
+ /**
13
+ * The texture registry as a reader during render should see it: registered textures, plus those a
14
+ * `useTexture` earlier in this render loaded but has not registered yet. Returns the registry Map
15
+ * itself when nothing is staged. Read-only: register through `useTexture` / `useTextures().add`.
16
+ */
17
+ declare function getTextureView(store: RootStore): ReadonlyMap<string, Texture>;
18
+
19
+ export { RootStore, getTextureView };
@@ -0,0 +1 @@
1
+ export { c as context, g as getTextureView, r as registerRootExtension, s as setRenderOverride, b as useFrame, u as useStore, a as useThree } from './shared/fiber.Biz9olEe.mjs';