mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-03 08:07:45 +00:00
VideoCommon: Make dst_alpha state implicit.
This commit is contained in:
parent
b7d8bd13a6
commit
41b0c74e30
33 changed files with 79 additions and 149 deletions
|
@ -10,14 +10,6 @@
|
|||
|
||||
enum class APIType;
|
||||
|
||||
// Different ways to achieve rendering with destination alpha
|
||||
enum DSTALPHA_MODE
|
||||
{
|
||||
DSTALPHA_NONE, // Render normally, without destination alpha
|
||||
DSTALPHA_ALPHA_PASS, // Render normally first, then render again for alpha
|
||||
DSTALPHA_DUAL_SOURCE_BLEND // Use dual-source blending
|
||||
};
|
||||
|
||||
#pragma pack(1)
|
||||
struct pixel_shader_uid_data
|
||||
{
|
||||
|
@ -26,7 +18,8 @@ struct pixel_shader_uid_data
|
|||
u32 num_values; // TODO: Shouldn't be a u32
|
||||
u32 NumValues() const { return num_values; }
|
||||
u32 components : 2;
|
||||
u32 dstAlphaMode : 2;
|
||||
u32 pad0 : 1;
|
||||
u32 useDstAlpha : 1;
|
||||
u32 Pretest : 2;
|
||||
u32 nIndirectStagesUsed : 4;
|
||||
u32 stereo : 1;
|
||||
|
@ -170,4 +163,4 @@ struct pixel_shader_uid_data
|
|||
typedef ShaderUid<pixel_shader_uid_data> PixelShaderUid;
|
||||
|
||||
ShaderCode GeneratePixelShaderCode(APIType ApiType, const pixel_shader_uid_data* uid_data);
|
||||
PixelShaderUid GetPixelShaderUid(DSTALPHA_MODE dstAlphaMode);
|
||||
PixelShaderUid GetPixelShaderUid();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue