Browse Source

TSL: Use correct elementType with WorkgroupInfoNode (#30222)

Renaud Rohlinger 1 year ago
parent
commit
5bad3350b2
1 changed files with 19 additions and 0 deletions
  1. 19 0
      src/nodes/gpgpu/WorkgroupInfoNode.js

+ 19 - 0
src/nodes/gpgpu/WorkgroupInfoNode.js

@@ -104,6 +104,13 @@ class WorkgroupInfoNode extends Node {
 		 */
 		 */
 		this.isWorkgroupInfoNode = true;
 		this.isWorkgroupInfoNode = true;
 
 
+		/**
+		 * The data type of the array buffer.
+		 *
+		 * @type {String}
+		 */
+		this.elementType = bufferType;
+
 		/**
 		/**
 		 * TODO.
 		 * TODO.
 		 *
 		 *
@@ -141,6 +148,18 @@ class WorkgroupInfoNode extends Node {
 
 
 	}
 	}
 
 
+
+	/**
+	 * The data type of the array buffer.
+	 *
+	 * @return {String} The element type.
+	 */
+	getElementType() {
+
+		return this.elementType;
+
+	}
+
 	/**
 	/**
 	 * Overwrites the default implementation since the input type
 	 * Overwrites the default implementation since the input type
 	 * is inferred from the scope.
 	 * is inferred from the scope.

粤ICP备19079148号