wisdom
Loading...
Searching...
No Matches
wis::TextureRegion Struct Reference

Detailed Description

Texture region for copy operations.

struct TextureRegion {
wis::Size3D offset;
wis::Size3D size;
uint32_t mip;
uint32_t array_layer;
wis::DataFormat format;
};
DataFormat
Data format for data. Used as a template for data in several cases. Can be used to describe:
Definition api.hpp:310
3D unsigned size.
Definition api.hpp:1558
Texture region for copy operations.
Definition api.hpp:1817

Definition at line 1817 of file api.hpp.

#include <api.hpp>

Public Attributes

wis::Size3D offset
 Offset in the texture in pixels. In BufferToTexture determines offset of destination texture. In TextureToBuffer - offset of source image.
 
wis::Size3D size
 Size of the region in pixels.
 
uint32_t mip
 Mip level of the texture.
 
uint32_t array_layer
 Array layer of the texture.
 
wis::DataFormat format
 Format of the texture.
 

Data Members

◆ array_layer

uint32_t wis::TextureRegion::array_layer

Array layer of the texture.

Definition at line 1826 of file api.hpp.

◆ format

wis::DataFormat wis::TextureRegion::format

Format of the texture.

Definition at line 1827 of file api.hpp.

◆ mip

uint32_t wis::TextureRegion::mip

Mip level of the texture.

Definition at line 1825 of file api.hpp.

◆ offset

wis::Size3D wis::TextureRegion::offset

Offset in the texture in pixels. In BufferToTexture determines offset of destination texture. In TextureToBuffer - offset of source image.

Definition at line 1823 of file api.hpp.

◆ size

wis::Size3D wis::TextureRegion::size

Size of the region in pixels.

Definition at line 1824 of file api.hpp.


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