瀏覽代碼

Revert "TSL: Add isWebGPU method in the NodeBuilder (#28734)" (#28735)

This reverts commit 5e7e0f424d99eb8b20d52e86f98e05184bd41615.
sunag 1 年之前
父節點
當前提交
fe079efc0f

+ 0 - 6
examples/jsm/nodes/core/NodeBuilder.js

@@ -469,12 +469,6 @@ class NodeBuilder {
 
 	}
 
-	isWebGPU() {
-
-		return true;
-
-	}
-
 	generateTexture( /* texture, textureProperty, uvSnippet */ ) {
 
 		console.warn( 'Abstract function.' );

+ 0 - 6
examples/jsm/renderers/webgl/nodes/GLSLNodeBuilder.js

@@ -649,12 +649,6 @@ ${ flowData.code }
 
 	}
 
-	isWebGPU() {
-
-		return false;
-
-	}
-
 	registerTransform( varyingName, attributeNode ) {
 
 		this.transforms.push( { varyingName, attributeNode } );

+ 0 - 6
examples/jsm/renderers/webgpu/nodes/WGSLNodeBuilder.js

@@ -627,12 +627,6 @@ ${ flowData.code }
 
 	}
 
-	isWebGPU() {
-
-		return true;
-
-	}
-
 	getBuiltins( shaderStage ) {
 
 		const snippets = [];