SDL_GPUSamplerAddressMode(3type)

SDL_GPUSamplerAddressMode3type

Specifies behavior of texture sampling when the coordinates exceed the 0-1 range.

Usage

#include "SDL3/SDL.h"

typedef enum SDL_GPUSamplerAddressMode { SDL_GPU_SAMPLERADDRESSMODE_REPEAT, /**< Specifies that the coordinates will wrap around. */ SDL_GPU_SAMPLERADDRESSMODE_MIRRORED_REPEAT, /**< Specifies that the coordinates will wrap around mirrored. */ SDL_GPU_SAMPLERADDRESSMODE_CLAMP_TO_EDGE /**< Specifies that the coordinates will clamp to the 0-1 range. */ } SDL_GPUSamplerAddressMode;

Header file

Defined in SDL3/SDL_gpu.h

Availability

This enum is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.