Ejemplo n.º 1
0
        public void CreateSimple()
        {
            DX11RenderTextureArray array = new DX11RenderTextureArray(this.Device, 256, 256, 4, Format.R8G8B8A8_UNorm, false);

            Assert.IsNotNull(array.RenderView);
            Assert.IsNotNull(array.ShaderView);
            Assert.IsNull(array.Slices);

            array.Dispose();
        }
Ejemplo n.º 2
0
        public void CreateWithSlices()
        {
            int slicecount = 4;
            DX11RenderTextureArray array = new DX11RenderTextureArray(this.Device, 256, 256, slicecount, Format.R8G8B8A8_UNorm, true);

            Assert.IsNotNull(array.RenderView);
            Assert.IsNotNull(array.ShaderView);
            Assert.IsNotNull(array.Slices);
            Assert.AreEqual(slicecount, array.Slices.Length);

            array.Dispose();
        }