diff --git a/engine/include/XCEngine/RHI/D3D12/D3D12Device.h b/engine/include/XCEngine/RHI/D3D12/D3D12Device.h index bc2f457f..4e9b3862 100644 --- a/engine/include/XCEngine/RHI/D3D12/D3D12Device.h +++ b/engine/include/XCEngine/RHI/D3D12/D3D12Device.h @@ -82,11 +82,6 @@ public: void* GetNativeDevice() override; void* GetNativeHandle() const; - bool PollEvents() override; - void SwapBuffers() override; - bool ShouldClose() const override; - void SetShouldClose(bool shouldClose) override; - D3D12CommandQueue* CreateCommandQueueImpl(const CommandQueueDesc& desc); D3D12CommandList* CreateCommandListImpl(const CommandListDesc& desc); D3D12CommandAllocator* CreateCommandAllocator(const CommandAllocatorDesc& desc); diff --git a/engine/include/XCEngine/RHI/OpenGL/OpenGLDevice.h b/engine/include/XCEngine/RHI/OpenGL/OpenGLDevice.h index af2645b8..17195659 100644 --- a/engine/include/XCEngine/RHI/OpenGL/OpenGLDevice.h +++ b/engine/include/XCEngine/RHI/OpenGL/OpenGLDevice.h @@ -23,10 +23,10 @@ public: GLFWwindow* GetWindow() const { return m_window; } const RHIDeviceInfo& GetDeviceInfoImpl() const { return m_deviceInfo; } - void SwapBuffers() override; - bool PollEvents() override; - void SetShouldClose(bool shouldClose) override; - bool ShouldClose() const override; + void SwapBuffers(); + bool PollEvents(); + void SetShouldClose(bool shouldClose); + bool ShouldClose() const; RHIBuffer* CreateBuffer(const BufferDesc& desc) override; RHITexture* CreateTexture(const TextureDesc& desc) override; diff --git a/engine/include/XCEngine/RHI/RHIDevice.h b/engine/include/XCEngine/RHI/RHIDevice.h index 27d0b408..6de2c681 100644 --- a/engine/include/XCEngine/RHI/RHIDevice.h +++ b/engine/include/XCEngine/RHI/RHIDevice.h @@ -38,11 +38,6 @@ public: virtual const RHIDeviceInfo& GetDeviceInfo() const = 0; virtual void* GetNativeDevice() = 0; - - virtual bool PollEvents() = 0; - virtual void SwapBuffers() = 0; - virtual bool ShouldClose() const = 0; - virtual void SetShouldClose(bool shouldClose) = 0; }; } // namespace RHI diff --git a/engine/src/RHI/D3D12/D3D12Device.cpp b/engine/src/RHI/D3D12/D3D12Device.cpp index 8a836407..1e2d25ee 100644 --- a/engine/src/RHI/D3D12/D3D12Device.cpp +++ b/engine/src/RHI/D3D12/D3D12Device.cpp @@ -293,20 +293,6 @@ RHIPipelineState* D3D12Device::CreatePipelineState(const PipelineStateDesc& desc return nullptr; } -bool D3D12Device::PollEvents() { - return false; -} - -void D3D12Device::SwapBuffers() { -} - -bool D3D12Device::ShouldClose() const { - return false; -} - -void D3D12Device::SetShouldClose(bool shouldClose) { -} - D3D12CommandQueue* D3D12Device::CreateCommandQueueImpl(const CommandQueueDesc& desc) { return nullptr; }