Skip to main content
Version: 0.9.0

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 · Source: QarTypes.cs

public sealed class VideoFrameVulkan

Properties​

MemberDescription
TextureViewsSnapshot of the views when the frame was fetched.
TexturesSnapshot of the textures when the frame was fetched.
SemaphoreVkSemaphore when the frame was fetched.
FenceVkFence 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

NameTypeDescription
textureIndexint
layoutint
queueFamilyIndexuint

SetSynchronization​

Records the VkSemaphore and VkFence the frame's rendering signals.

public void SetSynchronization(ulong semaphore, ulong fence)

Parameters

NameTypeDescription
semaphoreulong
fenceulong