public static ShaderRunner Create(Opts opts) { var runner = new ShaderRunner(); runner.opts = opts; return(runner); }
public static ShaderRunner Create(ComputeShader shader, string kernelName, uint resx, uint resy, string xresName = null) { var runner = new ShaderRunner(); runner.Shader = shader; runner.Setup(kernelName, resx, resy, xresName); return(runner); }