slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
z8::BaseTexture类 参考

与图形后端无关的 RGBA8 纹理资源。 更多...

#include <BaseTexture.h>

类 z8::BaseTexture 继承关系图:
Inheritance graph
[图例]
z8::BaseTexture 的协作图:
Collaboration graph
[图例]

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 独占,避免资源层依赖设备生命周期。

构造及析构函数说明

◆ BaseTexture()

z8::BaseTexture::BaseTexture ( )
inline

成员函数说明

◆ Load()

bool BaseTexture::Load ( const std::wstring & path,
std::string * error = nullptr )

使用 WIC 将 PNG/JPEG 等 Windows 支持格式统一解码为 RGBA8。

这是这个函数的调用关系图:

◆ Validate()

bool BaseTexture::Validate ( ) const

类成员变量说明

◆ Height

uint32_t z8::BaseTexture::Height = 0

◆ Pixels

std::vector<std::byte> z8::BaseTexture::Pixels

◆ Width

uint32_t z8::BaseTexture::Width = 0

该类的文档由以下文件生成: