GstVulkan.VulkanBufferMemory

Fields

Name

Type

Access

Description

barrier

GstVulkan.VulkanBarrierBufferInfo

r/w

the last set barrier information

buffer

Vulkan.Buffer

r/w

Vulkan buffer object

device

GstVulkan.VulkanDevice

r/w

the GstVulkan.VulkanDevice this vulkan buffer is allocated from

lock

GLib.Mutex

r

notify

GLib.DestroyNotify

r

parent

Gst.Memory

r/w

parent Gst.Memory

requirements

Vulkan.MemoryRequirements

r/w

allocation requirements for buffer

usage

Vulkan.BufferUsageFlags

r/w

intended usage for buffer

user_data

object

r

vk_mem

GstVulkan.VulkanMemory

r/w

backing GstVulkan.VulkanMemory for buffer

wrapped

bool

r

Methods

class

alloc (device, size, usage, mem_prop_flags)

class

alloc_with_buffer_info (device, buffer_info, mem_prop_flags)

class

init_once ()

Details

class GstVulkan.VulkanBufferMemory

New in version 1.18.

classmethod alloc(device, size, usage, mem_prop_flags)
Parameters:
Returns:

a Gst.Memory object backed by a vulkan buffer backed by vulkan device memory

Return type:

Gst.Memory

Allocate a new GstVulkan.VulkanBufferMemory.

New in version 1.18.

classmethod alloc_with_buffer_info(device, buffer_info, mem_prop_flags)
Parameters:
Returns:

a Gst.Memory object backed by a vulkan buffer backed by vulkan device memory

Return type:

Gst.Memory

Allocate a new GstVulkan.VulkanBufferMemory.

New in version 1.24.

classmethod init_once()

Initializes the Vulkan buffer memory allocator. It is safe to call this function multiple times. This must be called before any other GstVulkan.VulkanBufferMemory operation.

New in version 1.18.