diff options
| author | 2017-01-29 19:22:19 -0800 | |
|---|---|---|
| committer | 2017-02-12 18:12:37 -0800 | |
| commit | 1683cb0ec908a214cd45a5c481d930f07c811ff2 (patch) | |
| tree | 0038275296323687911168b27b13d1421f07d148 /src/video_core/swrasterizer/texturing.h | |
| parent | SWRasterizer: Convert large no-capture lambdas to standalone functions (diff) | |
| download | yuzu-1683cb0ec908a214cd45a5c481d930f07c811ff2.tar.gz yuzu-1683cb0ec908a214cd45a5c481d930f07c811ff2.tar.xz yuzu-1683cb0ec908a214cd45a5c481d930f07c811ff2.zip | |
SWRasterizer: Move texturing functions to their own file
Diffstat (limited to 'src/video_core/swrasterizer/texturing.h')
| -rw-r--r-- | src/video_core/swrasterizer/texturing.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/video_core/swrasterizer/texturing.h b/src/video_core/swrasterizer/texturing.h new file mode 100644 index 000000000..24f74a5a3 --- /dev/null +++ b/src/video_core/swrasterizer/texturing.h | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | // Copyright 2017 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "common/common_types.h" | ||
| 8 | #include "common/vector_math.h" | ||
| 9 | #include "video_core/regs_texturing.h" | ||
| 10 | |||
| 11 | namespace Pica { | ||
| 12 | namespace Rasterizer { | ||
| 13 | |||
| 14 | int GetWrappedTexCoord(TexturingRegs::TextureConfig::WrapMode mode, int val, unsigned size); | ||
| 15 | |||
| 16 | Math::Vec3<u8> GetColorModifier(TexturingRegs::TevStageConfig::ColorModifier factor, | ||
| 17 | const Math::Vec4<u8>& values); | ||
| 18 | |||
| 19 | u8 GetAlphaModifier(TexturingRegs::TevStageConfig::AlphaModifier factor, | ||
| 20 | const Math::Vec4<u8>& values); | ||
| 21 | |||
| 22 | Math::Vec3<u8> ColorCombine(TexturingRegs::TevStageConfig::Operation op, | ||
| 23 | const Math::Vec3<u8> input[3]); | ||
| 24 | |||
| 25 | u8 AlphaCombine(TexturingRegs::TevStageConfig::Operation op, const std::array<u8, 3>& input); | ||
| 26 | |||
| 27 | } // namespace Rasterizer | ||
| 28 | } // namespace Pica | ||