BsD3D11BlendState.h 1009 B

1234567891011121314151617181920212223242526272829303132333435
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsD3D11Prerequisites.h"
  5. #include "BsBlendState.h"
  6. namespace BansheeEngine
  7. {
  8. /** @addtogroup D3D11
  9. * @{
  10. */
  11. /** DirectX 11 implementation of a blend state. Corresponds directly with a DX11 blend state object. */
  12. class BS_D3D11_EXPORT D3D11BlendStateCore : public BlendStateCore
  13. {
  14. public:
  15. ~D3D11BlendStateCore();
  16. /** Returns the internal DX11 blend state object. */
  17. ID3D11BlendState* getInternal() const { return mBlendState; }
  18. protected:
  19. friend class D3D11RenderStateCoreManager;
  20. D3D11BlendStateCore(const BLEND_STATE_DESC& desc, UINT32 id);
  21. /** @copydoc BlendStateCore::createInternal */
  22. void createInternal() override;
  23. ID3D11BlendState* mBlendState;
  24. };
  25. /** @} */
  26. }