DxilSampler.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // //
  3. // DxilSampler.h //
  4. // Copyright (C) Microsoft Corporation. All rights reserved. //
  5. // This file is distributed under the University of Illinois Open Source //
  6. // License. See LICENSE.TXT for details. //
  7. // //
  8. // Representation of HLSL sampler state. //
  9. // //
  10. ///////////////////////////////////////////////////////////////////////////////
  11. #pragma once
  12. #include "dxc/DXIL/DxilResourceBase.h"
  13. namespace hlsl {
  14. /// Use this class to represent HLSL sampler state.
  15. class DxilSampler : public DxilResourceBase {
  16. public:
  17. using SamplerKind = DXIL::SamplerKind;
  18. DxilSampler();
  19. SamplerKind GetSamplerKind() const;
  20. bool IsCompSampler() const;
  21. void SetSamplerKind(SamplerKind K);
  22. private:
  23. SamplerKind m_SamplerKind; // Sampler mode.
  24. };
  25. } // namespace hlsl