SDL 3.0
SDL_GPUTextureLocation Struct Reference

#include <SDL_gpu.h>

Data Fields

SDL_GPUTexturetexture
 
Uint32 mip_level
 
Uint32 layer
 
Uint32 x
 
Uint32 y
 
Uint32 z
 

Detailed Description

A structure specifying a location in a texture.

Used when copying data from one texture to another.

Since
This struct is available since SDL 3.1.3
See also
SDL_CopyGPUTextureToTexture

Definition at line 1334 of file SDL_gpu.h.

Field Documentation

◆ layer

Uint32 SDL_GPUTextureLocation::layer

The layer index of the location.

Definition at line 1338 of file SDL_gpu.h.

◆ mip_level

Uint32 SDL_GPUTextureLocation::mip_level

The mip level index of the location.

Definition at line 1337 of file SDL_gpu.h.

◆ texture

SDL_GPUTexture* SDL_GPUTextureLocation::texture

The texture used in the copy operation.

Definition at line 1336 of file SDL_gpu.h.

◆ x

Uint32 SDL_GPUTextureLocation::x

The left offset of the location.

Definition at line 1339 of file SDL_gpu.h.

◆ y

Uint32 SDL_GPUTextureLocation::y

The top offset of the location.

Definition at line 1340 of file SDL_gpu.h.

◆ z

Uint32 SDL_GPUTextureLocation::z

The front offset of the location.

Definition at line 1341 of file SDL_gpu.h.


The documentation for this struct was generated from the following file: