Trait Vulkan Full Screen Quad Ext 
Source pub trait VulkanFullScreenQuadExt: IsA<VulkanFullScreenQuad> + 'static {
Show 15 methods
    // Provided methods
    fn draw(&self) -> Result<(), Error> { ... }
    fn enable_blend(&self, enable_blend: bool) { ... }
    fn enable_clear(&self, enable_clear: bool) { ... }
    fn fill_command_buffer(
        &self,
        cmd: &mut VulkanCommandBuffer,
        fence: &mut VulkanFence,
    ) -> Result<(), Error> { ... }
    fn last_fence(&self) -> VulkanFence { ... }
    fn queue(&self) -> Option<VulkanQueue> { ... }
    fn prepare_draw(&self, fence: &mut VulkanFence) -> Result<(), Error> { ... }
    fn set_index_buffer(
        &self,
        indices: &Memory,
        n_indices: usize,
    ) -> Result<(), Error> { ... }
    fn set_info(&self, in_info: &VideoInfo, out_info: &VideoInfo) -> bool { ... }
    fn set_input_buffer(&self, buffer: Option<&Buffer>) -> Result<(), Error> { ... }
    fn set_output_buffer(&self, buffer: Option<&Buffer>) -> Result<(), Error> { ... }
    fn set_shaders(&self, vert: &VulkanHandle, frag: &VulkanHandle) -> bool { ... }
    fn set_uniform_buffer(&self, uniforms: &Memory) -> Result<(), Error> { ... }
    fn set_vertex_buffer(&self, vertices: &Memory) -> Result<(), Error> { ... }
    fn submit(
        &self,
        cmd: VulkanCommandBuffer,
        fence: &mut VulkanFence,
    ) -> Result<(), Error> { ... }
}Expand description
Provided Methods§
Sourcefn draw(&self) -> Result<(), Error>
 
fn draw(&self) -> Result<(), Error>
Helper function for creation and submission of a command buffer that draws
a full screen quad. If you need to add other things to the command buffer,
create the command buffer manually and call
prepare_draw(),
fill_command_buffer() and
submit() instead.
§Returns
whether the draw was successful
Sourcefn enable_blend(&self, enable_blend: bool)
 
fn enable_blend(&self, enable_blend: bool)
Enables blending of the input image to the output image.
See also: gst_vulkan_full_screen_quad_set_blend_operation() and
gst_vulkan_full_screen_quad_set_blend_factors().
§enable_blend
whether to enable blending
Sourcefn enable_clear(&self, enable_clear: bool)
 
fn enable_clear(&self, enable_clear: bool)
§enable_clear
whether to clear the framebuffer on load
Sourcefn fill_command_buffer(
    &self,
    cmd: &mut VulkanCommandBuffer,
    fence: &mut VulkanFence,
) -> Result<(), Error>
 
fn fill_command_buffer( &self, cmd: &mut VulkanCommandBuffer, fence: &mut VulkanFence, ) -> Result<(), Error>
cmd must be locked with gst_vulkan_command_buffer_lock().
§cmd
the VulkanCommandBuffer to fill with commands
§Returns
whether cmd could be filled with the necessary commands
fn last_fence(&self) -> VulkanFence
Sourcefn queue(&self) -> Option<VulkanQueue>
 
fn queue(&self) -> Option<VulkanQueue>
§Returns
The currently configured
VulkanQueue
Sourcefn prepare_draw(&self, fence: &mut VulkanFence) -> Result<(), Error>
 
fn prepare_draw(&self, fence: &mut VulkanFence) -> Result<(), Error>
§fence
a VulkanFence that will be signalled after submission
§Returns
whether the necessary information could be generated for drawing a frame.
Sourcefn set_index_buffer(
    &self,
    indices: &Memory,
    n_indices: usize,
) -> Result<(), Error>
 
fn set_index_buffer( &self, indices: &Memory, n_indices: usize, ) -> Result<(), Error>
See also set_vertex_buffer()
§indices
the index data. Must be a GstVulkanBufferMemory
§n_indices
number of indices in indices
§Returns
whether the index data could be set
Sourcefn set_shaders(&self, vert: &VulkanHandle, frag: &VulkanHandle) -> bool
 
fn set_shaders(&self, vert: &VulkanHandle, frag: &VulkanHandle) -> bool
Sourcefn submit(
    &self,
    cmd: VulkanCommandBuffer,
    fence: &mut VulkanFence,
) -> Result<(), Error>
 
fn submit( &self, cmd: VulkanCommandBuffer, fence: &mut VulkanFence, ) -> Result<(), Error>
§cmd
a VulkanCommandBuffer to submit
§fence
a VulkanFence to signal on completion
§Returns
whether cmd could be submitted to the queue
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.