Closed Rua closed 4 months ago
The values you get from winit don't have any precision to speak of, and everything in graphics revolves around f32
since f64
is horribly slow on consumer GPUs. Therefore using f64
in APIs is counter-productive. Instead I would #[allow]
the clippy lints. They are overly conservative and supposed to be #[allow]
ed when it makes sense.
Changelog:
Winit uses
u32
orf64
to represent sizes, positions, etc. Casting either of those tof32
results in precision loss. By usingf64
throughout, the user is given the choice of losing precision instead of having it forced on them by Vulkano.