25 using System.Runtime.InteropServices;
27 namespace SiliconStudio.
Paradox.Graphics
32 [StructLayout(LayoutKind.Sequential)]
110 copy.Flags = TextureFlags.None;
111 copy.Usage = GraphicsResourceUsage.Staging;
124 Dimension = description.Dimension,
125 Width = description.Width,
126 Height = description.Height,
127 Depth = description.Depth,
128 ArraySize = description.ArraySize,
129 MipLevels = description.MipLevels,
130 Format = description.Format,
131 Flags = TextureFlags.None,
132 Level = MSAALevel.None
145 Dimension = description.Dimension,
146 Width = description.Width,
147 Height = description.Height,
148 Depth = description.Depth,
149 ArraySize = description.ArraySize,
150 MipLevels = description.MipLevels,
151 Format = description.Format,
157 return Dimension == other.Dimension && Width == other.Width && Height == other.Height && Depth == other.Depth && ArraySize == other.ArraySize && MipLevels == other.MipLevels && Format == other.Format && Level == other.Level && Usage == other.Usage &&
Flags ==
other.Flags;
162 if (ReferenceEquals(null, obj))
return false;
171 int hashCode = (int)Dimension;
172 hashCode = (hashCode * 397) ^ Width;
173 hashCode = (hashCode * 397) ^ Height;
174 hashCode = (hashCode * 397) ^ Depth;
175 hashCode = (hashCode * 397) ^ ArraySize;
176 hashCode = (hashCode * 397) ^ MipLevels;
177 hashCode = (hashCode * 397) ^ (
int)Format;
178 hashCode = (hashCode * 397) ^ (
int)Level;
179 hashCode = (hashCode * 397) ^ (
int)Usage;
180 hashCode = (hashCode * 397) ^ (
int)
Flags;
193 return left.Equals(right);
204 return !left.Equals(right);
GraphicsResourceUsage
Identifies expected resource use during rendering. The usage directly reflects whether a resource is ...
MSAALevel
Multisample count level.
TextureDescription ToStagingDescription()
Gets the staging description for this instance..
TextureDimension
Defines the dimension of a texture.
Flags
Enumeration of the new Assimp's flags.
override int GetHashCode()
A Common description for all textures.
TextureDimension Dimension
The dimension of a texture.
GraphicsResourceUsage Usage
override bool Equals(object obj)
PixelFormat
Defines various types of pixel formats.
bool Equals(TextureDescription other)