vkd3d-shader/hlsl: Use a block in hlsl_normalize_binary_exprs().
[vkd3d.git] / tests / hlsl / bool-semantics.shader_test
blob28100406a7398d8357d441eb64784aed570ee47a
1 [require]
2 shader model >= 4.0
4 [input layout]
5 0 r32g32b32a32-uint apple
6 0 r32g32-sint sv_position
8 [vb 0]
9 format r32-uint
10 0 1 0x80000000 0xffffffff   -2 -2
11 0 1 0x80000000 0xffffffff   -2  2
12 0 1 0x80000000 0xffffffff    2 -2
13 0 1 0x80000000 0xffffffff    2  2
15 [vertex shader]
17 struct input
19     bool4 apple : apple;
20     int4 pos : sv_position;
23 struct output
25     bool4 apple : apple;
26     int4 fapple : apple1;
27     float4 pos : sv_position;
30 void main(in struct input i, out struct output o, uint id : SV_VertexID)
32     o.apple = i.apple;
33     o.fapple = i.apple;
34     o.pos = i.pos;
37 [pixel shader]
39 struct input
41     bool4 apple : apple;
42     int4 fapple : apple1;
43     float4 pos : sv_position;
46 float4 main(struct input i) : sv_target
48     return i.apple + i.fapple;
51 [test]
52 todo(msl) draw triangle strip 4
53 probe (0, 0, 640, 480) rgba (0.0, 2.0, 2.0, 2.0)