mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-09 00:14:56 +00:00
rsx/common/d3d12: Support non default alpha function
Fix After burner climax cloud effects.
This commit is contained in:
parent
9e3132c3fc
commit
837e06e85b
7 changed files with 60 additions and 3 deletions
|
|
@ -790,6 +790,22 @@ rsx::window_pixel_center rsx::to_window_pixel_center(u8 in)
|
|||
throw EXCEPTION("Unknow window pixel center %x", in);
|
||||
}
|
||||
|
||||
rsx::comparaison_function rsx::to_comparaison_function(u16 in)
|
||||
{
|
||||
switch (in)
|
||||
{
|
||||
case CELL_GCM_NEVER: return rsx::comparaison_function::never;
|
||||
case CELL_GCM_LESS: return rsx::comparaison_function::less;
|
||||
case CELL_GCM_EQUAL: return rsx::comparaison_function::equal;
|
||||
case CELL_GCM_LEQUAL: return rsx::comparaison_function::less_or_equal;
|
||||
case CELL_GCM_GREATER: return rsx::comparaison_function::greater;
|
||||
case CELL_GCM_NOTEQUAL: return rsx::comparaison_function::not_equal;
|
||||
case CELL_GCM_GEQUAL: return rsx::comparaison_function::greater_or_equal;
|
||||
case CELL_GCM_ALWAYS: return rsx::comparaison_function::always;
|
||||
}
|
||||
throw EXCEPTION("Wrong comparaison function %x", in);
|
||||
}
|
||||
|
||||
|
||||
enum
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue