GstVulkanBufferMemory
GstVulkanBufferMemory is a GstMemory subclass providing support for the mapping of Vulkan device memory.
GstVulkanBarrierBufferInfo
Members
parent
(GstVulkanBarrierMemoryInfo)
–
parent GstVulkanBarrierMemoryInfo
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
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
barrier
(GstVulkanBarrierBufferInfo)
–
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
–
size
–
size of the new buffer
usage
–
buffer usage flags
mem_prop_flags
–
memory properties flags for the backing memory
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
–
buffer_info
–
the VkBufferCreateInfo structure
mem_prop_flags
–
memory properties flags for the backing memory
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
–
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
a GstMemory object backed by a vulkan device memory
Since : 1.18
GstVulkanBufferMemoryAllocator
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstAllocator ╰──GstVulkanBufferMemoryAllocator
Opaque GstVulkanBufferMemoryAllocator struct
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
–
whether the memory at mem is a GstVulkanBufferMemory
Since : 1.18
Function Macros
Constants
The results of the search are