public void TestNullDevice() { using (DummyDepthProvider provider = new DummyDepthProvider()) { using (DynamicDepthTextureProcessor textureProcessor = new DynamicDepthTextureProcessor(provider, null)) { } } }
public void TestReceive() { using (DummyDepthProvider provider = new DummyDepthProvider()) { using (DynamicDepthTextureProcessor textureProcessor = new DynamicDepthTextureProcessor(provider, device)) { provider.PushFrame(); Assert.IsTrue(textureProcessor.NeedUpdate); } } }
public void TestCreate() { using (DummyDepthProvider provider = new DummyDepthProvider()) { using (DynamicDepthTextureProcessor textureProcessor = new DynamicDepthTextureProcessor(provider, device)) { Assert.IsFalse(textureProcessor.Texture.NormalizedView.NativePointer == IntPtr.Zero); Assert.IsFalse(textureProcessor.Texture.NormalizedView.NativePointer == IntPtr.Zero); Assert.IsFalse(textureProcessor.NeedUpdate); } } }
public void TestUpload() { using (DummyDepthProvider provider = new DummyDepthProvider()) { using (DynamicDepthTextureProcessor textureProcessor = new DynamicDepthTextureProcessor(provider, device)) { provider.PushFrame(); Assert.IsTrue(textureProcessor.NeedUpdate); textureProcessor.Update(device.ImmediateContext); Assert.IsFalse(textureProcessor.NeedUpdate); } } }