GstVulkan.VulkanHandle

Fields

Name

Type

Access

Description

device

GstVulkan.VulkanDevice

r/w

the GstVulkan.VulkanDevice for this handle

handle

int

r/w

the handle value

notify

GstVulkan.VulkanHandleDestroyNotify

r/w

parent

Gst.MiniObject

r/w

the parent Gst.MiniObject

type

GstVulkan.VulkanHandleType

r/w

the type of handle

user_data

object

r/w

Methods

class

context_query (element, query, display, instance, device)

class

new_wrapped (device, type, handle, notify, *user_data)

class

set_context (element, context, display, instance)

free_descriptor_set_layout (user_data)

free_framebuffer (user_data)

free_pipeline (user_data)

free_pipeline_layout (user_data)

free_render_pass (user_data)

free_sampler (user_data)

free_shader (user_data)

Details

class GstVulkan.VulkanHandle

Holds information about a vulkan non dispatchable handle that only has a vulkan device as a parent and no specific host synchronisation requirements. Command buffers have extra requirements that are serviced by more specific implementations (GstVulkan.VulkanCommandBuffer, GstVulkan.VulkanCommandPool).

New in version 1.18.

classmethod context_query(element, query, display, instance, device)
Parameters:
Returns:

Whether the query was successfully responded to from the passed display, instance, and device.

Return type:

bool

New in version 1.18.

classmethod new_wrapped(device, type, handle, notify, *user_data)
Parameters:
Returns:

a new GstVulkan.VulkanHandle wrapping handle

Return type:

GstVulkan.VulkanHandle

New in version 1.18.

classmethod set_context(element, context, display, instance)
Parameters:
Returns:

whether the display or instance could be set successfully

display:

location of a GstVulkan.VulkanDisplay

instance:

location of a GstVulkan.VulkanInstance

Return type:

(bool, display: GstVulkan.VulkanDisplay, instance: GstVulkan.VulkanInstance)

Helper function for implementing Gst.Element.do_set_context() in Vulkan capable elements.

Retrieve’s the GstVulkan.VulkanDisplay or GstVulkan.VulkanInstance in context and places the result in display or instance respectively.

New in version 1.18.

free_descriptor_set_layout(user_data)
Parameters:

user_data (object or None) – callback user data

Frees the descriptor set layout in self

New in version 1.18.

free_framebuffer(user_data)
Parameters:

user_data (object or None) – callback user data

Frees the framebuffer in self

New in version 1.18.

free_pipeline(user_data)
Parameters:

user_data (object or None) – callback user data

Frees the pipeline in self

New in version 1.18.

free_pipeline_layout(user_data)
Parameters:

user_data (object or None) – callback user data

Frees the pipeline layout in self

New in version 1.18.

free_render_pass(user_data)
Parameters:

user_data (object or None) – callback user data

Frees the render pass in self

New in version 1.18.

free_sampler(user_data)
Parameters:

user_data (object or None) – callback user data

Frees the sampler in self

New in version 1.18.

free_shader(user_data)
Parameters:

user_data (object or None) – callback user data

Frees the shader in self

New in version 1.18.