Loading...
Searching...
No Matches
score::gfx::TextureShape Struct Reference
Detailed Description
A texture's kind, its size, and how many images it holds: the slices of a 3D texture, the layers of an array, the six faces of a cube, one for 2D.
Public Member Functions | |
| bool | empty () const noexcept |
| uint64_t | pack () const noexcept |
| In one word, for a monitor that hands it to the views. | |
| QString | description () const |
| "3D 64x64x32", "array 8 layers 256x256", "cube 512", "2D 640x480". | |
| QString | layerName (int layer) const |
| "slice 12", "layer 3", "face +X"; empty for a 2D texture. | |
| bool | operator== (const TextureShape &) const noexcept=default |
Static Public Member Functions | |
| static TextureShape | of (const QRhiTexture &tex) noexcept |
| static TextureShape | unpack (uint64_t v) noexcept |
Public Attributes | |
| TextureKind | kind {TextureKind::Texture2D} |
| int | width {} |
| int | height {} |
| int | layers {1} |
The documentation for this struct was generated from the following files:
- TextureKind.hpp
- TextureKind.cpp