Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Pass

Pass provides single draw call for a geometry. Containing arguments of uniform variables and gl state configruations for each drawing call.

returns

[description]

Hierarchy

  • Pass

Index

Constructors

constructor

Properties

argumentDeclarations

argumentDeclarations: object

Declaration of argument attributes.

param
param
returns

[description]

Type declaration

  • [key: string]: IAttributeDeclaration

arguments

arguments: object

Values of materila arguments. These values would be passed to GPU for rendering.

Type declaration

  • [key: string]: any

passRecipe

passRecipe: IPassRecipe

program

program: PassProgram

Pass program instance. This is not actual WebGLProgram instance. Pass will determine which WebGLProgram should be used by considering which geometry was used in actual drawing timing.

returns

[description]

technique

technique: Technique

Accessors

material

Methods

addArgument

  • addArgument(name: string, val: IAttributeDeclaration): void
  • Append an argument as pass variable. This is mainly used for resolving uniform stages.

    Parameters

    • name: string
    • val: IAttributeDeclaration

    Returns void

dispose

  • dispose(): void

draw

setArgument

  • setArgument(variableName: string, newValue: any, oldValue: any): void
  • Update argument of specified value.

    Parameters

    • variableName: string
    • newValue: any
    • oldValue: any

    Returns void

Generated using TypeDoc