Skip to content

Commit 6d15bf7

Browse files
committed
Updated builds.
1 parent 59055ed commit 6d15bf7

File tree

4 files changed

+58
-18
lines changed

4 files changed

+58
-18
lines changed

build/three.webgpu.js

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9780,7 +9780,7 @@ class ComputeNode extends Node {
97809780
/**
97819781
* TODO
97829782
*
9783-
* @type {number}
9783+
* @type {number|Array<number>}
97849784
*/
97859785
this.count = null;
97869786

@@ -9817,6 +9817,12 @@ class ComputeNode extends Node {
98179817

98189818
}
98199819

9820+
/**
9821+
* TODO
9822+
*
9823+
* @param {number|Array<number>} count - Array with [ x, y, z ] values for dispatch or a single number for the count
9824+
* @return {ComputeNode}
9825+
*/
98209826
setCount( count ) {
98219827

98229828
this.count = count;
@@ -9825,6 +9831,11 @@ class ComputeNode extends Node {
98259831

98269832
}
98279833

9834+
/**
9835+
* TODO
9836+
*
9837+
* @return {number|Array<number>}
9838+
*/
98289839
getCount() {
98299840

98309841
return this.count;
@@ -9987,7 +9998,7 @@ const computeKernel = ( node, workgroupSize = [ 64 ] ) => {
99879998
* @tsl
99889999
* @function
998910000
* @param {Node} node - TODO
9990-
* @param {number} count - TODO.
10001+
* @param {number|Array<number>} count - TODO.
999110002
* @param {Array<number>} [workgroupSize=[64]] - TODO.
999210003
* @returns {AtomicFunctionNode}
999310004
*/
@@ -24412,7 +24423,7 @@ class PMREMGenerator {
2441224423
* @param {Vector3} [options.renderTarget=origin] - The position of the internal cube camera that renders the scene.
2441324424
* @param {?RenderTarget} [options.renderTarget=null] - The render target to use.
2441424425
* @return {RenderTarget} The resulting PMREM.
24415-
* @see {@link PMREMGenerator#fromSceneAsync}
24426+
* @see {@link PMREMGenerator#fromScene}
2441624427
*/
2441724428
fromScene( scene, sigma = 0, near = 0.1, far = 100, options = {} ) {
2441824429

@@ -24426,7 +24437,7 @@ class PMREMGenerator {
2442624437

2442724438
if ( this._hasInitialized === false ) {
2442824439

24429-
warn( 'PMREMGenerator: .fromScene() called before the backend is initialized. Try using .fromSceneAsync() instead.' );
24440+
warn( 'PMREMGenerator: ".fromScene()" called before the backend is initialized. Try using "await renderer.init()" instead.' );
2443024441

2443124442
const cubeUVRenderTarget = renderTarget || this._allocateTarget();
2443224443

@@ -24470,6 +24481,7 @@ class PMREMGenerator {
2447024481
* and far planes ensure the scene is rendered in its entirety (the cubeCamera
2447124482
* is placed at the origin).
2447224483
*
24484+
* @deprecated
2447324485
* @param {Scene} scene - The scene to be captured.
2447424486
* @param {number} [sigma=0] - The blur radius in radians.
2447524487
* @param {number} [near=0.1] - The near plane distance.
@@ -24483,7 +24495,9 @@ class PMREMGenerator {
2448324495
*/
2448424496
async fromSceneAsync( scene, sigma = 0, near = 0.1, far = 100, options = {} ) {
2448524497

24486-
if ( this._hasInitialized === false ) await this._renderer.init();
24498+
warnOnce( 'PMREMGenerator: ".fromSceneAsync()" is deprecated. Use "await renderer.init()" instead.' ); // @deprecated r181
24499+
24500+
await this._renderer.init();
2448724501

2448824502
return this.fromScene( scene, sigma, near, far, options );
2448924503

@@ -24503,7 +24517,7 @@ class PMREMGenerator {
2450324517

2450424518
if ( this._hasInitialized === false ) {
2450524519

24506-
warn( 'PMREMGenerator: .fromEquirectangular() called before the backend is initialized. Try using .fromEquirectangularAsync() instead.' );
24520+
warn( 'PMREMGenerator: .fromEquirectangular() called before the backend is initialized. Try using "await renderer.init()" instead.' );
2450724521

2450824522
this._setSizeFromTexture( equirectangular );
2450924523

@@ -24524,14 +24538,17 @@ class PMREMGenerator {
2452424538
* or HDR. The ideal input image size is 1k (1024 x 512),
2452524539
* as this matches best with the 256 x 256 cubemap output.
2452624540
*
24541+
* @deprecated
2452724542
* @param {Texture} equirectangular - The equirectangular texture to be converted.
2452824543
* @param {?RenderTarget} [renderTarget=null] - The render target to use.
2452924544
* @return {Promise<RenderTarget>} The resulting PMREM.
2453024545
* @see {@link PMREMGenerator#fromEquirectangular}
2453124546
*/
2453224547
async fromEquirectangularAsync( equirectangular, renderTarget = null ) {
2453324548

24534-
if ( this._hasInitialized === false ) await this._renderer.init();
24549+
warnOnce( 'PMREMGenerator: ".fromEquirectangularAsync()" is deprecated. Use "await renderer.init()" instead.' ); // @deprecated r181
24550+
24551+
await this._renderer.init();
2453524552

2453624553
return this._fromTexture( equirectangular, renderTarget );
2453724554

@@ -24572,14 +24589,17 @@ class PMREMGenerator {
2457224589
* or HDR. The ideal input cube size is 256 x 256,
2457324590
* with the 256 x 256 cubemap output.
2457424591
*
24592+
* @deprecated
2457524593
* @param {Texture} cubemap - The cubemap texture to be converted.
2457624594
* @param {?RenderTarget} [renderTarget=null] - The render target to use.
2457724595
* @return {Promise<RenderTarget>} The resulting PMREM.
2457824596
* @see {@link PMREMGenerator#fromCubemap}
2457924597
*/
2458024598
async fromCubemapAsync( cubemap, renderTarget = null ) {
2458124599

24582-
if ( this._hasInitialized === false ) await this._renderer.init();
24600+
warnOnce( 'PMREMGenerator: ".fromCubemapAsync()" is deprecated. Use "await renderer.init()" instead.' ); // @deprecated r181
24601+
24602+
await this._renderer.init();
2458324603

2458424604
return this._fromTexture( cubemap, renderTarget );
2458524605

build/three.webgpu.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/three.webgpu.nodes.js

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9780,7 +9780,7 @@ class ComputeNode extends Node {
97809780
/**
97819781
* TODO
97829782
*
9783-
* @type {number}
9783+
* @type {number|Array<number>}
97849784
*/
97859785
this.count = null;
97869786

@@ -9817,6 +9817,12 @@ class ComputeNode extends Node {
98179817

98189818
}
98199819

9820+
/**
9821+
* TODO
9822+
*
9823+
* @param {number|Array<number>} count - Array with [ x, y, z ] values for dispatch or a single number for the count
9824+
* @return {ComputeNode}
9825+
*/
98209826
setCount( count ) {
98219827

98229828
this.count = count;
@@ -9825,6 +9831,11 @@ class ComputeNode extends Node {
98259831

98269832
}
98279833

9834+
/**
9835+
* TODO
9836+
*
9837+
* @return {number|Array<number>}
9838+
*/
98289839
getCount() {
98299840

98309841
return this.count;
@@ -9987,7 +9998,7 @@ const computeKernel = ( node, workgroupSize = [ 64 ] ) => {
99879998
* @tsl
99889999
* @function
998910000
* @param {Node} node - TODO
9990-
* @param {number} count - TODO.
10001+
* @param {number|Array<number>} count - TODO.
999110002
* @param {Array<number>} [workgroupSize=[64]] - TODO.
999210003
* @returns {AtomicFunctionNode}
999310004
*/
@@ -24412,7 +24423,7 @@ class PMREMGenerator {
2441224423
* @param {Vector3} [options.renderTarget=origin] - The position of the internal cube camera that renders the scene.
2441324424
* @param {?RenderTarget} [options.renderTarget=null] - The render target to use.
2441424425
* @return {RenderTarget} The resulting PMREM.
24415-
* @see {@link PMREMGenerator#fromSceneAsync}
24426+
* @see {@link PMREMGenerator#fromScene}
2441624427
*/
2441724428
fromScene( scene, sigma = 0, near = 0.1, far = 100, options = {} ) {
2441824429

@@ -24426,7 +24437,7 @@ class PMREMGenerator {
2442624437

2442724438
if ( this._hasInitialized === false ) {
2442824439

24429-
warn( 'PMREMGenerator: .fromScene() called before the backend is initialized. Try using .fromSceneAsync() instead.' );
24440+
warn( 'PMREMGenerator: ".fromScene()" called before the backend is initialized. Try using "await renderer.init()" instead.' );
2443024441

2443124442
const cubeUVRenderTarget = renderTarget || this._allocateTarget();
2443224443

@@ -24470,6 +24481,7 @@ class PMREMGenerator {
2447024481
* and far planes ensure the scene is rendered in its entirety (the cubeCamera
2447124482
* is placed at the origin).
2447224483
*
24484+
* @deprecated
2447324485
* @param {Scene} scene - The scene to be captured.
2447424486
* @param {number} [sigma=0] - The blur radius in radians.
2447524487
* @param {number} [near=0.1] - The near plane distance.
@@ -24483,7 +24495,9 @@ class PMREMGenerator {
2448324495
*/
2448424496
async fromSceneAsync( scene, sigma = 0, near = 0.1, far = 100, options = {} ) {
2448524497

24486-
if ( this._hasInitialized === false ) await this._renderer.init();
24498+
warnOnce( 'PMREMGenerator: ".fromSceneAsync()" is deprecated. Use "await renderer.init()" instead.' ); // @deprecated r181
24499+
24500+
await this._renderer.init();
2448724501

2448824502
return this.fromScene( scene, sigma, near, far, options );
2448924503

@@ -24503,7 +24517,7 @@ class PMREMGenerator {
2450324517

2450424518
if ( this._hasInitialized === false ) {
2450524519

24506-
warn( 'PMREMGenerator: .fromEquirectangular() called before the backend is initialized. Try using .fromEquirectangularAsync() instead.' );
24520+
warn( 'PMREMGenerator: .fromEquirectangular() called before the backend is initialized. Try using "await renderer.init()" instead.' );
2450724521

2450824522
this._setSizeFromTexture( equirectangular );
2450924523

@@ -24524,14 +24538,17 @@ class PMREMGenerator {
2452424538
* or HDR. The ideal input image size is 1k (1024 x 512),
2452524539
* as this matches best with the 256 x 256 cubemap output.
2452624540
*
24541+
* @deprecated
2452724542
* @param {Texture} equirectangular - The equirectangular texture to be converted.
2452824543
* @param {?RenderTarget} [renderTarget=null] - The render target to use.
2452924544
* @return {Promise<RenderTarget>} The resulting PMREM.
2453024545
* @see {@link PMREMGenerator#fromEquirectangular}
2453124546
*/
2453224547
async fromEquirectangularAsync( equirectangular, renderTarget = null ) {
2453324548

24534-
if ( this._hasInitialized === false ) await this._renderer.init();
24549+
warnOnce( 'PMREMGenerator: ".fromEquirectangularAsync()" is deprecated. Use "await renderer.init()" instead.' ); // @deprecated r181
24550+
24551+
await this._renderer.init();
2453524552

2453624553
return this._fromTexture( equirectangular, renderTarget );
2453724554

@@ -24572,14 +24589,17 @@ class PMREMGenerator {
2457224589
* or HDR. The ideal input cube size is 256 x 256,
2457324590
* with the 256 x 256 cubemap output.
2457424591
*
24592+
* @deprecated
2457524593
* @param {Texture} cubemap - The cubemap texture to be converted.
2457624594
* @param {?RenderTarget} [renderTarget=null] - The render target to use.
2457724595
* @return {Promise<RenderTarget>} The resulting PMREM.
2457824596
* @see {@link PMREMGenerator#fromCubemap}
2457924597
*/
2458024598
async fromCubemapAsync( cubemap, renderTarget = null ) {
2458124599

24582-
if ( this._hasInitialized === false ) await this._renderer.init();
24600+
warnOnce( 'PMREMGenerator: ".fromCubemapAsync()" is deprecated. Use "await renderer.init()" instead.' ); // @deprecated r181
24601+
24602+
await this._renderer.init();
2458324603

2458424604
return this._fromTexture( cubemap, renderTarget );
2458524605

build/three.webgpu.nodes.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)