protocol library

Names shared by the instrumenter (which writes them into probes), the runtime package (which sets them in the app) and the DevTools extension (which calls the service extensions).

This library has no dependencies, so the runtime package can import it without pulling in the parser.

Classes

ProbeUniforms
The debug uniforms every probe declares, after the user's uniforms.
ServiceEvents
The events the runtime package posts on the VM service's Extension stream.
ServiceExtensions
The service extensions the runtime package registers in debug mode.

Enums

ProbeMode
What the probe writes to its output.

Constants

defaultProbeAsset → const String
Where the probe shader lives in the app, as an asset key. The app must register it under flutter: shaders: in its pubspec.
protocolVersion → const int
The version of the app ↔ extension protocol. Bump it when a service extension or a probe uniform changes meaning.