Struct ManagedRenderCallback
- Namespace
- Uralstech.UXR.QuestCamera.Vulkan
A managed callback for a VulkanAPI render event.
public readonly struct ManagedRenderCallback
- Extension Methods
Constructors
ManagedRenderCallback(nint, long, Action<bool, long>)
public ManagedRenderCallback(nint renderDataMemory, long timestampNs, Action<bool, long> onDone)
Parameters
renderDataMemoryninttimestampNslongonDoneAction<bool, long>
Fields
OnDone
The managed callback (bool Success, long TimestampNs).
public readonly Action<bool, long> OnDone
Field Value
- Action<bool, long>
Remarks
This will be invoked from the render thread, do not call Unity APIs from it.
RenderDataMemory
The native memory allocated for event data.
public readonly nint RenderDataMemory
Field Value
- nint
TimestampNs
The timestamp of the frame being rendered, in nanoseconds.
public readonly long TimestampNs
Field Value
- long