# Byte Engine > Byte Engine documentation - **Introduction** - [Welcome](/docs): Find the Byte Engine guide or reference you need. - [Requirements](/docs/requirements): Check what you need to run and build with Byte Engine. - [Get started](/docs/get-started): Set up Byte Engine and create your first application. - **Use** - [Use Byte Engine](/docs/use): Make your application do something with Byte Engine, one task per page. - Setup - [Setup](/docs/use/setup): Prepare a Rust project to use Byte Engine. - [Environment setup](/docs/use/setup/environment): Install the platform tools required to build Byte Engine applications. - [Create your project](/docs/use/setup/project): Create and verify a Rust application for Byte Engine. - [Install Byte Engine](/docs/use/setup/installation): Add a published release, Git dependency, or local engine checkout to your Rust application. - **Build** - Your first Byte - [Your first Byte](/docs/use/sample-project): Build your first Byte Engine application. - Resources - [Prepare resources](/docs/use/resources): Turn your application's source assets into the resources a release build loads. - [Author assets](/docs/use/resources/author): Write the material, flipbook, environment-map, and detail-level files that BELD bakes. - [Install BELD](/docs/use/resources/install-beld): Install the Byte Engine asset-baking command-line tool. - [Use BELD](/docs/use/resources/beld): Bake, inspect, and query resources with BELD. - [Bake application resources](/docs/use/resources/bake): Turn an application's source assets into deterministic runtime resources with BELD. - [Load resources in debug builds](/docs/use/resources/debug-loading): Load and process resources on demand in debug builds. - [Build and bundle your application](/docs/use/build): Build a release and package its baked resources for your operating system. - **Systems** - [Respond to input](/docs/use/input): Turn keys, buttons, and sticks into the actions your application understands. - [Animate a character](/docs/use/animation): Play an animation graph on a skinned mesh, drive it from your gameplay state, and move the entity by its root motion. - [Script gameplay with tasks](/docs/use/gameplay-tasks): Write a character's or a round's behavior as async tasks that your tick polls, so it waits for ticks, timers, and messages instead of keeping a state machine. - [Find paths around obstacles](/docs/use/navigation): Declare where characters can walk and what blocks them, find each character a path to its target around the obstacles, and steer characters around each other. - [Light a scene](/docs/use/lighting): Create directional, point, and cone lights in physical units, then set the exposure, environment, and fog to match. - [Build a user interface](/docs/use/gui): Build retained, asynchronous interfaces that run in the Byte Engine render loop. - [Add particles](/docs/use/particles): Place GPU particle systems such as sparks, embers, or smoke in the world. - [Show a debug view](/docs/use/debug-views): Show what a render pass computes, such as normals or motion vectors, tiled over the window while you debug. - [Debug data streams](/docs/use/debug-data-streams): Report what a system knows about one entity as NDJSON lines that you or an agent can read while the application runs. - **Contribute** - [Contribute to Byte Engine](/docs/develop): Build, test, and document changes to Byte Engine. - [Write documentation](/docs/develop/documentation): Put each page in the section its reader expects, and write it in that section's shape. - Core - [Core](/docs/develop/core): Understand Byte Engine system boundaries before changing them. - [Actor pattern](/docs/develop/core/actor-pattern): Use message passing to keep Byte Engine systems independent. - [Alley](/docs/develop/core/alley): Read this before you change the alley, to learn how it runs lanes and sections, why no lane leads, and what a change must keep. - [Gameplay tasks](/docs/develop/core/tasks): Read this before you change the gameplay task runtime, to learn how its waits register and cancel, how time reaches tasks, and what a change must keep. - [Animation system](/docs/develop/animation): Read this before you change animation playback, to learn how one frame's data flows through a player, what players share, how a crowd spreads over lanes, and what a change must keep. - Rendering - [Rendering](/docs/develop/rendering): Understand the renderer's design before you change it. - [Loading timeline](/docs/develop/rendering/loading): Keep resource loading on its own timeline so it never blocks rendering. - [Lighting pipeline](/docs/develop/rendering/lighting): Understand how authored light units reach the GPU and how lights are culled before you change them. - Visibility pipeline - [Visibility pipeline](/docs/develop/rendering/visibility): Understand how the visibility pipeline is built before you change it. - [Material parameters](/docs/develop/rendering/visibility/material-parameters): Understand where dynamic material parameter values live and how instances find them before you change how materials read runtime values. - [Shadow maps](/docs/develop/rendering/visibility/shadow-maps): Understand how the visibility pipeline selects, sizes, and updates shadow maps within its memory and update budgets before you change them. - [Skinning](/docs/develop/rendering/visibility/skinning): Understand where the visibility pipeline writes posed vertices and how animated instances share the vertex streams before you change GPU skinning. - [Shader variants](/docs/develop/rendering/shader-variants): Leave unused shader features out at bake time, and select features that only some materials use with specialization constants. - [Debug views](/docs/develop/rendering/debug-views): How a render pass shows its intermediate results on screen through a renderer-owned pool of debug targets, and how release bakes leave that code out. - Resource Management - [Resource-management implementation](/docs/develop/resource-management): Change how Byte Engine bakes assets and stores and loads resources. - [Asset processing](/docs/develop/resource-management/assets): Implement and debug Byte Engine asset handlers and source formats. - [Resource storage and loading](/docs/develop/resource-management/resources): Work with Byte Engine's stored resource format and payload-reading APIs. - [BEMX material graphs](/docs/develop/resource-management/bemx): Understand how BEMX graphs are built, read, imported, and turned into shaders, and what a change to the node set must keep true. - [MaterialX documents](/docs/develop/resource-management/materialx): Read MaterialX shading graphs into Byte Engine, convert their materials into material graphs, and fix documents that fail to load. - BESL - [Compilation and reflection](/docs/develop/besl/compilation): Understand how BESL is linked, extended from Rust, optimized, reflected, and executed before you change the compiler. - [UI retention and drawing](/docs/develop/gui): Understand how the UI engine retains layout and how the render pass draws before you change either. - **Reference** - [Reference](/docs/reference): Specifications of each Byte Engine language, format, and model, with no code. - **Engine** - [Coordinates and units](/docs/reference/conventions): Look up the engine's axes and handedness, the camera and clip-space conventions, the units of measure, the rotation and matrix representations, and the color spaces. - [Startup parameters](/docs/reference/parameters): Look up where startup parameters come from, how config.json, BE_ variables, and --name=value arguments set them, and every parameter the engine reads with its type, default, and effect. - [World and messages](/docs/reference/world): Look up the scope, channel, listener, factory, and handle model, its ordering and retention guarantees, the routes the world scope opens, and the transform, name, scene, and deletion contracts. - [Time and ticks](/docs/reference/time): Look up the engine's time unit, the tick's clock and order, the two simulation loops and the fixed-step rules, and how a run ends. - [Gameplay tasks](/docs/reference/tasks): Look up the clock gameplay tasks read, what each wait resolves at and with, how intervals schedule their fires, and the order woken tasks run in. - [Alley and lanes](/docs/reference/alley): Look up how an alley dispatch runs its lanes, what each collective section does, which lane runs it, what a lane waits for, and the limits and failure rules. - [Graphics hardware interface](/docs/reference/ghi): Look up the GHI's objects and their lifecycle rules, its resource kinds and enumerations, the plain-data layout rules, what each backend supports today, and its limits. - [Inspector and metrics](/docs/reference/inspector): Look up what the engine's metrics measure and how they're named and serialized, the messages the inspector accepts, how a screenshot is selected and encoded, and the inspector's limits. - [Debug data streams](/docs/reference/debug-data-streams): Look up where a debug data stream's records go, how they're written, and the fields every record carries. - **Systems** - [Rendering](/docs/reference/rendering): Look up the objects a scene is made of, the camera, the pipeline and pass model with every pass and its settings, the visibility pipeline's limits and material contract, and the render targets a frame produces. - [Input](/docs/reference/input): Look up the device, trigger, seat, and action model, the value conversions a binding supports, and the tick policies. - [Lighting](/docs/reference/lighting): Look up the light shapes, their physical units and conversions, how far a light reaches, and the shadow and light limits. - [UI](/docs/reference/gui): Look up the UI element kinds and their properties, sizing and flow rules, styles and transforms, events, focus, hit testing, drag, timers, animation drivers, retained identity, and the renderer's limits. - [Physics](/docs/reference/physics): Look up the body kinds and properties, the collider shapes, constraints, the contact and sleep rules, ray queries, how a step runs, and the units and limits of the simulation. - [Navigation](/docs/reference/navigation): Look up navigation areas, route and steering results, and navigation mesh tolerances and limits. - [Animation](/docs/reference/animation): Look up the skeleton, clip, pose, and sampling model, the blend and inertialization rules, root motion, the animation graph and its spaces, animators and their updates and data stream, the look chain, the clip pool, and flipbooks. - [Audio](/docs/reference/audio): Look up the output format, the sample formats Byte Engine accepts, the audio graph functions and their limits, playback timing, and the sample pool. - [Transport protocol](/docs/reference/networking): Look up the BETP packet formats, the reliable and unreliable delivery rules, the connection handshake and timeouts, and the limits of the UDP and in-process transports. - **Resources** - [Resource management](/docs/reference/resource-management): What assets and resources are, and how an asset becomes the resources a runtime system reads. - [Resource store](/docs/reference/resource-store): Look up the files of a resources directory, the storage modes and payload encodings, the metadata and queryable properties every resource carries, the version marker, and every resource class. - [Asset formats](/docs/reference/assets): Look up the source formats Byte Engine bakes, how asset IDs and fragments name them, and the fields of each hand-written format. - [.bema files](/docs/reference/bema): Look up the fields of a .bema material or variant file, the values they accept, and the resources that baking one produces. - [BEMX graphs](/docs/reference/bemx): Look up the BEMX value types, every node kind with its inputs and defaults, the surface it ends in, and the fields of a .bemx file. - [.particles files](/docs/reference/particles): Look up the fields, modules, and shapes of a .particles file, and the resources that baking one produces. - [MaterialX support](/docs/reference/materialx): Look up the MaterialX version, shading models, and elements Byte Engine reads, and where a shaded surface differs from the document. - [BELD command line](/docs/reference/beld): Look up every BELD command, flag, default, exit code, and output format, and the file extensions its handlers bake. - **Shaders** - BESL - [BESL language reference](/docs/reference/besl): The Byte Engine Shader Language, from what a shader file declares to the intrinsics it can call. - [Language](/docs/reference/besl/language): The BESL language, from types and values to functions, expressions, and control flow. - [Interface](/docs/reference/besl/interface): The BESL interface, from stage values and descriptors to shared storage, layout layers, and stage metadata. - [Intrinsics](/docs/reference/besl/intrinsics): Every BESL intrinsic, with its signature, stage availability, and behavior. - **API** - Inspector - [List entities](/docs/api/inspector/listEntities): Returns factory-created entities known to the shared message bus. Each result includes the numeric handle used as a message target, every complete Rust type name associated with the entity, and a `properties` object with each value the inspector tracks for it. Use either `type` or its compatibility alias `class` to filter by one complete Rust type name, and `name` to filter by an exact attached name. - [Drain message publications](/docs/api/inspector/drainMessages): Returns message publication ranges observed since the previous call. This operation drains the shared inspector cursor. It preserves sequence order within each typed route but does not define ordering between routes. Message payloads remain opaque. - [Post a message](/docs/api/inspector/postMessage): Publishes one registered targeted message to the running application. Query `GET /messages/types` first to discover the accepted protocol names and JSON payload shapes. The request object must contain exactly `type`, `target`, and `payload`. To trigger a named action, resolve its target with `GET /entities?name=` and post `TriggerAction` with a matching input value. - [List message payload shapes](/docs/api/inspector/listMessageTypes): Returns every protocol message type currently accepted by `POST /messages`, sorted by `type`. Each `payload` is a cached JSON-oriented descriptor derived from the same Facet shape used to parse posted values. Use object fields and array lengths to build editor controls, and use `required` to decide which object fields the editor must send. - [List configuration events](/docs/api/inspector/listConfigurationEvents): Returns retained configuration requests with the latest state reported by the system that owns each parameter. - [List debug views](/docs/api/inspector/listDebugViews): Returns every debug view the render passes and scene pipelines declared, as `.`, with the debug target slot each shown view holds, how many views can be shown at once, and whether this build has debug views. Show or hide a view with the `render.debug.view..` configuration parameter. - [Capture a screenshot](/docs/api/inspector/captureScreenshot): Captures one image from a renderer sink. Without `pass` or `target`, the request reads the final swapchain image. Provide only `target` to read a scene-pipeline target after every scene pipeline has recorded, such as `Diffuse Radiance History`, or add `pass` to read a target right after that render pass. Add `previous=true` with a `target` to read the copy of a history target that the previous frame wrote, which is what the current frame's passes read as history. That copy holds no usable data on a sink's first frame or right after a resize. The request waits up to five seconds for a graphics frame to complete. To capture several images from the same frame, use `POST /screenshots`. - [Capture screenshots from the same frame](/docs/api/inspector/captureScreenshots): Captures up to 16 images, from any sinks and capture points, in one graphics frame, so you can compare targets that belong together. Each capture takes the same fields as the `GET /screenshots` query. The response is `multipart/form-data` with one part per capture, in request order. Each part is named by its zero-based capture index, has a file name built from the capture, and carries the same `Content-Type` and `X-Byte-Engine-*` headers as a single-image response, except `X-Byte-Engine-Frame`, which the response itself carries. If any capture fails, the request fails, and the error message starts with the failing capture index. - [Close the application](/docs/api/inspector/closeApplication): Publishes an application close request. The HTTP response confirms publication, not process termination. - [Summarize performance metrics](/docs/api/inspector/summarizeMetrics): Returns the distribution of every metric over the retained ticks, in milliseconds. The engine retains the last 1024 ticks. CPU metrics are named after the engine `tracing` spans they sum, such as `GraphicsApplication::tick` for the whole tick or `Renderer::prepare` for frame preparation. GPU metrics are `frame` for all GPU work of a frame, `scene.` for each scene pipeline manager, `pass.` for each post-scene render pass, and `stage.` for each stage a scene pipeline or pass times inside its own commands, such as the visibility pipeline's `stage.shadow-maps` and `stage.material-evaluation`, with `@` appended on sinks after the first. A stage that recorded nothing on a frame has no value for it. GPU times arrive once the frame that recorded them completes, so the newest frames in flight have none yet. `delta` is the frame delta the application clock advanced by. - [List per-tick metric rows](/docs/api/inspector/listMetricFrames): Returns the retained ticks oldest first as NDJSON: one JSON object per line. Each row carries the tick number, the renderer `frame` the tick submitted (the same number screenshots report, or `null` when the tick rendered nothing), the wall-clock `time` since start and the frame delta `dt` in milliseconds, whether the tick could be `presented`, and `cpu` and `gpu` objects of metric name to milliseconds that list only what the tick measured. Pass the last `tick` you saw as `since` to read only new rows. - byte_engine: Generated API reference for the byte-engine crate. - [byte_engine](/docs/api/latest/byte_engine): Generated Rust API reference for byte_engine. - animation - [animation](/docs/api/latest/byte_engine/animation): Generated Rust API reference for byte_engine. - blend - [blend](/docs/api/latest/byte_engine/animation/blend): Generated Rust API reference for byte_engine. - flipbook - [flipbook](/docs/api/latest/byte_engine/animation/flipbook): Generated Rust API reference for byte_engine. - graph - [graph](/docs/api/latest/byte_engine/animation/graph): Generated Rust API reference for byte_engine. - inertialization - [inertialization](/docs/api/latest/byte_engine/animation/inertialization): Generated Rust API reference for byte_engine. - packed - [packed](/docs/api/latest/byte_engine/animation/packed): Generated Rust API reference for byte_engine. - root_motion - [root_motion](/docs/api/latest/byte_engine/animation/root_motion): Generated Rust API reference for byte_engine. - skeletal - [skeletal](/docs/api/latest/byte_engine/animation/skeletal): Generated Rust API reference for byte_engine. - system - [system](/docs/api/latest/byte_engine/animation/system): Generated Rust API reference for byte_engine. - application - [application](/docs/api/latest/byte_engine/application): Generated Rust API reference for byte_engine. - application - [application](/docs/api/latest/byte_engine/application/application): Generated Rust API reference for byte_engine. - graphics - [graphics](/docs/api/latest/byte_engine/application/graphics): Generated Rust API reference for byte_engine. - defaults - [defaults](/docs/api/latest/byte_engine/application/graphics/defaults): Generated Rust API reference for byte_engine. - thread - [thread](/docs/api/latest/byte_engine/application/thread): Generated Rust API reference for byte_engine. - waker - [waker](/docs/api/latest/byte_engine/application/waker): Generated Rust API reference for byte_engine. - audio - [audio](/docs/api/latest/byte_engine/audio): Generated Rust API reference for byte_engine. - graph - [graph](/docs/api/latest/byte_engine/audio/graph): Generated Rust API reference for byte_engine. - fns - [fns](/docs/api/latest/byte_engine/audio/graph/fns): Generated Rust API reference for byte_engine. - configuration - [configuration](/docs/api/latest/byte_engine/configuration): Generated Rust API reference for byte_engine. - constants - [constants](/docs/api/latest/byte_engine/constants): Generated Rust API reference for byte_engine. - core - [core](/docs/api/latest/byte_engine/core): Generated Rust API reference for byte_engine. - machine - [machine](/docs/api/latest/byte_engine/core/machine): Generated Rust API reference for byte_engine. - message_bus - [message_bus](/docs/api/latest/byte_engine/core/message_bus): Generated Rust API reference for byte_engine. - message_observer - [message_observer](/docs/api/latest/byte_engine/core/message_observer): Generated Rust API reference for byte_engine. - gameplay - [gameplay](/docs/api/latest/byte_engine/gameplay): Generated Rust API reference for byte_engine. - pathfinding - [pathfinding](/docs/api/latest/byte_engine/gameplay/pathfinding): Generated Rust API reference for byte_engine. - tasks - [tasks](/docs/api/latest/byte_engine/gameplay/tasks): Generated Rust API reference for byte_engine. - input - [input](/docs/api/latest/byte_engine/input): Generated Rust API reference for byte_engine. - inspector - [inspector](/docs/api/latest/byte_engine/inspector): Generated Rust API reference for byte_engine. - metrics - [metrics](/docs/api/latest/byte_engine/metrics): Generated Rust API reference for byte_engine. - network - [network](/docs/api/latest/byte_engine/network): Generated Rust API reference for byte_engine. - channel - [channel](/docs/api/latest/byte_engine/network/channel): Generated Rust API reference for byte_engine. - datagram - [datagram](/docs/api/latest/byte_engine/network/datagram): Generated Rust API reference for byte_engine. - physics - [physics](/docs/api/latest/byte_engine/physics): Generated Rust API reference for byte_engine. - rendering - [rendering](/docs/api/latest/byte_engine/rendering): Generated Rust API reference for byte_engine. - camera - [camera](/docs/api/latest/byte_engine/rendering/camera): Generated Rust API reference for byte_engine. - debug - [debug](/docs/api/latest/byte_engine/rendering/debug): Generated Rust API reference for byte_engine. - device - [device](/docs/api/latest/byte_engine/rendering/device): Generated Rust API reference for byte_engine. - loading - [loading](/docs/api/latest/byte_engine/rendering/loading): Generated Rust API reference for byte_engine. - particles - [particles](/docs/api/latest/byte_engine/rendering/particles): Generated Rust API reference for byte_engine. - render_pass - [render_pass](/docs/api/latest/byte_engine/rendering/render_pass): Generated Rust API reference for byte_engine. - simple_compute - [simple_compute](/docs/api/latest/byte_engine/rendering/render_pass/simple_compute): Generated Rust API reference for byte_engine. - resource_loading - [resource_loading](/docs/api/latest/byte_engine/rendering/resource_loading): Generated Rust API reference for byte_engine. - set_layout - [set_layout](/docs/api/latest/byte_engine/rendering/set_layout): Generated Rust API reference for byte_engine. - sink - [sink](/docs/api/latest/byte_engine/rendering/sink): Generated Rust API reference for byte_engine. - view - [view](/docs/api/latest/byte_engine/rendering/view): Generated Rust API reference for byte_engine. - space - [space](/docs/api/latest/byte_engine/space): Generated Rust API reference for byte_engine. - time - [time](/docs/api/latest/byte_engine/time): Generated Rust API reference for byte_engine. - ui - [ui](/docs/api/latest/byte_engine/ui): Generated Rust API reference for byte_engine. - element - [element](/docs/api/latest/byte_engine/ui/element): Generated Rust API reference for byte_engine. - watch - [watch](/docs/api/latest/byte_engine/ui/watch): Generated Rust API reference for byte_engine. - utils - [utils](/docs/api/latest/byte_engine/utils): Generated Rust API reference for byte_engine.