Struct egui_vulkano_backend::EguiVulkanoRenderPass [−][src]
pub struct EguiVulkanoRenderPass { /* fields omitted */ }
Expand description
egui rendering command builder
Implementations
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]
pub fn create_frame_buffers<Wnd: Send + Sync + 'static>(
&mut self,
image_views: &[Arc<SwapchainImage<Wnd>>]
)
[src]you must call when SwapChain resize or before first create_command_buffer call
pub fn present_to_screen<Wnd>(
&self,
command: PrimaryAutoCommandBuffer<StandardCommandPoolAlloc>,
acquire_future: SwapchainAcquireFuture<Wnd>
)
[src]
pub fn present_to_screen<Wnd>(
&self,
command: PrimaryAutoCommandBuffer<StandardCommandPoolAlloc>,
acquire_future: SwapchainAcquireFuture<Wnd>
)
[src]execute command and present to screen
pub fn create_command_buffer(
&mut self,
render_target: RenderTarget,
paint_jobs: &[ClippedMesh],
screen_descriptor: &ScreenDescriptor
) -> PrimaryAutoCommandBuffer<StandardCommandPoolAlloc>
[src]
pub fn create_command_buffer(
&mut self,
render_target: RenderTarget,
paint_jobs: &[ClippedMesh],
screen_descriptor: &ScreenDescriptor
) -> PrimaryAutoCommandBuffer<StandardCommandPoolAlloc>
[src]translate egui rendering request to vulkano AutoCommandBuffer
Update egui system texture You must call before every create_command_buffer
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]pub fn register_vulkano_image_view(
&mut self,
image_view: Arc<dyn ImageViewAbstract + Sync + Send>
) -> TextureId
[src]
pub fn register_vulkano_image_view(
&mut self,
image_view: Arc<dyn ImageViewAbstract + Sync + Send>
) -> TextureId
[src]register vulkano image view as egui texture
Usable for render to image rectangle
pub fn init_vulkano_image_with_dimensions(
&mut self,
dimensions: [u32; 2]
) -> Result<(TextureId, Arc<AttachmentImage>), InitRenderAreaError>
[src]
pub fn init_vulkano_image_with_dimensions(
&mut self,
dimensions: [u32; 2]
) -> Result<(TextureId, Arc<AttachmentImage>), InitRenderAreaError>
[src]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_image_view
example usage
- model viewer
- video playback
pub fn init_vulkano_image_with_parameters(
&mut self,
dimensions: [u32; 2],
usage: ImageUsage,
format: Format
) -> Result<(TextureId, Arc<AttachmentImage>), InitRenderAreaError>
[src]pub fn recreate_vulkano_texture_with_dimensions(
&mut self,
texture_id: TextureId,
dimensions: [u32; 2]
) -> Result<Arc<AttachmentImage>, RecreateErrors>
[src]
pub fn recreate_vulkano_texture_with_dimensions(
&mut self,
texture_id: TextureId,
dimensions: [u32; 2]
) -> Result<Arc<AttachmentImage>, RecreateErrors>
[src]recreate vulkano texture.
usable for render target resize.
this function create descriptor set for image, so you do not have to call [register_vulkano_image_view]
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