Ejemplo n.º 1
0
 /// <summary>
 /// Element-wise equality.
 /// </summary>
 /// <param name="other">The instance to compare to.</param>
 /// <returns>True if all elements and all array elements are equal; false otherswise.</returns>
 public bool Equals(ComputePipelineDescription other)
 {
     return(ComputeShader.Equals(other.ComputeShader) &&
            Util.ArrayEquals(ResourceLayouts, other.ResourceLayouts) &&
            ThreadGroupSizeX.Equals(other.ThreadGroupSizeX) &&
            ThreadGroupSizeY.Equals(other.ThreadGroupSizeY) &&
            ThreadGroupSizeZ.Equals(other.ThreadGroupSizeZ));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Element-wise equality.
 /// </summary>
 /// <param name="other">The instance to compare to.</param>
 /// <returns>True if all elements and all array elements are equal; false otherswise.</returns>
 public bool Equals(ComputePipelineDescription other)
 {
     return(ComputeShader.Equals(other.ComputeShader) && Util.ArrayEquals(ResourceLayouts, other.ResourceLayouts));
 }
Ejemplo n.º 3
0
 public bool Equals(ShaderStageDescription other)
 {
     return(Stage == other.Stage && Shader.Equals(other.Shader) && EntryPoint.Equals(other.EntryPoint));
 }