Browse Source

dev-storagearrayelement-cleanup

sunag 1 year ago
parent
commit
9e48d184a1
1 changed files with 0 additions and 6 deletions
  1. 0 6
      examples/jsm/nodes/utils/ArrayElementNode.js

+ 0 - 6
examples/jsm/nodes/utils/ArrayElementNode.js

@@ -24,12 +24,6 @@ class ArrayElementNode extends Node { // @TODO: If extending from TempNode it br
 		const nodeSnippet = this.node.build( builder );
 		const indexSnippet = this.indexNode.build( builder, 'uint' );
 
-		if ( this.node.isStorageBufferNode && ! builder.isAvailable( 'storageBuffer' ) ) {
-
-			return nodeSnippet;
-
-		}
-
 		return `${nodeSnippet}[ ${indexSnippet} ]`;
 
 	}