GstVulkan.VulkanHandle¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
device |
r/w |
the |
|
handle |
r/w |
the handle value |
|
notify |
r/w |
||
parent |
r/w |
the parent |
|
type |
r/w |
the type of handle |
|
user_data |
r/w |
Methods¶
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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:
element (
Gst.Element
) – aGst.Element
query (
Gst.Query
) – aGst.Query
of typeGst.QueryType.CONTEXT
display (
GstVulkan.VulkanDisplay
orNone
) – aGstVulkan.VulkanDisplay
instance (
GstVulkan.VulkanInstance
orNone
) – aGstVulkan.VulkanInstance
device (
GstVulkan.VulkanDevice
orNone
) – aGstVulkan.VulkanInstance
- Returns:
Whether the query was successfully responded to from the passed display, instance, and device.
- Return type:
New in version 1.18.
- classmethod new_wrapped(device, type, handle, notify, *user_data)¶
- Parameters:
device (
GstVulkan.VulkanDevice
) –type (
GstVulkan.VulkanHandleType
) –handle (
int
) – a Vulkan handlenotify (
GstVulkan.VulkanHandleDestroyNotify
) – aGLib.DestroyNotify
- Returns:
a new
GstVulkan.VulkanHandle
wrapping handle- Return type:
New in version 1.18.
- classmethod set_context(element, context, display, instance)¶
- Parameters:
element (
Gst.Element
) – aGst.Element
context (
Gst.Context
) – aGst.Context
display (
GstVulkan.VulkanDisplay
) – location of aGstVulkan.VulkanDisplay
instance (
GstVulkan.VulkanInstance
) – location of aGstVulkan.VulkanInstance
- 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
orGstVulkan.VulkanInstance
in context and places the result in display or instance respectively.New in version 1.18.
- free_descriptor_set_layout(user_data)¶
-
Frees the descriptor set layout in self
New in version 1.18.
- free_framebuffer(user_data)¶
-
Frees the framebuffer in self
New in version 1.18.
- free_pipeline(user_data)¶
-
Frees the pipeline in self
New in version 1.18.
- free_pipeline_layout(user_data)¶
-
Frees the pipeline layout in self
New in version 1.18.
- free_render_pass(user_data)¶
-
Frees the render pass in self
New in version 1.18.
- free_sampler(user_data)¶
-
Frees the sampler in self
New in version 1.18.