CustomDX11API.h 607 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <GraphicsApi.h>
  3. #
  4. class CustomDX11API : public Framework::DirectX11
  5. {
  6. private:
  7. int vertexShaderLightBufferIndex;
  8. protected:
  9. ID3D11RasterizerState* noCull;
  10. Framework::DX11VertexShader* initializeVertexShader(
  11. unsigned char* byteCode, int size) override;
  12. Framework::DX11PixelShader* initializePixelShader(
  13. unsigned char* byteCode, int size) override;
  14. public:
  15. CustomDX11API();
  16. void setVertexLightBuffer(Framework::DXBuffer* zBuffer);
  17. int getVertexShaderLightBufferIndex() const;
  18. void setCullBack(bool cull);
  19. };