From fff0417eaafca3a74256137be1d699ff251a07f5 Mon Sep 17 00:00:00 2001 From: sunag Date: Thu, 13 Feb 2025 03:09:56 -0300 Subject: [PATCH] fix output depth struct --- src/renderers/webgpu/nodes/WGSLNodeBuilder.js | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/src/renderers/webgpu/nodes/WGSLNodeBuilder.js b/src/renderers/webgpu/nodes/WGSLNodeBuilder.js index 0932c02611b729..0a8846a7a68ef5 100644 --- a/src/renderers/webgpu/nodes/WGSLNodeBuilder.js +++ b/src/renderers/webgpu/nodes/WGSLNodeBuilder.js @@ -789,19 +789,6 @@ class WGSLNodeBuilder extends NodeBuilder { } - /** - * Returns uniforms group count for the given shader stage. - * - * @private - * @param {string} shaderStage - The shader stage. - * @return {number} The uniforms group count for the given shader stage. - */ - _getUniformGroupCount( shaderStage ) { - - return Object.keys( this.uniforms[ shaderStage ] ).length; - - } - /** * Returns the native shader operator name for a given generic name. * @@ -1449,6 +1436,12 @@ ${ flowData.code } } + if ( struct.output ) { + + snippets.push( `\t${ this.getBuiltins( 'output' ) }` ); + + } + return snippets.join( ',\n' ); }