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 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(
&mut self,
render_target: RenderTarget,
paint_jobs: &[ClippedMesh],
screen_descriptor: &ScreenDescriptor
) -> AutoCommandBuffer<StandardCommandPoolAlloc>
[src]
&mut self,
render_target: RenderTarget,
paint_jobs: &[ClippedMesh],
screen_descriptor: &ScreenDescriptor
) -> AutoCommandBuffer<StandardCommandPoolAlloc>
translate egui rendering request to vulkano AutoCommandBuffer
pub fn request_upload_egui_texture(&mut self, texture: &Texture)
[src]
Update egui system texture You must call before every create_command_buffer
pub fn wait_texture_upload(&mut self)
[src]
waiting image upload done.
usually you don’t need to call .
this cause blocking but ensure no image glitch.
you must call before 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 register_vulkano_texture(
&mut self,
image_view: Arc<dyn ImageViewAbstract + Sync + Send>
) -> TextureId
[src]
&mut self,
image_view: Arc<dyn ImageViewAbstract + Sync + Send>
) -> TextureId
register vulkano image view as egui texture
Usable for render to image rectangle
pub fn init_vulkano_texture_with_dimensions(
&mut self,
dimensions: [u32; 2]
) -> Result<(TextureId, Arc<AttachmentImage>), InitRenderAreaError>
[src]
&mut self,
dimensions: [u32; 2]
) -> Result<(TextureId, Arc<AttachmentImage>), InitRenderAreaError>
init render area with given dimensions.
image format is R8G8B8A8Srgb.
enabled image usage is below.
- sampled
- color_attachment
- transfer_destination
this is shortcut function for register_vulkano_texture
example usage
- model viewer
- video playback
pub fn recreate_vulkano_texture_with_dimensions(
&mut self,
texture_id: TextureId,
dimensions: [u32; 2]
) -> Result<Arc<AttachmentImage>, RecreateErrors>
[src]
&mut self,
texture_id: TextureId,
dimensions: [u32; 2]
) -> Result<Arc<AttachmentImage>, RecreateErrors>
recreate vulkano texture.
usable for render target resize.
this function create descriptor set for image, so you do not have to call register_vulkano_texture
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, 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>,