BsD3D11SamplerState.h 923 B

1234567891011121314151617181920212223242526272829303132
  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 "BsSamplerState.h"
  6. namespace BansheeEngine
  7. {
  8. /**
  9. * @brief DirectX 11 implementation of a sampler state. Wraps a DX11
  10. * sampler state object.
  11. */
  12. class BS_D3D11_EXPORT D3D11SamplerStateCore : public SamplerStateCore
  13. {
  14. public:
  15. ~D3D11SamplerStateCore();
  16. ID3D11SamplerState* getInternal() const { return mSamplerState; }
  17. protected:
  18. friend class D3D11RenderStateCoreManager;
  19. D3D11SamplerStateCore(const SAMPLER_STATE_DESC& desc);
  20. /**
  21. * @copydoc SamplerStateCore::createInternal
  22. */
  23. void createInternal() override;
  24. ID3D11SamplerState* mSamplerState;
  25. };
  26. }