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
7 // ShaderImpl.cpp: Implementation methods of ShaderImpl
8
9 #include "libANGLE/renderer/ShaderImpl.h"
10
11 #include "libANGLE/Context.h"
12 #include "libANGLE/trace.h"
13
14 namespace rx
15 {
translate(ShHandle compiler,const ShCompileOptions & options,const std::string & source)16 bool ShaderTranslateTask::translate(ShHandle compiler,
17 const ShCompileOptions &options,
18 const std::string &source)
19 {
20 ANGLE_TRACE_EVENT1("gpu.angle", "ShaderTranslateTask::run", "source", source);
21 const char *src = source.c_str();
22 return sh::Compile(compiler, &src, 1, options);
23 }
24
onLabelUpdate(const gl::Context * context)25 angle::Result ShaderImpl::onLabelUpdate(const gl::Context *context)
26 {
27 return angle::Result::Continue;
28 }
29
30 } // namespace rx
31