BsD3D11BlendState.h 1004 B

123456789101112131415161718192021222324252627282930313233343536
  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. /**
  9. * @brief DirectX 11 implementation of a blend state.
  10. * Corresponds directly with a DX11 blend state object.
  11. */
  12. class BS_D3D11_EXPORT D3D11BlendStateCore : public BlendStateCore
  13. {
  14. public:
  15. ~D3D11BlendStateCore();
  16. /**
  17. * @brief Returns the internal DX11 blend state object.
  18. */
  19. ID3D11BlendState* getInternal() const { return mBlendState; }
  20. protected:
  21. friend class D3D11RenderStateCoreManager;
  22. D3D11BlendStateCore(const BLEND_STATE_DESC& desc, UINT32 id);
  23. /**
  24. * @copydoc BlendStateCore::createInternal
  25. */
  26. void createInternal() override;
  27. ID3D11BlendState* mBlendState;
  28. };
  29. }