BsD3D11SamplerState.h 973 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 "BsSamplerState.h"
  6. namespace BansheeEngine
  7. {
  8. /** @addtogroup D3D11
  9. * @{
  10. */
  11. /** DirectX 11 implementation of a sampler state. Wraps a DX11 sampler state object. */
  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, GpuDeviceFlags deviceMask);
  20. /** @copydoc SamplerStateCore::createInternal */
  21. void createInternal() override;
  22. ID3D11SamplerState* mSamplerState;
  23. };
  24. /** @} */
  25. }