Options
All
  • Public
  • Public/Protected
  • All
Menu

Class used to inline functions in shader code

Hierarchy

  • ShaderCodeInliner

Index

Constructors

Properties

Accessors

Methods

Constructors

  • new ShaderCodeInliner(sourceCode: string, numMaxIterations?: number): ShaderCodeInliner
  • Initializes the inliner

    Parameters

    • sourceCode: string

      shader code source to inline

    • Optional numMaxIterations: number

      maximum number of iterations (used to detect recursive calls)

    Returns ShaderCodeInliner

Properties

debug: boolean

Gets or sets the debug mode

inlineToken: string

Gets or sets the token used to mark the functions to inline

Accessors

  • get code(): string
  • Gets the code after the inlining process

    Returns string

Methods

  • processCode(): void
  • Start the processing of the shader code

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme