glsl: Add a more robust fp formatter
This commit is contained in:
parent
bf40d10805
commit
7febd59ce1
4 changed files with 14 additions and 9 deletions
|
@ -31,11 +31,11 @@ void EmitIMul32(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::strin
|
|||
}
|
||||
|
||||
void EmitINeg32(EmitContext& ctx, IR::Inst& inst, std::string_view value) {
|
||||
ctx.AddU32("{}=-{};", inst, value);
|
||||
ctx.AddU32("{}=-({});", inst, value);
|
||||
}
|
||||
|
||||
void EmitINeg64(EmitContext& ctx, IR::Inst& inst, std::string_view value) {
|
||||
ctx.AddU64("{}=-{};", inst, value);
|
||||
ctx.AddU64("{}=-({});", inst, value);
|
||||
}
|
||||
|
||||
void EmitIAbs32(EmitContext& ctx, IR::Inst& inst, std::string_view value) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue