public void CreateIrradianceTextureCubeTest_b() { var V2 = new Vector2i(3, 3); using (var obj = new MDLTexture()) { using (var txt = MDLTexture.CreateIrradianceTextureCube(obj, "name", V2, 0.1234f)) { Assert.IsNotNull(txt, "Ain't Null"); Assert.AreEqual(4, txt.ChannelCount, "ChannelCount"); Assert.AreEqual(MDLTextureChannelEncoding.UInt8, txt.ChannelEncoding, "ChannelEncoding"); Assert.AreEqual(new Vector2i(3, 18), txt.Dimensions, "Dimensions"); Assert.AreEqual(1, txt.MipLevelCount, "MipLevelCount"); Assert.AreEqual(12, txt.RowStride, "RowStride"); } } }
public void CreateIrradianceTextureCubeTest_b() { var V2 = new Vector2i(3, 3); using (var obj = new MDLTexture()) { using (var txt = MDLTexture.CreateIrradianceTextureCube(obj, "name", V2, 0.1234f)) { if (TestRuntime.CheckXcodeVersion(8, 0)) { Assert.IsNull(txt, "Is Null"); // this is probably because the arguments to CreateIrradianceTextureCube are invalid, but I haven't been able to figure out valid values. } else { Assert.IsNotNull(txt, "Ain't Null"); Assert.AreEqual((nuint)4, txt.ChannelCount, "ChannelCount"); Assert.AreEqual(MDLTextureChannelEncoding.UInt8, txt.ChannelEncoding, "ChannelEncoding"); Assert.AreEqual(new Vector2i(3, 18), txt.Dimensions, "Dimensions"); Assert.AreEqual((nuint)1, txt.MipLevelCount, "MipLevelCount"); Assert.AreEqual((nint)12, txt.RowStride, "RowStride"); } } } }