glsl: FP function fixes

This commit is contained in:
ameerj 2021-05-22 15:06:14 -04:00
parent 30f47ec831
commit d7656077bf
7 changed files with 25 additions and 17 deletions

View file

@ -36,7 +36,7 @@ std::string MakeImm(const IR::Value& value) {
case IR::Type::U64:
return fmt::format("{}ul", value.U64());
case IR::Type::F64:
return fmt::format("{}", value.F64());
return fmt::format("{}lf", value.F64());
default:
throw NotImplementedException("Immediate type {}", value.Type());
}