SHARE
TWEET

ShaderClass.h

a guest May 1st, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma once
  2.  
  3. #include <D3D11.h>
  4. #include <d3dx11async.h>
  5. #include <fstream>
  6. #include <iostream>
  7.  
  8. #include "TexturesTable.h"
  9. #include "Structures.h"
  10.  
  11. using namespace std;
  12.  
  13. class ShaderClass
  14. {
  15. public:
  16.     ShaderClass();
  17.     ~ShaderClass();
  18.  
  19.     bool Initialize(ID3D11Device*, string, string);
  20.     void Shutdown();
  21.     bool Render(ID3D11DeviceContext*, TexturesTable*, size_t, D3DXMATRIX&, D3DXMATRIX&, D3DXMATRIX&, Material*);
  22.  
  23. private:
  24.     bool InitializeShader(ID3D11Device*, string, string);
  25.     void ShutdownShader();
  26.     void OutputShaderErrorMessage(ID3D10Blob*, string);
  27.     bool SetShaderParameters(ID3D11DeviceContext*, D3DXMATRIX&, D3DXMATRIX&, D3DXMATRIX&, Material*);
  28.     void RenderShader(ID3D11DeviceContext*, size_t);
  29.  
  30. private:
  31.     ID3D11VertexShader* m_vertexShader;
  32.     ID3D11PixelShader* m_pixelShader;
  33.     ID3D11InputLayout* m_inputLayout;
  34.     ID3D11Buffer* m_matrixBuffer;
  35.     ID3D11Buffer* m_materialBuffer;
  36.  
  37.     ID3D11SamplerState* m_samplerState;
  38. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top