Struct egui_winit_ash_vk_mem::Integration [−][src]
pub struct Integration { /* fields omitted */ }
Expand description
egui integration with winit, ash and vk_mem.
Implementations
Create an instance of the integration.
handling winit event.
begin frame.
Get egui::CtxRef
.
pub fn paint(
&mut self,
command_buffer: CommandBuffer,
index: usize,
clipped_meshes: Vec<ClippedMesh>
)
pub fn paint(
&mut self,
command_buffer: CommandBuffer,
index: usize,
clipped_meshes: Vec<ClippedMesh>
)
Record paint commands.
pub fn update_swapchain(
&mut self,
physical_width: u32,
physical_height: u32,
swapchain: SwapchainKHR,
surface_format: SurfaceFormatKHR
)
pub fn update_swapchain(
&mut self,
physical_width: u32,
physical_height: u32,
swapchain: SwapchainKHR,
surface_format: SurfaceFormatKHR
)
Update swapchain.
Registering user texture.
Pass the Vulkan ImageView and Sampler.
image_view
’s image layout must be SHADER_READ_ONLY_OPTIMAL
.
UserTexture needs to be unregistered when it is no longer needed.
Example
cargo run --example user_texture
Unregister user texture.
The internal texture (egui::TextureId::Egui) cannot be unregistered.
Auto Trait Implementations
impl !RefUnwindSafe for Integration
impl Send for Integration
impl !Sync for Integration
impl Unpin for Integration
impl !UnwindSafe for Integration