Method
MaplibreNativeFfiAcquiredFramerelease
Declaration [src]
gboolean
maplibre_native_ffi_acquired_frame_release (
MaplibreNativeFfiAcquiredFrame* self,
const MaplibreNativeFfiGpuSync* consumer_completion,
GError** error
)
Description [src]
Gives an acquired frame back to the session once you’re done reading it.
consumer_completion says when your GPU work that reads the texture
finishes. Pass MAPLIBRE_NATIVE_FFI_GPU_SYNC_CPU_COMPLETE when that work has
already finished. The session waits for that point before it renders into the
texture again. If that wait fails, such as for an OpenGL fence outside the
session’s share group, the session fails.
The object calls this when it is disposed, unless it was released. Later calls fail as on any released handle.
See mln_acquired_frame_release in the
C API reference.
It fails with these errors:
MAPLIBRE_NATIVE_FFI_ERROR_UNSUPPORTEDwhenMaplibreNativeFfiRenderSessionCapabilities.consumer_sync_kindslacks the kind ofconsumer_completion.
Parameters
consumer_completion-
Type:
MaplibreNativeFfiGpuSyncNo description available.
The data is owned by the caller of the method. error-
Type:
GError **The return location for a recoverable error.
The argument can be NULL.If the return location is not NULL, then you must initialize it to aNULLGError*.The argument will be left initialized to NULLby the method if there are no errors.In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.