コード例 #1
0
 public void TestNullDevice()
 {
     using (DummyDepthProvider provider = new DummyDepthProvider())
     {
         using (DynamicDepthTextureProcessor textureProcessor = new DynamicDepthTextureProcessor(provider, null))
         {
         }
     }
 }
コード例 #2
0
 public void TestReceive()
 {
     using (DummyDepthProvider provider = new DummyDepthProvider())
     {
         using (DynamicDepthTextureProcessor textureProcessor = new DynamicDepthTextureProcessor(provider, device))
         {
             provider.PushFrame();
             Assert.IsTrue(textureProcessor.NeedUpdate);
         }
     }
 }
コード例 #3
0
 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);
         }
     }
 }
コード例 #4
0
 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);
         }
     }
 }
コード例 #5
0
 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);
         }
     }
 }
コード例 #6
0
 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);
         }
     }
 }
コード例 #7
0
 public void TestReceive()
 {
     using (DummyDepthProvider provider = new DummyDepthProvider())
     {
         using (DynamicDepthTextureProcessor textureProcessor = new DynamicDepthTextureProcessor(provider, device))
         {
             provider.PushFrame();
             Assert.IsTrue(textureProcessor.NeedUpdate);
         }
     }
 }
コード例 #8
0
 public void TestNullDevice()
 {
     using (DummyDepthProvider provider = new DummyDepthProvider())
     {
         using (DynamicDepthTextureProcessor textureProcessor = new DynamicDepthTextureProcessor(provider, null))
         {
         }
     }
 }