Struct egui_vulkano_backend::EguiVulkanoRenderPass [−][src]
egui rendering command builder
Implementations
impl EguiVulkanoRenderPass
[src]
pub fn new(
device: Arc<Device>,
queue: Arc<Queue>,
render_target_format: Format
) -> Self
[src]
device: Arc<Device>,
queue: Arc<Queue>,
render_target_format: Format
) -> Self
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]
&mut self,
image_views: &[Arc<SwapchainImage<Wnd>>]
)
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]
&self,
command: AutoCommandBuffer<StandardCommandPoolAlloc>,
acquire_future: SwapchainAcquireFuture<Wnd>
)
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]
&self,
color_attachment: Option<Arc<dyn ImageViewAccess + Send + Sync>>,
image_num: Option<usize>,
paint_jobs: &[ClippedMesh],
screen_descriptor: &ScreenDescriptor
) -> AutoCommandBuffer<StandardCommandPoolAlloc>
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]
&mut self,
id: TextureId,
size: (usize, usize),
srgba_pixels: &[Color32]
)
pub fn vulkano_texture_as_egui(
&mut self,
image_view: Arc<dyn ImageViewAccess + Sync + Send>
) -> TextureId
[src]
&mut self,
image_view: Arc<dyn ImageViewAccess + Sync + Send>
) -> TextureId
mark vulkano image view as egui texture id enables fast and easy off-screen rendering
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for EguiVulkanoRenderPass
impl Send for EguiVulkanoRenderPass
impl Sync for EguiVulkanoRenderPass
impl Unpin for EguiVulkanoRenderPass
impl !UnwindSafe for EguiVulkanoRenderPass
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T
[src]
pub fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
pub fn is_size_suitable(size: usize) -> bool
[src]
pub fn indiv_size() -> usize
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,