本文介绍了如何访问PreparingDeviceSettingEventArgs.GraphicsDeviceInformation.GraphicsProfile?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将GraphicsProfile更改为Reach.就像在另一个答案中告诉我 那样,解决方案是使用:

I would like to change the GraphicsProfile to Reach. As told to me in another answer the solution would be to use:

graphics.PreparingDeviceSettings += (s, e) =>
{
    e.GraphicsDeviceInformation.GraphicsProfile = GraphicsProfile.Reach;
};

但是我的e.GraphicsDeviceInformation不包含GraphicsProfile属性.

我不明白 MonoGame.Microsoft.Xna.Framework MonoGame.Microsoft.Xna.Framework.Graphics .
...Framework中的一个是PreparingDeviceSettingEventArgs使用的一个,但是另一个包含我需要的属性:GraphicsProfile.

I don't understand how two implementations of the same class are present in MonoGame.Microsoft.Xna.Framework and MonoGame.Microsoft.Xna.Framework.Graphics.
The one in ...Framework is the one used by PreparingDeviceSettingEventArgs but the other one contains the property I need: GraphicsProfile.

(我觉得我在这里错过了一些非常愚蠢的东西...)

(I feel like I am missing something very stupid here...)

推荐答案

当前不支持.只需为PC创建一个XNA项目.

It is currently not supported. Simply create an XNA project for PCs.

但是我然后想知道如果我想支持不符合 配置文件.

But I then wonder how I could do if I want to support an Android build (MonoGame) which would not fit with the High profile.

这篇关于如何访问PreparingDeviceSettingEventArgs.GraphicsDeviceInformation.GraphicsProfile?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-21 13:20