docs: Update RHI test refactoring status

- Mark P0-1 (Shader) and P0-2 (PipelineState) as completed
- Update test coverage matrix
- Add changelog v1.1
This commit is contained in:
2026-03-25 12:30:05 +08:00
parent f808f8d197
commit 0948e0fdbe
13 changed files with 273 additions and 49 deletions

View File

@@ -233,6 +233,7 @@ add_library(XCEngine STATIC
${CMAKE_CURRENT_SOURCE_DIR}/include/XCEngine/Components/Component.h
${CMAKE_CURRENT_SOURCE_DIR}/include/XCEngine/Components/TransformComponent.h
${CMAKE_CURRENT_SOURCE_DIR}/include/XCEngine/Components/GameObject.h
${CMAKE_CURRENT_SOURCE_DIR}/src/Components/Component.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Components/TransformComponent.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Components/GameObject.cpp

View File

@@ -0,0 +1,12 @@
#include <XCEngine/Components/Component.h>
#include <XCEngine/Components/GameObject.h>
namespace XCEngine {
namespace Components {
TransformComponent& Component::transform() const {
return *m_gameObject->GetTransform();
}
}
}

View File

@@ -16,9 +16,14 @@ FileLogSink::~FileLogSink() {
void FileLogSink::Log(const LogEntry& entry) {
if (!m_writer.IsOpen()) {
// File not open, try to reopen
m_writer.Open(m_filePath.CStr(), true);
if (!m_writer.IsOpen()) {
// Still not open - output to debug
bool opened = m_writer.Open(m_filePath.CStr(), true);
if (!opened) {
// Failed to open - output to stderr as fallback
fprintf(stderr, "[FileLogSink] Failed to open log file: %s\n", m_filePath.CStr());
fprintf(stderr, "[%s] [%s] %s\n",
LogLevelToString(entry.level),
LogCategoryToString(entry.category),
entry.message.CStr());
return;
}
}
@@ -34,7 +39,10 @@ void FileLogSink::Log(const LogEntry& entry) {
LogCategoryToString(entry.category),
entry.message.CStr());
m_writer.Write(buffer, std::strlen(buffer));
bool wrote = m_writer.Write(buffer, std::strlen(buffer));
if (!wrote) {
fprintf(stderr, "[FileLogSink] Write failed for: %s\n", buffer);
}
m_writer.Flush();
}