Przeglądaj źródła

WebGPURenderer: Fix output depth struct (#30514)

sunag 11 miesięcy temu
rodzic
commit
f640829232
1 zmienionych plików z 6 dodań i 13 usunięć
  1. 6 13
      src/renderers/webgpu/nodes/WGSLNodeBuilder.js

+ 6 - 13
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' );
 
 	}

粤ICP备19079148号