Esempio n. 1
0
 public void TestNullDevice()
 {
     using (DummyBodyIndexProvider provider = new DummyBodyIndexProvider())
     {
         using (DynamicBodyIndexTextureProcessor textureProcessor = new DynamicBodyIndexTextureProcessor(provider, null))
         {
         }
     }
 }
Esempio n. 2
0
 public void TestReceive()
 {
     using (DummyBodyIndexProvider provider = new DummyBodyIndexProvider())
     {
         using (DynamicBodyIndexTextureProcessor textureProcessor = new DynamicBodyIndexTextureProcessor(provider, device))
         {
             provider.PushFrame();
             Assert.IsTrue(textureProcessor.NeedUpdate);
         }
     }
 }
Esempio n. 3
0
 public void TestCreate()
 {
     using (DummyBodyIndexProvider provider = new DummyBodyIndexProvider())
     {
         using (DynamicBodyIndexTextureProcessor textureProcessor = new DynamicBodyIndexTextureProcessor(provider, device))
         {
             Assert.IsFalse(textureProcessor.Texture.NormalizedView.NativePointer == IntPtr.Zero);
             Assert.IsFalse(textureProcessor.Texture.NormalizedView.NativePointer == IntPtr.Zero);
             Assert.IsFalse(textureProcessor.NeedUpdate);
         }
     }
 }
Esempio n. 4
0
 public void TestUpload()
 {
     using (DummyBodyIndexProvider provider = new DummyBodyIndexProvider())
     {
         using (DynamicBodyIndexTextureProcessor textureProcessor = new DynamicBodyIndexTextureProcessor(provider, device))
         {
             provider.PushFrame();
             Assert.IsTrue(textureProcessor.NeedUpdate);
             textureProcessor.Update(device.ImmediateContext);
             Assert.IsFalse(textureProcessor.NeedUpdate);
         }
     }
 }
Esempio n. 5
0
 public void TestNullProvider()
 {
     using (DynamicBodyIndexTextureProcessor textureProcessor = new DynamicBodyIndexTextureProcessor(null, device))
     {
     }
 }