GstVulkan.VulkanMemory

Fields

Name

Type

Access

Description

alloc_info

Vulkan.MemoryAllocateInfo

r

device

GstVulkan.VulkanDevice

r/w

the GstVulkan.VulkanDevice this memory is allocated from

lock

GLib.Mutex

r/w

lock for accessing/changing memory informat

map_count

int

r/w

number of times this memory is mapped

mapping

object

r/w

internal pointer to already mapped memory

mem

Gst.Memory

r/w

the parent Gst.Memory

mem_ptr

Vulkan.DeviceMemory

r/w

the vulkan memory handle

notify

GLib.DestroyNotify

r

properties

Vulkan.MemoryPropertyFlags

r

user_data

object

r

vk_offset

int

r

wrapped

bool

r

Methods

class

alloc (device, memory_type_index, params, size, mem_prop_flags)

class

find_memory_type_index_with_requirements (device, req, properties)

class

heap_flags_to_string (prop_bits)

class

init_once ()

class

property_flags_to_string (prop_bits)

Details

class GstVulkan.VulkanMemory

New in version 1.18.

classmethod alloc(device, memory_type_index, params, size, mem_prop_flags)
Parameters:
Returns:

a Gst.Memory object backed by a vulkan device memory

Return type:

Gst.Memory

Allocated a new GstVulkan.VulkanMemory.

New in version 1.18.

classmethod find_memory_type_index_with_requirements(device, req, properties)
Parameters:
Returns:

whether a valid memory type could be found

type_index:

resulting index of the memory type

Return type:

(bool, type_index: int)

New in version 1.24.

classmethod heap_flags_to_string(prop_bits)
Parameters:

prop_bits (Vulkan.MemoryHeapFlags) –

Return type:

str

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:

str

New in version 1.18.