Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IComputeEffectCreationOptions

Options to be used when creating a compute effect.

Hierarchy

  • IComputeEffectCreationOptions

Index

Properties

definesSearch playground for defines

defines: any

Define statements that will be set in the shader.

Optional entryPointSearch playground for entryPoint

entryPoint: string

The name of the entry point in the shader source (default: "main")

onCompiledSearch playground for onCompiled

onCompiled: Nullable<(effect: ComputeEffect) => void>

Callback that will be called when the shader is compiled.

onErrorSearch playground for onError

onError: Nullable<(effect: ComputeEffect, errors: string) => void>

Callback that will be called if an error occurs during shader compilation.

Optional processFinalCodeSearch playground for processFinalCode

processFinalCode: Nullable<(code: string) => string>

If provided, will be called with the shader code so that this code can be updated before it is compiled by the GPU

Legend

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