Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Loop

Provides intrinsics for controlling loop vectorization in Burst-compiled code.
Read time 1 minuteLast updated 6 days ago

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.