Constructor
new WorkgroupInfoNode( scope : string, bufferType : string, bufferCount : number )
Constructs a new buffer scoped to type scope.
| scope |
TODO. |
| bufferType |
The data type of a 'workgroup' scoped buffer element. |
| bufferCount |
The number of elements in the buffer. Default is |
Properties
.bufferCount : number
The buffer count.
Default is 0.
.bufferType : string
The buffer type.
.elementType : string
The data type of the array buffer.
.isWorkgroupInfoNode : boolean (readonly)
This flag can be used for type testing.
Default is true.
.scope : string
TODO.
Methods
.element( indexNode : IndexNode ) : WorkgroupInfoElementNode
This method can be used to access elements via an index node.
| indexNode |
indexNode. |
- Returns: A reference to an element.
.getElementType() : string
.getInputType( builder : NodeBuilder ) : string
Overwrites the default implementation since the input type is inferred from the scope.
| builder |
The current node builder. |
- Returns: The input type.
.label( name : string ) : WorkgroupInfoNode
Sets the name/label of this node.
| name |
The name to set. |
- Deprecated: Yes
- Returns: A reference to this node.
.setName( name : string ) : WorkgroupInfoNode
Sets the name of this node.
| name |
The name to set. |
- Returns: A reference to this node.
.setScope( scope : string ) : WorkgroupInfoNode
Sets the scope of this node.
| scope |
The scope to set. |
- Returns: A reference to this node.