文档

Unity Engine

Unity Engine

Loop

Provides intrinsics for controlling loop vectorization in Burst-compiled code.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static class Loop

Static Methods

Method

Description

ExpectNotVectorizedMust be called from inside a loop. Will cause a compiler error in Burst-compiled code if the loop is auto-vectorized.
ExpectVectorizedMust be called from inside a loop. Will cause a compiler error in Burst-compiled code if the loop is not auto-vectorized.