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, FloatMode and the default CompileSynchronously.
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
{
//....
}