VideoFrameVulkan class
Access to a sender-owned Vulkan frame. The library owns the native frame;
this object is valid until the next GetVulkanFrame call on the same sender
or the sender's disposal. Before showing a frame, write the layouts and
queue families the images were left in and the synchronization objects
with VideoFrameVulkan.SetTextureState and VideoFrameVulkan.SetSynchronization.
Namespace: Quaternar.Qaros · Assembly: Quaternar.Qaros.dll
public sealed class VideoFrameVulkan
Properties
| Member | Description |
|---|---|
| TextureViews | Snapshot of the views when the frame was fetched. |
| Textures | Snapshot of the textures when the frame was fetched. |
| Semaphore | VkSemaphore when the frame was fetched. |
| Fence | VkFence when the frame was fetched. |
TextureViews
Snapshot of the views when the frame was fetched.
public VideoFrameView[] TextureViews { get; }
Value: VideoFrameView[]
Textures
Snapshot of the textures when the frame was fetched.
public VideoTextureVulkan[] Textures { get; }
Value: VideoTextureVulkan[]
Semaphore
VkSemaphore when the frame was fetched.
public ulong Semaphore { get; }
Value: ulong
Fence
VkFence when the frame was fetched.
public ulong Fence { get; }
Value: ulong
Methods
SetTextureState
Records the VkImageLayout and queue family texture textureIndex was left in.
public void SetTextureState(int textureIndex, int layout, uint queueFamilyIndex)
Parameters
| Name | Type | Description |
|---|---|---|
textureIndex | int | |
layout | int | |
queueFamilyIndex | uint |
SetSynchronization
Records the VkSemaphore and VkFence the frame's rendering signals.
public void SetSynchronization(ulong semaphore, ulong fence)
Parameters
| Name | Type | Description |
|---|---|---|
semaphore | ulong | |
fence | ulong |