libfunnel
Loading...
Searching...
No Matches
funnel-vk.h
Go to the documentation of this file.
1#pragma once
2
3#include "funnel.h"
4#include <vulkan/vulkan.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
45
52
71int funnel_stream_init_vulkan(struct funnel_stream *stream, VkInstance instance,
72 VkPhysicalDevice physical_device,
73 VkDevice device);
74
93 VkImageUsageFlagBits usage);
94
123int funnel_stream_vk_add_format(struct funnel_stream *stream, VkFormat format,
124 bool alpha, VkFormatFeatureFlagBits features);
125
141int funnel_buffer_get_vk_image(struct funnel_buffer *buf, VkImage *pimage);
142
157int funnel_buffer_get_vk_format(struct funnel_buffer *buf, VkFormat *pformat,
158 bool *phas_alpha);
159
180 VkSemaphore *pacquire,
181 VkSemaphore *prelease);
182
201int funnel_buffer_get_vk_fence(struct funnel_buffer *buf, VkFence *pfence);
202
203#ifdef __cplusplus
204}
205#endif
int funnel_buffer_get_vk_semaphores(struct funnel_buffer *buf, VkSemaphore *pacquire, VkSemaphore *prelease)
Get the VkSemaphores for acquiring and releasing the buffer.
int funnel_buffer_get_vk_image(struct funnel_buffer *buf, VkImage *pimage)
Get the VkImage for a Funnel buffer.
int funnel_buffer_get_vk_fence(struct funnel_buffer *buf, VkFence *pfence)
Get the VkFence that must be signaled by the queue batch.
int funnel_stream_vk_set_usage(struct funnel_stream *stream, VkImageUsageFlagBits usage)
Set the required buffer usage.
int funnel_buffer_get_vk_format(struct funnel_buffer *buf, VkFormat *pformat, bool *phas_alpha)
Get the VkFormat for a Funnel buffer.
int funnel_stream_vk_add_format(struct funnel_stream *stream, VkFormat format, bool alpha, VkFormatFeatureFlagBits features)
Add a supported Vulkan format.
int funnel_stream_init_vulkan(struct funnel_stream *stream, VkInstance instance, VkPhysicalDevice physical_device, VkDevice device)
Set up a stream for Vulkan integration.
libfunnel core API
struct funnel_stream funnel_stream
A PipeWire video stream.
Definition funnel.h:36
struct funnel_buffer funnel_buffer
A video buffer (frame).
Definition funnel.h:58