/// <summary> /// Begins applying the shader. /// </summary> /// <returns>Amount of passes required.</returns> public int Begin() { if (_driver != GraphicsManager.Driver) { CreateShader(); } if (_shader == null) { return(1); } return(_shader.Begin()); }