Class BurstCompiler
The burst compiler runtime frontend.
Inheritance
Inherited Members
Namespace: Unity.Burst
Syntax
public static class BurstCompiler
Fields
DefaultBackendName
Declaration
public const string DefaultBackendName = "burst-llvm"
Field Value
Type | Description |
---|---|
System.String |
Properties
BackendName
Gets or sets a default compiler backend path to dll (default will resolve to burst-llvm
)
Declaration
public static string BackendName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Note that this does not have any effect at runtime, only at editor time.
Methods
CompileDelegate<T>(T)
Compile the following delegate with burst and return a new delegate.
Declaration
public static T CompileDelegate<T>(T delegateMethod)where T : class
Parameters
Type | Name | Description |
---|---|---|
T | delegateMethod |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
ResolveBackendPath(String)
Resolves the BackendName to a full backend path (if null, returns null)
Declaration
public static string ResolveBackendPath(string backendName)
Parameters
Type | Name | Description |
---|---|---|
System.String | backendName |
Returns
Type | Description |
---|---|
System.String | The path of the backend or null if default |
Events
BackendNameResolver
Setup a callback to allow to resolve a backend name to a backend path.
Declaration
public static event BurstCompiler.ResolveBackendPathFromNameDelegate BackendNameResolver
Event Type
Type | Description |
---|---|
BurstCompiler.ResolveBackendPathFromNameDelegate |
Remarks
Note that this does not have any effect at runtime, only at editor time.