|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
#include <GfxResourceRegistry.hpp>
Public Member Functions | |
| GfxTextureRecord (const TextureDesc &d, GfxContent c) | |
Public Attributes | |
| TextureDesc | desc |
| GfxContent | content |
| std::vector< u8 > | bytes |
| bool | compressed = false |
| GfxCompressedFormat | compressedFormat = GfxCompressedFormat::ETC2_RGBA8 |
| u32 | mipLevels = 1 |
| bool | realized = false |
| bool | owed = false |
| u64 | revision = nextRevision() |
| bool | externallyWritable = false |
| Attached for rendering or backed by a host texture. | |
Definition at line 50 of file GfxResourceRegistry.hpp.
|
inline |
Definition at line 51 of file GfxResourceRegistry.hpp.
| std::vector<u8> esengine::GfxTextureRecord::bytes |
Retained level-0 pixels in upload order (rows as GL stores them), or the initial pixels of a texture created while the device was lost.
Definition at line 57 of file GfxResourceRegistry.hpp.
Referenced by esengine::GfxDevice::createCompressedTexture(), and esengine::GfxDevice::createTexture().
| bool esengine::GfxTextureRecord::compressed = false |
Definition at line 58 of file GfxResourceRegistry.hpp.
Referenced by esengine::GfxDevice::createCompressedTexture().
| GfxCompressedFormat esengine::GfxTextureRecord::compressedFormat = GfxCompressedFormat::ETC2_RGBA8 |
Definition at line 59 of file GfxResourceRegistry.hpp.
Referenced by esengine::GfxDevice::createCompressedTexture().
| GfxContent esengine::GfxTextureRecord::content |
Definition at line 54 of file GfxResourceRegistry.hpp.
Referenced by GfxTextureRecord().
| TextureDesc esengine::GfxTextureRecord::desc |
Definition at line 53 of file GfxResourceRegistry.hpp.
Referenced by GfxTextureRecord(), and esengine::GfxDevice::createTexture().
| bool esengine::GfxTextureRecord::externallyWritable = false |
Attached for rendering or backed by a host texture.
Definition at line 67 of file GfxResourceRegistry.hpp.
| u32 esengine::GfxTextureRecord::mipLevels = 1 |
Definition at line 60 of file GfxResourceRegistry.hpp.
Referenced by esengine::GfxDevice::createCompressedTexture().
| bool esengine::GfxTextureRecord::owed = false |
Definition at line 62 of file GfxResourceRegistry.hpp.
| bool esengine::GfxTextureRecord::realized = false |
Definition at line 61 of file GfxResourceRegistry.hpp.
| u64 esengine::GfxTextureRecord::revision = nextRevision() |
Changes whenever the device is given its content (made, updated, restored, adopted) or its sampling: see core/Revision.hpp and GfxDevice::textureRevision. Not when the GPU writes it (a render target, a storage texture) or a host swaps what an imported texture shows: those are not uploads this device sees.
Definition at line 66 of file GfxResourceRegistry.hpp.