Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ShaderCodeInliner

Class used to inline functions in shader code

Hierarchy

  • ShaderCodeInliner

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • 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

debugSearch playground for debug

debug: boolean

Gets or sets the debug mode

inlineTokenSearch playground for inlineToken

inlineToken: string

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

Accessors

code

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

    Returns string

Methods

processCodeSearch playground for processCode

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

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method