17 #include <ht_platform.h> 18 #include <ht_directx.h> 19 #include <ht_swapchain.h> 29 static const uint32_t NUM_BUFFER_FRAMES = 2;
35 void VClear(
float* color)
override;
37 bool VInitialize(uint32_t width, uint32_t height)
override;
39 void VResize(uint32_t width, uint32_t height)
override;
41 void VExecute(std::vector<RenderPassHandle> renderPasses)
override;
45 void VPresent()
override;
47 CD3DX12_CPU_DESCRIPTOR_HANDLE GetRenderTargetView();
49 CD3DX12_CPU_DESCRIPTOR_HANDLE GetDepthStencilView();
51 ID3D12CommandList* GetCommandList();
54 IDXGISwapChain3* m_chain;
55 ID3D12CommandAllocator* m_commandAllocators[NUM_BUFFER_FRAMES];
56 ID3D12Resource* m_renderTargets[NUM_BUFFER_FRAMES];
57 ID3D12Resource* m_depthStencilTarget;
58 ID3D12DescriptorHeap* m_renderTargetHeap;
59 ID3D12DescriptorHeap* m_depthStencilTargetHeap;
60 ID3D12GraphicsCommandList* m_commandList;
66 uint64_t m_fenceValues[NUM_BUFFER_FRAMES];
67 uint64_t m_currentFence;
69 bool CreateBuffers(uint32_t width, uint32_t height);
70 void MoveToNextFrame();
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition: ht_color.h:19
Definition: ht_swapchain.h:38
Definition: ht_d3d12swapchain.h:27