Ejemplo n.º 1
0
 /// <summary>
 /// Find any conflicts between the available depth/stencil formats and
 /// multisample types.
 /// </summary>
 private static void BuildConflictList(EnumDeviceSettingsCombo deviceCombo)
 {
     foreach (DepthFormat depthFormat in deviceCombo.depthStencilFormatList)
     {
         foreach (MultiSampleType msType in deviceCombo.multiSampleTypeList)
         {
             // Check this for conflict
             if (!Manager.CheckDeviceMultiSampleType((int)deviceCombo.AdapterOrdinal,
                                                     deviceCombo.DeviceType, (Format)depthFormat,
                                                     deviceCombo.IsWindowed, msType))
             {
                 // Add it to the list
                 EnumDepthStencilMultisampleConflict conflict = new EnumDepthStencilMultisampleConflict();
                 conflict.DepthStencilFormat = depthFormat;
                 conflict.MultisampleType    = msType;
                 deviceCombo.depthStencilConflictList.Add(conflict);
             }
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Find any conflicts between the available depth/stencil formats and
 /// multisample types.
 /// </summary>
 private static void BuildConflictList(EnumDeviceSettingsCombo deviceCombo)
 {
     foreach(DepthFormat depthFormat in deviceCombo.depthStencilFormatList)
     {
         foreach(MultiSampleType msType in deviceCombo.multiSampleTypeList)
         {
             // Check this for conflict
             if (!Manager.CheckDeviceMultiSampleType((int)deviceCombo.AdapterOrdinal,
                 deviceCombo.DeviceType, (Format)depthFormat,
                 deviceCombo.IsWindowed, msType))
             {
                 // Add it to the list
                 EnumDepthStencilMultisampleConflict conflict = new EnumDepthStencilMultisampleConflict();
                 conflict.DepthStencilFormat = depthFormat;
                 conflict.MultisampleType = msType;
                 deviceCombo.depthStencilConflictList.Add(conflict);
             }
         }
     }
 }