|
slot 0.0.1
A real time UI render framework
|
与图形后端无关的 RGBA8 纹理资源。 更多...
#include <BaseTexture.h>


Public 成员函数 | |
| BaseTexture () | |
| bool | Load (const std::wstring &path, std::string *error=nullptr) |
| bool | Validate () const |
Public 成员函数 继承自 z8::Resource | |
| virtual | ~Resource ()=default |
| bool | IsValid () const |
Public 属性 | |
| uint32_t | Height = 0 |
| uint32_t | Width = 0 |
| std::vector< std::byte > | Pixels |
Public 属性 继承自 z8::Resource | |
| std::string | Id |
| ResourceTy | Type = ResourceTy::None |
与图形后端无关的 RGBA8 纹理资源。
CPU 资源只保存解码后的像素和稳定资源名;DX12 上传资源、SRV 与状态转换由 DX12TextureManager 独占,避免资源层依赖设备生命周期。
|
inline |
使用 WIC 将 PNG/JPEG 等 Windows 支持格式统一解码为 RGBA8。

| bool BaseTexture::Validate | ( | ) | const |
| uint32_t z8::BaseTexture::Height = 0 |
| std::vector<std::byte> z8::BaseTexture::Pixels |
| uint32_t z8::BaseTexture::Width = 0 |