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.Element
query (
Gst.Query
) – aGst.Query
of typeGst.QueryType.CONTEXT
device (
GstVulkan.VulkanDevice
) – theGstVulkan.VulkanDevice
- Returns:
whether query was responded to with device
- Return type:
If a
GstVulkan.VulkanDevice
is requested in query, sets device as the reply.Intended for use with element query handlers to respond to
Gst.QueryType.CONTEXT
for 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.VulkanInstance
device_index (
int
) – the device index to create the newGstVulkan.VulkanDevice
from
- Returns:
a new
GstVulkan.VulkanDevice
- Return type:
New in version 1.18.
- classmethod run_context_query(element, device)¶
- Parameters:
element (
Gst.Element
) – aGst.Element
device (
GstVulkan.VulkanDevice
) – aGstVulkan.VulkanDevice
- Returns:
whether device contains a valid
GstVulkan.VulkanDevice
- device:
- Return type:
(
bool
, device:GstVulkan.VulkanDevice
)
Attempt to retrieve a
GstVulkan.VulkanDevice
usingGst.QueryType.CONTEXT
from the surrounding elements of element.New in version 1.18.
- create_fence()¶
- Raises:
- Returns:
a new
GstVulkan.VulkanFence
orNone
- 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
orNone
) – aGstVulkan.VulkanDeviceForEachQueueFunc
to run for eachGstVulkan.VulkanQueue
user_data (
object
orNone
) – user data to pass to each call of func
Iterate over each queue family available on
GstVulkan.VulkanDevice
New in version 1.18.
- get_instance()¶
- Returns:
the
GstVulkan.VulkanInstance
used 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
VkDevice
object.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.VulkanQueue
for 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