---
name: "SDL_GPULoadOp"
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_GPULoadOp"
---

# SDL\_GPULoadOp(3type)

Specifies how the contents of a texture attached to a render pass are treated at the beginning of the render pass.

## NAME

SDL\_GPULoadOp - Specifies how the contents of a texture attached to a render pass are treated at the beginning of the render pass.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

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

**typedef enum SDL\_GPULoadOp** **{**     **SDL\_GPU\_LOADOP\_LOAD,      /\*\*\< The previous contents of the texture will be preserved. \*/**     **SDL\_GPU\_LOADOP\_CLEAR,     /\*\*\< The contents of the texture will be cleared to a color. \*/**     **SDL\_GPU\_LOADOP\_DONT\_CARE  /\*\*\< The previous contents of the texture need not be preserved. The contents will be undefined. \*/** **} SDL\_GPULoadOp;**

## AVAILABILITY

This enum is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_BeginGPURenderPass**(3)](/SDL_BeginGPURenderPass/3.md)
