10 SDL_GPUDevice *_device =
nullptr;
11 SDL_GPUTexture *_texture =
nullptr;
12 SDL_GPUTextureCreateInfo _description;
17 const char *name =
nullptr);
24 operator SDL_GPUTexture *()
const noexcept {
return _texture; }
26 bool hasValue()
const {
return bool(_texture); }
28 SDL_GPUTextureType
type()
const {
return _description.type; }
29 SDL_GPUTextureFormat
format()
const {
return _description.format; }
30 SDL_GPUTextureUsageFlags
usage()
const {
return _description.usage; }
31 Uint32
width()
const {
return _description.width; }
32 Uint32
height()
const {
return _description.height; }
33 Uint32
depth()
const {
return _description.layer_count_or_depth; }
34 Uint32
layerCount()
const {
return _description.layer_count_or_depth; }
36 SDL_GPUBlitRegion
blitRegion(Uint32 offset_x, Uint32 y_offset,
37 Uint32 layer_or_depth_plane = 0)
const;
SDL_GPUTextureFormat format() const
Definition Texture.h:29
Texture(Texture &&other) noexcept
SDL_GPUBlitRegion blitRegion(Uint32 offset_x, Uint32 y_offset, Uint32 layer_or_depth_plane=0) const
Texture(const Texture &)=delete
SDL_GPUTextureType type() const
Definition Texture.h:28
Texture & operator=(const Texture &)=delete
Uint32 textureSize() const
Texture(const Device &device, SDL_GPUTextureCreateInfo texture_desc, const char *name=nullptr)
SDL_GPUTextureUsageFlags usage() const
Definition Texture.h:30
Uint32 layerCount() const
Definition Texture.h:34
Texture & operator=(Texture &&other) noexcept
const auto & description() const
Definition Texture.h:27