1 Apr
2024
1 Apr
'24
7:07 p.m.
So, integers and bools are represented internally as float in SM1, so a reinterpret has no real effect (doesn't emit any instruction) besides avoiding the "SM1 non-float expression" fixme in d3dbc.
I think that emitting this fixme is correct for ABS and NEG operations on bool types, and thus, the reinterpret should be explicit in HLSL IR.
lower_nonfloat_exprs() should be taking care of that fixme. -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/744#note_66579