Browse Source
Merge pull request #3164 from ReinUsesLisp/half-cast-float
gl_shader_decompiler: Fix casts from fp32 to fp16
pull/15/merge
bunnei
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
src/video_core/renderer_opengl/gl_shader_decompiler.cpp
|
|
|
@ -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) { |
|
|
|
|