Files
wgpu/tests/out/hlsl/math-functions.hlsl
T
Evan Mark Hopkins a80967f860 Add support for the saturate function (#2025)
uses clamp in place of saturate in spv and glsl
2022-08-16 10:43:41 +00:00

13 lines
287 B
HLSL

void main()
{
float4 v = (0.0).xxxx;
float a = degrees(1.0);
float b = radians(1.0);
float4 c = degrees(v);
float4 d = radians(v);
float4 e = saturate(v);
int const_dot = dot(int2(0, 0), int2(0, 0));
uint first_leading_bit_abs = firstbithigh(abs(0u));
}