Dobrý den,
zprvu jsem myslel, že si budu muset najít jinou cestu, leč narazil jsem na:
Assembly xna = Assembly.GetAssembly(typeof(GraphicsProfile));
Type profileCapabilities = xna.GetType("Microsoft.Xna.Framework.Graphics.ProfileCapabilities", true);
if (profileCapabilities != null)
{
FieldInfo maxTextureSize = profileCapabilities.GetField("MaxTextureSize", BindingFlags.Instance | BindingFlags.NonPublic);
FieldInfo hidefProfile = profileCapabilities.GetField("HiDef", BindingFlags.Static | BindingFlags.NonPublic);
if (maxTextureSize != null && hidefProfile != null)
{
object profile = hidefProfile.GetValue(null);
maxTextureSize.SetValue(hidefProfile.GetValue(null), 6760000);
}
}
Pročež se ptám: Nešlo by to i pro cíl renderování?
Děkuji.