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 teraflop.systems.FileWatcher System to your game's World to watch the Shader's source file for changes.

Parameters

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

See Also

teraflop.systems.FileWatcher