mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Use swizzle helpers in more places.
This commit is contained in:
committed by
Henri Verbeet
parent
a905a78a96
commit
474a0ac4e2
Notes:
Henri Verbeet
2024-12-12 17:48:24 +01:00
Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1297
@@ -1631,7 +1631,7 @@ static bool copy_propagation_replace_with_single_instr(struct hlsl_ctx *ctx,
|
||||
var->name, start, start + count, debug_hlsl_swizzle(swizzle, instr_component_count));
|
||||
return false;
|
||||
}
|
||||
ret_swizzle |= value->component << HLSL_SWIZZLE_SHIFT(i);
|
||||
hlsl_swizzle_set_component(&ret_swizzle, i, value->component);
|
||||
}
|
||||
|
||||
TRACE("Load from %s[%u-%u]%s propagated as instruction %p%s.\n",
|
||||
|
Reference in New Issue
Block a user