GstVulkan.VulkanDevice¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
Associated Vulkan Instance |
||
r/w/co |
Associated Vulkan Physical Device |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
device |
r |
the vulkan device handle |
|
instance |
r |
the |
|
parent |
r |
the parent |
|
physical_device |
r |
the |
Class Details¶
- class GstVulkan.VulkanDevice(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
New in version 1.18.
- classmethod handle_context_query(element, query, device)¶
- Parameters:
element (
Gst.Element) – aGst.Elementquery (
Gst.Query) – aGst.Queryof typeGst.QueryType.CONTEXTdevice (
GstVulkan.VulkanDevice) – theGstVulkan.VulkanDevice
- Returns:
whether query was responded to with device
- Return type:
If a
GstVulkan.VulkanDeviceis requested in query, sets device as the reply.Intended for use with element query handlers to respond to
Gst.QueryType.CONTEXTfor aGstVulkan.VulkanDevice.New in version 1.18.
- classmethod new(physical_device)¶
- Parameters:
physical_device (
GstVulkan.VulkanPhysicalDevice) – the associatedGstVulkan.VulkanPhysicalDevice- Returns:
a new
GstVulkan.VulkanDevice- Return type:
New in version 1.18.
- classmethod new_with_index(instance, device_index)¶
- Parameters:
instance (
GstVulkan.VulkanInstance) – the associatedGstVulkan.VulkanInstancedevice_index (
int) – the device index to create the newGstVulkan.VulkanDevicefrom
- Returns:
a new
GstVulkan.VulkanDevice- Return type:
New in version 1.18.
- classmethod run_context_query(element, device)¶
- Parameters:
element (
Gst.Element) – aGst.Elementdevice (
GstVulkan.VulkanDevice) – aGstVulkan.VulkanDevice
- Returns:
whether device contains a valid
GstVulkan.VulkanDevice- device:
- Return type:
(
bool, device:GstVulkan.VulkanDevice)
Attempt to retrieve a
GstVulkan.VulkanDeviceusingGst.QueryType.CONTEXTfrom the surrounding elements of element.New in version 1.18.
- create_fence()¶
- Raises:
- Returns:
a new
GstVulkan.VulkanFenceorNone- Return type:
New in version 1.18.
- disable_extension(name)¶
- Parameters:
name (
str) – extension name to enable- Returns:
whether the Vulkan extension could be disabled.
- Return type:
Disable an Vulkan extension by name. Disabling an extension will only have an effect before the call to
GstVulkan.VulkanDevice.open().New in version 1.18.
- enable_extension(name)¶
- Parameters:
name (
str) – extension name to enable- Returns:
whether the Vulkan extension could be enabled.
- Return type:
Enable an Vulkan extension by name. Enabling an extension will only have an effect before the call to
GstVulkan.VulkanDevice.open().New in version 1.18.
- enable_layer(name)¶
- Parameters:
name (
str) – layer name to enable- Returns:
whether the Vulkan layer could be enabled.
- Return type:
Enable an Vulkan layer by name. Enabling a layer will only have an effect before the call to
GstVulkan.VulkanDevice.open().New in version 1.18.
- foreach_queue(func, *user_data)¶
- Parameters:
func (
GstVulkan.VulkanDeviceForEachQueueFunc) – aGstVulkan.VulkanDeviceForEachQueueFuncto run for eachGstVulkan.VulkanQueueuser_data (
objectorNone) – user data to pass to each call of func
Iterate over each queue family available on
GstVulkan.VulkanDeviceNew in version 1.18.
- get_instance()¶
- Returns:
the
GstVulkan.VulkanInstanceused to create this self- Return type:
New in version 1.18.
- get_proc_address(name)¶
- Parameters:
name (
str) – name of the function to retrieve- Returns:
the function pointer for name or
None- Return type:
Performs
vkGetDeviceProcAddr()with self and nameNew in version 1.18.
- get_queue(queue_family, queue_i)¶
- Parameters:
- Returns:
a new
GstVulkan.VulkanQueue- Return type:
New in version 1.18.
- is_extension_enabled(name)¶
- Parameters:
name (
str) – extension name- Returns:
whether extension name is enabled
- Return type:
New in version 1.18.
- is_layer_enabled(name)¶
-
New in version 1.18.
- open()¶
- Raises:
- Returns:
whether a vulkan device could be created
- Return type:
Attempts to create the internal
VkDeviceobject.New in version 1.18.
- queue_family_indices()¶
- Returns:
An array with the family indexes of the created queues in self
- Return type:
[
int]
New in version 1.24.
- select_queue(expected_flags)¶
- Parameters:
expected_flags (
Vulkan.QueueFlagBits) – aVulkan.QueueFlagBits- Returns:
a
GstVulkan.VulkanQueuefor queue matching the expected_flags- Return type:
Select a compatible queue from the self supporting the expected_flags.
New in version 1.24.
Property Details¶
- GstVulkan.VulkanDevice.props.instance¶
- Name:
instance- Type:
- Default Value:
- Flags:
Associated Vulkan Instance
- GstVulkan.VulkanDevice.props.physical_device¶
- Name:
physical-device- Type:
- Default Value:
- Flags:
Associated Vulkan Physical Device