mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/ir: Allocate SSA registers to temps.
This commit is contained in:
committed by
Henri Verbeet
parent
7b9d04fff8
commit
288020bce8
Notes:
Henri Verbeet
2025-06-23 20:18:01 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1485
@@ -59,8 +59,7 @@ static inline unsigned int hlsl_swizzle_get_component(uint32_t swizzle, unsigned
|
||||
|
||||
static inline void hlsl_swizzle_set_component(uint32_t *swizzle, unsigned int idx, unsigned int component)
|
||||
{
|
||||
*swizzle &= ~(VKD3D_SHADER_SWIZZLE_MASK << VKD3D_SHADER_SWIZZLE_SHIFT(idx));
|
||||
*swizzle |= component << VKD3D_SHADER_SWIZZLE_SHIFT(idx);
|
||||
vsir_swizzle_set_component(swizzle, idx, component);
|
||||
}
|
||||
|
||||
enum hlsl_type_class
|
||||
|
||||
Reference in New Issue
Block a user