2017-07-20 05:25:24 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-07-20 05:25:24 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2019-11-22 22:10:41 +00:00
|
|
|
#include <string_view>
|
|
|
|
|
2019-12-22 18:40:40 +00:00
|
|
|
class ShaderCode;
|
|
|
|
enum class APIType;
|
|
|
|
union ShaderHostConfig;
|
2017-07-20 05:25:24 +00:00
|
|
|
|
|
|
|
namespace UberShader
|
|
|
|
{
|
2017-07-27 10:52:20 +00:00
|
|
|
// Vertex lighting
|
|
|
|
void WriteLightingFunction(ShaderCode& out);
|
2020-10-20 01:32:20 +00:00
|
|
|
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 05:25:24 +00:00
|
|
|
} // namespace UberShader
|