mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
88 lines
1.9 KiB
Plaintext
88 lines
1.9 KiB
Plaintext
[require]
|
|
shader model >= 4.0
|
|
|
|
[pixel shader]
|
|
uniform uint a;
|
|
|
|
float4 main() : sv_target
|
|
{
|
|
return f16tof32(a);
|
|
}
|
|
|
|
[test]
|
|
uniform 0 uint 0x5140
|
|
draw quad
|
|
probe (0, 0) rgba(42.0, 42.0, 42.0, 42.0)
|
|
|
|
% zero
|
|
uniform 0 uint 0x0
|
|
draw quad
|
|
probe (0, 0) rgba(0.0, 0.0, 0.0, 0.0)
|
|
|
|
% negative zero
|
|
uniform 0 uint 0x8000
|
|
draw quad
|
|
probe (0, 0) rgba(-0.0, -0.0, -0.0, -0.0)
|
|
|
|
% subnormal number
|
|
uniform 0 uint 0x1
|
|
draw quad
|
|
probe (0, 0) rgba(5.9604645e-08, 5.9604645e-08, 5.9604645e-08, 5.9604645e-08)
|
|
|
|
% subnormal number
|
|
uniform 0 uint 0x2
|
|
draw quad
|
|
probe (0, 0) rgba(1.1920929e-07, 1.1920929e-07, 1.1920929e-07, 1.1920929e-07)
|
|
|
|
% subnormal number
|
|
uniform 0 uint 0x4
|
|
draw quad
|
|
probe (0, 0) rgba(2.3841858e-07, 2.3841858e-07, 2.3841858e-07, 2.3841858e-07)
|
|
|
|
% subnormal number
|
|
uniform 0 uint 0x8
|
|
draw quad
|
|
probe (0, 0) rgba(4.7683716e-07, 4.7683716e-07, 4.7683716e-07, 4.7683716e-07)
|
|
|
|
% subnormal number
|
|
uniform 0 uint 0x10
|
|
draw quad
|
|
probe (0, 0) rgba(9.536743e-07, 9.536743e-07, 9.536743e-07, 9.536743e-07)
|
|
|
|
% subnormal number
|
|
uniform 0 uint 0x20
|
|
draw quad
|
|
probe (0, 0) rgba(1.9073486e-06, 1.9073486e-06, 1.9073486e-06, 1.9073486e-06)
|
|
|
|
% subnormal number
|
|
uniform 0 uint 0x40
|
|
draw quad
|
|
probe (0, 0) rgba(3.8146973e-06, 3.8146973e-06, 3.8146973e-06, 3.8146973e-06)
|
|
|
|
% subnormal number
|
|
uniform 0 uint 0x80
|
|
draw quad
|
|
probe (0, 0) rgba(7.6293945e-06, 7.6293945e-06, 7.6293945e-06, 7.6293945e-06)
|
|
|
|
% subnormal number
|
|
uniform 0 uint 0x100
|
|
draw quad
|
|
probe (0, 0) rgba(1.5258789e-05, 1.5258789e-05, 1.5258789e-05, 1.5258789e-05)
|
|
|
|
% subnormal number
|
|
uniform 0 uint 0x200
|
|
draw quad
|
|
probe (0, 0) rgba(3.0517578e-05, 3.0517578e-05, 3.0517578e-05, 3.0517578e-05)
|
|
|
|
% I'd love to use rgba probes here but msvc doesn't scanf infinity :(
|
|
|
|
% positive infinity
|
|
uniform 0 uint 0x7c00
|
|
draw quad
|
|
probe (0, 0) rgbaui(0x7f800000, 0x7f800000, 0x7f800000, 0x7f800000)
|
|
|
|
% negative infinity
|
|
uniform 0 uint 0xfc00
|
|
draw quad
|
|
probe (0, 0) rgbaui(0xff800000, 0xff800000, 0xff800000, 0xff800000)
|