mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-01 21:52:41 +02:00
PixelShaderGen: Add logic ops to pixel_shader_uid_data
This commit is contained in:
parent
04ec02c06b
commit
c12b9b013b
@ -19,7 +19,7 @@ namespace VideoCommon
|
|||||||
// As pipelines encompass both shader UIDs and render states, changes to either of these should
|
// As pipelines encompass both shader UIDs and render states, changes to either of these should
|
||||||
// also increment the pipeline UID version. Incrementing the UID version will cause all UID
|
// also increment the pipeline UID version. Incrementing the UID version will cause all UID
|
||||||
// caches to be invalidated.
|
// caches to be invalidated.
|
||||||
constexpr u32 GX_PIPELINE_UID_VERSION = 3; // Last changed in PR 9532
|
constexpr u32 GX_PIPELINE_UID_VERSION = 4; // Last changed in PR 10215
|
||||||
|
|
||||||
struct GXPipelineUid
|
struct GXPipelineUid
|
||||||
{
|
{
|
||||||
|
@ -331,6 +331,9 @@ PixelShaderUid GetPixelShaderUid()
|
|||||||
uid_data->blend_subtract_alpha = state.subtractAlpha;
|
uid_data->blend_subtract_alpha = state.subtractAlpha;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uid_data->logic_op_enable = state.logicopenable;
|
||||||
|
uid_data->logic_op_mode = u32(state.logicmode.Value());
|
||||||
|
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,6 +59,8 @@ struct pixel_shader_uid_data
|
|||||||
DstBlendFactor blend_dst_factor_alpha : 3; // Only used with shader_framebuffer_fetch blend
|
DstBlendFactor blend_dst_factor_alpha : 3; // Only used with shader_framebuffer_fetch blend
|
||||||
u32 blend_subtract : 1; // Only used with shader_framebuffer_fetch blend
|
u32 blend_subtract : 1; // Only used with shader_framebuffer_fetch blend
|
||||||
u32 blend_subtract_alpha : 1; // Only used with shader_framebuffer_fetch blend
|
u32 blend_subtract_alpha : 1; // Only used with shader_framebuffer_fetch blend
|
||||||
|
u32 logic_op_enable : 1; // Only used with shader_framebuffer_fetch logic ops
|
||||||
|
u32 logic_op_mode : 4; // Only used with shader_framebuffer_fetch logic ops
|
||||||
|
|
||||||
u32 texMtxInfo_n_projection : 8; // 8x1 bit
|
u32 texMtxInfo_n_projection : 8; // 8x1 bit
|
||||||
u32 tevindref_bi0 : 3;
|
u32 tevindref_bi0 : 3;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user