@react-three/test-renderer 10.0.0-canary.4f9f64c → 10.0.0-canary.777b94d

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/README.md CHANGED
@@ -77,13 +77,10 @@ const renderer = await ReactThreeTestRenderer.create(<MyScene />)
77
77
  For applications using WebGPU with TSL (Three Shading Language):
78
78
 
79
79
  ```tsx
80
- import ReactThreeTestRenderer, {
81
- useUniform,
82
- useUniforms,
83
- useNodes,
84
- useLocalNodes,
85
- } from '@react-three/test-renderer/webgpu'
86
- import { Canvas, useUniforms } from '@react-three/fiber/webgpu'
80
+ import ReactThreeTestRenderer from '@react-three/test-renderer/webgpu'
81
+ import { Canvas } from '@react-three/fiber/webgpu'
82
+ // The TSL hooks come from @react-three/tsl, in tests as in app code
83
+ import { useUniform, useUniforms, useNodes, useLocalNodes } from '@react-three/tsl'
87
84
 
88
85
  // Component using WebGPU hooks
89
86
  function MyWebGPUScene() {
@@ -137,20 +134,9 @@ console.log(renderer.toGraph())
137
134
  The `/webgpu` entry exports all WebGPU-specific hooks for testing TSL uniforms and nodes:
138
135
 
139
136
  ```tsx
140
- import ReactThreeTestRenderer, {
141
- useUniform,
142
- useUniforms,
143
- useNodes,
144
- useLocalNodes,
145
- // Cleanup utilities
146
- removeUniforms,
147
- clearScope,
148
- clearRootUniforms,
149
- removeNodes,
150
- clearNodeScope,
151
- clearRootNodes,
152
- } from '@react-three/test-renderer/webgpu'
137
+ import ReactThreeTestRenderer from '@react-three/test-renderer/webgpu'
153
138
  import { useThree } from '@react-three/fiber/webgpu'
139
+ import { useUniform, useUniforms, useNodes, useLocalNodes } from '@react-three/tsl'
154
140
 
155
141
  describe('My WebGPU Scene', () => {
156
142
  it('should create and use uniforms', async () => {
@@ -1584,17 +1584,7 @@ const { create } = renderer;
1584
1584
  const index = { create, act: react.act, waitFor };
1585
1585
 
1586
1586
  exports.act = react.act;
1587
- exports.clearNodeScope = webgpu.clearNodeScope;
1588
- exports.clearRootNodes = webgpu.clearRootNodes;
1589
- exports.clearRootUniforms = webgpu.clearRootUniforms;
1590
- exports.clearScope = webgpu.clearScope;
1591
- exports.removeNodes = webgpu.removeNodes;
1592
- exports.removeUniforms = webgpu.removeUniforms;
1593
- exports.useLocalNodes = webgpu.useLocalNodes;
1594
- exports.useNodes = webgpu.useNodes;
1595
1587
  exports.useTextures = webgpu.useTextures;
1596
- exports.useUniform = webgpu.useUniform;
1597
- exports.useUniforms = webgpu.useUniforms;
1598
1588
  exports.ReactThreeTest = index$1;
1599
1589
  exports.create = create;
1600
1590
  exports.default = index;
@@ -2,7 +2,7 @@ import { act } from 'react';
2
2
  export { act } from 'react';
3
3
  import { Instance, RenderProps, Camera, Act } from '@react-three/fiber';
4
4
  import * as THREE from 'three';
5
- export { LocalNodeCreator, NodeCreator, NodeRecord, TSLNode, TextureEntry, TextureNode, UniformCreator, UniformValue, UseTexturesReturn, clearNodeScope, clearRootNodes, clearRootUniforms, clearScope, removeNodes, removeUniforms, useLocalNodes, useNodes, useTextures, useUniform, useUniforms } from '@react-three/fiber/webgpu';
5
+ export { TextureEntry, TextureNode, UseTexturesReturn, useTextures } from '@react-three/fiber/webgpu';
6
6
 
7
7
  /**
8
8
  * Renderer mode for test canvas
@@ -2,7 +2,7 @@ import { act } from 'react';
2
2
  export { act } from 'react';
3
3
  import { Instance, RenderProps, Camera, Act } from '@react-three/fiber';
4
4
  import * as THREE from 'three';
5
- export { LocalNodeCreator, NodeCreator, NodeRecord, TSLNode, TextureEntry, TextureNode, UniformCreator, UniformValue, UseTexturesReturn, clearNodeScope, clearRootNodes, clearRootUniforms, clearScope, removeNodes, removeUniforms, useLocalNodes, useNodes, useTextures, useUniform, useUniforms } from '@react-three/fiber/webgpu';
5
+ export { TextureEntry, TextureNode, UseTexturesReturn, useTextures } from '@react-three/fiber/webgpu';
6
6
 
7
7
  /**
8
8
  * Renderer mode for test canvas
@@ -2,7 +2,7 @@ import { act } from 'react';
2
2
  export { act } from 'react';
3
3
  import { Instance, RenderProps, Camera, Act } from '@react-three/fiber';
4
4
  import * as THREE from 'three';
5
- export { LocalNodeCreator, NodeCreator, NodeRecord, TSLNode, TextureEntry, TextureNode, UniformCreator, UniformValue, UseTexturesReturn, clearNodeScope, clearRootNodes, clearRootUniforms, clearScope, removeNodes, removeUniforms, useLocalNodes, useNodes, useTextures, useUniform, useUniforms } from '@react-three/fiber/webgpu';
5
+ export { TextureEntry, TextureNode, UseTexturesReturn, useTextures } from '@react-three/fiber/webgpu';
6
6
 
7
7
  /**
8
8
  * Renderer mode for test canvas
@@ -2,7 +2,7 @@ import { act } from 'react';
2
2
  export { act } from 'react';
3
3
  import * as THREE from 'three/webgpu';
4
4
  import { extend, createRoot, _roots, reconciler } from '@react-three/fiber/webgpu';
5
- export { clearNodeScope, clearRootNodes, clearRootUniforms, clearScope, removeNodes, removeUniforms, useLocalNodes, useNodes, useTextures, useUniform, useUniforms } from '@react-three/fiber/webgpu';
5
+ export { useTextures } from '@react-three/fiber/webgpu';
6
6
 
7
7
  var __defProp$2 = Object.defineProperty;
8
8
  var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-three/test-renderer",
3
- "version": "10.0.0-canary.4f9f64c",
3
+ "version": "10.0.0-canary.777b94d",
4
4
  "description": "Test Renderer for react-three-fiber",
5
5
  "author": "Josh Ellis",
6
6
  "license": "MIT",
@@ -47,7 +47,8 @@
47
47
  "devDependencies": {
48
48
  "@webgpu/types": "^0.1.64",
49
49
  "three": ">=0.185.0",
50
- "@react-three/fiber": "10.0.0-canary.4f9f64c"
50
+ "@react-three/fiber": "10.0.0-canary.777b94d",
51
+ "@react-three/tsl": "10.0.0-canary.777b94d"
51
52
  },
52
53
  "files": [
53
54
  "dist",