Class InterfaceBlock


public final class InterfaceBlock extends TopLevelElement
An interface block declaration invalid input: '&' definition, as in:
 out SV_PerVertex {
   layout(builtin = position) out float4 SV_Position;
 };
 
  • Constructor Details

    • InterfaceBlock

      public InterfaceBlock(int position, @Nonnull Variable variable)
  • Method Details

    • convert

      @Nullable public static InterfaceBlock convert(@Nonnull Context context, int pos, @Nonnull Modifiers modifiers, @Nonnull Type blockType, @Nonnull String instanceName)
    • make

      @Nonnull public static InterfaceBlock make(@Nonnull Context context, int pos, @Nonnull Variable variable)
    • getVariable

      @Nonnull public Variable getVariable()
    • getBlockName

      @Nonnull public String getBlockName()
    • getInstanceName

      @Nonnull public String getInstanceName()
    • getKind

      public Node.ElementKind getKind()
      Specified by:
      getKind in class TopLevelElement
      See Also:
    • accept

      public boolean accept(@Nonnull TreeVisitor visitor)
      Description copied from class: Node
      Visit this AST with a given visitor.
      Specified by:
      accept in class Node
      Returns:
      true to stop recursion and propagate true up the stack, false to continue
    • toString

      @Nonnull public String toString()
      Specified by:
      toString in class Node
      Returns:
      a string representation of this AST node