• Generate an entry point that uses an entry point IO variable.

    Parameters

    • params: {
          attribute: string;
          io: string;
          stage: string;
          type: string;
          use_struct: boolean;
      }
      • attribute: string

        The entry point IO attribute.

      • io: string

        An "in|out" string specifying whether the entry point IO is an input or an output.

      • stage: string

        The shader stage.

      • type: string

        The type to use for the entry point IO variable.

      • use_struct: boolean

        True to wrap the entry point IO in a struct.

    Returns string

    The generated shader code.

Generated using TypeDoc