@lakuna/ugl
    Preparing search index...

    Class Sync

    A sync object.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    context: Context

    The rendering context.

    Accessors

    • get condition(): 37143

      The condition of this sync object. Always SYNC_GPU_COMMANDS_COMPLETE.

      Returns 37143

    • get flags(): 0

      The flags with which this sync object was created. Always 0 as no flags are supported.

      Returns 0

    • get isValid(): boolean

      Whether or not this is a valid sync object.

      Returns boolean

    • get type(): 37142

      The type of this sync object. Always SYNC_FENCE.

      Returns 37142

    Methods

    • Wait on the client for this sync object to become signaled or for the given timeout to be passed.

      Parameters

      • flush: boolean = false

        Whether or not to flush commands.

      • timeout: number = 0

        The timeout in nanoseconds to wait for the sync object to become signaled.

      Returns SyncClientStatus

      This sync object's status.

      BadValueError if timeout exceeds the maximum client wait timeout.

    • Wait on the GL server for this sync object to become signaled.

      Returns void

      This sync object's status.