BsD3D11SamplerState.h 916 B

123456789101112131415161718192021222324252627282930313233
  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 "RenderAPI/BsSamplerState.h"
  6. namespace bs { namespace ct
  7. {
  8. /** @addtogroup D3D11
  9. * @{
  10. */
  11. /** DirectX 11 implementation of a sampler state. Wraps a DX11 sampler state object. */
  12. class D3D11SamplerState : public SamplerState
  13. {
  14. public:
  15. ~D3D11SamplerState();
  16. ID3D11SamplerState* getInternal() const { return mSamplerState; }
  17. protected:
  18. friend class D3D11RenderStateManager;
  19. D3D11SamplerState(const SAMPLER_STATE_DESC& desc, GpuDeviceFlags deviceMask);
  20. /** @copydoc SamplerState::createInternal */
  21. void createInternal() override;
  22. ID3D11SamplerState* mSamplerState;
  23. };
  24. /** @} */
  25. }}