Skip to content
Bit Quirky Behavior Trees and
State Machines

Search documentation

All topics and APIs

Close returns focus to Search.

What are you looking for?

Try a common topic or enter a complete API identifier.

Browse the reference instead

Esc closes · Tab reaches results · Enter opens the focused link

v0.11.0
Menu

BitQuirky.Behavior.Editor.BurstAnalysis

Public behavior trees and state machines: burst analysis (editor) symbols in BitQuirky.Behavior.Editor.BurstAnalysis.

Source snapshot 29003d8b1658.

Assembly: BitQuirky.Behavior.Editor.BurstAnalysis

Category: Low-level runtime

C#
class BitQuirky.Behavior.Editor.BurstAnalysis.BehaviorEntityConverterBurstAnalyzer

Source declaration: Packages/io.bitquirky.behavior/Editor/BurstAnalysis/BehaviorEntityConverterBurstAnalyzer.cs:37-489

Implements: IBehaviorEntityConverterBurstCompatibilityAnalyzer

Editor-only, synchronous, conservative Burst-compatibility analysis over a registered custom converter’s IL, using Mono.Cecil (, Phase 5, ). The installed Burst compiler exposes no synchronous structured compile probe for an arbitrary callee, so this judges the converter method’s own IL shape, and the IL shape of every method it reaches within non-system assemblies, against the constructs Burst never compiles.

Responsibilities:

  • Walk one converter method’s body and every reachable non-system-assembly callee, bounded in depth and cycle-safe, and reject a managed-type local, parameter, return, or field;newobj/newarrof a managed type; boxing; a string literal; try/catch/finally; a throw; a virtual call on a reference type or interface; a non-readonly-unmanaged static field access; a delegate or function-pointer construct; and a call into a method whose body is unavailable, except a small allow-list of known Burst-safe scalar-math BCL andUnity.Mathematicsmembers.

Does NOT:

  • Run the installed Burst compiler, cache a result across calls, or hold static mutable state; every call constructs and disposes its own Mono.Cecil module readers (Constitution VI).

IsBurstCompatible(Type declaringType, string methodName, out string offendingConstruct)

Section titled “IsBurstCompatible(Type declaringType, string methodName, out string offendingConstruct)”
C#
public bool IsBurstCompatible(System.Type declaringType, string methodName, out string offendingConstruct)

Source declaration: Packages/io.bitquirky.behavior/Editor/BurstAnalysis/BehaviorEntityConverterBurstAnalyzer.cs:53-80

Returns whether the exact(declaringType, methodName)static method is Burst-compatible. On failure,offendingConstructnames the first disqualifying construct found, for use in the rejection diagnostic’s message.

Source fingerprint: sha256:29003d8b1658b98a79bebcd93e3b4030caf8511268b96817ab764d63df8d6c3b

Full-size image