• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2016 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 // ShaderNULL.cpp:
7 //    Implements the class methods for ShaderNULL.
8 //
9 
10 #include "libANGLE/renderer/null/ShaderNULL.h"
11 
12 #include "common/debug.h"
13 #include "libANGLE/Context.h"
14 
15 namespace rx
16 {
17 
ShaderNULL(const gl::ShaderState & data)18 ShaderNULL::ShaderNULL(const gl::ShaderState &data) : ShaderImpl(data) {}
19 
~ShaderNULL()20 ShaderNULL::~ShaderNULL() {}
21 
compile(const gl::Context * context,gl::ShCompilerInstance * compilerInstance,ShCompileOptions options)22 std::shared_ptr<WaitableCompileEvent> ShaderNULL::compile(const gl::Context *context,
23                                                           gl::ShCompilerInstance *compilerInstance,
24                                                           ShCompileOptions options)
25 {
26     return compileImpl(context, compilerInstance, mData.getSource(), options);
27 }
28 
getDebugInfo() const29 std::string ShaderNULL::getDebugInfo() const
30 {
31     return "";
32 }
33 
34 }  // namespace rx
35