HatchitGraphics
ht_d3d11vertexshader.h
1 
15 #pragma once
16 
17 #include <ht_platform.h>
18 #include <ht_directx.h>
19 #include <ht_d3d11shader.h>
20 
21 namespace Hatchit {
22 
23  namespace Graphics {
24 
25  namespace DirectX {
26 
27  class HT_API D3D11VertexShader : public D3D11Shader
28  {
29  public:
30  D3D11VertexShader(ID3D11Device* device, ID3D11DeviceContext* context);
31 
33 
34  ID3D11VertexShader* GetShader();
35  ID3D11InputLayout* GetLayout();
36 
37  bool VSetShaderResourceView(std::string name, ID3D11ShaderResourceView* rv) override;
38  bool VSetSamplerState(std::string name, ID3D11SamplerState* ss) override;
39 
40  private:
41  ID3D11VertexShader* m_shader;
42  ID3D11InputLayout* m_inputLayout;
43 
44  protected:
45  void VBind() override;
46  void VUnbind() override;
47  bool VInitShader() override;
48  };
49  }
50 
51  }
52 }
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition: ht_color.h:19
Definition: ht_d3d11shader.h:29
Definition: ht_d3d11vertexshader.h:27