blob: e7d83833aeb47ba83f30a9ada0cbdf893e3ad2f4 [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
25ShCompileOptions ShaderNULL::prepareSourceAndReturnOptions(std::stringstream *sourceStream,
26 std::string *sourcePath)
27{
Geoff Lang76cdbd52016-09-23 16:51:04 -040028 *sourceStream << mData.getSource();
29 return 0;
Geoff Langd08f3b32016-09-23 15:56:30 -040030}
31
32bool ShaderNULL::postTranslateCompile(gl::Compiler *compiler, std::string *infoLog)
33{
Geoff Lang76cdbd52016-09-23 16:51:04 -040034 return true;
Geoff Langd08f3b32016-09-23 15:56:30 -040035}
36
37std::string ShaderNULL::getDebugInfo() const
38{
Geoff Lang76cdbd52016-09-23 16:51:04 -040039 return "";
Geoff Langd08f3b32016-09-23 15:56:30 -040040}
41
42} // namespace rx