repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_light/src/cluster/test.rs
crates/bevy_light/src/cluster/test.rs
use bevy_math::UVec2; use super::{ClusterConfig, Clusters}; fn test_cluster_tiling(config: ClusterConfig, screen_size: UVec2) -> Clusters { let dims = config.dimensions_for_screen_size(screen_size); // note: near & far do not affect tiling let mut clusters = Clusters::default(); clusters.update(scree...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_light/src/cluster/mod.rs
crates/bevy_light/src/cluster/mod.rs
//! Spatial clustering of objects, currently just point and spot lights. use bevy_asset::Handle; use bevy_camera::{ visibility::{self, Visibility, VisibilityClass}, Camera, Camera3d, }; use bevy_ecs::{ component::Component, entity::Entity, query::{With, Without}, reflect::ReflectComponent, ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_light/src/cluster/assign.rs
crates/bevy_light/src/cluster/assign.rs
//! Assigning objects to clusters. use bevy_camera::{ primitives::{Aabb, Frustum, HalfSpace, Sphere}, visibility::{RenderLayers, ViewVisibility}, Camera, }; use bevy_ecs::{ entity::Entity, query::{Has, With}, system::{Commands, Local, Query, Res, ResMut}, }; use bevy_math::{ ops::{self, sin...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
true
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_input/src/lib.rs
crates/bevy_input/src/lib.rs
#![cfg_attr(docsrs, feature(doc_cfg))] #![forbid(unsafe_code)] #![doc( html_logo_url = "https://bevy.org/assets/icon.png", html_favicon_url = "https://bevy.org/assets/icon.png" )] #![no_std] //! Input functionality for the [Bevy game engine](https://bevy.org/). //! //! # Supported input devices //! //! `bevy` ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_input/src/gestures.rs
crates/bevy_input/src/gestures.rs
//! Gestures functionality, from touchscreens and touchpads. use bevy_ecs::message::Message; use bevy_math::Vec2; #[cfg(feature = "bevy_reflect")] use bevy_reflect::Reflect; #[cfg(all(feature = "serialize", feature = "bevy_reflect"))] use bevy_reflect::{ReflectDeserialize, ReflectSerialize}; /// Two-finger pinch ges...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_input/src/mouse.rs
crates/bevy_input/src/mouse.rs
//! The mouse input functionality. use crate::{ButtonInput, ButtonState}; use bevy_ecs::{ change_detection::DetectChangesMut, entity::Entity, message::{Message, MessageReader}, resource::Resource, system::ResMut, }; use bevy_math::Vec2; #[cfg(feature = "bevy_reflect")] use { bevy_ecs::reflect::...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_input/src/button_input.rs
crates/bevy_input/src/button_input.rs
//! The generic input type. use bevy_ecs::resource::Resource; use bevy_platform::collections::HashSet; use core::hash::Hash; #[cfg(feature = "bevy_reflect")] use { bevy_ecs::reflect::ReflectResource, bevy_reflect::{std_traits::ReflectDefault, Reflect}, }; /// A "press-able" input of type `T`. /// /// ## Usage...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_input/src/gamepad.rs
crates/bevy_input/src/gamepad.rs
//! The gamepad input functionality. use core::{ops::RangeInclusive, time::Duration}; use crate::{Axis, ButtonInput, ButtonState}; use alloc::string::String; #[cfg(feature = "bevy_reflect")] use bevy_ecs::prelude::ReflectComponent; use bevy_ecs::{ change_detection::DetectChangesMut, component::Component, ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
true
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_input/src/common_conditions.rs
crates/bevy_input/src/common_conditions.rs
use crate::ButtonInput; use bevy_ecs::system::Res; use core::hash::Hash; /// Stateful run condition that can be toggled via an input press using [`ButtonInput::just_pressed`]. /// /// ```no_run /// # use bevy_app::{App, NoopPluginGroup as DefaultPlugins, Update}; /// # use bevy_ecs::prelude::IntoScheduleConfigs; /// #...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_input/src/axis.rs
crates/bevy_input/src/axis.rs
//! The generic axis type. use bevy_ecs::resource::Resource; use bevy_platform::collections::HashMap; use core::hash::Hash; #[cfg(feature = "bevy_reflect")] use bevy_reflect::Reflect; /// Stores the position data of the input devices of type `T`. /// /// The values are stored as `f32`s, using [`Axis::set`]. /// Use ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_input/src/keyboard.rs
crates/bevy_input/src/keyboard.rs
//! The keyboard input functionality. // This file contains a substantial portion of the UI Events Specification by the W3C. In // particular, the variant names within `KeyCode` and their documentation are modified // versions of contents of the aforementioned specification. // // The original documents are: // // // ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
true
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_input/src/touch.rs
crates/bevy_input/src/touch.rs
//! The touch input functionality. use bevy_ecs::{ entity::Entity, message::{Message, MessageReader}, resource::Resource, system::ResMut, }; use bevy_math::Vec2; use bevy_platform::collections::HashMap; #[cfg(feature = "bevy_reflect")] use bevy_reflect::Reflect; #[cfg(all(feature = "serialize", featur...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_solari/src/lib.rs
crates/bevy_solari/src/lib.rs
#![expect(missing_docs, reason = "Not all docs are written yet, see #3492.")] //! Provides raytraced lighting. //! //! See [`SolariPlugins`] for more info. //! //! ![`bevy_solari` logo](https://raw.githubusercontent.com/bevyengine/bevy/refs/heads/main/assets/branding/bevy_solari.svg) extern crate alloc; pub mod path...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_solari/src/scene/blas.rs
crates/bevy_solari/src/scene/blas.rs
use alloc::collections::VecDeque; use bevy_asset::AssetId; use bevy_ecs::{ resource::Resource, system::{Res, ResMut}, }; use bevy_mesh::{Indices, Mesh}; use bevy_platform::collections::HashMap; use bevy_render::{ mesh::{ allocator::{MeshAllocator, MeshBufferSlice}, RenderMesh, }, ren...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_solari/src/scene/types.rs
crates/bevy_solari/src/scene/types.rs
use bevy_asset::Handle; use bevy_derive::{Deref, DerefMut}; use bevy_ecs::{component::Component, prelude::ReflectComponent}; use bevy_mesh::Mesh; use bevy_pbr::{MeshMaterial3d, StandardMaterial}; use bevy_reflect::{prelude::ReflectDefault, Reflect}; use bevy_render::sync_world::SyncToRenderWorld; use bevy_transform::co...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_solari/src/scene/mod.rs
crates/bevy_solari/src/scene/mod.rs
mod binder; mod blas; mod extract; mod types; use bevy_shader::load_shader_library; pub use binder::RaytracingSceneBindings; pub use types::RaytracingMesh3d; use crate::SolariPlugins; use bevy_app::{App, Plugin}; use bevy_ecs::schedule::IntoScheduleConfigs; use bevy_render::{ extract_resource::ExtractResourcePlug...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_solari/src/scene/extract.rs
crates/bevy_solari/src/scene/extract.rs
use super::RaytracingMesh3d; use bevy_asset::{AssetId, Assets}; use bevy_derive::Deref; use bevy_ecs::{ resource::Resource, system::{Commands, Query}, }; use bevy_pbr::{MeshMaterial3d, StandardMaterial}; use bevy_platform::collections::HashMap; use bevy_render::{extract_resource::ExtractResource, sync_world::Re...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_solari/src/scene/binder.rs
crates/bevy_solari/src/scene/binder.rs
use super::{blas::BlasManager, extract::StandardMaterialAssets, RaytracingMesh3d}; use bevy_asset::{AssetId, Handle}; use bevy_color::{ColorToComponents, LinearRgba}; use bevy_ecs::{ entity::{Entity, EntityHashMap}, resource::Resource, system::{Query, Res, ResMut}, }; use bevy_math::{ops::cos, Mat4, Vec3}; ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_solari/src/pathtracer/node.rs
crates/bevy_solari/src/pathtracer/node.rs
use super::{prepare::PathtracerAccumulationTexture, Pathtracer}; use crate::scene::RaytracingSceneBindings; use bevy_asset::load_embedded_asset; use bevy_ecs::{ query::QueryItem, world::{FromWorld, World}, }; use bevy_render::{ camera::ExtractedCamera, render_graph::{NodeRunError, RenderGraphContext, Vi...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_solari/src/pathtracer/mod.rs
crates/bevy_solari/src/pathtracer/mod.rs
mod extract; mod node; mod prepare; use crate::SolariPlugins; use bevy_app::{App, Plugin}; use bevy_asset::embedded_asset; use bevy_core_pipeline::core_3d::graph::{Core3d, Node3d}; use bevy_ecs::{component::Component, reflect::ReflectComponent, schedule::IntoScheduleConfigs}; use bevy_reflect::{std_traits::ReflectDefa...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_solari/src/pathtracer/extract.rs
crates/bevy_solari/src/pathtracer/extract.rs
use super::{prepare::PathtracerAccumulationTexture, Pathtracer}; use bevy_camera::Camera; use bevy_ecs::{ change_detection::DetectChanges, system::{Commands, Query}, world::Ref, }; use bevy_render::{sync_world::RenderEntity, Extract}; use bevy_transform::components::GlobalTransform; pub fn extract_pathtrac...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_solari/src/pathtracer/prepare.rs
crates/bevy_solari/src/pathtracer/prepare.rs
use super::Pathtracer; use bevy_ecs::{ component::Component, entity::Entity, query::With, system::{Commands, Query, Res, ResMut}, }; use bevy_image::ToExtents; use bevy_render::{ camera::ExtractedCamera, render_resource::{TextureDescriptor, TextureDimension, TextureFormat, TextureUsages}, re...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_solari/src/realtime/node.rs
crates/bevy_solari/src/realtime/node.rs
use super::{ prepare::{SolariLightingResources, LIGHT_TILE_BLOCKS, WORLD_CACHE_SIZE}, SolariLighting, }; use crate::scene::RaytracingSceneBindings; #[cfg(all(feature = "dlss", not(feature = "force_disable_dlss")))] use bevy_anti_alias::dlss::ViewDlssRayReconstructionTextures; use bevy_asset::{load_embedded_asse...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_solari/src/realtime/mod.rs
crates/bevy_solari/src/realtime/mod.rs
mod extract; mod node; mod prepare; use crate::SolariPlugins; use bevy_app::{App, Plugin}; use bevy_asset::embedded_asset; use bevy_core_pipeline::{ core_3d::graph::{Core3d, Node3d}, prepass::{ DeferredPrepass, DeferredPrepassDoubleBuffer, DepthPrepass, DepthPrepassDoubleBuffer, MotionVectorPre...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_solari/src/realtime/extract.rs
crates/bevy_solari/src/realtime/extract.rs
use super::{prepare::SolariLightingResources, SolariLighting}; use bevy_camera::Camera; use bevy_ecs::system::{Commands, ResMut}; use bevy_pbr::deferred::SkipDeferredLighting; use bevy_render::{sync_world::RenderEntity, MainWorld}; pub fn extract_solari_lighting(mut main_world: ResMut<MainWorld>, mut commands: Command...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_solari/src/realtime/prepare.rs
crates/bevy_solari/src/realtime/prepare.rs
use super::SolariLighting; #[cfg(all(feature = "dlss", not(feature = "force_disable_dlss")))] use bevy_anti_alias::dlss::{ Dlss, DlssRayReconstructionFeature, ViewDlssRayReconstructionTextures, }; use bevy_camera::MainPassResolutionOverride; #[cfg(all(feature = "dlss", not(feature = "force_disable_dlss")))] use bev...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_picking/src/lib.rs
crates/bevy_picking/src/lib.rs
//! This crate provides 'picking' capabilities for the Bevy game engine, allowing pointers to //! interact with entities using hover, click, and drag events. //! //! ## Overview //! //! In the simplest case, this plugin allows you to click on things in the scene. However, it also //! allows you to express more complex ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_picking/src/backend.rs
crates/bevy_picking/src/backend.rs
//! This module provides a simple interface for implementing a picking backend. //! //! Don't be dissuaded by terminology like "backend"; the idea is dead simple. `bevy_picking` //! will tell you where pointers are, all you have to do is send an event if the pointers are //! hitting something. That's it. The rest of th...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_picking/src/hover.rs
crates/bevy_picking/src/hover.rs
//! Determines which entities are being hovered by which pointers. //! //! The most important type in this module is the [`HoverMap`], which maps pointers to the entities //! they are hovering over. use alloc::collections::BTreeMap; use core::fmt::Debug; use std::collections::HashSet; use crate::{ backend::{self,...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_picking/src/window.rs
crates/bevy_picking/src/window.rs
//! This module contains a basic backend that implements picking for window //! entities. //! //! Pointers can exist on windows, images, and gpu texture views. With //! [`update_window_hits`] enabled, when a pointer hovers over a window that //! window will be inserted as a pointer hit, listed behind all other pointer ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_picking/src/events.rs
crates/bevy_picking/src/events.rs
//! This module defines a stateful set of interaction events driven by the `PointerInput` stream //! and the hover state of each Pointer. //! //! # Usage //! //! To receive events from this module, you must use an [`Observer`] or [`MessageReader`] with [`Pointer<E>`] events. //! The simplest example, registering a call...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
true
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_picking/src/pointer.rs
crates/bevy_picking/src/pointer.rs
//! Types and systems for pointer inputs, such as position and buttons. //! //! The picking system is built around the concept of a 'Pointer', which is an //! abstract representation of a user input with a specific screen location. The cursor //! and touch input is provided under [`input`](`crate::input`), but you can ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_picking/src/input.rs
crates/bevy_picking/src/input.rs
//! This module provides unsurprising default inputs to `bevy_picking` through [`PointerInput`]. //! The included systems are responsible for sending mouse and touch inputs to their //! respective `Pointer`s. //! //! Because this has it's own plugin, it's easy to omit it, and provide your own inputs as //! needed. Bec...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_picking/src/mesh_picking/mod.rs
crates/bevy_picking/src/mesh_picking/mod.rs
//! A [mesh ray casting](ray_cast) backend for [`bevy_picking`](crate). //! //! By default, all meshes that have [`bevy_asset::RenderAssetUsages::MAIN_WORLD`] are pickable. //! Picking can be disabled for individual entities by adding [`Pickable::IGNORE`]. //! //! To make mesh picking entirely opt-in, set [`MeshPicking...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_picking/src/mesh_picking/ray_cast/mod.rs
crates/bevy_picking/src/mesh_picking/ray_cast/mod.rs
//! Ray casting for meshes. //! //! See the [`MeshRayCast`] system parameter for more information. mod intersections; use bevy_derive::{Deref, DerefMut}; use bevy_camera::{ primitives::Aabb, visibility::{InheritedVisibility, ViewVisibility}, }; use bevy_math::{bounding::Aabb3d, Ray3d}; use bevy_mesh::{Mesh, ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_picking/src/mesh_picking/ray_cast/intersections.rs
crates/bevy_picking/src/mesh_picking/ray_cast/intersections.rs
use bevy_math::{bounding::Aabb3d, Affine3A, Dir3, Ray3d, Vec2, Vec3, Vec3A}; use bevy_mesh::{Indices, Mesh, PrimitiveTopology, VertexAttributeValues}; use bevy_reflect::Reflect; use super::Backfaces; /// Hit data for an intersection between a ray and a mesh. #[derive(Debug, Clone, Reflect)] #[reflect(Clone)] pub stru...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_tasks/src/slice.rs
crates/bevy_tasks/src/slice.rs
use super::TaskPool; use alloc::vec::Vec; /// Provides functions for mapping read-only slices across a provided [`TaskPool`]. pub trait ParallelSlice<T: Sync>: AsRef<[T]> { /// Splits the slice in chunks of size `chunks_size` or less and maps the chunks /// in parallel across the provided `task_pool`. One task...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_tasks/src/lib.rs
crates/bevy_tasks/src/lib.rs
#![doc = include_str!("../README.md")] #![cfg_attr(docsrs, feature(doc_cfg))] #![doc( html_logo_url = "https://bevy.org/assets/icon.png", html_favicon_url = "https://bevy.org/assets/icon.png" )] #![no_std] /// Configuration information for this crate. pub mod cfg { pub(crate) use bevy_platform::cfg::*; ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_tasks/src/futures.rs
crates/bevy_tasks/src/futures.rs
//! Utilities for working with [`Future`]s. use core::{ future::Future, pin::pin, task::{Context, Poll, Waker}, }; /// Consumes a future, polls it once, and immediately returns the output /// or returns `None` if it wasn't ready yet. /// /// This will cancel the future if it's not ready. pub fn now_or_neve...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_tasks/src/single_threaded_task_pool.rs
crates/bevy_tasks/src/single_threaded_task_pool.rs
use alloc::{string::String, vec::Vec}; use bevy_platform::sync::Arc; use core::{cell::{RefCell, Cell}, future::Future, marker::PhantomData, mem}; use crate::executor::LocalExecutor; use crate::{block_on, Task}; crate::cfg::std! { if { use std::thread_local; use crate::executor::LocalExecutor as E...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_tasks/src/thread_executor.rs
crates/bevy_tasks/src/thread_executor.rs
use core::marker::PhantomData; use std::thread::{self, ThreadId}; use crate::executor::Executor; use async_task::Task; use futures_lite::Future; /// An executor that can only be ticked on the thread it was instantiated on. But /// can spawn `Send` tasks from other threads. /// /// # Example /// ``` /// # use std::syn...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_tasks/src/executor.rs
crates/bevy_tasks/src/executor.rs
//! Provides a fundamental executor primitive appropriate for the target platform //! and feature set selected. //! By default, the `async_executor` feature will be enabled, which will rely on //! [`async-executor`] for the underlying implementation. This requires `std`, //! so is not suitable for `no_std` contexts. In...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_tasks/src/task_pool.rs
crates/bevy_tasks/src/task_pool.rs
use alloc::{boxed::Box, format, string::String, vec::Vec}; use core::{future::Future, marker::PhantomData, mem, panic::AssertUnwindSafe}; use std::{ thread::{self, JoinHandle}, thread_local, }; use crate::executor::FallibleTask; use bevy_platform::sync::Arc; use concurrent_queue::ConcurrentQueue; use futures_l...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
true
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_tasks/src/task.rs
crates/bevy_tasks/src/task.rs
use alloc::fmt; use core::{ future::Future, pin::Pin, task::{Context, Poll}, }; use crate::cfg; /// Wraps `async_executor::Task`, a spawned future. /// /// Tasks are also futures themselves and yield the output of the spawned future. /// /// When a task is dropped, it gets canceled and won't be polled aga...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_tasks/src/edge_executor.rs
crates/bevy_tasks/src/edge_executor.rs
//! Alternative to `async_executor` based on [`edge_executor`] by Ivan Markov. //! //! It has been vendored along with its tests to update several outdated dependencies. //! //! [`async_executor`]: https://github.com/smol-rs/async-executor //! [`edge_executor`]: https://github.com/ivmarkov/edge-executor #![expect(unsa...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_tasks/src/usages.rs
crates/bevy_tasks/src/usages.rs
use super::TaskPool; use bevy_platform::sync::OnceLock; use core::ops::Deref; macro_rules! taskpool { ($(#[$attr:meta])* ($static:ident, $type:ident)) => { static $static: OnceLock<$type> = OnceLock::new(); $(#[$attr])* #[derive(Debug)] pub struct $type(TaskPool); impl $ty...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_tasks/src/iter/adapters.rs
crates/bevy_tasks/src/iter/adapters.rs
use crate::iter::ParallelIterator; /// Chains two [`ParallelIterator`]s `T` and `U`, first returning /// batches from `T`, and then from `U`. #[derive(Debug)] pub struct Chain<T, U> { pub(crate) left: T, pub(crate) right: U, pub(crate) left_in_progress: bool, } impl<B, T, U> ParallelIterator<B> for Chain<...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_tasks/src/iter/mod.rs
crates/bevy_tasks/src/iter/mod.rs
use crate::TaskPool; use alloc::vec::Vec; mod adapters; pub use adapters::*; /// [`ParallelIterator`] closely emulates the `std::iter::Iterator` /// interface. However, it uses `bevy_task` to compute batches in parallel. /// /// Note that the overhead of [`ParallelIterator`] is high relative to some /// workloads. In...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_tasks/examples/idle_behavior.rs
crates/bevy_tasks/examples/idle_behavior.rs
//! This sample demonstrates a thread pool with one thread per logical core and only one task //! spinning. Other than the one thread, the system should remain idle, demonstrating good behavior //! for small workloads. #![expect(clippy::print_stdout, reason = "Allowed in examples.")] use bevy_platform::time::Instant;...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_tasks/examples/busy_behavior.rs
crates/bevy_tasks/examples/busy_behavior.rs
//! This sample demonstrates creating a thread pool with 4 tasks and spawning 40 tasks that spin //! for 100ms. It's expected to take about a second to run (assuming the machine has >= 4 logical //! cores) #![expect(clippy::print_stdout, reason = "Allowed in examples.")] use bevy_platform::time::Instant; use bevy_tas...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui_widgets/src/button.rs
crates/bevy_ui_widgets/src/button.rs
use accesskit::Role; use bevy_a11y::AccessibilityNode; use bevy_app::{App, Plugin}; use bevy_ecs::query::Has; use bevy_ecs::{ component::Component, entity::Entity, observer::On, query::With, system::{Commands, Query}, }; use bevy_input::keyboard::{KeyCode, KeyboardInput}; use bevy_input::ButtonState...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui_widgets/src/observe.rs
crates/bevy_ui_widgets/src/observe.rs
// TODO: This probably doesn't belong in bevy_ui_widgets, but I am not sure where it should go. // It is certainly a useful thing to have. #![expect(unsafe_code, reason = "Unsafe code is used to improve performance.")] use core::{marker::PhantomData, mem}; use bevy_ecs::{ bundle::{Bundle, DynamicBundle}, even...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui_widgets/src/lib.rs
crates/bevy_ui_widgets/src/lib.rs
//! This crate provides a set of standard widgets for Bevy UI, such as buttons, checkboxes, and sliders. //! These widgets have no inherent styling, it's the responsibility of the user to add styling //! appropriate for their game or application. //! //! ## Warning: Experimental //! //! This crate is currently experime...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui_widgets/src/slider.rs
crates/bevy_ui_widgets/src/slider.rs
use core::ops::RangeInclusive; use accesskit::{Orientation, Role}; use bevy_a11y::AccessibilityNode; use bevy_app::{App, Plugin}; use bevy_ecs::event::EntityEvent; use bevy_ecs::hierarchy::Children; use bevy_ecs::lifecycle::Insert; use bevy_ecs::query::Has; use bevy_ecs::system::Res; use bevy_ecs::world::DeferredWorld...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui_widgets/src/menu.rs
crates/bevy_ui_widgets/src/menu.rs
//! Standard widget components for popup menus. use accesskit::Role; use bevy_a11y::AccessibilityNode; use bevy_app::{App, Plugin, Update}; use bevy_ecs::{ component::Component, entity::Entity, event::EntityEvent, hierarchy::ChildOf, observer::On, query::{Has, With, Without}, schedule::Into...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui_widgets/src/popover.rs
crates/bevy_ui_widgets/src/popover.rs
//! Framework for positioning of popups, tooltips, and other popover UI elements. use bevy_app::{App, Plugin, PostUpdate}; use bevy_camera::visibility::Visibility; use bevy_ecs::{ change_detection::DetectChangesMut, component::Component, hierarchy::ChildOf, query::Without, schedule::IntoScheduleConfigs, system...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui_widgets/src/radio.rs
crates/bevy_ui_widgets/src/radio.rs
use accesskit::Role; use bevy_a11y::AccessibilityNode; use bevy_app::{App, Plugin}; use bevy_ecs::{ component::Component, entity::Entity, hierarchy::{ChildOf, Children}, observer::On, query::{Has, With}, reflect::ReflectComponent, system::{Commands, Query}, }; use bevy_input::keyboard::{KeyC...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui_widgets/src/checkbox.rs
crates/bevy_ui_widgets/src/checkbox.rs
use accesskit::Role; use bevy_a11y::AccessibilityNode; use bevy_app::{App, Plugin}; use bevy_ecs::event::EntityEvent; use bevy_ecs::query::{Has, With, Without}; use bevy_ecs::system::ResMut; use bevy_ecs::{ component::Component, observer::On, system::{Commands, Query}, }; use bevy_input::keyboard::{KeyCode,...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui_widgets/src/scrollbar.rs
crates/bevy_ui_widgets/src/scrollbar.rs
use bevy_app::{App, Plugin, PostUpdate}; use bevy_ecs::{ component::Component, entity::Entity, hierarchy::{ChildOf, Children}, observer::On, query::{With, Without}, reflect::ReflectComponent, system::{Query, Res}, }; use bevy_math::Vec2; use bevy_picking::events::{Cancel, Drag, DragEnd, Drag...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_internal/src/prelude.rs
crates/bevy_internal/src/prelude.rs
#[doc(hidden)] pub use crate::{ app::prelude::*, ecs::prelude::*, input::prelude::*, math::prelude::*, platform::prelude::*, reflect::prelude::*, time::prelude::*, transform::prelude::*, utils::prelude::*, DefaultPlugins, MinimalPlugins, }; #[doc(hidden)] #[cfg(feature = "bevy_log")] pub use crate::log::pr...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_internal/src/lib.rs
crates/bevy_internal/src/lib.rs
#![cfg_attr(docsrs, feature(doc_cfg))] #![forbid(unsafe_code)] #![doc( html_logo_url = "https://bevy.org/assets/icon.png", html_favicon_url = "https://bevy.org/assets/icon.png" )] #![no_std] //! This module is separated into its own crate to enable simple dynamic linking for Bevy, and should not be used direct...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_internal/src/default_plugins.rs
crates/bevy_internal/src/default_plugins.rs
use bevy_app::{plugin_group, Plugin}; plugin_group! { /// This plugin group will add all the default plugins for a *Bevy* application: pub struct DefaultPlugins { bevy_app:::PanicHandlerPlugin, #[cfg(feature = "bevy_log")] bevy_log:::LogPlugin, bevy_app:::TaskPoolPlugin, ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_post_process/src/lib.rs
crates/bevy_post_process/src/lib.rs
#![expect(missing_docs, reason = "Not all docs are written yet, see #3492.")] #![forbid(unsafe_code)] #![cfg_attr(docsrs, feature(doc_cfg))] #![doc( html_logo_url = "https://bevy.org/assets/icon.png", html_favicon_url = "https://bevy.org/assets/icon.png" )] pub mod auto_exposure; pub mod bloom; pub mod dof; pu...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_post_process/src/msaa_writeback.rs
crates/bevy_post_process/src/msaa_writeback.rs
use bevy_app::{App, Plugin}; use bevy_camera::MsaaWriteback; use bevy_color::LinearRgba; use bevy_core_pipeline::{ blit::{BlitPipeline, BlitPipelineKey}, core_2d::graph::{Core2d, Node2d}, core_3d::graph::{Core3d, Node3d}, }; use bevy_ecs::{prelude::*, query::QueryItem}; use bevy_render::{ camera::Extrac...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_post_process/src/motion_blur/node.rs
crates/bevy_post_process/src/motion_blur/node.rs
use bevy_ecs::{query::QueryItem, world::World}; use bevy_render::{ diagnostic::RecordDiagnostics, extract_component::ComponentUniforms, globals::GlobalsBuffer, render_graph::{NodeRunError, RenderGraphContext, ViewNode}, render_resource::{ BindGroupEntries, Operations, PipelineCache, RenderPa...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_post_process/src/motion_blur/mod.rs
crates/bevy_post_process/src/motion_blur/mod.rs
//! Per-object, per-pixel motion blur. //! //! Add the [`MotionBlur`] component to a camera to enable motion blur. use bevy_app::{App, Plugin}; use bevy_asset::embedded_asset; use bevy_camera::Camera; use bevy_core_pipeline::{ core_3d::graph::{Core3d, Node3d}, prepass::{DepthPrepass, MotionVectorPrepass}, }; u...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_post_process/src/motion_blur/pipeline.rs
crates/bevy_post_process/src/motion_blur/pipeline.rs
use bevy_asset::{load_embedded_asset, AssetServer, Handle}; use bevy_core_pipeline::FullscreenShader; use bevy_ecs::{ component::Component, entity::Entity, query::With, resource::Resource, system::{Commands, Query, Res, ResMut}, }; use bevy_image::BevyDefault as _; use bevy_render::{ globals::Gl...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_post_process/src/bloom/settings.rs
crates/bevy_post_process/src/bloom/settings.rs
use super::downsampling_pipeline::BloomUniforms; use bevy_camera::Camera; use bevy_ecs::{ prelude::Component, query::{QueryItem, With}, reflect::ReflectComponent, }; use bevy_math::{AspectRatio, URect, UVec4, Vec2, Vec4}; use bevy_reflect::{std_traits::ReflectDefault, Reflect}; use bevy_render::{extract_com...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_post_process/src/bloom/downsampling_pipeline.rs
crates/bevy_post_process/src/bloom/downsampling_pipeline.rs
use bevy_core_pipeline::FullscreenShader; use super::{Bloom, BLOOM_TEXTURE_FORMAT}; use bevy_asset::{load_embedded_asset, AssetServer, Handle}; use bevy_ecs::{ prelude::{Component, Entity}, resource::Resource, system::{Commands, Query, Res, ResMut}, }; use bevy_math::{Vec2, Vec4}; use bevy_render::{ re...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_post_process/src/bloom/upsampling_pipeline.rs
crates/bevy_post_process/src/bloom/upsampling_pipeline.rs
use bevy_core_pipeline::FullscreenShader; use super::{ downsampling_pipeline::BloomUniforms, Bloom, BloomCompositeMode, BLOOM_TEXTURE_FORMAT, }; use bevy_asset::{load_embedded_asset, AssetServer, Handle}; use bevy_ecs::{ prelude::{Component, Entity}, resource::Resource, system::{Commands, Query, Res, R...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_post_process/src/bloom/mod.rs
crates/bevy_post_process/src/bloom/mod.rs
mod downsampling_pipeline; mod settings; mod upsampling_pipeline; use bevy_image::ToExtents; pub use settings::{Bloom, BloomCompositeMode, BloomPrefilter}; use crate::bloom::{ downsampling_pipeline::init_bloom_downsampling_pipeline, upsampling_pipeline::init_bloom_upscaling_pipeline, }; use bevy_app::{App, Pl...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_post_process/src/auto_exposure/buffers.rs
crates/bevy_post_process/src/auto_exposure/buffers.rs
use bevy_ecs::prelude::*; use bevy_platform::collections::{hash_map::Entry, HashMap}; use bevy_render::{ render_resource::{StorageBuffer, UniformBuffer}, renderer::{RenderDevice, RenderQueue}, sync_world::RenderEntity, Extract, }; use super::{pipeline::AutoExposureUniform, AutoExposure}; #[derive(Reso...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_post_process/src/auto_exposure/settings.rs
crates/bevy_post_process/src/auto_exposure/settings.rs
use core::ops::RangeInclusive; use super::compensation_curve::AutoExposureCompensationCurve; use bevy_asset::Handle; use bevy_ecs::{prelude::Component, reflect::ReflectComponent}; use bevy_image::Image; use bevy_reflect::{std_traits::ReflectDefault, Reflect}; use bevy_render::{extract_component::ExtractComponent, view...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_post_process/src/auto_exposure/node.rs
crates/bevy_post_process/src/auto_exposure/node.rs
use super::{ buffers::AutoExposureBuffers, compensation_curve::GpuAutoExposureCompensationCurve, pipeline::{AutoExposurePipeline, ViewAutoExposurePipeline}, AutoExposureResources, }; use bevy_ecs::{ query::QueryState, system::lifetimeless::Read, world::{FromWorld, World}, }; use bevy_render:...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_post_process/src/auto_exposure/compensation_curve.rs
crates/bevy_post_process/src/auto_exposure/compensation_curve.rs
use bevy_asset::{prelude::*, RenderAssetUsages}; use bevy_ecs::system::{lifetimeless::SRes, SystemParamItem}; use bevy_math::{cubic_splines::CubicGenerator, FloatExt, Vec2}; use bevy_reflect::prelude::*; use bevy_render::{ render_asset::RenderAsset, render_resource::{ Extent3d, ShaderType, TextureDescri...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_post_process/src/auto_exposure/mod.rs
crates/bevy_post_process/src/auto_exposure/mod.rs
use bevy_app::prelude::*; use bevy_asset::{embedded_asset, AssetApp, Assets, Handle}; use bevy_ecs::prelude::*; use bevy_render::{ extract_component::ExtractComponentPlugin, render_asset::RenderAssetPlugin, render_graph::RenderGraphExt, render_resource::{ Buffer, BufferDescriptor, BufferUsages, ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_post_process/src/auto_exposure/pipeline.rs
crates/bevy_post_process/src/auto_exposure/pipeline.rs
use super::compensation_curve::{ AutoExposureCompensationCurve, AutoExposureCompensationCurveUniform, }; use bevy_asset::{load_embedded_asset, prelude::*}; use bevy_ecs::prelude::*; use bevy_image::Image; use bevy_render::{ globals::GlobalsUniform, render_resource::{binding_types::*, *}, view::ViewUnifo...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_post_process/src/effect_stack/mod.rs
crates/bevy_post_process/src/effect_stack/mod.rs
//! Miscellaneous built-in postprocessing effects. //! //! Currently, this consists only of chromatic aberration. use bevy_app::{App, Plugin}; use bevy_asset::{ embedded_asset, load_embedded_asset, AssetServer, Assets, Handle, RenderAssetUsages, }; use bevy_camera::Camera; use bevy_derive::{Deref, DerefMut}; use b...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_post_process/src/dof/mod.rs
crates/bevy_post_process/src/dof/mod.rs
//! Depth of field, a postprocessing effect that simulates camera focus. //! //! By default, Bevy renders all objects in full focus: regardless of depth, all //! objects are rendered perfectly sharp (up to output resolution). Real lenses, //! however, can only focus on objects at a specific distance. The distance //! b...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
true
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/focus.rs
crates/bevy_ui/src/focus.rs
use crate::{ ui_transform::UiGlobalTransform, ComputedNode, ComputedUiTargetCamera, Node, OverrideClip, UiStack, }; use bevy_camera::{visibility::InheritedVisibility, Camera, NormalizedRenderTarget, RenderTarget}; use bevy_ecs::{ change_detection::DetectChangesMut, entity::{ContainsEntity, Entity}, ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/ui_transform.rs
crates/bevy_ui/src/ui_transform.rs
use crate::Val; use bevy_derive::Deref; use bevy_ecs::component::Component; use bevy_ecs::prelude::ReflectComponent; use bevy_math::Affine2; use bevy_math::Mat2; use bevy_math::Rot2; use bevy_math::Vec2; use bevy_reflect::prelude::*; use core::ops::Mul; /// A pair of [`Val`]s used to represent a 2-dimensional size or ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/lib.rs
crates/bevy_ui/src/lib.rs
#![expect(missing_docs, reason = "Not all docs are written yet, see #3492.")] #![cfg_attr(docsrs, feature(doc_cfg))] #![doc( html_logo_url = "https://bevy.org/assets/icon.png", html_favicon_url = "https://bevy.org/assets/icon.png" )] //! This crate contains Bevy's UI system, which can be used to create UI for ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/update.rs
crates/bevy_ui/src/update.rs
//! This module contains systems that update the UI when something changes use crate::{ experimental::{UiChildren, UiRootNodes}, ui_transform::UiGlobalTransform, CalculatedClip, ComputedUiRenderTargetInfo, ComputedUiTargetCamera, DefaultUiCamera, Display, Node, OverflowAxis, OverrideClip, UiScale, UiTa...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/geometry.rs
crates/bevy_ui/src/geometry.rs
use bevy_math::{MismatchedUnitsError, StableInterpolate as _, TryStableInterpolate, Vec2}; use bevy_reflect::{std_traits::ReflectDefault, Reflect}; use bevy_utils::default; use core::ops::{Div, DivAssign, Mul, MulAssign, Neg}; use thiserror::Error; #[cfg(feature = "serialize")] use bevy_reflect::{ReflectDeserialize, R...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
true
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/measurement.rs
crates/bevy_ui/src/measurement.rs
use bevy_ecs::{prelude::Component, reflect::ReflectComponent}; use bevy_math::Vec2; use bevy_reflect::{std_traits::ReflectDefault, Reflect}; use bevy_text::CosmicFontSystem; use core::fmt::Formatter; pub use taffy::style::AvailableSpace; use crate::widget::ImageMeasure; use crate::widget::TextMeasure; impl core::fmt...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/ui_node.rs
crates/bevy_ui/src/ui_node.rs
use crate::{ ui_transform::{UiGlobalTransform, UiTransform}, FocusPolicy, UiRect, Val, }; use bevy_camera::{visibility::Visibility, Camera, RenderTarget}; use bevy_color::{Alpha, Color}; use bevy_derive::{Deref, DerefMut}; use bevy_ecs::{prelude::*, system::SystemParam}; use bevy_math::{BVec2, Rect, UVec2, Vec2...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
true
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/picking_backend.rs
crates/bevy_ui/src/picking_backend.rs
//! A picking backend for UI nodes. //! //! # Usage //! //! This backend does not require markers on cameras or entities to function. It will look for any //! pointers using the same render target as the UI camera, and run hit tests on the UI node tree. //! //! ## Important Note //! //! This backend completely ignores ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/interaction_states.rs
crates/bevy_ui/src/interaction_states.rs
/// This module contains components that are used to track the interaction state of UI widgets. use bevy_a11y::AccessibilityNode; use bevy_ecs::{ component::Component, lifecycle::{Add, Remove}, observer::On, world::DeferredWorld, }; /// A component indicating that a widget is disabled and should be "gr...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/stack.rs
crates/bevy_ui/src/stack.rs
//! This module contains the systems that update the stored UI nodes stack use crate::{ experimental::{UiChildren, UiRootNodes}, ComputedNode, GlobalZIndex, ZIndex, }; use bevy_ecs::prelude::*; use bevy_platform::collections::HashSet; use core::ops::Range; /// The current UI stack, which contains all UI nodes...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/accessibility.rs
crates/bevy_ui/src/accessibility.rs
use crate::{ experimental::UiChildren, prelude::{Button, Label}, ui_transform::UiGlobalTransform, widget::{ImageNode, TextUiReader}, ComputedNode, }; use bevy_a11y::AccessibilityNode; use bevy_app::{App, Plugin, PostUpdate}; use bevy_ecs::{ prelude::{DetectChanges, Entity}, query::{Changed, ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/gradients.rs
crates/bevy_ui/src/gradients.rs
use crate::{UiPosition, Val}; use bevy_color::{Color, Srgba}; use bevy_ecs::{component::Component, reflect::ReflectComponent}; use bevy_math::Vec2; use bevy_reflect::prelude::*; use bevy_utils::default; use core::{f32, f32::consts::TAU}; /// A color stop for a gradient #[derive(Debug, Copy, Clone, PartialEq, Reflect)]...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/layout/convert.rs
crates/bevy_ui/src/layout/convert.rs
use taffy::style_helpers; use crate::{ AlignContent, AlignItems, AlignSelf, BoxSizing, Display, FlexDirection, FlexWrap, GridAutoFlow, GridPlacement, GridTrack, GridTrackRepetition, JustifyContent, JustifyItems, JustifySelf, MaxTrackSizingFunction, MinTrackSizingFunction, Node, OverflowAxis, PositionType, ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/layout/debug.rs
crates/bevy_ui/src/layout/debug.rs
use core::fmt::Write; use taffy::{NodeId, TraversePartialTree}; use bevy_ecs::prelude::Entity; use bevy_platform::collections::HashMap; use crate::layout::ui_surface::UiSurface; /// Prints a debug representation of the computed layout of the UI layout tree for each window. pub fn print_ui_layout_tree(ui_surface: &U...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/layout/ui_surface.rs
crates/bevy_ui/src/layout/ui_surface.rs
use core::fmt; use core::ops::{Deref, DerefMut}; use bevy_platform::collections::hash_map::Entry; use taffy::TaffyTree; use bevy_ecs::{ entity::{Entity, EntityHashMap}, prelude::Resource, }; use bevy_math::{UVec2, Vec2}; use bevy_utils::default; use crate::{layout::convert, LayoutContext, LayoutError, Measur...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/layout/mod.rs
crates/bevy_ui/src/layout/mod.rs
use crate::{ experimental::{UiChildren, UiRootNodes}, ui_transform::{UiGlobalTransform, UiTransform}, ComputedNode, ComputedUiRenderTargetInfo, ContentSize, Display, IgnoreScroll, LayoutConfig, Node, Outline, OverflowAxis, ScrollPosition, }; use bevy_ecs::{ change_detection::{DetectChanges, DetectCh...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
true
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/experimental/ghost_hierarchy.rs
crates/bevy_ui/src/experimental/ghost_hierarchy.rs
//! This module contains [`GhostNode`] and utilities to flatten the UI hierarchy, traversing past ghost nodes. #[cfg(feature = "ghost_nodes")] use crate::ui_node::ComputedUiTargetCamera; use crate::Node; #[cfg(feature = "ghost_nodes")] use bevy_camera::visibility::Visibility; use bevy_ecs::{prelude::*, system::SystemP...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/experimental/mod.rs
crates/bevy_ui/src/experimental/mod.rs
//! Experimental features are not yet stable and may change or be removed in the future. //! //! These features are not recommended for production use, but are available to ease experimentation //! within Bevy's ecosystem. Please let us know how you are using these features and what you would //! like to see improved! ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/widget/button.rs
crates/bevy_ui/src/widget/button.rs
use crate::{FocusPolicy, Interaction, Node}; use bevy_ecs::{component::Component, reflect::ReflectComponent}; use bevy_reflect::{std_traits::ReflectDefault, Reflect}; /// Marker struct for buttons #[derive(Component, Debug, Default, Clone, Copy, PartialEq, Eq, Reflect)] #[reflect(Component, Default, Debug, PartialEq, ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/widget/viewport.rs
crates/bevy_ui/src/widget/viewport.rs
#[cfg(feature = "bevy_picking")] use crate::UiGlobalTransform; use crate::{ComputedNode, Node}; use bevy_asset::Assets; #[cfg(feature = "bevy_picking")] use bevy_camera::Camera; use bevy_camera::RenderTarget; use bevy_ecs::{ component::Component, entity::Entity, query::{Changed, Or}, reflect::ReflectCom...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_ui/src/widget/image.rs
crates/bevy_ui/src/widget/image.rs
use crate::{ComputedUiRenderTargetInfo, ContentSize, Measure, MeasureArgs, Node, NodeMeasure}; use bevy_asset::{AsAssetId, AssetId, Assets, Handle}; use bevy_color::Color; use bevy_ecs::prelude::*; use bevy_image::{prelude::*, TRANSPARENT_IMAGE_HANDLE}; use bevy_math::{Rect, UVec2, Vec2}; use bevy_reflect::{std_traits:...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false