|
|
@@ -104,6 +104,13 @@ class WorkgroupInfoNode extends Node {
|
|
|
*/
|
|
|
this.isWorkgroupInfoNode = true;
|
|
|
|
|
|
+ /**
|
|
|
+ * The data type of the array buffer.
|
|
|
+ *
|
|
|
+ * @type {String}
|
|
|
+ */
|
|
|
+ this.elementType = bufferType;
|
|
|
+
|
|
|
/**
|
|
|
* 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
|
|
|
* is inferred from the scope.
|