Procedural macros for the Myth engine material system.
Provides the [myth_material] attribute macro that transforms a clean,
declarative material definition into a production-ready material type with:
- Concurrent-safe GPU buffer management via [
CpuBuffer] and [RwLock] - Automatic version tracking for pipeline cache invalidation
- Generated getter/setter methods with fast-path optimizations
- Auto-generated uniform struct with std140 padding
- Full [
MaterialTrait] and [RenderableMaterialTrait] implementations
Example
use myth_material;