Effect wrapping a compute shader and let execute (dispatch) the shader
Creates a compute effect that can be used to execute a compute shader
Name of the effect
Set of all options to create the effect
The engine the effect is created for
Optional key: string
Effect Key identifying uniquely compiled shader variants
String container all the define statements that should be set on the shader.
Name of the effect.
Bind ObservableSearch playground for onBindObservable
Observable that will be called when effect is bound.
Compile ObservableSearch playground for onCompileObservable
Observable that will be called when the shader is compiled. It is recommended to use executeWhenCompile() or to make sure that scene.isReady() is called to get this observable raised.
CompiledSearch playground for onCompiled
Callback that will be called when the shader is compiled.
Callback that will be called if an error occurs during shader compilation.
Error ObservableSearch playground for onErrorObservable
Observable that will be called if an error occurs during shader compilation.
IdSearch playground for uniqueId
Unique ID of the effect.
Shader Code OnCompilation ErrorSearch playground for LogShaderCodeOnCompilationError
Enable logging of the shader code when a compilation error occurs
Gets the compute shader source code of this effect
Unique key for this effect
Compute Source Code
Gets the compute shader source code before it has been processed by the preprocessor
Release all associated resources.
When CompiledSearch playground for executeWhenCompiled
Compilation ErrorSearch playground for getCompilationError
The error from the last compilation.
the error string.
EngineSearch playground for getEngine
The engine the effect was initialized with.
Pipeline ContextSearch playground for getPipelineContext
If the effect has been compiled and prepared.
if the effect is compiled and prepared.
ShaderSearch playground for RegisterShader
This function will add a new compute shader to the shader store
the name of the shader
compute shader content