public static byte[] GetEffectBytes(CompiledEffect effect, GraphicsProfile graphicsProfile) { switch (effect) { case CompiledEffect.CircleEffect: return graphicsProfile == GraphicsProfile.HiDef ? CircleEffect.HiDefWindows : CircleEffect.ReachWindows; default: throw new Exception("Effect not found"); } }
public static byte[] GetEffectBytes(CompiledEffect effect) { return CompiledEffects.GetEffectBytes(effect, FlaiGame.Current.GraphicsDeviceManager.GraphicsProfile); }