SDL 3.0
SDL_GPUBlitRegion Struct Reference

#include <SDL_gpu.h>

Data Fields

SDL_GPUTexturetexture
 
Uint32 mip_level
 
Uint32 layer_or_depth_plane
 
Uint32 x
 
Uint32 y
 
Uint32 w
 
Uint32 h
 

Detailed Description

A structure specifying a region of a texture used in the blit operation.

Since
This struct is available since SDL 3.0.0
See also
SDL_BlitGPUTexture

Definition at line 1038 of file SDL_gpu.h.

Field Documentation

◆ h

Uint32 SDL_GPUBlitRegion::h

The height of the region.

Definition at line 1046 of file SDL_gpu.h.

◆ layer_or_depth_plane

Uint32 SDL_GPUBlitRegion::layer_or_depth_plane

The layer index or depth plane of the region. This value is treated as a layer index on 2D array and cube textures, and as a depth plane on 3D textures.

Definition at line 1042 of file SDL_gpu.h.

◆ mip_level

Uint32 SDL_GPUBlitRegion::mip_level

The mip level index of the region.

Definition at line 1041 of file SDL_gpu.h.

◆ texture

SDL_GPUTexture* SDL_GPUBlitRegion::texture

The texture.

Definition at line 1040 of file SDL_gpu.h.

◆ w

Uint32 SDL_GPUBlitRegion::w

The width of the region.

Definition at line 1045 of file SDL_gpu.h.

◆ x

Uint32 SDL_GPUBlitRegion::x

The left offset of the region.

Definition at line 1043 of file SDL_gpu.h.

◆ y

Uint32 SDL_GPUBlitRegion::y

The top offset of the region.

Definition at line 1044 of file SDL_gpu.h.


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