INNER CODE UNIT · Rust
begin_frame
wkwan/flo · src/egui_integration.rs:39
pub fn begin_frame(&mut self, raw_input: egui::RawInput, pixels_per_point: f32) {
// Set pixels_per_point before beginning the frame
// This ensures proper scaling for both rendering and interaction
self.context.set_pixels_per_point(pixels_per_point);
self.context.begin_pass(raw_input);
}
pub fn end_frame(&mut self) -> egui::FullOutput {
self.context.end_pass()
}
pub fn paint(
&mut self,
command_buffer: vk::CommandBuffer,
extent: vk::Extent2D,
full_output: egui::FullOutput,
) -> Result<(), Box<dyn std::error::Error>> {
let clipped_primitives = self.context.tessellate(