mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/fx: Use the same BlendState states description for both fx_4_1 and fx_5_0.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
committed by
Henri Verbeet
parent
d660a0d2ae
commit
5d5d892830
Notes:
Henri Verbeet
2025-05-06 19:06:09 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1484
@@ -2686,7 +2686,7 @@ static void resolve_fx_4_state_block_values(struct hlsl_ir_var *var, struct hlsl
|
|||||||
struct hlsl_ir_node *node;
|
struct hlsl_ir_node *node;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
if (type->class == HLSL_CLASS_BLEND_STATE && ctx->profile->major_version == 5)
|
if (type->class == HLSL_CLASS_BLEND_STATE && hlsl_version_ge(ctx, 4, 1))
|
||||||
{
|
{
|
||||||
table.ptr = fx_5_blend_states;
|
table.ptr = fx_5_blend_states;
|
||||||
table.count = ARRAY_SIZE(fx_5_blend_states);
|
table.count = ARRAY_SIZE(fx_5_blend_states);
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
shader model >= 4.1
|
shader model >= 4.1
|
||||||
shader model < 6.0
|
shader model < 6.0
|
||||||
|
|
||||||
[effect todo]
|
[effect]
|
||||||
BlendState bs
|
BlendState bs
|
||||||
{
|
{
|
||||||
SrcBlend[0] = one;
|
SrcBlend[0] = one;
|
||||||
@@ -13,7 +13,7 @@ BlendState bs
|
|||||||
BlendOpAlpha[5] = add;
|
BlendOpAlpha[5] = add;
|
||||||
};
|
};
|
||||||
|
|
||||||
[effect todo]
|
[effect]
|
||||||
BlendState bs
|
BlendState bs
|
||||||
{
|
{
|
||||||
SrcBlend = one;
|
SrcBlend = one;
|
||||||
|
Reference in New Issue
Block a user