GstVulkan.VulkanMemory¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
alloc_info |
r |
||
device |
r/w |
the |
|
lock |
r/w |
lock for accessing/changing memory informat |
|
map_count |
r/w |
number of times this memory is mapped |
|
mapping |
r/w |
internal pointer to already mapped memory |
|
mem |
r/w |
the parent |
|
mem_ptr |
r/w |
the vulkan memory handle |
|
notify |
r |
||
properties |
r |
||
user_data |
r |
||
vk_offset |
r |
||
wrapped |
r |
Methods¶
class |
|
class |
|
class |
|
class |
|
class |
|
Details¶
- class GstVulkan.VulkanMemory¶
New in version 1.18.
- classmethod alloc(device, memory_type_index, params, size, mem_prop_flags)¶
- Parameters:
device (
GstVulkan.VulkanDevice
) – aGstVulkan.VulkanDevice
memory_type_index (
int
) – the Vulkan memory type indexparams (
Gst.AllocationParams
) – aGst.AllocationParams
size (
int
) – the size to allocatemem_prop_flags (
Vulkan.MemoryPropertyFlags
) –
- Returns:
a
Gst.Memory
object backed by a vulkan device memory- Return type:
Allocated a new
GstVulkan.VulkanMemory
.New in version 1.18.
- classmethod find_memory_type_index_with_requirements(device, req, properties)¶
- Parameters:
device (
GstVulkan.VulkanDevice
) – aGstVulkan.VulkanDevice
req (
Vulkan.MemoryRequirements
) – memory requirements to look forproperties (
Vulkan.MemoryPropertyFlags
) – memory properties to search for
- Returns:
whether a valid memory type could be found
- type_index:
resulting index of the memory type
- Return type:
New in version 1.24.
- classmethod heap_flags_to_string(prop_bits)¶
- Parameters:
prop_bits (
Vulkan.MemoryHeapFlags
) –- Return type:
New in version 1.18.
- classmethod init_once()¶
Initializes the Vulkan memory allocator. It is safe to call this function multiple times. This must be called before any other
GstVulkan.VulkanMemory
operation.New in version 1.18.
- classmethod property_flags_to_string(prop_bits)¶
- Parameters:
prop_bits (
Vulkan.MemoryPropertyFlags
) –- Return type:
New in version 1.18.