Skip to content

Commit 989f547

Browse files
authored
Weak handle migration (#17695)
# Objective - Make use of the new `weak_handle!` macro added in #17384 ## Solution - Migrate bevy from `Handle::weak_from_u128` to the new `weak_handle!` macro that takes a random UUID - Deprecate `Handle::weak_from_u128`, since there are no remaining use cases that can't also be addressed by constructing the type manually ## Testing - `cargo run -p ci -- test` --- ## Migration Guide Replace `Handle::weak_from_u128` with `weak_handle!` and a random UUID.
1 parent 0335f34 commit 989f547

File tree

54 files changed

+232
-177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+232
-177
lines changed

crates/bevy_asset/src/handle.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ impl<T: Asset> Clone for Handle<T> {
143143

144144
impl<A: Asset> Handle<A> {
145145
/// Create a new [`Handle::Weak`] with the given [`u128`] encoding of a [`Uuid`].
146+
#[deprecated = "use the `weak_handle!` macro with a UUID string instead"]
146147
pub const fn weak_from_u128(value: u128) -> Self {
147148
Handle::Weak(AssetId::Uuid {
148149
uuid: Uuid::from_u128(value),

crates/bevy_core_pipeline/src/auto_exposure/pipeline.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use super::compensation_curve::{
22
AutoExposureCompensationCurve, AutoExposureCompensationCurveUniform,
33
};
4-
use bevy_asset::prelude::*;
4+
use bevy_asset::{prelude::*, weak_handle};
55
use bevy_ecs::prelude::*;
66
use bevy_image::Image;
77
use bevy_render::{
@@ -44,7 +44,8 @@ pub enum AutoExposurePass {
4444
Average,
4545
}
4646

47-
pub const METERING_SHADER_HANDLE: Handle<Shader> = Handle::weak_from_u128(12987620402995522466);
47+
pub const METERING_SHADER_HANDLE: Handle<Shader> =
48+
weak_handle!("05c84384-afa4-41d9-844e-e9cd5e7609af");
4849

4950
pub const HISTOGRAM_BIN_COUNT: u64 = 64;
5051

crates/bevy_core_pipeline/src/blit/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use bevy_app::{App, Plugin};
2-
use bevy_asset::{load_internal_asset, Handle};
2+
use bevy_asset::{load_internal_asset, weak_handle, Handle};
33
use bevy_ecs::prelude::*;
44
use bevy_render::{
55
render_resource::{
@@ -12,7 +12,7 @@ use bevy_render::{
1212

1313
use crate::fullscreen_vertex_shader::fullscreen_shader_vertex_state;
1414

15-
pub const BLIT_SHADER_HANDLE: Handle<Shader> = Handle::weak_from_u128(2312396983770133547);
15+
pub const BLIT_SHADER_HANDLE: Handle<Shader> = weak_handle!("59be3075-c34e-43e7-bf24-c8fe21a0192e");
1616

1717
/// Adds support for specialized "blit pipelines", which can be used to write one texture to another.
1818
pub struct BlitPlugin;

crates/bevy_core_pipeline/src/bloom/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use crate::{
1010
core_3d::graph::{Core3d, Node3d},
1111
};
1212
use bevy_app::{App, Plugin};
13-
use bevy_asset::{load_internal_asset, Handle};
13+
use bevy_asset::{load_internal_asset, weak_handle, Handle};
1414
use bevy_ecs::{prelude::*, query::QueryItem};
1515
use bevy_math::{ops, UVec2};
1616
use bevy_render::{
@@ -34,7 +34,7 @@ use upsampling_pipeline::{
3434
prepare_upsampling_pipeline, BloomUpsamplingPipeline, UpsamplingPipelineIds,
3535
};
3636

37-
const BLOOM_SHADER_HANDLE: Handle<Shader> = Handle::weak_from_u128(929599476923908);
37+
const BLOOM_SHADER_HANDLE: Handle<Shader> = weak_handle!("c9190ddc-573b-4472-8b21-573cab502b73");
3838

3939
const BLOOM_TEXTURE_FORMAT: TextureFormat = TextureFormat::Rg11b10Ufloat;
4040

crates/bevy_core_pipeline/src/contrast_adaptive_sharpening/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::{
44
fullscreen_vertex_shader::fullscreen_shader_vertex_state,
55
};
66
use bevy_app::prelude::*;
7-
use bevy_asset::{load_internal_asset, Handle};
7+
use bevy_asset::{load_internal_asset, weak_handle, Handle};
88
use bevy_ecs::{prelude::*, query::QueryItem};
99
use bevy_image::BevyDefault as _;
1010
use bevy_reflect::{std_traits::ReflectDefault, Reflect};
@@ -96,7 +96,7 @@ impl ExtractComponent for ContrastAdaptiveSharpening {
9696
}
9797

9898
const CONTRAST_ADAPTIVE_SHARPENING_SHADER_HANDLE: Handle<Shader> =
99-
Handle::weak_from_u128(6925381244141981602);
99+
weak_handle!("ef83f0a5-51df-4b51-9ab7-b5fd1ae5a397");
100100

101101
/// Adds Support for Contrast Adaptive Sharpening (CAS).
102102
pub struct CasPlugin;

crates/bevy_core_pipeline/src/deferred/copy_lighting_id.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::{
33
prepass::{DeferredPrepass, ViewPrepassTextures},
44
};
55
use bevy_app::prelude::*;
6-
use bevy_asset::{load_internal_asset, Handle};
6+
use bevy_asset::{load_internal_asset, weak_handle, Handle};
77
use bevy_ecs::prelude::*;
88
use bevy_math::UVec2;
99
use bevy_render::{
@@ -24,7 +24,7 @@ use bevy_render::{
2424
use super::DEFERRED_LIGHTING_PASS_ID_DEPTH_FORMAT;
2525

2626
pub const COPY_DEFERRED_LIGHTING_ID_SHADER_HANDLE: Handle<Shader> =
27-
Handle::weak_from_u128(5230948520734987);
27+
weak_handle!("70d91342-1c43-4b20-973f-aa6ce93aa617");
2828
pub struct CopyDeferredLightingIdPlugin;
2929

3030
impl Plugin for CopyDeferredLightingIdPlugin {

crates/bevy_core_pipeline/src/dof/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//! [Depth of field]: https://en.wikipedia.org/wiki/Depth_of_field
1616
1717
use bevy_app::{App, Plugin};
18-
use bevy_asset::{load_internal_asset, Handle};
18+
use bevy_asset::{load_internal_asset, weak_handle, Handle};
1919
use bevy_derive::{Deref, DerefMut};
2020
use bevy_ecs::{
2121
component::Component,
@@ -69,7 +69,7 @@ use crate::{
6969
fullscreen_vertex_shader::fullscreen_shader_vertex_state,
7070
};
7171

72-
const DOF_SHADER_HANDLE: Handle<Shader> = Handle::weak_from_u128(2031861180739216043);
72+
const DOF_SHADER_HANDLE: Handle<Shader> = weak_handle!("c3580ddc-2cbc-4535-a02b-9a2959066b52");
7373

7474
/// A plugin that adds support for the depth of field effect to Bevy.
7575
pub struct DepthOfFieldPlugin;

crates/bevy_core_pipeline/src/experimental/mip_generation/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use core::array;
99

1010
use bevy_app::{App, Plugin};
11-
use bevy_asset::{load_internal_asset, Handle};
11+
use bevy_asset::{load_internal_asset, weak_handle, Handle};
1212
use bevy_derive::{Deref, DerefMut};
1313
use bevy_ecs::{
1414
component::Component,
@@ -51,7 +51,7 @@ use crate::{
5151

5252
/// Identifies the `downsample_depth.wgsl` shader.
5353
pub const DOWNSAMPLE_DEPTH_SHADER_HANDLE: Handle<Shader> =
54-
Handle::weak_from_u128(3876351454330663524);
54+
weak_handle!("a09a149e-5922-4fa4-9170-3c1a13065364");
5555

5656
/// The maximum number of mip levels that we can produce.
5757
///

crates/bevy_core_pipeline/src/fullscreen_vertex_shader/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
use bevy_asset::Handle;
1+
use bevy_asset::{weak_handle, Handle};
22
use bevy_render::{prelude::Shader, render_resource::VertexState};
33

4-
pub const FULLSCREEN_SHADER_HANDLE: Handle<Shader> = Handle::weak_from_u128(7837534426033940724);
4+
pub const FULLSCREEN_SHADER_HANDLE: Handle<Shader> =
5+
weak_handle!("481fb759-d0b1-4175-8319-c439acde30a2");
56

67
/// uses the [`FULLSCREEN_SHADER_HANDLE`] to output a
78
/// ```wgsl

crates/bevy_core_pipeline/src/fxaa/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::{
44
fullscreen_vertex_shader::fullscreen_shader_vertex_state,
55
};
66
use bevy_app::prelude::*;
7-
use bevy_asset::{load_internal_asset, Handle};
7+
use bevy_asset::{load_internal_asset, weak_handle, Handle};
88
use bevy_ecs::prelude::*;
99
use bevy_image::BevyDefault as _;
1010
use bevy_reflect::{std_traits::ReflectDefault, Reflect};
@@ -80,7 +80,7 @@ impl Default for Fxaa {
8080
}
8181
}
8282

83-
const FXAA_SHADER_HANDLE: Handle<Shader> = Handle::weak_from_u128(4182761465141723543);
83+
const FXAA_SHADER_HANDLE: Handle<Shader> = weak_handle!("fc58c0a8-01c0-46e9-94cc-83a794bae7b0");
8484

8585
/// Adds support for Fast Approximate Anti-Aliasing (FXAA)
8686
pub struct FxaaPlugin;

crates/bevy_core_pipeline/src/motion_blur/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::{
77
prepass::{DepthPrepass, MotionVectorPrepass},
88
};
99
use bevy_app::{App, Plugin};
10-
use bevy_asset::{load_internal_asset, Handle};
10+
use bevy_asset::{load_internal_asset, weak_handle, Handle};
1111
use bevy_ecs::{
1212
component::{require, Component},
1313
query::With,
@@ -108,7 +108,7 @@ impl Default for MotionBlur {
108108
}
109109

110110
pub const MOTION_BLUR_SHADER_HANDLE: Handle<Shader> =
111-
Handle::weak_from_u128(987457899187986082347921);
111+
weak_handle!("d9ca74af-fa0a-4f11-b0f2-19613b618b93");
112112

113113
/// Adds support for per-object motion blur to the app. See [`MotionBlur`] for details.
114114
pub struct MotionBlurPlugin;

crates/bevy_core_pipeline/src/oit/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Order Independent Transparency (OIT) for 3d rendering. See [`OrderIndependentTransparencyPlugin`] for more details.
22
33
use bevy_app::prelude::*;
4-
use bevy_asset::{load_internal_asset, Handle};
4+
use bevy_asset::{load_internal_asset, weak_handle, Handle};
55
use bevy_ecs::{component::*, prelude::*};
66
use bevy_math::UVec2;
77
use bevy_platform_support::collections::HashSet;
@@ -34,7 +34,8 @@ use crate::core_3d::{
3434
pub mod resolve;
3535

3636
/// Shader handle for the shader that draws the transparent meshes to the OIT layers buffer.
37-
pub const OIT_DRAW_SHADER_HANDLE: Handle<Shader> = Handle::weak_from_u128(4042527984320512);
37+
pub const OIT_DRAW_SHADER_HANDLE: Handle<Shader> =
38+
weak_handle!("0cd3c764-39b8-437b-86b4-4e45635fc03d");
3839

3940
/// Used to identify which camera will use OIT to render transparent meshes
4041
/// and to configure OIT.
@@ -73,7 +74,7 @@ impl Component for OrderIndependentTransparencySettings {
7374
Some(|world, context| {
7475
if let Some(value) = world.get::<OrderIndependentTransparencySettings>(context.entity) {
7576
if value.layer_count > 32 {
76-
warn!("{}OrderIndependentTransparencySettings layer_count set to {} might be too high.",
77+
warn!("{}OrderIndependentTransparencySettings layer_count set to {} might be too high.",
7778
context.caller.map(|location|format!("{location}: ")).unwrap_or_default(),
7879
value.layer_count
7980
);

crates/bevy_core_pipeline/src/oit/resolve/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::{
33
oit::OrderIndependentTransparencySettings,
44
};
55
use bevy_app::Plugin;
6-
use bevy_asset::{load_internal_asset, Handle};
6+
use bevy_asset::{load_internal_asset, weak_handle, Handle};
77
use bevy_derive::Deref;
88
use bevy_ecs::{
99
entity::{hash_map::EntityHashMap, hash_set::EntityHashSet},
@@ -27,7 +27,8 @@ use tracing::warn;
2727
use super::OitBuffers;
2828

2929
/// Shader handle for the shader that sorts the OIT layers, blends the colors based on depth and renders them to the screen.
30-
pub const OIT_RESOLVE_SHADER_HANDLE: Handle<Shader> = Handle::weak_from_u128(7698420424769536);
30+
pub const OIT_RESOLVE_SHADER_HANDLE: Handle<Shader> =
31+
weak_handle!("562d2917-eb06-444d-9ade-41de76b0f5ae");
3132

3233
/// Contains the render node used to run the resolve pass.
3334
pub mod node;

crates/bevy_core_pipeline/src/post_process/mod.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! Currently, this consists only of chromatic aberration.
44
55
use bevy_app::{App, Plugin};
6-
use bevy_asset::{load_internal_asset, Assets, Handle};
6+
use bevy_asset::{load_internal_asset, weak_handle, Assets, Handle};
77
use bevy_derive::{Deref, DerefMut};
88
use bevy_ecs::{
99
component::Component,
@@ -47,17 +47,18 @@ use crate::{
4747
};
4848

4949
/// The handle to the built-in postprocessing shader `post_process.wgsl`.
50-
const POST_PROCESSING_SHADER_HANDLE: Handle<Shader> = Handle::weak_from_u128(14675654334038973533);
50+
const POST_PROCESSING_SHADER_HANDLE: Handle<Shader> =
51+
weak_handle!("5e8e627a-7531-484d-a988-9a38acb34e52");
5152
/// The handle to the chromatic aberration shader `chromatic_aberration.wgsl`.
5253
const CHROMATIC_ABERRATION_SHADER_HANDLE: Handle<Shader> =
53-
Handle::weak_from_u128(10969893303667163833);
54+
weak_handle!("e598550e-71c3-4f5a-ba29-aebc3f88c7b5");
5455

5556
/// The handle to the default chromatic aberration lookup texture.
5657
///
5758
/// This is just a 3x1 image consisting of one red pixel, one green pixel, and
5859
/// one blue pixel, in that order.
5960
const DEFAULT_CHROMATIC_ABERRATION_LUT_HANDLE: Handle<Image> =
60-
Handle::weak_from_u128(2199972955136579180);
61+
weak_handle!("dc3e3307-40a1-49bb-be6d-e0634e8836b2");
6162

6263
/// The default chromatic aberration intensity amount, in a fraction of the
6364
/// window size.

crates/bevy_core_pipeline/src/skybox/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use bevy_app::{App, Plugin};
2-
use bevy_asset::{load_internal_asset, Handle};
2+
use bevy_asset::{load_internal_asset, weak_handle, Handle};
33
use bevy_ecs::{
44
prelude::{Component, Entity},
55
query::{QueryItem, With},
@@ -30,7 +30,7 @@ use prepass::{SkyboxPrepassPipeline, SKYBOX_PREPASS_SHADER_HANDLE};
3030

3131
use crate::{core_3d::CORE_3D_DEPTH_FORMAT, prepass::PreviousViewUniforms};
3232

33-
const SKYBOX_SHADER_HANDLE: Handle<Shader> = Handle::weak_from_u128(55594763423201);
33+
const SKYBOX_SHADER_HANDLE: Handle<Shader> = weak_handle!("a66cf9cc-cab8-47f8-ac32-db82fdc4f29b");
3434

3535
pub mod prepass;
3636

crates/bevy_core_pipeline/src/skybox/prepass.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Adds motion vector support to skyboxes. See [`SkyboxPrepassPipeline`] for details.
22
3-
use bevy_asset::Handle;
3+
use bevy_asset::{weak_handle, Handle};
44
use bevy_ecs::{
55
component::Component,
66
entity::Entity,
@@ -30,7 +30,8 @@ use crate::{
3030
Skybox,
3131
};
3232

33-
pub const SKYBOX_PREPASS_SHADER_HANDLE: Handle<Shader> = Handle::weak_from_u128(376510055324461154);
33+
pub const SKYBOX_PREPASS_SHADER_HANDLE: Handle<Shader> =
34+
weak_handle!("7a292435-bfe6-4ed9-8d30-73bf7aa673b0");
3435

3536
/// This pipeline writes motion vectors to the prepass for all [`Skybox`]es.
3637
///

crates/bevy_core_pipeline/src/smaa/mod.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use crate::{
3838
use bevy_app::{App, Plugin};
3939
#[cfg(feature = "smaa_luts")]
4040
use bevy_asset::load_internal_binary_asset;
41-
use bevy_asset::{load_internal_asset, Handle};
41+
use bevy_asset::{load_internal_asset, weak_handle, Handle};
4242
use bevy_derive::{Deref, DerefMut};
4343
use bevy_ecs::{
4444
component::Component,
@@ -81,11 +81,13 @@ use bevy_render::{
8181
use bevy_utils::prelude::default;
8282

8383
/// The handle of the `smaa.wgsl` shader.
84-
const SMAA_SHADER_HANDLE: Handle<Shader> = Handle::weak_from_u128(12247928498010601081);
84+
const SMAA_SHADER_HANDLE: Handle<Shader> = weak_handle!("fdd9839f-1ab4-4e0d-88a0-240b67da2ddf");
8585
/// The handle of the area LUT, a KTX2 format texture that SMAA uses internally.
86-
const SMAA_AREA_LUT_TEXTURE_HANDLE: Handle<Image> = Handle::weak_from_u128(15283551734567401670);
86+
const SMAA_AREA_LUT_TEXTURE_HANDLE: Handle<Image> =
87+
weak_handle!("569c4d67-c7fa-4958-b1af-0836023603c0");
8788
/// The handle of the search LUT, a KTX2 format texture that SMAA uses internally.
88-
const SMAA_SEARCH_LUT_TEXTURE_HANDLE: Handle<Image> = Handle::weak_from_u128(3187314362190283210);
89+
const SMAA_SEARCH_LUT_TEXTURE_HANDLE: Handle<Image> =
90+
weak_handle!("43b97515-252e-4c8a-b9af-f2fc528a1c27");
8991

9092
/// Adds support for subpixel morphological antialiasing, or SMAA.
9193
pub struct SmaaPlugin;

crates/bevy_core_pipeline/src/taa/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::{
55
prepass::{DepthPrepass, MotionVectorPrepass, ViewPrepassTextures},
66
};
77
use bevy_app::{App, Plugin};
8-
use bevy_asset::{load_internal_asset, Handle};
8+
use bevy_asset::{load_internal_asset, weak_handle, Handle};
99
use bevy_diagnostic::FrameCount;
1010
use bevy_ecs::{
1111
prelude::{require, Component, Entity, ReflectComponent},
@@ -40,7 +40,7 @@ use bevy_render::{
4040
};
4141
use tracing::warn;
4242

43-
const TAA_SHADER_HANDLE: Handle<Shader> = Handle::weak_from_u128(656865235226276);
43+
const TAA_SHADER_HANDLE: Handle<Shader> = weak_handle!("fea20d50-86b6-4069-aa32-374346aec00c");
4444

4545
/// Plugin for temporal anti-aliasing.
4646
///

crates/bevy_core_pipeline/src/tonemapping/mod.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::fullscreen_vertex_shader::fullscreen_shader_vertex_state;
22
use bevy_app::prelude::*;
3-
use bevy_asset::{load_internal_asset, Assets, Handle};
3+
use bevy_asset::{load_internal_asset, weak_handle, Assets, Handle};
44
use bevy_ecs::prelude::*;
55
use bevy_image::{CompressedImageFormats, Image, ImageSampler, ImageType};
66
use bevy_reflect::{std_traits::ReflectDefault, Reflect};
@@ -27,13 +27,14 @@ mod node;
2727
use bevy_utils::default;
2828
pub use node::TonemappingNode;
2929

30-
const TONEMAPPING_SHADER_HANDLE: Handle<Shader> = Handle::weak_from_u128(17015368199668024512);
30+
const TONEMAPPING_SHADER_HANDLE: Handle<Shader> =
31+
weak_handle!("e239c010-c25c-42a1-b4e8-08818764d667");
3132

3233
const TONEMAPPING_SHARED_SHADER_HANDLE: Handle<Shader> =
33-
Handle::weak_from_u128(2499430578245347910);
34+
weak_handle!("61dbc544-4b30-4ca9-83bd-4751b5cfb1b1");
3435

3536
const TONEMAPPING_LUT_BINDINGS_SHADER_HANDLE: Handle<Shader> =
36-
Handle::weak_from_u128(8392056472189465073);
37+
weak_handle!("d50e3a70-c85e-4725-a81e-72fc83281145");
3738

3839
/// 3D LUT (look up table) textures used for tonemapping
3940
#[derive(Resource, Clone, ExtractResource)]

crates/bevy_gizmos/src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pub mod prelude {
7676
}
7777

7878
use bevy_app::{App, FixedFirst, FixedLast, Last, Plugin, RunFixedMainLoop};
79-
use bevy_asset::{Asset, AssetApp, AssetId, Assets, Handle};
79+
use bevy_asset::{weak_handle, Asset, AssetApp, AssetId, Assets, Handle};
8080
use bevy_ecs::{
8181
resource::Resource,
8282
schedule::{IntoSystemConfigs, SystemSet},
@@ -138,9 +138,10 @@ use gizmos::{GizmoStorage, Swap};
138138
use light::LightGizmoPlugin;
139139

140140
#[cfg(feature = "bevy_render")]
141-
const LINE_SHADER_HANDLE: Handle<Shader> = Handle::weak_from_u128(7414812689238026784);
141+
const LINE_SHADER_HANDLE: Handle<Shader> = weak_handle!("15dc5869-ad30-4664-b35a-4137cb8804a1");
142142
#[cfg(feature = "bevy_render")]
143-
const LINE_JOINT_SHADER_HANDLE: Handle<Shader> = Handle::weak_from_u128(1162780797909187908);
143+
const LINE_JOINT_SHADER_HANDLE: Handle<Shader> =
144+
weak_handle!("7b5bdda5-df81-4711-a6cf-e587700de6f2");
144145

145146
/// A [`Plugin`] that provides an immediate mode drawing api for visual debugging.
146147
///

0 commit comments

Comments
 (0)