2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #3164 from ReinUsesLisp/half-cast-float

gl_shader_decompiler: Fix casts from fp32 to fp16
This commit is contained in:
bunnei 2019-11-26 09:11:23 -05:00 committed by GitHub
commit 31daaa7911
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1469,7 +1469,8 @@ private:
} }
Expression HCastFloat(Operation operation) { 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) { Expression HUnpack(Operation operation) {