Carry backing resource in UI texture handles

This commit is contained in:
2026-04-12 23:25:18 +08:00
parent dd3731ba66
commit 0f60f0f657
2 changed files with 3 additions and 0 deletions

View File

@@ -52,6 +52,7 @@ struct UITextureHandle {
std::uint32_t width = 0;
std::uint32_t height = 0;
UITextureHandleKind kind = UITextureHandleKind::DescriptorHandle;
std::uintptr_t resourceHandle = 0;
constexpr bool IsValid() const {
return nativeHandle != 0 && width > 0 && height > 0;