BsD3D11SamplerState.h 642 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include "BsD3D11Prerequisites.h"
  3. #include "BsSamplerState.h"
  4. namespace BansheeEngine
  5. {
  6. /**
  7. * @brief DirectX 11 implementation of a sampler state. Wraps a DX11
  8. * sampler state object.
  9. */
  10. class BS_D3D11_EXPORT D3D11SamplerStateCore : public SamplerStateCore
  11. {
  12. public:
  13. ~D3D11SamplerStateCore();
  14. ID3D11SamplerState* getInternal() const { return mSamplerState; }
  15. protected:
  16. friend class D3D11RenderStateCoreManager;
  17. D3D11SamplerStateCore(const SAMPLER_STATE_DESC& desc);
  18. /**
  19. * @copydoc SamplerStateCore::createInternal
  20. */
  21. void createInternal() override;
  22. ID3D11SamplerState* mSamplerState;
  23. };
  24. }