Add Vulkan RHI minimal backend path

This commit is contained in:
2026-03-27 12:05:12 +08:00
parent 90961f01aa
commit c33404767e
25 changed files with 1894 additions and 16 deletions

View File

@@ -2,6 +2,7 @@
#include <gtest/gtest.h>
#include <string>
#include <vector>
#include <windows.h>
#include "XCEngine/RHI/RHIFactory.h"
@@ -23,6 +24,10 @@
#include "XCEngine/RHI/D3D12/D3D12DescriptorHeap.h"
#endif
#if defined(XCENGINE_SUPPORT_VULKAN)
#include "XCEngine/RHI/Vulkan/VulkanSwapChain.h"
#endif
namespace XCEngine {
namespace RHI {
namespace Integration {
@@ -62,12 +67,12 @@ private:
RHIScreenshot* mScreenshot = nullptr;
HWND mWindow = nullptr;
int mCurrentBackBufferIndex = 0;
std::vector<RHIResourceView*> mBackBufferViews;
#if defined(XCENGINE_SUPPORT_D3D12)
D3D12DescriptorHeap* mRTVHeap = nullptr;
D3D12DescriptorHeap* mDSVHeap = nullptr;
D3D12Texture* mDepthStencilTexture = nullptr;
std::vector<RHIResourceView*> mRTVs;
RHIResourceView* mDSV = nullptr;
#endif
};