25 using System.Runtime.InteropServices;
26 using SiliconStudio.Core;
27 using SiliconStudio.Core.Serialization;
29 namespace SiliconStudio.
Paradox.Graphics
35 [StructLayout(LayoutKind.Sequential)]
90 return Dimension.Equals(other.Dimension) && Width == other.
Width && Height == other.
Height && Depth == other.
Depth && ArraySize == other.
ArraySize && MipLevels == other.
MipLevels && Format.Equals(other.
Format);
93 public override bool Equals(
object obj)
95 if (ReferenceEquals(null, obj))
return false;
103 int hashCode = Dimension.GetHashCode();
104 hashCode = (hashCode * 397) ^ Width;
105 hashCode = (hashCode * 397) ^ Height;
106 hashCode = (hashCode * 397) ^ Depth;
107 hashCode = (hashCode * 397) ^ ArraySize;
108 hashCode = (hashCode * 397) ^ MipLevels;
109 hashCode = (hashCode * 397) ^ Format.GetHashCode();
116 return left.Equals(right);
121 return !left.Equals(right);
126 return string.Format(
"Dimension: {0}, Width: {1}, Height: {2}, Depth: {3}, Format: {4}, ArraySize: {5}, MipLevels: {6}", Dimension, Width, Height, Depth, Format, ArraySize, MipLevels);
override bool Equals(object obj)
TextureDimension
Defines the dimension of a texture.
override int GetHashCode()
bool Equals(ImageDescription other)
override string ToString()
PixelFormat
Defines various types of pixel formats.
TextureDimension Dimension
The dimension of a texture.