Beispiel #1
0
 public static int ComputeHashCode(SpriteTexture texture, SamplerState sampler, int groupId, float rotation = 0)
 {
     return(texture.GetHashCode() ^ sampler.GetHashCode() ^ groupId.GetHashCode() ^ rotation.GetHashCode());
 }
Beispiel #2
0
 public override int GetHashCode()
 {
     return(Texture.GetHashCode() ^ TextureSampler.GetHashCode());
 }