sg_compare_func
The compare-function for configuring depth- and stencil-ref tests in pipeline objects, and for texture samplers which perform a comparison instead of regular sampling operation.
Used in the following structs:
sg_pipeline_desc .depth .compare .stencil .front.compare .back.compar
sg_sampler_desc .compare
The default compare func for depth- and stencil-tests is SG_COMPAREFUNC_ALWAYS.
The default compare func for samplers is SG_COMPAREFUNC_NEVER
See Implementation
sg_compare_func
The compare-function for configuring depth- and stencil-ref tests in pipeline objects, and for texture samplers which perform a comparison instead of regular sampling operation.
Used in the following structs:
sg_pipeline_desc .depth .compare .stencil .front.compare .back.compar
sg_sampler_desc .compare
The default compare func for depth- and stencil-tests is SG_COMPAREFUNC_ALWAYS.
The default compare func for samplers is SG_COMPAREFUNC_NEVER