Capítulo 757 de 859

Chapter 757: NodeVar

Core Idea

NodeBuilder is going to create instances of this class during the build process of nodes. They represent the final shader variables that are going to be generated by the builder. A dictionary of node variables is maintained in NodeBuilder#vars for this purpose.

Key Concepts

  • count : number: The size.
  • isNodeVar : boolean (readonly): This flag can be used for type testing.
  • name : string: The name of the variable.
  • readOnly : boolean: The read-only flag.
  • type : string: The type of the variable.

Reference Tables

Constructor

Signature
new NodeVar( name : string, type : string, readOnly : boolean, count : number )

Properties

PropertyDescription
.count : numberThe size.
.isNodeVar : boolean (readonly)This flag can be used for type testing.
.name : stringThe name of the variable.
.readOnly : booleanThe read-only flag.
.type : stringThe type of the variable.

Key Takeaways

  1. Most relevant properties: count, isNodeVar, name, readOnly.

Connects To