UberShaderCommon.h 635 B

123456789101112131415161718192021
  1. // Copyright 2017 Dolphin Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include <string_view>
  5. class ShaderCode;
  6. enum class APIType;
  7. union ShaderHostConfig;
  8. namespace UberShader
  9. {
  10. // Vertex lighting
  11. void WriteLightingFunction(ShaderCode& out);
  12. void WriteVertexLighting(ShaderCode& out, APIType api_type, std::string_view world_pos_var,
  13. std::string_view normal_var, std::string_view in_color_0_var,
  14. std::string_view in_color_1_var, std::string_view out_color_0_var,
  15. std::string_view out_color_1_var);
  16. } // namespace UberShader