Explorar o código

nodeBuilder: Add abstract reference for buildFunctionCode (#30712)

Co-authored-by: Samuel Rigaud <srigaud@duodisplay.com>
Samuel Rigaud hai 1 ano
pai
achega
43acb6e31a
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  1. 13 0
      src/nodes/core/NodeBuilder.js

+ 13 - 0
src/nodes/core/NodeBuilder.js

@@ -2176,6 +2176,19 @@ class NodeBuilder {
 
 	}
 
+	/**
+	 * Builds the given shader node.
+	 *
+	 * @abstract
+	 * @param {ShaderNodeInternal} shaderNode - The shader node.
+	 * @return {string} The function code.
+	 */
+	buildFunctionCode( /* shaderNode */ ) {
+
+		console.warn( 'Abstract function.' );
+
+	}
+
 	/**
 	 * Generates a code flow based on a child Node.
 	 *

粤ICP备19079148号