public void DefaultDepthStencilStateIsValid()
		{
			// Arrange.
			var device = new Device();
			var depthStencilState = new DepthStencilState(device, DepthStencilStateDescription.Default);

			// Act / Assert.
			Assert.That(depthStencilState.DepthTestPasses(0.3f, 0.5f), Is.True);
			Assert.That(depthStencilState.DepthTestPasses(0.5f, 0.5f), Is.False);
			Assert.That(depthStencilState.DepthTestPasses(0.7f, 0.5f), Is.False);
		}
		public OutputMergerStage(Device device)
		{
			DepthStencilState = new DepthStencilState(device, DepthStencilStateDescription.Default);
			BlendState = new BlendState(device, BlendStateDescription.Default);
		}
Beispiel #3
0
 public OutputMergerStage(Device device)
 {
     DepthStencilState = new DepthStencilState(device, DepthStencilStateDescription.Default);
     BlendState        = new BlendState(device, BlendStateDescription.Default);
 }