Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((effectInputSignature.GetHashCode() * 397) ^ vertexArrayLayout.GetHashCode());
     }
 }
Beispiel #2
0
 private int ComputeHashCode()
 {
     unchecked
     {
         int hashCode = (ShaderSignature != null ? ShaderSignature.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ VertexBuffers.ComputeHash(VertexBufferBindingComparer);
         hashCode = (hashCode * 397) ^ (IndexBuffer != null ? IndexBuffer.GetHashCode() : 0);
         return(hashCode);
     }
 }