mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-09-15 23:17:02 +00:00
Implemented GetHashCode and ToString.
This commit is contained in:
parent
732a602578
commit
5d1eda9289
|
@ -177,10 +177,27 @@ namespace OpenTK.Graphics
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
//public override int GetHashCode()
|
#region public override int GetHashCode()
|
||||||
//{
|
|
||||||
// return (this as IGraphicsResource).Id;
|
public override int GetHashCode()
|
||||||
//}
|
{
|
||||||
|
return (this as IGraphicsResource).Id;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region public overrid string ToString()
|
||||||
|
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
return String.Format("Texture2D #{0} ({1}x{2}, {3})",
|
||||||
|
(this as IGraphicsResource).Id.ToString(),
|
||||||
|
Width.ToString(),
|
||||||
|
Height.ToString(),
|
||||||
|
InternalFormat.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue