Exemple #1
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + (Shader == null ? 0 : Shader.GetHashCode());
         hash = hash * 23 + PrimitiveType.GetHashCode();
         hash = hash * 23 + (Rasterizer == null ? 0 : Rasterizer.GetHashCode());
         hash = hash * 23 + (DepthStencil == null ? 0 : DepthStencil.GetHashCode());
         hash = hash * 23 + (Blend == null ? 0 : Blend.GetHashCode());
         return(hash);
     }
 }