GstVulkan.VulkanPhysicalDevice¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Device Index |
||
r/w/co |
Associated Vulkan Instance |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
device |
r |
the vulkan physical device handle |
|
device_index |
r |
the index into the physical device list in instance |
|
features |
r |
retrieved physical device features |
|
instance |
r |
the parent |
|
memory_properties |
r |
retrieved physical device memory properties |
|
n_queue_families |
r |
number of elements in queue_family_props |
|
parent |
r |
the parent |
|
properties |
r |
retrieved physical device properties |
|
queue_family_ops |
r |
vulkan operations allowed per queue family |
|
queue_family_props |
r |
vulkan family properties |
Class Details¶
- class GstVulkan.VulkanPhysicalDevice(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
New in version 1.18.
- classmethod new(instance, device_index)¶
- Parameters:
instance (
GstVulkan.VulkanInstance
) – the parentGstVulkan.VulkanInstance
device_index (
int
) –
- Returns:
- Return type:
New in version 1.18.
- classmethod type_to_string(type)¶
- Parameters:
type (
Vulkan.PhysicalDeviceType
) – a `:obj:Vulkan.PhysicalDeviceType- Returns:
name of type
- Return type:
New in version 1.18.
- check_api_version(major, minor, patch)¶
- Parameters:
- Returns:
whether the
GstVulkan.VulkanPhysicalDevice
supports the version specified by major, minor and patch.- Return type:
Note: This is the intersection of the exposed supported API version as would be returned by
GstVulkan.VulkanPhysicalDevice.get_api_version
() andGstVulkan.VulkanInstance.check_version
(). The latter will take into account any requested API version and may result in a different result than directly comparing againstGstVulkan.VulkanInstance.get_version
().New in version 1.26.
- get_api_version()¶
- Returns:
- major:
major version
- minor:
minor version
- patch:
patch version
- Return type:
Retrieves the advertised Vulkan API version of the
GstVulkan.VulkanPhysicalDevice
.New in version 1.26.
- get_extension_info(name)¶
- Parameters:
name (
str
) – the extension name to look for- Returns:
whether extension name is available
- spec_version:
return value for the exteion specification version
- Return type:
Retrieves information about a device extension.
Will not find any extensions before
GstVulkan.VulkanInstance.fill_info
() has been called.New in version 1.18.
- get_instance()¶
- Returns:
The
GstVulkan.VulkanInstance
associated with this physical device- Return type:
New in version 1.18.
- get_layer_info(name)¶
- Parameters:
name (
str
) – the layer name to look for- Returns:
whether layer name is available
- description:
return value for the layer description or
None
- spec_version:
return value for the layer specification version
- implementation_version:
return value for the layer implementation version
- Return type:
(
bool
, description:str
orNone
, spec_version:int
, implementation_version:int
)
Retrieves information about a layer.
Will not find any layers before
GstVulkan.VulkanInstance.fill_info
() has been called.New in version 1.18.
Property Details¶
- GstVulkan.VulkanPhysicalDevice.props.device_index¶
- Name:
device-index
- Type:
- Default Value:
0
- Flags:
Device Index
- GstVulkan.VulkanPhysicalDevice.props.instance¶
- Name:
instance
- Type:
- Default Value:
- Flags:
Associated Vulkan Instance