Skip to content

Commit f640829

Browse files
authored
WebGPURenderer: Fix output depth struct (#30514)
1 parent 5dc5211 commit f640829

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

src/renderers/webgpu/nodes/WGSLNodeBuilder.js

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -789,19 +789,6 @@ class WGSLNodeBuilder extends NodeBuilder {
789789

790790
}
791791

792-
/**
793-
* Returns uniforms group count for the given shader stage.
794-
*
795-
* @private
796-
* @param {string} shaderStage - The shader stage.
797-
* @return {number} The uniforms group count for the given shader stage.
798-
*/
799-
_getUniformGroupCount( shaderStage ) {
800-
801-
return Object.keys( this.uniforms[ shaderStage ] ).length;
802-
803-
}
804-
805792
/**
806793
* Returns the native shader operator name for a given generic name.
807794
*
@@ -1449,6 +1436,12 @@ ${ flowData.code }
14491436

14501437
}
14511438

1439+
if ( struct.output ) {
1440+
1441+
snippets.push( `\t${ this.getBuiltins( 'output' ) }` );
1442+
1443+
}
1444+
14521445
return snippets.join( ',\n' );
14531446

14541447
}

0 commit comments

Comments
 (0)