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