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