23 Nov
2023
23 Nov
'23
1:16 p.m.
Giovanni Mascellani (@giomasce) commented about tests/hlsl/arithmetic-float-uniform.shader_test:
uniform 0 float4 1.0 0.0 0.0 0.0 draw quad probe all rgba (1e99, 1e99, 1e99, 1e99) + +[require] +shader model >= 5.0 + +[pixel shader todo] +uniform double2 a; + +float4 main() : SV_TARGET +{ + double x = a.x; + double y = a.y; + return float4(x + y, x - y, x * y, x / y); This is fine for me, but here and below `asuint()` with a `uint4` return type could be used to return an actual double. I don't know if SM6 has something similar for 64 bit integers, but it can be emulated pretty easily with bitshifts anyway.
-- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/489#note_53505