Open-Source Wikis

/

Bevy

/

Packages

/

bevy_encase_derive

bevyengine/bevy

bevy_encase_derive

A re-export bridge for the encase crate's ShaderType derive. Exists so other Bevy crates don't have to depend on encase_derive directly and so the proc-macro version is pinned in one place.

Purpose

encase is the standard crate Bevy uses to encode Rust types to GPU buffer layouts (matching WGSL/std140/std430 rules). It ships its own derive (encase_derive), but Bevy wraps it so the proc-macro is pinned and re-namespaced.

Directory layout

crates/bevy_encase_derive/src/
└── lib.rs    # Re-exports

Key abstractions

Symbol File Description
ShaderType derive (re-exported) crates/bevy_encase_derive/src/lib.rs Forwarded from encase_derive_impl.

Integration points

  • Depends on: encase_derive_impl, bevy_macro_utils.
  • Depended on by: bevy_render, bevy_pbr, bevy_solari, anything that defines a uniform struct.

Entry points for modification

  • The crate is a forwarding shim. Most changes belong upstream in encase.

Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.

bevy_encase_derive – Bevy wiki | Factory