mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/ir: Pass a uint32_t swizzle to vkd3d_swizzle_get_component().
This commit is contained in:
committed by
Alexandre Julliard
parent
4ff389854c
commit
8a1de71fb1
Notes:
Alexandre Julliard
2023-12-14 23:32:16 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/525
@@ -1381,10 +1381,10 @@ static void shader_dump_src_param(struct vkd3d_d3d_asm_compiler *compiler,
|
||||
if (param->reg.type != VKD3DSPR_IMMCONST && param->reg.type != VKD3DSPR_IMMCONST64
|
||||
&& param->reg.dimension == VSIR_DIMENSION_VEC4)
|
||||
{
|
||||
unsigned int swizzle_x = vkd3d_swizzle_get_component(swizzle, 0);
|
||||
unsigned int swizzle_y = vkd3d_swizzle_get_component(swizzle, 1);
|
||||
unsigned int swizzle_z = vkd3d_swizzle_get_component(swizzle, 2);
|
||||
unsigned int swizzle_w = vkd3d_swizzle_get_component(swizzle, 3);
|
||||
unsigned int swizzle_x = vsir_swizzle_get_component(swizzle, 0);
|
||||
unsigned int swizzle_y = vsir_swizzle_get_component(swizzle, 1);
|
||||
unsigned int swizzle_z = vsir_swizzle_get_component(swizzle, 2);
|
||||
unsigned int swizzle_w = vsir_swizzle_get_component(swizzle, 3);
|
||||
|
||||
static const char swizzle_chars[] = "xyzw";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user