/// <summary>
        /// Finds any depthstencil formats that are incompatible with multisample types and
        /// builds a list of them.
        /// </summary>
        public void BuildDepthStencilMultiSampleConflictList(DeviceCombo deviceCombo)
        {
            DepthStencilMultiSampleConflict DSMSConflict;

            foreach (DepthFormat dsFmt in deviceCombo.DepthStencilFormatList)
            {
                foreach (MultiSampleType msType in deviceCombo.MultiSampleTypeList)
                {
                    if (!Manager.CheckDeviceMultiSampleType(deviceCombo.AdapterOrdinal,
                                                            deviceCombo.DevType, (Format)dsFmt, deviceCombo.IsWindowed, msType))
                    {
                        DSMSConflict = new DepthStencilMultiSampleConflict();
                        DSMSConflict.DepthStencilFormat = dsFmt;
                        DSMSConflict.MultiSampleType    = msType;
                        deviceCombo.DepthStencilMultiSampleConflictList.Add(DSMSConflict);
                    }
                }
            }
        }
Esempio n. 2
0
    /// <summary>
    /// Finds any depthstencil formats that are incompatible with multisample types and
    /// builds a list of them.
    /// </summary>
    public void BuildDepthStencilMultiSampleConflictList(DeviceCombo deviceCombo)
    {
      DepthStencilMultiSampleConflict DSMSConflict;

      foreach (DepthFormat dsFmt in deviceCombo.DepthStencilFormatList)
      {
        foreach (MultiSampleType msType in deviceCombo.MultiSampleTypeList)
        {
          if (!Manager.CheckDeviceMultiSampleType(deviceCombo.AdapterOrdinal,
                                                  deviceCombo.DevType, (Format)dsFmt, deviceCombo.IsWindowed, msType))
          {
            DSMSConflict = new DepthStencilMultiSampleConflict();
            DSMSConflict.DepthStencilFormat = dsFmt;
            DSMSConflict.MultiSampleType = msType;
            deviceCombo.DepthStencilMultiSampleConflictList.Add(DSMSConflict);
          }
        }
      }
    }