BsD3D11DepthStencilState.h 823 B

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #include "BsD3D11Prerequisites.h"
  3. #include "BsDepthStencilState.h"
  4. namespace BansheeEngine
  5. {
  6. /**
  7. * @brief DirectX 11 implementation of a depth stencil state.
  8. * Corresponds directly with a DX11 depth stencil state object.
  9. */
  10. class BS_D3D11_EXPORT D3D11DepthStencilStateCore : public DepthStencilStateCore
  11. {
  12. public:
  13. ~D3D11DepthStencilStateCore();
  14. /**
  15. * @brief Returns the internal DX11 depth stencil state object.
  16. */
  17. ID3D11DepthStencilState* getInternal() const { return mDepthStencilState; }
  18. protected:
  19. friend class D3D11RenderStateCoreManager;
  20. D3D11DepthStencilStateCore(const DEPTH_STENCIL_STATE_DESC& desc, UINT32 id);
  21. /**
  22. * @copydoc DepthStencilStateCore::createInternal()
  23. */
  24. void createInternal() override;
  25. ID3D11DepthStencilState* mDepthStencilState;
  26. };
  27. }