亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? d3dsettingsform.cs

?? Particle System Test Application on C#
?? CS
?? 第 1 頁 / 共 3 頁
字號:
		// Update settings with new refresh rate
		string refreshRateString = (string)refreshRateComboBox.SelectedItem;
		int refreshRate = 0;
		if (refreshRateString != "Default Rate")
		{
			string[] refreshRateSplitStringArray = refreshRateString.Split();
			refreshRate = int.Parse(refreshRateSplitStringArray[0]);
		}
		settings.FullscreenDisplayMode.RefreshRate = refreshRate;
	}




	/// <summary>
	/// Respond to a change of selected back buffer format by rebuilding
	/// the depth/stencil format list, multisample type list, and vertex
	/// processing type list.
	/// </summary>
	private void BackBufferFormatChanged(object sender, System.EventArgs e)
	{
		GraphicsDeviceInfo deviceInfo = (GraphicsDeviceInfo)deviceComboBox.SelectedItem;
		Format adapterFormat = (Format)adapterFormatComboBox.SelectedItem;
		Format backBufferFormat = (Format)backBufferFormatComboBox.SelectedItem;

		foreach (DeviceCombo deviceCombo in deviceInfo.DeviceComboList)
		{
			if (deviceCombo.IsWindowed == settings.IsWindowed &&
				deviceCombo.AdapterFormat == adapterFormat &&
				deviceCombo.BackBufferFormat == backBufferFormat)
			{
				deviceCombo.BackBufferFormat = backBufferFormat;
				settings.DeviceCombo = deviceCombo;

				depthStencilBufferComboBox.Items.Clear();
				if (enumeration.AppUsesDepthBuffer)
				{
					foreach (DepthFormat format in deviceCombo.DepthStencilFormatList)
					{
						depthStencilBufferComboBox.Items.Add(format);
						if (format == settings.DepthStencilBufferFormat)
							depthStencilBufferComboBox.SelectedItem = format;
					}
					if (depthStencilBufferComboBox.SelectedItem == null && depthStencilBufferComboBox.Items.Count > 0)
						depthStencilBufferComboBox.SelectedIndex = 0;
				}
				else
				{
					depthStencilBufferComboBox.Enabled = false;
					depthStencilBufferComboBox.Items.Add("(not used)");
					depthStencilBufferComboBox.SelectedIndex = 0;
				}

				vertexProcComboBox.Items.Clear();
				foreach (VertexProcessingType vpt in deviceCombo.VertexProcessingTypeList)
				{
					vertexProcComboBox.Items.Add(vpt);
					if (vpt == settings.VertexProcessingType)
						vertexProcComboBox.SelectedItem = vpt;
				}
				if (vertexProcComboBox.SelectedItem == null && vertexProcComboBox.Items.Count > 0)
					vertexProcComboBox.SelectedIndex = 0;

				presentIntervalComboBox.Items.Clear();
				foreach (PresentInterval pi in deviceCombo.PresentIntervalList)
				{
					presentIntervalComboBox.Items.Add(pi);
					if (pi == settings.PresentInterval)
						presentIntervalComboBox.SelectedItem = pi;
				}
				if (presentIntervalComboBox.SelectedItem == null && presentIntervalComboBox.Items.Count > 0)
					presentIntervalComboBox.SelectedIndex = 0;

				break;
			}
		}
	}




	/// <summary>
	/// Respond to a change of selected depth/stencil buffer format.
	/// </summary>
	private void DepthStencilBufferFormatChanged(object sender, System.EventArgs e)
	{
		if (enumeration.AppUsesDepthBuffer)
			settings.DepthStencilBufferFormat = (DepthFormat)depthStencilBufferComboBox.SelectedItem;

		multisampleComboBox.Items.Clear();
		foreach (MultiSampleType msType in settings.DeviceCombo.MultiSampleTypeList)
		{
			// Check for DS/MS conflict
			bool conflictFound = false;
			foreach (DepthStencilMultiSampleConflict DSMSConflict in settings.DeviceCombo.DepthStencilMultiSampleConflictList)
			{
				if (DSMSConflict.DepthStencilFormat == settings.DepthStencilBufferFormat &&
					DSMSConflict.MultiSampleType == msType)
				{
					conflictFound = true;
					break;
				}
			}
			if (!conflictFound)
			{
				multisampleComboBox.Items.Add(msType);
				if (msType == settings.MultisampleType)
					multisampleComboBox.SelectedItem = msType;
			}
		}
		if (multisampleComboBox.SelectedItem == null && multisampleComboBox.Items.Count > 0)
			multisampleComboBox.SelectedIndex = 0;

	}




	/// <summary>
	/// Respond to a change of selected multisample type.
	/// </summary>
	private void MultisampleTypeChanged(object sender, System.EventArgs e)
	{
		settings.MultisampleType = (MultiSampleType)multisampleComboBox.SelectedItem;

		// Find current max multisample quality
		int maxQuality = 0;
		DeviceCombo deviceCombo = settings.DeviceCombo;
		for (int i = 0; i < deviceCombo.MultiSampleQualityList.Count; i++)
		{
			if ((MultiSampleType)deviceCombo.MultiSampleTypeList[i] == settings.MultisampleType)
			{
				maxQuality = (int)deviceCombo.MultiSampleQualityList[i];
				break;
			}
		}
		
		// Update multisample quality list based on new type
		multisampleQualityComboBox.Items.Clear();
		for (int iLevel = 0; iLevel < maxQuality; iLevel++)
		{
			multisampleQualityComboBox.Items.Add(iLevel);
			if (settings.MultisampleQuality == iLevel)
				multisampleQualityComboBox.SelectedItem = iLevel;
		}
		if (multisampleQualityComboBox.SelectedItem == null && multisampleQualityComboBox.Items.Count > 0)
			multisampleQualityComboBox.SelectedIndex = 0;
	}




	/// <summary>
	/// Respond to a change of selected multisample quality.
	/// </summary>
	private void MultisampleQualityChanged(object sender, System.EventArgs e)
	{
		settings.MultisampleQuality = (int)multisampleQualityComboBox.SelectedItem;
	}




	/// <summary>
	/// Respond to a change of selected vertex processing type.
	/// </summary>
	private void VertexProcessingChanged(object sender, System.EventArgs e)
	{
		settings.VertexProcessingType = (VertexProcessingType)vertexProcComboBox.SelectedItem;
	}




	/// <summary>
	/// Respond to a change of selected vertex processing type.
	/// </summary>
	private void PresentIntervalChanged(object sender, System.EventArgs e)
	{
		settings.PresentInterval = (PresentInterval)presentIntervalComboBox.SelectedItem;
	}
}


/// <summary>
/// Current D3D settings: adapter, device, mode, formats, etc.
/// </summary>
public class D3DSettings 
{
	public bool IsWindowed;

	public GraphicsAdapterInfo WindowedAdapterInfo;
	public GraphicsDeviceInfo WindowedDeviceInfo;
	public DeviceCombo WindowedDeviceCombo;
	public DisplayMode WindowedDisplayMode; // not changable by the user
	public DepthFormat WindowedDepthStencilBufferFormat;
	public MultiSampleType WindowedMultisampleType;
	public int WindowedMultisampleQuality;
	public VertexProcessingType WindowedVertexProcessingType;
	public PresentInterval WindowedPresentInterval;
	public int WindowedWidth;
	public int WindowedHeight;

	public GraphicsAdapterInfo FullscreenAdapterInfo;
	public GraphicsDeviceInfo FullscreenDeviceInfo;
	public DeviceCombo FullscreenDeviceCombo;
	public DisplayMode FullscreenDisplayMode; // changable by the user
	public DepthFormat FullscreenDepthStencilBufferFormat;
	public MultiSampleType FullscreenMultisampleType;
	public int FullscreenMultisampleQuality;
	public VertexProcessingType FullscreenVertexProcessingType;
	public PresentInterval FullscreenPresentInterval;


    
    
    /// <summary>
    /// The adapter information
    /// </summary>
	public GraphicsAdapterInfo AdapterInfo
	{
		get { return IsWindowed ? WindowedAdapterInfo : FullscreenAdapterInfo; }
		set { if (IsWindowed) WindowedAdapterInfo = value; else FullscreenAdapterInfo = value; }
	}


    
    
    /// <summary>
    /// The device information
    /// </summary>
	public GraphicsDeviceInfo DeviceInfo
	{
		get { return IsWindowed ? WindowedDeviceInfo : FullscreenDeviceInfo; }
		set { if (IsWindowed) WindowedDeviceInfo = value; else FullscreenDeviceInfo = value; }
	}


    
    
    /// <summary>
    /// The device combo
    /// </summary>
	public DeviceCombo DeviceCombo
	{
		get { return IsWindowed ? WindowedDeviceCombo : FullscreenDeviceCombo; }
		set { if (IsWindowed) WindowedDeviceCombo = value; else FullscreenDeviceCombo = value; }
	}


    
    
    /// <summary>
    /// The adapters ordinal
    /// </summary>
	public int AdapterOrdinal
	{
		get { return DeviceCombo.AdapterOrdinal; }
	}


    
    
    /// <summary>
    /// The type of device this is
    /// </summary>
	public DeviceType DevType
	{
		get { return DeviceCombo.DevType; }
	}


    
    
    /// <summary>
    /// The back buffers format
    /// </summary>
	public Format BackBufferFormat
	{
		get { return DeviceCombo.BackBufferFormat; }
	}


    

    /// <summary>
    /// The display mode
    /// </summary>
    public DisplayMode DisplayMode
	{
		get { return IsWindowed ? WindowedDisplayMode : FullscreenDisplayMode; }
		set { if (IsWindowed) WindowedDisplayMode = value; else FullscreenDisplayMode = value; }
	}



    
    /// <summary>
    /// The Depth stencils format
    /// </summary>
    public DepthFormat DepthStencilBufferFormat
	{
		get { return IsWindowed ? WindowedDepthStencilBufferFormat : FullscreenDepthStencilBufferFormat; }
		set { if (IsWindowed) WindowedDepthStencilBufferFormat = value; else FullscreenDepthStencilBufferFormat = value; }
	}




    /// <summary>
    /// The multisample type
    /// </summary>
	public MultiSampleType MultisampleType
	{
		get { return IsWindowed ? WindowedMultisampleType : FullscreenMultisampleType; }
		set { if (IsWindowed) WindowedMultisampleType = value; else FullscreenMultisampleType = value; }
	}




    /// <summary>
    /// The multisample quality
    /// </summary>
	public int MultisampleQuality
	{
		get { return IsWindowed ? WindowedMultisampleQuality : FullscreenMultisampleQuality; }
		set { if (IsWindowed) WindowedMultisampleQuality = value; else FullscreenMultisampleQuality = value; }
	}




    /// <summary>
    /// The vertex processing type
    /// </summary>
	public VertexProcessingType VertexProcessingType
	{
		get { return IsWindowed ? WindowedVertexProcessingType : FullscreenVertexProcessingType; }
		set { if (IsWindowed) WindowedVertexProcessingType = value; else FullscreenVertexProcessingType = value; }
	}




    /// <summary>
    /// The presentation interval
    /// </summary>
	public PresentInterval PresentInterval
	{
		get { return IsWindowed ? WindowedPresentInterval : FullscreenPresentInterval; }
		set { if (IsWindowed) WindowedPresentInterval = value; else FullscreenPresentInterval = value; }
	}




    /// <summary>
    /// Clone the d3d settings class
    /// </summary>
	public D3DSettings Clone() 
	{
		return (D3DSettings)MemberwiseClone();
	}
}


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99精品黄色片免费大全| 欧美一级一区二区| 成人黄动漫网站免费app| 久草这里只有精品视频| 麻豆国产一区二区| 久久精品免费看| 久久精品72免费观看| 美女尤物国产一区| 久久不见久久见中文字幕免费| 韩国欧美一区二区| 久久91精品国产91久久小草| 裸体在线国模精品偷拍| 精品一区二区三区影院在线午夜| 久久久久亚洲蜜桃| 2023国产精品自拍| 国产欧美一区二区精品忘忧草| 99国产精品久久久久| 91免费精品国自产拍在线不卡| 丝袜美腿一区二区三区| 午夜免费久久看| 亚洲成年人网站在线观看| 午夜欧美电影在线观看| 麻豆视频观看网址久久| 国产精品1024| 91社区在线播放| 欧美剧在线免费观看网站| 欧美一区二区视频免费观看| 久久先锋影音av鲁色资源| 国产精品久久久久久久浪潮网站| 日韩三级中文字幕| 国产欧美精品国产国产专区| 国产精品色在线| 亚洲一区二区三区免费视频| 蜜臀91精品一区二区三区 | 国产精品传媒入口麻豆| 婷婷夜色潮精品综合在线| 日韩免费视频一区二区| 色天天综合久久久久综合片| 欧美三级欧美一级| 日韩一区国产二区欧美三区| 欧美—级在线免费片| 亚洲国产综合在线| 国内一区二区在线| 色婷婷亚洲一区二区三区| 666欧美在线视频| 国产日韩精品一区| 亚洲高清不卡在线| 成人午夜免费av| 欧美区在线观看| 欧美国产精品一区二区三区| 亚洲一区二区中文在线| 国产成人免费av在线| 精品视频999| 欧美极品xxx| 六月丁香婷婷色狠狠久久| 97久久超碰国产精品| 日韩精品一区二区三区蜜臀 | 精品99一区二区三区| 国产精品灌醉下药二区| 日本中文字幕一区二区有限公司| 一区二区三区在线观看网站| 蜜桃视频第一区免费观看| 成人久久18免费网站麻豆| 在线播放一区二区三区| 国产精品午夜久久| 美女视频一区二区三区| 在线观看免费视频综合| 欧美极品少妇xxxxⅹ高跟鞋| 午夜av电影一区| 92精品国产成人观看免费 | 国产日韩一级二级三级| 亚洲成人av资源| 91玉足脚交白嫩脚丫在线播放| 成人精品免费视频| 日韩一二在线观看| 亚洲综合自拍偷拍| 99久久伊人精品| 国产日产亚洲精品系列| 日韩vs国产vs欧美| 欧美综合一区二区| 亚洲视频 欧洲视频| 国产成人精品在线看| 欧美变态口味重另类| 日韩精品电影在线观看| 一本大道久久a久久精品综合| 欧美老年两性高潮| 亚洲国产精品一区二区久久| 91啪亚洲精品| 亚洲欧洲av在线| 成人福利视频在线看| 国产欧美一区二区三区在线老狼| 亚洲欧洲成人精品av97| 国产suv精品一区二区三区| 欧美成人aa大片| 另类小说色综合网站| 在线91免费看| 日韩电影在线观看一区| 欧美少妇一区二区| 亚洲图片有声小说| 在线精品视频一区二区三四| 亚洲三级电影网站| 91视频在线观看免费| 综合精品久久久| 91网页版在线| 一区二区三区精品久久久| 日本韩国欧美一区| 亚洲一区二区三区激情| 欧美日韩大陆一区二区| 性做久久久久久免费观看| 欧美日韩综合一区| 日韩精品视频网站| 91精品国产综合久久蜜臀| 日韩av网站在线观看| 日韩欧美国产三级电影视频| 精品在线一区二区| 久久精品欧美日韩| 成人国产精品免费网站| 亚洲人成人一区二区在线观看| 蜜臀91精品一区二区三区 | 欧美性大战久久久久久久蜜臀| 欧美一区二区黄色| 精品一二三四在线| 久久亚洲综合av| 风间由美一区二区三区在线观看 | 国产精品拍天天在线| www.亚洲在线| 一区二区三区四区在线免费观看 | 国产aⅴ综合色| 中文字幕欧美一区| 欧美在线视频日韩| 日本欧美大码aⅴ在线播放| 欧美一级二级三级蜜桃| 国产一区二区美女诱惑| 国产嫩草影院久久久久| 91美女精品福利| 亚洲高清中文字幕| 日韩三级免费观看| 成人综合激情网| 亚洲一级片在线观看| 日韩午夜小视频| 福利一区二区在线| 亚洲成人精品一区| 久久精品视频网| 91福利精品视频| 日韩和的一区二区| 国产精品久久久久久福利一牛影视 | 成人高清在线视频| 亚洲夂夂婷婷色拍ww47| 欧美精品一区二| 在线视频观看一区| 国产激情精品久久久第一区二区| 欧美成人一区二区三区| 成人av在线资源| 日韩电影在线观看一区| 亚洲国产高清在线| 欧美日韩mp4| 成人精品国产免费网站| 蜜桃av一区二区在线观看| 国产精品白丝在线| 欧美成人精品福利| 欧美色中文字幕| 丁香桃色午夜亚洲一区二区三区| 国产日本欧美一区二区| 欧美日韩国产区一| 波多野洁衣一区| 蜜桃传媒麻豆第一区在线观看| 亚洲女同一区二区| 久久色在线观看| 欧美日韩电影在线播放| 97久久久精品综合88久久| 国产乱码精品一区二区三区av| 精品剧情在线观看| 在线观看国产日韩| 成人精品视频.| 国产一区999| 日日夜夜精品免费视频| 日韩一区欧美一区| 国产人妖乱国产精品人妖| 日韩欧美国产一区二区三区| 欧美在线观看视频在线| 国产成人精品三级| 韩国欧美国产一区| 奇米亚洲午夜久久精品| 亚洲精品久久7777| 国产精品久久二区二区| 久久免费看少妇高潮| 日韩美女天天操| 69久久99精品久久久久婷婷 | 日韩欧美中文一区| 欧美日韩免费一区二区三区| yourporn久久国产精品| 懂色av一区二区在线播放| 精品一区二区三区欧美| 香蕉久久夜色精品国产使用方法 | 久久久精品tv| 欧美va在线播放| 日韩一区二区在线观看| 在线播放91灌醉迷j高跟美女| 久久99国产精品久久99果冻传媒| 国产欧美日韩精品一区|