# Objective - Related to #19024 ## Solution - Use the new `load_shader_library` macro for the shader libraries and `embedded_asset`/`load_embedded_asset` for the "shader binaries" in `bevy_ui`. ## Testing - `box_shadow` example still works. - `gradient` example is broken at head (see #19384) - but otherwise gives the same result in the console. - `ui_materials` example still works. - `ui_texture_slice` example still works. P.S. I don't think this needs a migration guide. Technically users could be using the `pub` weak handles, but there's no actual good use for them, so omitting it seems fine. Alternatively, we could mix this in with the migration guide notes for #19137. |
||
|---|---|---|
| .. | ||
| box_shadow.rs | ||
| box_shadow.wgsl | ||
| debug_overlay.rs | ||
| gradient.rs | ||
| gradient.wgsl | ||
| mod.rs | ||
| pipeline.rs | ||
| render_pass.rs | ||
| ui_material_pipeline.rs | ||
| ui_material.wgsl | ||
| ui_texture_slice_pipeline.rs | ||
| ui_texture_slice.wgsl | ||
| ui_vertex_output.wgsl | ||
| ui.wgsl | ||