Delegate VulkanContinuousCaptureSession.OnFrameReadyCallback
- Namespace
- Uralstech.UXR.QuestCamera.Vulkan
Signals the Vulkan plugin that a frame is ready for conversion.
public delegate void VulkanContinuousCaptureSession.OnFrameReadyCallback(nint acquiredBufferPtr, int bufferDataSpace, long bufferId, long timestampNs)
Parameters
acquiredBufferPtrnintThe HardwareBuffer associated with the frame.
bufferDataSpaceintThe DataSpace of the buffer.
bufferIdlongThe global unique ID (AHardwareBuffer_getId) of the buffer.
timestampNslongThe timestamp the frame was captured at in nanoseconds.
- Extension Methods
Remarks
AHardwareBuffer_acquire
has already been called on acquiredBufferPtr, and this method must release it either through native
plugin render events or releaseHardwareBuffer(nint).