Class WaitForCompletion | Barracuda | 1.1.2-preview
docs.unity.cn
    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
    CustomYieldInstruction
    WaitForCompletion
    Inherited Members
    UnityEngine.CustomYieldInstruction.MoveNext()
    UnityEngine.CustomYieldInstruction.Reset()
    UnityEngine.CustomYieldInstruction.Current
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Barracuda
    Syntax
    public class WaitForCompletion : CustomYieldInstruction, IEnumerator

    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. tensor that will be downloaded once worker execution is finished.

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

    Properties

    keepWaiting

    Declaration
    public override bool keepWaiting { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    CustomYieldInstruction.keepWaiting
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 15 October 2020