GstVulkan.VulkanFullScreenQuad¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
cmd_pool |
r |
the |
|
descriptor_cache |
r |
the configured |
|
descriptor_set |
r |
the configured |
|
descriptor_set_layout |
r |
the configured |
|
framebuffer |
r |
the configured |
|
graphics_pipeline |
r |
the configured |
|
in_info |
r |
the configured input |
|
last_fence |
r |
the last configured |
|
out_info |
r |
the configured output |
|
parent |
r |
the parent |
|
pipeline_layout |
r |
the configured |
|
queue |
r |
the |
|
render_pass |
r |
the configured |
|
sampler |
r |
the configured |
|
trash_list |
r |
the |
Class Details¶
- class GstVulkan.VulkanFullScreenQuad(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
New in version 1.18.
- classmethod new(queue)¶
- Parameters:
queue (
GstVulkan.VulkanQueue) – aGstVulkan.VulkanQueue- Returns:
- Return type:
New in version 1.18.
- draw()¶
- Raises:
- Returns:
whether the draw was successful
- Return type:
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
GstVulkan.VulkanFullScreenQuad.prepare_draw(),GstVulkan.VulkanFullScreenQuad.fill_command_buffer() andGstVulkan.VulkanFullScreenQuad.submit() instead.New in version 1.18.
- enable_blend(enable_blend)¶
- Parameters:
enable_blend (
bool) – whether to enable blending
Enables blending of the input image to the output image.
See also:
GstVulkan.VulkanFullScreenQuad.set_blend_operation() andGstVulkan.VulkanFullScreenQuad.set_blend_factors().New in version 1.22.
- enable_clear(enable_clear)¶
- Parameters:
enable_clear (
bool) – whether to clear the framebuffer on load
New in version 1.22.
- fill_command_buffer(cmd, fence)¶
- Parameters:
cmd (
GstVulkan.VulkanCommandBuffer) – theGstVulkan.VulkanCommandBufferto fill with commandsfence (
GstVulkan.VulkanFence) –
- Raises:
- Returns:
whether cmd could be filled with the necessary commands
- Return type:
New in version 1.18.
- get_last_fence()¶
- Return type:
- get_queue()¶
- Returns:
The currently configured
GstVulkan.VulkanQueue- Return type:
New in version 1.26.
- prepare_draw(fence)¶
- Parameters:
fence (
GstVulkan.VulkanFence) – aGstVulkan.VulkanFencethat will be signalled after submission- Raises:
- Returns:
whether the necessary information could be generated for drawing a frame.
- Return type:
New in version 1.18.
- set_blend_factors(src_blend_factor, dst_blend_factor, src_alpha_blend_factor, dst_alpha_blend_factor)¶
- Parameters:
src_blend_factor (
Vulkan.BlendFactor) – theVkBlendFactorfor the source image for the colour components (RGB)dst_blend_factor (
Vulkan.BlendFactor) – theVkBlendFactorfor the destination image for the colour components (RGB)src_alpha_blend_factor (
Vulkan.BlendFactor) – theVkBlendFactorfor the source image for the alpha component.dst_alpha_blend_factor (
Vulkan.BlendFactor) – theVkBlendFactorfor the destination image for the alpha component.
You need to enable blend with
GstVulkan.VulkanFullScreenQuad.enable_blend().See also:
GstVulkan.VulkanFullScreenQuad.set_blend_operation().New in version 1.22.
- set_blend_operation(colour_blend_op, alpha_blend_op)¶
- Parameters:
colour_blend_op (
Vulkan.BlendOp) – theVkBlendOpto use for blending colour (RGB) valuesalpha_blend_op (
Vulkan.BlendOp) – theVkBlendOpto use for blending alpha values
You need to enable blend with
GstVulkan.VulkanFullScreenQuad.enable_blend().See also:
GstVulkan.VulkanFullScreenQuad.set_blend_factors().New in version 1.22.
- set_index_buffer(indices, n_indices)¶
- Parameters:
indices (
Gst.Memory) – the index data. Must be aGstVulkan.VulkanBufferMemoryn_indices (
int) – number of indices in indices
- Raises:
- Returns:
whether the index data could be set
- Return type:
See also
GstVulkan.VulkanFullScreenQuad.set_vertex_buffer()New in version 1.18.
- set_info(in_info, out_info)¶
- Parameters:
in_info (
GstVideo.VideoInfo) – the inputGstVideo.VideoInfoto setout_info (
GstVideo.VideoInfo) – the outputGstVideo.VideoInfoto set
- Returns:
whether the information could be successfully set
- Return type:
New in version 1.18.
- set_input_buffer(buffer)¶
- Parameters:
buffer (
Gst.BufferorNone) – the inputGst.Bufferto set- Raises:
- Returns:
whether the input buffer could be changed
- Return type:
New in version 1.18.
- set_output_buffer(buffer)¶
- Parameters:
buffer (
Gst.BufferorNone) – the outputGst.Bufferto set- Raises:
- Returns:
whether the input buffer could be changed
- Return type:
New in version 1.18.
- set_shaders(vert, frag)¶
- Parameters:
vert (
GstVulkan.VulkanHandle) – the vertex shader to setfrag (
GstVulkan.VulkanHandle) – the fragment shader to set
- Returns:
whether the shaders could be set
- Return type:
New in version 1.18.
- set_uniform_buffer(uniforms)¶
- Parameters:
uniforms (
Gst.Memory) – the uniform data to set. Must be aGstVulkan.VulkanBufferMemory- Raises:
- Returns:
whether the shaders could be set
- Return type:
New in version 1.18.
- set_vertex_buffer(vertices)¶
- Parameters:
vertices (
Gst.Memory) – the vertex data. Must be aGstVulkan.VulkanBufferMemory- Raises:
- Returns:
whether the index data could be set
- Return type:
New in version 1.18.
- submit(cmd, fence)¶
- Parameters:
cmd (
GstVulkan.VulkanCommandBuffer) – aGstVulkan.VulkanCommandBufferto submitfence (
GstVulkan.VulkanFence) – aGstVulkan.VulkanFenceto signal on completion
- Raises:
- Returns:
whether cmd could be submitted to the queue
- Return type:
New in version 1.18.