1 // 2 // Copyright 2021 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 // CLSamplerCL.h: Defines the class interface for CLSamplerCL, implementing CLSamplerImpl. 7 8 #ifndef LIBANGLE_RENDERER_CL_CLSAMPLERCL_H_ 9 #define LIBANGLE_RENDERER_CL_CLSAMPLERCL_H_ 10 11 #include "libANGLE/renderer/cl/cl_types.h" 12 13 #include "libANGLE/renderer/CLSamplerImpl.h" 14 15 namespace rx 16 { 17 18 class CLSamplerCL : public CLSamplerImpl 19 { 20 public: 21 CLSamplerCL(const cl::Sampler &sampler, cl_sampler native); 22 ~CLSamplerCL() override; 23 24 cl_sampler getNative() const; 25 26 private: 27 const cl_sampler mNative; 28 }; 29 getNative()30inline cl_sampler CLSamplerCL::getNative() const 31 { 32 return mNative; 33 } 34 35 } // namespace rx 36 37 #endif // LIBANGLE_RENDERER_CL_CLSAMPLERCL_H_ 38