public bool ReloadIfNeeded()
        {
            if (reloader.ChangedSinceLastLoad)
            {
                Shader?.Dispose();
                Shader = reloader.Load();
                return(true);
            }

            return(false);
        }
 public ReloadableShader(IShaderReloader reloader)
 {
     this.reloader = reloader;
     this.shader   = reloader.Load();
 }
 public ReloadableShader(IShaderReloader reloader)
 {
     this.reloader = reloader;
     this.shader = reloader.Load();
 }
 private ReloadableShader(IShaderReloader reloader)
 {
     this.reloader = reloader;
     Shader        = reloader.Load();
 }