ShaderCodeInliner

Class used to inline functions in shader code

Hierarchy

  • ShaderCodeInliner

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Find examples in Playground
  • 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

Find examples in Playground
debug: boolean

Gets or sets the debug mode

inlineToken

Find examples in Playground
inlineToken: string

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

Accessors

code

Find examples in Playground
  • get code(): string
  • Gets the code after the inlining process

    Returns string

Methods

processCode

Find examples in Playground
  • processCode(): void
  • Start the processing of the shader code

    Returns void

Generated using TypeDoc