HatchitGraphics
ht_d3d12texture.h
1 
15 #pragma once
16 
17 #include <ht_platform.h>
18 #include <ht_directx.h>
19 #include <ht_texture_base.h>
20 #include <ht_texture_resource.h>
21 
22 namespace Hatchit
23 {
24  namespace Graphics
25  {
26  namespace DX
27  {
28  class D3D12Device;
29 
30  class HT_API D3D12Texture : public TextureBase
31  {
32  public:
33  D3D12Texture();
34 
35  ~D3D12Texture();
36 
37  void Upload(ID3D12CommandList* commandList, uint32_t descriptorOffset);
38 
39 
40  private:
41  bool Initialize(Resource::TextureHandle handle, D3D12Device* _device);
42 
43  D3D12_RESOURCE_DESC m_desc;
44  ID3D12Resource* m_texture;
45  ID3D12Resource* m_uploadHeap;
46 
47  friend class D3D12GPUResourceThread;
48  };
49  }
50  }
51 }
Definition: ht_d3d12device.h:27
Definition: ht_d3d12gpuresourcethread.h:33
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition: ht_color.h:19
Definition: ht_d3d12texture.h:30
Definition: ht_texture_base.h:24