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