Capítulo 758 de 859

Chapter 758: NodeVarying

Core Idea

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

Key Concepts

  • interpolationSampling : string: The interpolation sampling type of varying data.
  • interpolationType : string: The interpolation type of the varying data.
  • isNodeVarying : boolean (readonly): This flag can be used for type testing.
  • needsInterpolation : boolean: Whether this varying requires interpolation or not. This property can be used to check if the varying can be optimized for a variable.

Reference Tables

Constructor

Signature
new NodeVarying( name : string, type : string, interpolationType : string, interpolationSampling : string )

Properties

PropertyDescription
.interpolationSampling : stringThe interpolation sampling type of varying data.
.interpolationType : stringThe interpolation type of the varying data.
.isNodeVarying : boolean (readonly)This flag can be used for type testing.
.needsInterpolation : booleanWhether this varying requires interpolation or not. This property can be used to check if the varying can be optimized for a variable.

Key Takeaways

  1. NodeVarying extends: NodeVar
  2. Most relevant properties: interpolationSampling, interpolationType, isNodeVarying, needsInterpolation.

Connects To