Constructor BurstCompileAttribute
BurstCompileAttribute()
Tags a struct/method/class as being Burst compiled, with the default FloatPrecision, FloatMode and CompileSynchronously.
Declaration
public BurstCompileAttribute()
Examples
[BurstCompile]
struct MyMethodsAreCompiledByBurstUsingTheDefaultSettings
{
//....
}
BurstCompileAttribute(FloatPrecision, FloatMode)
Tags a struct/method/class as being Burst compiled, with the specified FloatPrecision and FloatMode.
Declaration
public BurstCompileAttribute(FloatPrecision floatPrecision, FloatMode floatMode)
Parameters
Type | Name | Description |
---|---|---|
FloatPrecision | floatPrecision | Specify the required floating point precision. |
FloatMode | floatMode | Specify the required floating point mode. |
Examples
[BurstCompile(FloatPrecision.Low, FloatMode.Fast)]
struct MyMethodsAreCompiledByBurstWithLowPrecisionAndFastFloatingPointMode
{
//....
}