Skip to content

Commit 73116e1

Browse files
author
Attila Schroeder
committed
Allows the specification of workgroups for compute shaders and the specification of the dispatchSize
1 parent 84b690b commit 73116e1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/renderers/webgpu/nodes/WGSLNodeBuilder.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1898,9 +1898,7 @@ ${ flowData.code }
18981898

18991899
} else {
19001900

1901-
//this.computeShader = this._getWGSLComputeCode( shadersData.compute, ( this.object.workgroupSize || [ 64 ] ).join( ', ' ) );
1902-
1903-
const workgroupSize = this.object.workgroupSize || [ 8, 8, 1 ];
1901+
const workgroupSize = this.object.workgroupSize || [ 64, 1, 1 ];
19041902

19051903
if ( workgroupSize.length !== 3 ) throw new Error( 'workgroupSize must have 3 elements' );
19061904

0 commit comments

Comments
 (0)