I don't know why this code has the value 176.0 all over it.
It seems a lot of viewport related code has it.
Maybe it's rendering at 640x352 or something and 176 is half of it?
but let me know if you know some secret Wii-176 connection

1/ SQRT(0.0) ?

uhhhh

are you just trying to explode math?

ghidra what kind of type inference is it that you assume the return value of operator_new is an int?

WHEN HAS OPERATOR NEW EVER RETURNED AN INT?

oh nice. I'm retyping it to RenderPass*, then I click away into another function, then click back, and it's an int again.

what is going on, ghidra?

oh it's actually weirder: it's not resetting the decompilation after I switch away.

it's reshuffling the identically named functions, so that when I click on the first one, it's a different one. one I haven't typed yet

I really hope the original source of this engine used heavy use of macros.

because otherwise there are multiple places where they had to copy-paste functions like 70 times

@foone Maybe they were paid by the number of lines