1068 {
1069 presentationParameters.BackBufferWidth = *(int*)pp;
1070 presentationParameters.BackBufferHeight = *(int*)((byte*)pp + 4);
1071 presentationParameters.BackBufferFormat = _003CModule_003E.ConvertWindowsFormatToXna(*(_D3DFORMAT*)((byte*)pp + 8));
1072 DepthFormat depthStencilFormat = ((*(
int*)((
byte*)pp + 36) != 0) ? _003CModule_003E.ConvertWindowsDepthFormatToXna(*(_D3DFORMAT*)((
byte*)pp + 40)) : DepthFormat.
None);
1073 presentationParameters.DepthStencilFormat = depthStencilFormat;
1074 presentationParameters.MultiSampleCount = *(int*)((byte*)pp + 16);
1075 switch ((uint)(*(int*)((byte*)pp + 52)))
1076 {
1077 default:
1078 presentationParameters.PresentationInterval = PresentInterval.Default;
1079 break;
1080 case 2147483648u:
1081 presentationParameters.PresentationInterval = PresentInterval.Immediate;
1082 break;
1083 case 2u:
1084 presentationParameters.PresentationInterval = PresentInterval.Two;
1085 break;
1086 case 1u:
1087 presentationParameters.PresentationInterval = PresentInterval.One;
1088 break;
1089 }
1090 }