fenceSync

open override fun fenceSync(): KglSync

Insert a GL_SYNC_GPU_COMMANDS_COMPLETE fence into the GL command stream. Pair with isSyncSignalled to test whether all preceding commands have finished, then deleteSync to release. Requires GLES3+ / WebGL2 / GL3+.