public void Constructors() { MPSImageHistogramInfo info = new MPSImageHistogramInfo(); info.NumberOfHistogramEntries = 256; using (var obj = new MPSImageHistogramSpecification(MTLDevice.SystemDefault, ref info)) { var rv = obj.HistogramInfo; Asserts.AreEqual(info, rv, "HistogramForAlpha"); } }
public void Constructors() { #if !MONOMAC TestRuntime.AssertDevice(); TestRuntime.AssertXcodeVersion(7, 0); #else TestRuntime.AssertXcodeVersion(9, 0); #endif MPSImageHistogramInfo info = new MPSImageHistogramInfo(); info.NumberOfHistogramEntries = 256; using (var obj = new MPSImageHistogramSpecification(MTLDevice.SystemDefault, ref info)) { var rv = obj.HistogramInfo; Asserts.AreEqual(info, rv, "HistogramForAlpha"); } }