GstVulkanBufferMemory

GstVulkanBufferMemory is a GstMemory subclass providing support for the mapping of Vulkan device memory.

GstVulkanBarrierBufferInfo

Members

offset (VkDeviceSize) –

offset into the vulkan buffer to execute the barrier with

size (VkDeviceSize) –

size of memory to execute barrier over

Since : 1.18


GstVulkanBufferMemory

Members

parent (GstMemory) –

parent GstMemory

device (GstVulkanDevice *) –

the GstVulkanDevice this vulkan buffer is allocated from

buffer (VkBuffer) –

Vulkan buffer object

vk_mem (GstVulkanMemory *) –

backing GstVulkanMemory for buffer

requirements (VkMemoryRequirements) –

allocation requirements for buffer

usage (VkBufferUsageFlags) –

intended usage for buffer

the last set barrier information

Since : 1.18


Functions

gst_vulkan_buffer_memory_alloc

GstMemory *
gst_vulkan_buffer_memory_alloc (GstVulkanDevice * device,
                                gsize size,
                                VkBufferUsageFlags usage,
                                VkMemoryPropertyFlags mem_prop_flags)

Allocate a new GstVulkanBufferMemory.

Parameters:

device

a GstVulkanDevice

size

size of the new buffer

usage

buffer usage flags

mem_prop_flags

memory properties flags for the backing memory

Returns ( [transfer: full])

a GstMemory object backed by a vulkan buffer backed by vulkan device memory

Since : 1.18


gst_vulkan_buffer_memory_alloc_with_buffer_info

GstMemory *
gst_vulkan_buffer_memory_alloc_with_buffer_info (GstVulkanDevice * device,
                                                 const VkBufferCreateInfo* buffer_info,
                                                 VkMemoryPropertyFlags mem_prop_flags)

Allocate a new GstVulkanBufferMemory.

Parameters:

device

a GstVulkanDevice

buffer_info

the VkBufferCreateInfo structure

mem_prop_flags

memory properties flags for the backing memory

Returns ( [transfer: full])

a GstMemory object backed by a vulkan buffer backed by vulkan device memory

Since : 1.24


gst_vulkan_buffer_memory_init_once

gst_vulkan_buffer_memory_init_once ()

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

Since : 1.18


gst_vulkan_buffer_memory_wrapped

GstMemory *
gst_vulkan_buffer_memory_wrapped (GstVulkanDevice * device,
                                  VkBuffer buffer,
                                  VkBufferUsageFlags usage,
                                  gpointer user_data,
                                  GDestroyNotify notify)

Allocated a new wrapped GstVulkanBufferMemory with buffer.

Parameters:

device

a GstVulkanDevice

buffer

a VkBuffer

usage

usage flags of buffer

user_data ( [allow-none])

user data to call notify with

notify ( [allow-none])

a GDestroyNotify called when buffer is no longer in use

Returns ( [transfer: full])

a GstMemory object backed by a vulkan device memory

Since : 1.18


GstVulkanBufferMemoryAllocator

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstAllocator
                ╰──GstVulkanBufferMemoryAllocator

Members

parent (GstAllocator) –

the parent GstAllocator

Since : 1.18


Class structure

GstVulkanBufferMemoryAllocatorClass

The GstVulkanBufferMemoryAllocatorClass only contains private data

Fields
parent_class (GstAllocatorClass) –

the parent GstAllocatorClass

Since : 1.18


Functions

gst_is_vulkan_buffer_memory

gboolean
gst_is_vulkan_buffer_memory (GstMemory * mem)

Parameters:

mem

a GstMemory

Returns

whether the memory at mem is a GstVulkanBufferMemory

Since : 1.18


Function Macros

GST_VULKAN_BUFFER_MEMORY_ALLOCATOR_CAST

#define GST_VULKAN_BUFFER_MEMORY_ALLOCATOR_CAST(obj)            ((GstVulkanBufferMemoryAllocator *)(obj))

Since : 1.18


Constants

GST_CAPS_FEATURE_MEMORY_VULKAN_BUFFER

#define GST_CAPS_FEATURE_MEMORY_VULKAN_BUFFER "memory:VulkanBuffer"

Since : 1.18


GST_VULKAN_BUFFER_MEMORY_ALLOCATOR_NAME

#define GST_VULKAN_BUFFER_MEMORY_ALLOCATOR_NAME "VulkanBuffer"

Since : 1.18


The results of the search are