Shader.this - multiple declarations

Function Shader.this

Initialize a new Shader compiled from the given filePath.

this (
  gfx.graal.pipeline.ShaderStage stage,
  string filePath,
  std.typecons.Flag!("hotReload") hotReload = Flag.no
);

Parameters

NameDescription
stage The stage in the graphics pipeline in which this Shader performs.
filePath Path to a file containing SPIR-V source bytecode.
hotReload Whether to watch the given filePath for changes and to recompile this Shader at runtime.

Function Shader.this

Initialize a new Shader.

this (
  gfx.graal.pipeline.ShaderStage stage,
  ubyte[] spv
);

Parameters

NameDescription
stage The stage in the graphics pipeline in which this Shader performs.
spv SPIR-V source bytecode.