mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Save hlsl_ir_constants in the vsir_program for SM1.
This commit is contained in:
committed by
Henri Verbeet
parent
a61846c28a
commit
23e3ec84f7
Notes:
Henri Verbeet
2024-09-04 18:48:04 +02:00
Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/941
@@ -70,6 +70,14 @@ static inline unsigned int hlsl_swizzle_get_component(uint32_t swizzle, unsigned
|
||||
return (swizzle >> HLSL_SWIZZLE_SHIFT(idx)) & HLSL_SWIZZLE_MASK;
|
||||
}
|
||||
|
||||
static inline uint32_t vsir_swizzle_from_hlsl(uint32_t swizzle)
|
||||
{
|
||||
return vkd3d_shader_create_swizzle(hlsl_swizzle_get_component(swizzle, 0),
|
||||
hlsl_swizzle_get_component(swizzle, 1),
|
||||
hlsl_swizzle_get_component(swizzle, 2),
|
||||
hlsl_swizzle_get_component(swizzle, 3));
|
||||
}
|
||||
|
||||
enum hlsl_type_class
|
||||
{
|
||||
HLSL_CLASS_SCALAR,
|
||||
|
Reference in New Issue
Block a user