mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
vkd3d-shader/dxil: Emit bool inputs and outputs as uint.
DXIL reads/writes uint for these.
This commit is contained in:
parent
5b7191280b
commit
ea5624e5e8
Notes:
Alexandre Julliard
2024-05-13 22:58:15 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/857
@ -9387,6 +9387,10 @@ static enum vkd3d_result sm6_parser_read_signature(struct sm6_parser *sm6, const
|
||||
e->used_mask <<= index;
|
||||
}
|
||||
|
||||
/* DXIL reads/writes uint for bool I/O. */
|
||||
if (e->component_type == VKD3D_SHADER_COMPONENT_BOOL)
|
||||
e->component_type = VKD3D_SHADER_COMPONENT_UINT;
|
||||
|
||||
m = element_node->operands[4];
|
||||
if (!sm6_metadata_value_is_node(m))
|
||||
{
|
||||
|
@ -49,5 +49,5 @@ float4 main(struct input i) : sv_target
|
||||
}
|
||||
|
||||
[test]
|
||||
todo(sm>=6 | glsl) draw triangle strip 4
|
||||
todo(glsl) draw triangle strip 4
|
||||
probe all rgba (0.0, 2.0, 2.0, 2.0)
|
||||
|
Loading…
Reference in New Issue
Block a user