light/modules/renderer/private/dx/graphics_context.hpp

31 lines
518 B
C++
Raw Normal View History

2022-03-08 21:19:19 +03:30
#pragma once
#include <d3d11.h>
#include <renderer/graphics_context.hpp>
2022-03-08 21:19:19 +03:30
#include <wrl.h>
struct GLFWwindow;
2025-07-11 00:05:48 +03:30
namespace lt {
2022-03-08 21:19:19 +03:30
class dxGraphicsContext: public GraphicsContext
{
public:
2025-07-05 13:28:41 +03:30
dxGraphicsContext(GLFWwindow *windowHandle);
2022-03-08 21:19:19 +03:30
virtual void log_debug_data() override;
2022-03-08 21:19:19 +03:30
private:
2025-07-05 16:07:51 +03:30
GLFWwindow *m_window_handle;
Microsoft::WRL::ComPtr<ID3D11Debug> m_debug_interface;
void setup_device_and_swap_chain(GLFWwindow *windowHandle);
2025-07-05 16:07:51 +03:30
void setup_render_targets();
2025-07-05 16:07:51 +03:30
void setup_debug_interface();
2022-03-08 21:19:19 +03:30
};
2025-07-11 00:05:48 +03:30
} // namespace lt