blob: 38c4a08f2a94382a9c5fadd7ec56e3001e48eb25 [file] [log] [blame]
//
// Copyright 2016 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// ShaderNULL.cpp:
// Implements the class methods for ShaderNULL.
//
#include "libANGLE/renderer/null/ShaderNULL.h"
#include "common/debug.h"
#include "libANGLE/Context.h"
#include "libANGLE/renderer/ContextImpl.h"
namespace rx
{
ShaderNULL::ShaderNULL(const gl::ShaderState &data) : ShaderImpl(data) {}
ShaderNULL::~ShaderNULL() {}
std::shared_ptr<ShaderTranslateTask> ShaderNULL::compile(const gl::Context *context,
ShCompileOptions *options)
{
const gl::Extensions &extensions = context->getImplementation()->getExtensions();
if (extensions.shaderPixelLocalStorageANGLE)
{
options->pls = context->getImplementation()->getNativePixelLocalStorageOptions();
}
return std::shared_ptr<ShaderTranslateTask>(new ShaderTranslateTask);
}
std::string ShaderNULL::getDebugInfo() const
{
return "";
}
} // namespace rx