Documentation

Unity Engine

Download Unity

Unity Engine

UnityEngine.BurstModule

The Burst module implements the Burst compiler runtime support for Unity.
Read time 3 minutesLast updated 3 hours ago

Definition

  • Type: Module

Classes

Class

Description

AliasingCompile-time aliasing intrinsics.
ArmStatic methods and properties for Arm instruction intrinsics.
AssumeRangeAttributeCan be used to specify that a parameter or return has a range assumption. Assumptions feed directly into the optimizer and allow better codegen.
BurstCompileAttributeThis attribute is used to tag jobs or function-pointers as being Burst compiled, and optionally set compilation parameters.
BurstCompilerThe burst compiler runtime frontend.
BurstCompilerOptionsOptions available at Editor time and partially at runtime to control the behavior of the compilation and to enable/disable burst jobs.
BurstRuntimeProvides helper intrinsics that can be used at runtime.
CommonCommon intrinsics that are exposed across all Burst targets.
ConstantCompile-time queries intrinsics.
HintCompile-time hint intrinsics.
IgnoreWarningAttributeCan be used to specify that a warning produced by Burst for a given method should be ignored.
LoopProvides intrinsics for controlling loop vectorization in Burst-compiled code.
NoAliasAttributeCan be used to specify that a parameter to a function, a field of a struct, a struct, or a function return will not alias. (Advanced - see User Manual for a description of Aliasing).
SkipLocalsInitAttributeSkip zero-initialization of local variables.
SpmdAttributeSpecifies that multiple calls to a method act as if they are executing in a Single Program, Multiple Data (SPMD) paradigm.
X86Static methods and properties for X86 instruction intrinsics.

Structs

Struct

Description

f16Represents a 16-bit floating point value (half precision) Warning: this type may not be natively supported by your hardware, or its usage may be suboptimal
FunctionPointer<T>A function pointer that can be used from a Burst Job or from regular C#. It needs to be compiled through BurstCompiler.CompileFunctionPointer
SharedStatic<T>A structure that allows to share mutable static data between C# and HPC#.
v128Represents a 128-bit SIMD value
v128x2Represents a 256-bit SIMD value (Arm only) (a combination of 2 128-bit values, equivalent to Arm Neon *x2 types)
v128x3Represents a 384-bit SIMD value (Arm only) (a combination of 3 128-bit values, equivalent to Arm Neon *x3 types)
v128x4Represents a 512-bit SIMD value (Arm only) (a combination of 4 128-bit values, equivalent to Arm Neon *x4 types)
v256Represents a 256-bit SIMD value
v64Represents a 64-bit SIMD value (Arm only)
v64x2Represents a 128-bit SIMD value (Arm only) (a combination of 2 64-bit values, equivalent to Arm Neon *x2 types)
v64x3Represents a 192-bit SIMD value (Arm only) (a combination of 3 64-bit values, equivalent to Arm Neon *x3 types)
v64x4Represents a 256-bit SIMD value (Arm only) (a combination of 4 64-bit values, equivalent to Arm Neon *x4 types)

Enums

Enum

Description

BurstExecutionEnvironmentRepresents the types of compiled code that are run on the current thread.
FloatModeRepresents the floating point optimization mode for compilation.
FloatPrecisionRepresents the floating point precision used for certain builtin operations e.g. sin/cos.
OptimizeForHow the code should be optimized.

Interfaces

Interface

Description

IFunctionPointerBase interface for a function pointer.