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.VulkanDevicememory_type_index (
int) – the Vulkan memory type indexparams (
Gst.AllocationParams) – aGst.AllocationParamssize (
int) – the size to allocatemem_prop_flags (
Vulkan.MemoryPropertyFlags) –
- Returns:
a
Gst.Memoryobject 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.VulkanDevicereq (
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.VulkanMemoryoperation.New in version 1.18.
- classmethod property_flags_to_string(prop_bits)¶
- Parameters:
prop_bits (
Vulkan.MemoryPropertyFlags) –- Return type:
New in version 1.18.