mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 02:47:02 +02:00
0bef3fc0d3
Co-authored-by: Çağatay Güçlü <33038942+defektu@users.noreply.github.com>
29 lines
853 B
C++
29 lines
853 B
C++
#ifndef EMULATOR_SRC_GRAPHICS_HOST_GPU_RENDERER_PIPELINE_BLENDMAPPING_H_
|
|
#define EMULATOR_SRC_GRAPHICS_HOST_GPU_RENDERER_PIPELINE_BLENDMAPPING_H_
|
|
|
|
#include <cstdint>
|
|
|
|
namespace Libs::Graphics {
|
|
|
|
namespace HW {
|
|
struct BlendControl;
|
|
}
|
|
namespace Prospero {
|
|
struct ColorComponentMapping;
|
|
}
|
|
|
|
enum class BlendMappingSupport {
|
|
Direct,
|
|
SourceAlpha, // Requires logical alpha in the second blend source.
|
|
SourceAlphaOne, // Source alpha for RGB, one for alpha, with a shared destination equation.
|
|
Unsupported,
|
|
};
|
|
|
|
bool BlendFactorIsDualSource(uint8_t factor);
|
|
BlendMappingSupport ClassifyBlendMapping(const HW::BlendControl& blend,
|
|
const Prospero::ColorComponentMapping& mapping);
|
|
|
|
} // namespace Libs::Graphics
|
|
|
|
#endif // EMULATOR_SRC_GRAPHICS_HOST_GPU_RENDERER_PIPELINE_BLENDMAPPING_H_
|