GenerateTestsForBurstCompatibilityAttribute
Documents and enforces (via generated tests) that the tagged method or property has to stay burst compatible.
Read time 3 minutesLast updated 13 days ago
Definition
- Type: Class
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
- Inherits from: Attribute
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Constructor|AttributeTargets.Method|AttributeTargets.Property, AllowMultiple = true)]public class GenerateTestsForBurstCompatibilityAttribute : Attribute
Remarks
This attribute cannot be used with private methods or properties.
Fields
Value | Description |
|---|---|
| CompileTarget | Specifies whether code should be Burst compiled for the player, editor, or both. |
| RequiredUnityDefine | Specifies the symbol that must be defined in order for the method to be tested for Burst compatibility. |
Properties
Property | Description |
|---|---|
| GenericTypeArguments | Types to be used for the declared generic type or method. |
Enums
Enum | Description |
|---|---|
| GenerateTestsForBurstCompatibilityAttribute.BurstCompatibleCompileTarget | Burst compatible compile target. |