Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    CompareFunction Enum

    Namespace: Stride.Graphics
    Assembly: Stride.dll

    Comparison options.

    [DataContract]
    public enum CompareFunction
    Remarks

    A comparison option determines whether how the runtime compares source (new) data against destination (existing) data before storing the new data. The comparison option is declared in a description before an object is created. The API allows you to set a comparison option for a depth-stencil buffer (see ), depth-stencil operations, or sampler state (see ).

    Fields

    Name Description
    Always

    Always pass the comparison.

    Equal

    If the source data is equal to the destination data, the comparison passes.

    Greater

    If the source data is greater than the destination data, the comparison passes.

    GreaterEqual

    If the source data is greater than or equal to the destination data, the comparison passes.

    Less

    If the source data is less than the destination data, the comparison passes.

    LessEqual

    If the source data is less than or equal to the destination data, the comparison passes.

    Never

    Never pass the comparison.

    NotEqual

    If the source data is not equal to the destination data, the comparison passes.

    Extension Methods

    ComponentBaseExtensions.DisposeBy<CompareFunction>(ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<CompareFunction>(ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation