docs.unity3d.com
    Show / Hide Table of Contents

    Class WaitForCompletion

    Suspends the coroutine execution until worker has completed execution on a device and contents of the specified tensor are downloaded to the main CPU memory. WaitForCompletion is not necessary and should NOT be used, unless tensor contents are accessed on CPU! WaitForCompletion can only be used with a yield statement in coroutines.

    Inheritance
    Object
    WaitForCompletion
    Namespace: Unity.Barracuda
    Syntax
    public class WaitForCompletion : CustomYieldInstruction

    Constructors

    WaitForCompletion(Tensor)

    Suspends the coroutine execution until worker has completed execution on a device and contents of the specified tensor are downloaded to the main CPU memory.

    Declaration
    public WaitForCompletion(Tensor tensor)
    Parameters
    Type Name Description
    Tensor tensor

    Tensor that will be downloaded once worker execution is finished

    Properties

    keepWaiting

    Returns true while results are not yet ready

    Declaration
    public override bool keepWaiting { get; }
    Property Value
    Type Description
    Boolean
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023