mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader: Introduce an enumeration for swizzle components.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
690a717887
commit
2dd0d207d5
@ -731,10 +731,15 @@ struct vkd3d_shader_signature
|
||||
};
|
||||
|
||||
/* swizzle bits fields: wwzzyyxx */
|
||||
#define VKD3D_SHADER_SWIZZLE_X (0u)
|
||||
#define VKD3D_SHADER_SWIZZLE_Y (1u)
|
||||
#define VKD3D_SHADER_SWIZZLE_Z (2u)
|
||||
#define VKD3D_SHADER_SWIZZLE_W (3u)
|
||||
enum vkd3d_shader_swizzle_component
|
||||
{
|
||||
VKD3D_SHADER_SWIZZLE_X = 0x0,
|
||||
VKD3D_SHADER_SWIZZLE_Y = 0x1,
|
||||
VKD3D_SHADER_SWIZZLE_Z = 0x2,
|
||||
VKD3D_SHADER_SWIZZLE_W = 0x3,
|
||||
|
||||
VKD3D_FORCE_32_BIT_ENUM(VKD3D_SHADER_SWIZZLE_COMPONENT),
|
||||
};
|
||||
|
||||
#define VKD3D_SHADER_SWIZZLE_MASK (0x3u)
|
||||
#define VKD3D_SHADER_SWIZZLE_SHIFT(idx) (2u * (idx))
|
||||
|
Loading…
Reference in New Issue
Block a user