Struct egui_vulkano_backend::EguiVulkanoRenderPass[][src]

pub struct EguiVulkanoRenderPass { /* fields omitted */ }

egui rendering command builder

Implementations

impl EguiVulkanoRenderPass[src]

pub fn new(
    device: Arc<Device>,
    queue: Arc<Queue>,
    render_target_format: Format
) -> Self
[src]

create command builder

if render target format incompatible with SwapChain format may cause color glitch

pub fn create_frame_buffers<Wnd: Send + Sync + 'static>(
    &mut self,
    image_views: &[Arc<SwapchainImage<Wnd>>]
)
[src]

you must call when SwapChain or render target resize or before first create_command_buffer call

pub fn present_to_screen<Wnd>(
    &self,
    command: AutoCommandBuffer<StandardCommandPoolAlloc>,
    acquire_future: SwapchainAcquireFuture<Wnd>
)
[src]

execute command and present to screen

pub fn create_command_buffer(
    &self,
    color_attachment: Option<Arc<dyn ImageViewAccess + Send + Sync>>,
    image_num: Option<usize>,
    paint_jobs: &[ClippedMesh],
    screen_descriptor: &ScreenDescriptor
) -> AutoCommandBuffer<StandardCommandPoolAlloc>
[src]

translate egui rendering request to vulkano AutoCommandBuffer

color attachment is render target.

If color_attachment is none then render to self framebuffer and image num must Some

If color attachment is some then render to any image e.g. AttachmentImage StorageImage

pub fn upload_egui_texture(&mut self, texture: &Texture)[src]

Update egui system texture You must call before every create_command_buffer

pub fn upload_pending_textures(&mut self)[src]

egui use lazy texture allocating so you must call before every create_command_buffer.

pub fn set_user_texture(
    &mut self,
    id: TextureId,
    size: (usize, usize),
    srgba_pixels: &[Color32]
)
[src]

pub fn vulkano_texture_as_egui(
    &mut self,
    image_view: Arc<dyn ImageViewAccess + Sync + Send>
) -> TextureId
[src]

mark vulkano image view as egui texture id enables fast and easy off-screen rendering

Trait Implementations

impl TextureAllocator for EguiVulkanoRenderPass[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Content for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.