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.0.0
See also
SDL_CopyGPUTextureToTexture

Definition at line 1145 of file SDL_gpu.h.

Field Documentation

◆ layer

Uint32 SDL_GPUTextureLocation::layer

The layer index of the location.

Definition at line 1149 of file SDL_gpu.h.

◆ mip_level

Uint32 SDL_GPUTextureLocation::mip_level

The mip level index of the location.

Definition at line 1148 of file SDL_gpu.h.

◆ texture

SDL_GPUTexture* SDL_GPUTextureLocation::texture

The texture used in the copy operation.

Definition at line 1147 of file SDL_gpu.h.

◆ x

Uint32 SDL_GPUTextureLocation::x

The left offset of the location.

Definition at line 1150 of file SDL_gpu.h.

◆ y

Uint32 SDL_GPUTextureLocation::y

The top offset of the location.

Definition at line 1151 of file SDL_gpu.h.

◆ z

Uint32 SDL_GPUTextureLocation::z

The front offset of the location.

Definition at line 1152 of file SDL_gpu.h.


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