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