Function Shader.watched

Initialize a new Shader compiled from the given filePath. The constructed Shader will be marked for hotReload.

static Shader watched (
  gfx.graal.pipeline.ShaderStage stage,
  string filePath

Add the System to your game's World to watch the Shader's source file for changes.


stage The stage in the graphics pipeline in which this Shader performs.
filePath Path to a file containing SPIR-V source bytecode.

See Also