summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/ConstantManager.h
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2021-03-07 00:21:11 -0500
committerGitHub <noreply@github.com>2021-03-07 00:21:11 -0500
commit089250fde65c2e225681c0ef6917d28fa187e8de (patch)
treebcbb6db025c6003bd681e0028f0bc3b7b223bd07 /Source/Core/VideoCommon/ConstantManager.h
parent5f7d935b0a40f5cece7341927bd92b6a8d5debbe (diff)
parentdf81210e96c6603d3aeb6c76f51b030d06cd06ac (diff)
Merge pull request #9497 from Pokechu22/better-fifo-analyzer
Graphics refactoring + add names and descriptions in FIFO analyzer
Diffstat (limited to 'Source/Core/VideoCommon/ConstantManager.h')
-rw-r--r--Source/Core/VideoCommon/ConstantManager.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/ConstantManager.h b/Source/Core/VideoCommon/ConstantManager.h
index 1ad385b0ee..ad21821052 100644
--- a/Source/Core/VideoCommon/ConstantManager.h
+++ b/Source/Core/VideoCommon/ConstantManager.h
@@ -13,6 +13,9 @@ using float4 = std::array<float, 4>;
using uint4 = std::array<u32, 4>;
using int4 = std::array<s32, 4>;
+enum class SrcBlendFactor : u32;
+enum class DstBlendFactor : u32;
+
struct PixelShaderConstants
{
std::array<int4, 4> colors;
@@ -45,10 +48,10 @@ struct PixelShaderConstants
std::array<int4, 32> konst; // .rgba
// The following are used in ubershaders when using shader_framebuffer_fetch blending
u32 blend_enable;
- u32 blend_src_factor;
- u32 blend_src_factor_alpha;
- u32 blend_dst_factor;
- u32 blend_dst_factor_alpha;
+ SrcBlendFactor blend_src_factor;
+ SrcBlendFactor blend_src_factor_alpha;
+ DstBlendFactor blend_dst_factor;
+ DstBlendFactor blend_dst_factor_alpha;
u32 blend_subtract;
u32 blend_subtract_alpha;
};