Remove unused IRHIDevice abstraction from D3D12 test
This commit is contained in:
@@ -56,7 +56,6 @@ void Log(const char* format, ...) {
|
||||
//=================================================================================
|
||||
// D3D12 核心全局对象 (最小渲染所需)
|
||||
//=================================================================================
|
||||
XCEngine::RHI::IRHIDevice* gDevice = nullptr;
|
||||
XCEngine::RHI::D3D12Device gD3D12Device; // 底层实现
|
||||
XCEngine::RHI::D3D12CommandQueue gCommandQueue;
|
||||
XCEngine::RHI::D3D12SwapChain gSwapChain;
|
||||
@@ -356,9 +355,6 @@ bool InitD3D12(HWND inHWND, int inWidth, int inHeight) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// 获取抽象接口指针
|
||||
gDevice = &gD3D12Device;
|
||||
|
||||
ID3D12Device* device = gD3D12Device.GetDevice();
|
||||
IDXGIFactory4* dxgiFactory = gD3D12Device.GetFactory();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user