We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
StorageBufferNode
getMemberType
1 parent 850b1c9 commit 33870faCopy full SHA for 33870fa
src/nodes/accessors/StorageBufferNode.js
@@ -335,6 +335,25 @@ class StorageBufferNode extends BufferNode {
335
336
}
337
338
+ /**
339
+ * Returns the type of a member of the struct.
340
+ *
341
+ * @param {NodeBuilder} builder - The current node builder.
342
+ * @param {string} name - The name of the member.
343
+ * @return {string} The type of the member.
344
+ */
345
+ getMemberType( builder, name ) {
346
+
347
+ if ( this.structTypeNode !== null ) {
348
349
+ return this.structTypeNode.getMemberType( builder, name );
350
351
+ }
352
353
+ return 'void';
354
355
356
357
/**
358
* Generates the code snippet of the storage buffer node.
359
*
0 commit comments