Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IComputeShaderOptions

Defines the options associated with the creation of a compute shader.

Hierarchy

  • IComputeShaderOptions

Index

Properties

bindingsMappingSearch playground for bindingsMapping

bindingsMapping: ComputeBindingMapping

list of bindings mapping (key is property name, value is binding location) Must be provided because browsers don't support reflection for wgsl shaders yet (so there's no way to query the binding/group from a variable name) TODO: remove this when browsers support reflection for wgsl shaders

Optional definesSearch playground for defines

defines: string[]

The list of defines used in the shader

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