---
name: "SDL_GPUCompareOp"
section: "3type"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GPUCompareOp"
---

# SDL\_GPUCompareOp(3type)

Specifies a comparison operator for depth, stencil and sampler operations.

## NAME

SDL\_GPUCompareOp - Specifies a comparison operator for depth, stencil and sampler operations.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**typedef enum SDL\_GPUCompareOp** **{**     **SDL\_GPU\_COMPAREOP\_INVALID,**     **SDL\_GPU\_COMPAREOP\_NEVER,             /\*\*\< The comparison always evaluates false. \*/**     **SDL\_GPU\_COMPAREOP\_LESS,              /\*\*\< The comparison evaluates reference \< test. \*/**     **SDL\_GPU\_COMPAREOP\_EQUAL,             /\*\*\< The comparison evaluates reference == test. \*/**     **SDL\_GPU\_COMPAREOP\_LESS\_OR\_EQUAL,     /\*\*\< The comparison evaluates reference \<= test. \*/**     **SDL\_GPU\_COMPAREOP\_GREATER,           /\*\*\< The comparison evaluates reference \> test. \*/**     **SDL\_GPU\_COMPAREOP\_NOT\_EQUAL,         /\*\*\< The comparison evaluates reference != test. \*/**     **SDL\_GPU\_COMPAREOP\_GREATER\_OR\_EQUAL,  /\*\*\< The comparison evalutes reference \>= test. \*/**     **SDL\_GPU\_COMPAREOP\_ALWAYS             /\*\*\< The comparison always evaluates true. \*/** **} SDL\_GPUCompareOp;**

## AVAILABILITY

This enum is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_CreateGPUGraphicsPipeline**(3)](/SDL_CreateGPUGraphicsPipeline/3.md)
