blob: f6edc87c51bc9d386a930ca5b7632eda5a413daa [file] [log] [blame]
Geoff Langd08f3b32016-09-23 15:56:30 -04001//
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
14namespace rx
15{
16
17ShaderNULL::ShaderNULL(const gl::ShaderState &data) : ShaderImpl(data)
18{
19}
20
21ShaderNULL::~ShaderNULL()
22{
23}
24
Geoff Lang58662082018-05-10 13:41:51 -040025ShCompileOptions ShaderNULL::prepareSourceAndReturnOptions(const gl::Context *context,
26 std::stringstream *sourceStream,
Geoff Langd08f3b32016-09-23 15:56:30 -040027 std::string *sourcePath)
28{
Geoff Lang76cdbd52016-09-23 16:51:04 -040029 *sourceStream << mData.getSource();
30 return 0;
Geoff Langd08f3b32016-09-23 15:56:30 -040031}
32
jchen10a155bac2018-08-16 15:26:39 +080033bool ShaderNULL::postTranslateCompile(gl::ShCompilerInstance *compiler, std::string *infoLog)
Geoff Langd08f3b32016-09-23 15:56:30 -040034{
Geoff Lang76cdbd52016-09-23 16:51:04 -040035 return true;
Geoff Langd08f3b32016-09-23 15:56:30 -040036}
37
jchen103fd614d2018-08-13 12:21:58 +080038std::string ShaderNULL::getDebugInfo() const
Geoff Langd08f3b32016-09-23 15:56:30 -040039{
Geoff Lang76cdbd52016-09-23 16:51:04 -040040 return "";
Geoff Langd08f3b32016-09-23 15:56:30 -040041}
42
43} // namespace rx