Anonymous
public text v1 · immutable protected override GraphicsDeviceInformation FindBestDevice( bool anySuitableDevice )
{
GraphicsDeviceInformation information = base.FindBestDevice( anySuitableDevice );
foreach( GraphicsAdapter adapter in GraphicsAdapter.Adapters )
{
if( adapter.Description == "PerfHUD" )
{
information.Adapter = adapter;
information.DeviceType = DeviceType.Reference;
information.CreationOptions = CreateOptions.HardwareVertexProcessing;
}
}
return information;
}