dolphin/Source/Core/VideoCommon/UberShaderCommon.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
635 B
C
Raw Normal View History

2017-07-20 07:25:24 +02:00
// Copyright 2017 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2017-07-20 07:25:24 +02:00
#pragma once
#include <string_view>
class ShaderCode;
enum class APIType;
union ShaderHostConfig;
2017-07-20 07:25:24 +02:00
namespace UberShader
{
// Vertex lighting
void WriteLightingFunction(ShaderCode& out);
void WriteVertexLighting(ShaderCode& out, APIType api_type, std::string_view world_pos_var,
std::string_view normal_var, std::string_view in_color_0_var,
std::string_view in_color_1_var, std::string_view out_color_0_var,
std::string_view out_color_1_var);
2017-07-20 07:25:24 +02:00
} // namespace UberShader