blob: c7ae5dd7dd0de51cad045c9e5ef79b96c1ba2e5b [file] [log] [blame]
SKIP: INVALID
float16_t tint_trunc(float16_t param_0) {
return param_0 < 0 ? ceil(param_0) : floor(param_0);
}
float16_t tint_float_mod(float16_t lhs, float16_t rhs) {
return (lhs - (tint_trunc((lhs / rhs)) * rhs));
}
[numthreads(1, 1, 1)]
void f() {
float16_t a = float16_t(1.0h);
float16_t b = float16_t(2.0h);
float16_t r = tint_float_mod(a, b);
return;
}
FXC validation failure:
<scrubbed_path>(1,1-9): error X3000: unrecognized identifier 'float16_t'
tint executable returned error: exit status 1