Skip to content
Snippets Groups Projects

vkd3d-shader/hlsl: Add ceil() function.

Merged Nikolay Sivov requested to merge nsivov/vkd3d:ceil into master
1 unresolved thread
2 files
+ 17
12
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 5
0
@@ -4785,6 +4785,11 @@ static void write_sm4_expr(const struct tpf_writer *tpf, const struct hlsl_ir_ex
write_sm4_cast(tpf, expr);
break;
case HLSL_OP1_CEIL:
assert(type_is_float(dst_type));
write_sm4_unary_op(tpf, VKD3D_SM4_OP_ROUND_PI, &expr->node, arg1, 0);
break;
case HLSL_OP1_COS:
assert(type_is_float(dst_type));
write_sm4_unary_op_with_two_destinations(tpf, VKD3D_SM4_OP_SINCOS, &expr->node, 1, arg1);
Loading