mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-16 06:17:59 +00:00
gl_shader_decompiler: Fix casts from fp32 to f16
Casts from f32 to f16 zeroes the higher half of the target register.
This commit is contained in:
parent
d3caa7a8cc
commit
c769397a9a
1 changed files with 2 additions and 1 deletions
|
@ -1469,7 +1469,8 @@ private:
|
|||
}
|
||||
|
||||
Expression HCastFloat(Operation operation) {
|
||||
return {fmt::format("vec2({})", VisitOperand(operation, 0).AsFloat()), Type::HalfFloat};
|
||||
return {fmt::format("vec2({}, 0.0f)", VisitOperand(operation, 0).AsFloat()),
|
||||
Type::HalfFloat};
|
||||
}
|
||||
|
||||
Expression HUnpack(Operation operation) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue