2017-07-20 07:25:24 +02: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 07:25:24 +02:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2019-11-22 23:10:41 +01:00
|
|
|
#include <string_view>
|
|
|
|
|
2019-12-22 19:40:40 +01:00
|
|
|
class ShaderCode;
|
|
|
|
enum class APIType;
|
|
|
|
union ShaderHostConfig;
|
2017-07-20 07:25:24 +02:00
|
|
|
|
|
|
|
namespace UberShader
|
|
|
|
{
|
2017-07-27 12:52:20 +02:00
|
|
|
// Vertex lighting
|
|
|
|
void WriteLightingFunction(ShaderCode& out);
|
2020-10-20 03:32:20 +02: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 07:25:24 +02:00
|
|
|
} // namespace UberShader
|