[PATCH vkd3d 2/2] vkd3d-shader/hlsl: Implement floor().

Giovanni Mascellani gmascellani at codeweavers.com
Mon Dec 13 04:19:48 CST 2021


Hi,

On 13/12/21 11:12, Nikolay Sivov wrote:
> How do you check that?

https://shader-playground.timjones.io/5cb163a31149f937714c6faf940b027f

---
int f(int4 x) { return 0; }
int f(float4 x) { return 1; }

float4 PSMain() : SV_TARGET
{
	return f(floor(int4(1, 2, 3, 4)));
}
---

This will return 1.

Giovanni.



More information about the wine-devel mailing list