BsD3D11BlendState.h 719 B

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