25 using System.Runtime.InteropServices;
27 namespace SiliconStudio.
Paradox.Graphics
42 [StructLayout(LayoutKind.Sequential, Size = 4)]
56 this.Count = allMipMaps ? 0 : 1;
66 throw new ArgumentException(
"mipCount must be >= 0");
80 return this.Count == other.Count;
83 public override bool Equals(
object obj)
85 if (ReferenceEquals(null, obj))
97 return left.Equals(right);
102 return !left.Equals(right);
112 return mipMap.Count == 0;
A simple wrapper to specify number of mipmaps. Set to true to specify all mipmaps or sets an integer ...
override bool Equals(object obj)
MipMapCount(int count)
Initializes a new instance of the MipMapCount struct.
MipMapCount(bool allMipMaps)
Initializes a new instance of the MipMapCount struct.
override int GetHashCode()
readonly int Count
Number of mipmaps.
bool Equals(MipMapCount other)