diff --git a/src/graphics/d3d12.rs b/src/graphics/d3d12.rs index 62c5166b..d113cc4d 100644 --- a/src/graphics/d3d12.rs +++ b/src/graphics/d3d12.rs @@ -64,7 +64,7 @@ pub fn initialize_xr_graphics( let xr_instance = xr_entry.create_instance( &xr::ApplicationInfo { - application_name: "Ambient", + application_name: option_env!("CARGO_BIN_NAME").unwrap_or("bevy"), ..Default::default() }, &enabled_extensions, @@ -100,7 +100,7 @@ pub fn initialize_xr_graphics( } let instance_descriptor = &wgpu_hal::InstanceDescriptor { - name: "Ambient", + name: option_env!("CARGO_BIN_NAME").unwrap_or("bevy"), dx12_shader_compiler: wgpu::util::dx12_shader_compiler_from_env().unwrap_or_default(), flags: wgpu_hal::InstanceFlags::from_bits_truncate( wgpu_types::InstanceFlags::from_build_config() diff --git a/src/graphics/vulkan.rs b/src/graphics/vulkan.rs index f6e83f55..4ba1021a 100644 --- a/src/graphics/vulkan.rs +++ b/src/graphics/vulkan.rs @@ -63,7 +63,7 @@ pub fn initialize_xr_graphics( let xr_instance = xr_entry.create_instance( &xr::ApplicationInfo { - application_name: "Ambient", + application_name: option_env!("CARGO_BIN_NAME").unwrap_or("bevy"), ..Default::default() }, &enabled_extensions, @@ -126,7 +126,7 @@ pub fn initialize_xr_graphics( let vk_instance = unsafe { let extensions_cchar: Vec<_> = extensions.iter().map(|s| s.as_ptr()).collect(); - let app_name = CString::new("Ambient")?; + let app_name = CString::new(option_env!("CARGO_BIN_NAME").unwrap_or("bevy"))?; let vk_app_info = vk::ApplicationInfo::builder() .application_name(&app_name) .application_version(1)