|
@@ -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.
|
|
* 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' );
|
|
return snippets.join( ',\n' );
|
|
|
|
|
|
|
|
}
|
|
}
|