HatchitGraphics
ht_d3d12indexbuffer.h
1 
15 #pragma once
16 
17 #include <ht_platform.h>
18 #include <ht_directx.h>
19 #include <cstdint>
20 
21 namespace Hatchit {
22 
23  namespace Graphics {
24 
25  namespace DX {
26 
27  class HT_API D3D12IndexBuffer
28  {
29  public:
30  D3D12IndexBuffer(uint32_t size);
31 
33 
34  bool Initialize(ID3D12Device* device);
35 
36  bool UpdateSubData(ID3D12GraphicsCommandList* commandList, uint32_t offset, uint32_t count, const void* data);
37 
38  D3D12_INDEX_BUFFER_VIEW GetView();
39 
40  private:
41  ID3D12Resource* m_buffer;
42  ID3D12Resource* m_bufferUploadHeap;
43  D3D12_INDEX_BUFFER_VIEW m_view;
44  uint32_t m_bufferSize;
45  };
46  }
47  }
48 }
Definition: ht_d3d12indexbuffer.h:27
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition: ht_color.h:19