Add XCUI new editor sandbox phase 1

This commit is contained in:
2026-04-05 04:55:25 +08:00
parent e23f469e5a
commit 67a28bdd4a
76 changed files with 14671 additions and 3 deletions

View File

@@ -5,6 +5,11 @@
namespace XCEngine {
namespace UI {
enum class UITextureHandleKind : std::uint8_t {
ImGuiDescriptor = 0,
ShaderResourceView
};
struct UIPoint {
float x = 0.0f;
float y = 0.0f;
@@ -46,6 +51,7 @@ struct UITextureHandle {
std::uintptr_t nativeHandle = 0;
std::uint32_t width = 0;
std::uint32_t height = 0;
UITextureHandleKind kind = UITextureHandleKind::ImGuiDescriptor;
constexpr bool IsValid() const {
return nativeHandle != 0 && width > 0 && height > 0;