Source code for a shader written in SkSL
Optionalcallback: (err: string) => voidwill be called with any compilation error. If not provided, errors will be printed to console.log().
Compiles a RuntimeEffect from the given blender code.
Source code for a blender written in SkSL
Optionalcallback: (err: string) => voidwill be called with any compilation error. If not provided, errors will be printed to console.log().
Adds debug tracing to an existing RuntimeEffect.
An already-assembled shader, created with RuntimeEffect.makeShader.
the X coordinate of the device-space pixel to trace
the Y coordinate of the device-space pixel to trace
Compiles a RuntimeEffect from the given shader code.