1 // 2 // Copyright 2019 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 // ShaderMtl.h: 7 // Defines the class interface for ShaderMtl, implementing ShaderImpl. 8 // 9 #ifndef LIBANGLE_RENDERER_METAL_SHADERMTL_H_ 10 #define LIBANGLE_RENDERER_METAL_SHADERMTL_H_ 11 12 #include <map> 13 14 #include "libANGLE/renderer/ShaderImpl.h" 15 16 namespace rx 17 { 18 19 class ShaderMtl : public ShaderImpl 20 { 21 public: 22 ShaderMtl(const gl::ShaderState &data); 23 ~ShaderMtl() override; 24 25 std::shared_ptr<WaitableCompileEvent> compile(const gl::Context *context, 26 gl::ShCompilerInstance *compilerInstance, 27 ShCompileOptions options) override; 28 29 std::string getDebugInfo() const override; 30 }; 31 32 } // namespace rx 33 34 #endif /* LIBANGLE_RENDERER_METAL_SHADERMTL_H_ */ 35