• 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 #include "libANGLE/renderer/ContextImpl.h"
15 
16 namespace rx
17 {
18 
ShaderNULL(const gl::ShaderState & data)19 ShaderNULL::ShaderNULL(const gl::ShaderState &data) : ShaderImpl(data) {}
20 
~ShaderNULL()21 ShaderNULL::~ShaderNULL() {}
22 
compile(const gl::Context * context,gl::ShCompilerInstance * compilerInstance,ShCompileOptions * options)23 std::shared_ptr<WaitableCompileEvent> ShaderNULL::compile(const gl::Context *context,
24                                                           gl::ShCompilerInstance *compilerInstance,
25                                                           ShCompileOptions *options)
26 {
27     const gl::Extensions &extensions = context->getImplementation()->getExtensions();
28     if (extensions.shaderPixelLocalStorageANGLE)
29     {
30         options->pls = context->getImplementation()->getNativePixelLocalStorageOptions();
31     }
32     return compileImpl(context, compilerInstance, mState.getSource(), options);
33 }
34 
getDebugInfo() const35 std::string ShaderNULL::getDebugInfo() const
36 {
37     return "";
38 }
39 
40 }  // namespace rx
41