2017-01-30 04:22:19 +01:00
|
|
|
// Copyright 2017 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common/common_types.h"
|
|
|
|
#include "common/vector_math.h"
|
|
|
|
#include "video_core/regs_texturing.h"
|
|
|
|
|
2019-02-19 09:09:57 +01:00
|
|
|
namespace Pica::Rasterizer {
|
2017-01-30 04:22:19 +01:00
|
|
|
|
|
|
|
int GetWrappedTexCoord(TexturingRegs::TextureConfig::WrapMode mode, int val, unsigned size);
|
|
|
|
|
2019-02-27 04:38:34 +01:00
|
|
|
Common::Vec3<u8> GetColorModifier(TexturingRegs::TevStageConfig::ColorModifier factor,
|
|
|
|
const Common::Vec4<u8>& values);
|
2017-01-30 04:22:19 +01:00
|
|
|
|
|
|
|
u8 GetAlphaModifier(TexturingRegs::TevStageConfig::AlphaModifier factor,
|
2019-02-27 04:38:34 +01:00
|
|
|
const Common::Vec4<u8>& values);
|
2017-01-30 04:22:19 +01:00
|
|
|
|
2019-02-27 04:38:34 +01:00
|
|
|
Common::Vec3<u8> ColorCombine(TexturingRegs::TevStageConfig::Operation op,
|
|
|
|
const Common::Vec3<u8> input[3]);
|
2017-01-30 04:22:19 +01:00
|
|
|
|
|
|
|
u8 AlphaCombine(TexturingRegs::TevStageConfig::Operation op, const std::array<u8, 3>& input);
|
|
|
|
|
2019-02-19 09:09:57 +01:00
|
|
|
} // namespace Pica::Rasterizer
|