GstVulkan.VulkanBufferMemory¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
barrier |
r/w |
the last set barrier information |
|
buffer |
r/w |
Vulkan buffer object |
|
device |
r/w |
the |
|
lock |
r |
||
notify |
r |
||
parent |
r/w |
parent |
|
requirements |
r/w |
allocation requirements for buffer |
|
usage |
r/w |
intended usage for buffer |
|
user_data |
r |
||
vk_mem |
r/w |
backing |
|
wrapped |
r |
Methods¶
class |
|
class |
|
class |
|
Details¶
- class GstVulkan.VulkanBufferMemory¶
New in version 1.18.
- classmethod alloc(device, size, usage, mem_prop_flags)¶
- Parameters:
device (
GstVulkan.VulkanDevice
) – aGstVulkan.VulkanDevice
size (
int
) – size of the new bufferusage (
Vulkan.BufferUsageFlags
) – buffer usage flagsmem_prop_flags (
Vulkan.MemoryPropertyFlags
) – memory properties flags for the backing memory
- Returns:
a
Gst.Memory
object backed by a vulkan buffer backed by vulkan device memory- Return type:
Allocate a new
GstVulkan.VulkanBufferMemory
.New in version 1.18.
- classmethod alloc_with_buffer_info(device, buffer_info, mem_prop_flags)¶
- Parameters:
device (
GstVulkan.VulkanDevice
) – aGstVulkan.VulkanDevice
buffer_info (
Vulkan.BufferCreateInfo
) – theVulkan.BufferCreateInfo
structuremem_prop_flags (
Vulkan.MemoryPropertyFlags
) – memory properties flags for the backing memory
- Returns:
a
Gst.Memory
object backed by a vulkan buffer backed by vulkan device memory- Return type:
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.