Esempio 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));
 }
Esempio 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));
 }
Esempio n. 3
0
 public bool Equals(ShaderStageDescription other)
 {
     return(Stage == other.Stage && Shader.Equals(other.Shader) && EntryPoint.Equals(other.EntryPoint));
 }