HatchitGraphics
ht_d3d12rendertarget.h
1 
15 #pragma once
16 
17 #include <ht_platform.h>
18 #include <ht_directx.h>
19 #include <ht_rendertarget_base.h>
20 #include <ht_rendertarget_resource.h>
21 #include <ht_refcounted.h>
22 
23 namespace Hatchit
24 {
25  namespace Graphics
26  {
27  namespace DX
28  {
29  class D3D12DeviceResources;
30 
31  class HT_API D3D12RenderTarget : public RenderTargetBase
32  {
33  public:
35 
36  bool Initialize(const Resource::RenderTargetHandle& handle);
37 
38  private:
39  ID3D12Resource* m_resource;
40  D3D12_CPU_DESCRIPTOR_HANDLE m_cpuHandle;
41  D3D12_RESOURCE_DESC m_desc;
42 
43  static DXGI_FORMAT TargetFormatFromString(std::string s);
44  };
45  }
46  }
47 }
Definition: ht_d3d12rendertarget.h:31
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition: ht_color.h:19
Definition: ht_rendertarget_base.h:32