Hi, I had started this little game in XNA 1.0 on a machine equipped with a Geforce 8 and everything was working very well.
This weekend I need to work on a machine that has only an MX440 which as I understand is too old for DirectX9, and I have installed XNA 2.0.
I had found a way to run the graphics on the CPU here: http://www.riemers.net/eng/Tutorials/XNA/Csharp/ShortTuts/Reference_device.php
The trick was to add this method anywhere in the game class:
void SetToReference(object sender, PreparingDeviceSettingsEventArgs eventargs)
{
eventargs.GraphicsDeviceInformation.CreationOptions = CreateOptions.SoftwareVertexProcessing;
eventargs.GraphicsDeviceInformation.DeviceType = DeviceType.Reference;
eventargs.GraphicsDeviceInformation.PresentationParameters.MultiSampleType = MultiSampleType.None;
}
...and then call the method in the main method:
if (GraphicsAdapter.DefaultAdapter.GetCapabilities(DeviceType.Hardware).MaxPixelShaderProfile < ShaderProfile.PS_2_0)
graphics.PreparingDeviceSettings += new EventHandler<PreparingDeviceSettingsEventArgs> (SetToReference);
Doing this in XNA 2.0, though, I get the following errors:
'Microsoft.Xna.Framework.GraphicsDeviceInformation' does not contain a definition for 'CreationOptions'
The name 'CreateOptions' does not exist in the current context
Is there a way to fix this? Thanks!