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_ecs/examples/events.rs
crates/bevy_ecs/examples/events.rs
//! In this example a system sends a custom messages with a 50/50 chance during any frame. //! If a message was sent, it will be printed by the console in a receiving system. #![expect(clippy::print_stdout, reason = "Allowed in examples.")] use bevy_ecs::{message::MessageRegistry, prelude::*}; fn main() { // Cre...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_input_focus/src/lib.rs
crates/bevy_input_focus/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] //! A UI-centric focus system for Bevy. //! //! This crate provides a system for managing input focus in Bevy applicatio...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_input_focus/src/autofocus.rs
crates/bevy_input_focus/src/autofocus.rs
//! Contains the [`AutoFocus`] component and related machinery. use bevy_ecs::{lifecycle::HookContext, prelude::*, world::DeferredWorld}; use crate::InputFocus; #[cfg(feature = "bevy_reflect")] use bevy_reflect::{prelude::*, Reflect}; /// Indicates that this widget should automatically receive [`InputFocus`]. /// /...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_input_focus/src/directional_navigation.rs
crates/bevy_input_focus/src/directional_navigation.rs
//! A navigation framework for moving between focusable elements based on directional input. //! //! While virtual cursors are a common way to navigate UIs with a gamepad (or arrow keys!), //! they are generally both slow and frustrating to use. //! Instead, directional inputs should provide a direct way to snap betwee...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
true
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_input_focus/src/tab_navigation.rs
crates/bevy_input_focus/src/tab_navigation.rs
//! This module provides a framework for handling linear tab-key navigation in Bevy applications. //! //! The rules of tabbing are derived from the HTML specification, and are as follows: //! //! * An index >= 0 means that the entity is tabbable via sequential navigation. //! The order of tabbing is determined by the...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_gilrs/src/lib.rs
crates/bevy_gilrs/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" )] //! Systems and type definitions for gamepad handling in Bevy. //! //! This crate is built on top of [GilRs](gilrs), a library //! ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_gilrs/src/gilrs_system.rs
crates/bevy_gilrs/src/gilrs_system.rs
use crate::{ converter::{convert_axis, convert_button}, Gilrs, GilrsGamepads, }; use bevy_ecs::message::MessageWriter; use bevy_ecs::prelude::Commands; use bevy_ecs::system::ResMut; use bevy_input::gamepad::{ GamepadConnection, GamepadConnectionEvent, RawGamepadAxisChangedEvent, RawGamepadButtonChangedE...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_gilrs/src/rumble.rs
crates/bevy_gilrs/src/rumble.rs
//! Handle user specified rumble request events. use crate::{Gilrs, GilrsGamepads}; use bevy_ecs::prelude::{MessageReader, Res, ResMut, Resource}; use bevy_input::gamepad::{GamepadRumbleIntensity, GamepadRumbleRequest}; use bevy_platform::cell::SyncCell; use bevy_platform::collections::HashMap; use bevy_time::{Real, Ti...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_gilrs/src/converter.rs
crates/bevy_gilrs/src/converter.rs
use bevy_input::gamepad::{GamepadAxis, GamepadButton}; pub fn convert_button(button: gilrs::Button) -> Option<GamepadButton> { match button { gilrs::Button::South => Some(GamepadButton::South), gilrs::Button::East => Some(GamepadButton::East), gilrs::Button::North => Some(GamepadButton::Nor...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_animation/macros/src/animation_event.rs
crates/bevy_animation/macros/src/animation_event.rs
use bevy_macro_utils::BevyManifest; use proc_macro::TokenStream; use quote::quote; use syn::{parse_macro_input, DeriveInput}; pub fn derive_animation_event(input: TokenStream) -> TokenStream { let ast = parse_macro_input!(input as DeriveInput); let (bevy_ecs, bevy_animation) = BevyManifest::shared(|manifest| {...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_animation/macros/src/lib.rs
crates/bevy_animation/macros/src/lib.rs
#![cfg_attr(docsrs, feature(doc_cfg))] //! Macros for deriving animation behaviors. extern crate proc_macro; mod animation_event; use proc_macro::TokenStream; /// Implements the `AnimationEvent` trait for a type - see the trait /// docs for an example usage. #[proc_macro_derive(AnimationEvent)] pub fn derive_anima...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_animation/src/animation_event.rs
crates/bevy_animation/src/animation_event.rs
pub use bevy_animation_macros::AnimationEvent; use bevy_ecs::{ entity::Entity, event::{trigger_entity_internal, Event, Trigger}, observer::{CachedObservers, TriggerContext}, world::DeferredWorld, }; /// An [`Event`] that an [`AnimationPlayer`](crate::AnimationPlayer) or an [`AnimationTargetId`](crate:...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_animation/src/lib.rs
crates/bevy_animation/src/lib.rs
#![cfg_attr(docsrs, feature(doc_cfg))] #![warn(unsafe_code)] #![doc( html_logo_url = "https://bevy.org/assets/icon.png", html_favicon_url = "https://bevy.org/assets/icon.png" )] //! Animation for the game engine Bevy extern crate alloc; pub mod animatable; pub mod animation_curves; pub mod gltf_curves; pub m...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
true
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_animation/src/gltf_curves.rs
crates/bevy_animation/src/gltf_curves.rs
//! Concrete curve structures used to load glTF curves into the animation system. use bevy_math::{ curve::{cores::*, iterable::IterableCurve, *}, vec4, Quat, Vec4, VectorSpace, }; use bevy_reflect::Reflect; use either::Either; use thiserror::Error; /// A keyframe-defined curve that "interpolates" by stepping ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_animation/src/morph.rs
crates/bevy_animation/src/morph.rs
use crate::{ animatable::Animatable, animation_curves::{AnimationCurve, AnimationCurveEvaluator, EvaluatorId}, graph::AnimationNodeIndex, AnimationEntityMut, AnimationEvaluationError, }; use bevy_math::curve::{iterable::IterableCurve, Interval}; use bevy_mesh::morph::MorphWeights; use bevy_reflect::{Fro...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_animation/src/animation_curves.rs
crates/bevy_animation/src/animation_curves.rs
//! The [`AnimationCurve`] trait and adaptors that allow curves to implement it. //! //! # Overview //! //! The flow of curves into the animation system generally begins with something that //! implements the [`Curve`] trait. Let's imagine, for example, that we have some //! `Curve<Vec3>` that we want to use to animate...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_animation/src/transition.rs
crates/bevy_animation/src/transition.rs
//! Animation transitions. //! //! Please note that this is an unstable temporary API. It may be replaced by a //! state machine in the future. use bevy_ecs::{ component::Component, reflect::ReflectComponent, system::{Query, Res}, }; use bevy_reflect::{std_traits::ReflectDefault, Reflect}; use bevy_time::T...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_animation/src/util.rs
crates/bevy_animation/src/util.rs
/// Steps between two different discrete values of any type. /// Returns `a` if `t < 1.0`, otherwise returns `b`. #[inline] pub(crate) fn step_unclamped<T>(a: T, b: T, t: f32) -> T { if t < 1.0 { a } else { b } }
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_animation/src/animatable.rs
crates/bevy_animation/src/animatable.rs
//! Traits and type for interpolating between values. use crate::util; use bevy_color::{Laba, LinearRgba, Oklaba, Srgba, Xyza}; use bevy_math::*; use bevy_reflect::Reflect; use bevy_transform::prelude::Transform; /// An individual input for [`Animatable::blend`]. pub struct BlendInput<T> { /// The individual item...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_animation/src/graph.rs
crates/bevy_animation/src/graph.rs
//! The animation graph, which allows animations to be blended together. use core::{ fmt::Write, iter, ops::{Index, IndexMut, Range}, }; use std::io; use bevy_asset::{ io::Reader, Asset, AssetEvent, AssetId, AssetLoader, AssetPath, Assets, Handle, LoadContext, }; use bevy_derive::{Deref, DerefMut}; us...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
true
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/lib.rs
crates/bevy_color/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] //! Representations of colors in various color spaces. //! //! This crate provides a number of color representations, in...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/oklaba.rs
crates/bevy_color/src/oklaba.rs
use crate::{ color_difference::EuclideanDistance, impl_componentwise_vector_space, Alpha, ColorToComponents, Gray, Hsla, Hsva, Hwba, Lcha, LinearRgba, Luminance, Mix, Srgba, StandardColor, Xyza, }; use bevy_math::{ops, FloatPow, Vec3, Vec4}; #[cfg(feature = "bevy_reflect")] use bevy_reflect::prelude::*; /// Co...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/color_range.rs
crates/bevy_color/src/color_range.rs
use core::ops::Range; use crate::Mix; /// Represents a range of colors that can be linearly interpolated, defined by a start and /// end point which must be in the same color space. It works for any color type that /// implements [`Mix`]. /// /// This is useful for defining gradients or animated color transitions. pu...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/interpolate.rs
crates/bevy_color/src/interpolate.rs
//! TODO: Implement for non-linear colors. #[cfg(test)] mod test { use bevy_math::StableInterpolate; use crate::{Gray, Laba, LinearRgba, Oklaba, Srgba, Xyza}; #[test] pub fn test_color_stable_interpolate() { let b = Srgba::BLACK; let w = Srgba::WHITE; assert_eq!( b...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/color_difference.rs
crates/bevy_color/src/color_difference.rs
//! Module for calculating distance between two colors in the same color space. use bevy_math::ops; /// Calculate the distance between this and another color as if they were coordinates /// in a Euclidean space. Alpha is not considered in the distance calculation. pub trait EuclideanDistance: Sized { /// Distance...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/hwba.rs
crates/bevy_color/src/hwba.rs
//! Implementation of the Hue-Whiteness-Blackness (HWB) color model as described //! in [_HWB - A More Intuitive Hue-Based Color Model_] by _Smith et al_. //! //! [_HWB - A More Intuitive Hue-Based Color Model_]: https://web.archive.org/web/20240226005220/http://alvyray.com/Papers/CG/HWB_JGTv208.pdf use crate::{ Al...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/color_ops.rs
crates/bevy_color/src/color_ops.rs
use bevy_math::{ops, Vec3, Vec4}; /// Methods for changing the luminance of a color. Note that these methods are not /// guaranteed to produce consistent results across color spaces, /// but will be within a given space. pub trait Luminance: Sized { /// Return the luminance of this color (0.0 - 1.0). fn lumina...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/hsva.rs
crates/bevy_color/src/hsva.rs
use crate::{ Alpha, ColorToComponents, Gray, Hue, Hwba, Lcha, LinearRgba, Mix, Saturation, Srgba, StandardColor, Xyza, }; use bevy_math::{Vec3, Vec4}; #[cfg(feature = "bevy_reflect")] use bevy_reflect::prelude::*; /// Color in Hue-Saturation-Value (HSV) color space with alpha. /// Further information on this c...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/lcha.rs
crates/bevy_color/src/lcha.rs
use crate::{ Alpha, ColorToComponents, Gray, Hue, Laba, LinearRgba, Luminance, Mix, Srgba, StandardColor, Xyza, }; use bevy_math::{ops, Vec3, Vec4}; #[cfg(feature = "bevy_reflect")] use bevy_reflect::prelude::*; /// Color in LCH color space, with alpha #[doc = include_str!("../docs/conversion.md")] /// <div> #...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/color_gradient.rs
crates/bevy_color/src/color_gradient.rs
use crate::Mix; use alloc::vec::Vec; use bevy_math::curve::{ cores::{EvenCore, EvenCoreError}, Curve, Interval, }; /// A curve whose samples are defined by a collection of colors. #[derive(Clone, Debug)] #[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))] #[cfg_attr(feature = "bevy...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/testing.rs
crates/bevy_color/src/testing.rs
#[cfg(test)] macro_rules! assert_approx_eq { ($x:expr, $y:expr, $d:expr) => { if ($x - $y).abs() >= $d { panic!( "assertion failed: `(left !== right)` \ (left: `{}`, right: `{}`, tolerance: `{}`)", $x, $y, $d ); } }; } #[c...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/xyza.rs
crates/bevy_color/src/xyza.rs
use crate::{ impl_componentwise_vector_space, Alpha, ColorToComponents, Gray, LinearRgba, Luminance, Mix, StandardColor, }; use bevy_math::{Vec3, Vec4}; #[cfg(feature = "bevy_reflect")] use bevy_reflect::prelude::*; /// [CIE 1931](https://en.wikipedia.org/wiki/CIE_1931_color_space) color space, also known as X...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/oklcha.rs
crates/bevy_color/src/oklcha.rs
use crate::{ color_difference::EuclideanDistance, Alpha, ColorToComponents, Gray, Hsla, Hsva, Hue, Hwba, Laba, Lcha, LinearRgba, Luminance, Mix, Oklaba, Srgba, StandardColor, Xyza, }; use bevy_math::{ops, FloatPow, Vec3, Vec4}; #[cfg(feature = "bevy_reflect")] use bevy_reflect::prelude::*; /// Color in Oklch c...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/laba.rs
crates/bevy_color/src/laba.rs
use crate::{ impl_componentwise_vector_space, Alpha, ColorToComponents, Gray, Hsla, Hsva, Hwba, LinearRgba, Luminance, Mix, Oklaba, Srgba, StandardColor, Xyza, }; use bevy_math::{ops, Vec3, Vec4}; #[cfg(feature = "bevy_reflect")] use bevy_reflect::prelude::*; /// Color in LAB color space, with alpha #[doc = in...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/color.rs
crates/bevy_color/src/color.rs
use crate::{ color_difference::EuclideanDistance, Alpha, Hsla, Hsva, Hue, Hwba, Laba, Lcha, LinearRgba, Luminance, Mix, Oklaba, Oklcha, Saturation, Srgba, StandardColor, Xyza, }; use bevy_math::{MismatchedUnitsError, TryStableInterpolate}; #[cfg(feature = "bevy_reflect")] use bevy_reflect::prelude::*; use deriv...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/test_colors.rs
crates/bevy_color/src/test_colors.rs
// Generated by gen_tests. Do not edit. #[cfg(test)] use crate::{Hsla, Hsva, Hwba, Laba, Lcha, LinearRgba, Oklaba, Oklcha, Srgba, Xyza}; #[cfg(test)] pub struct TestColor { pub name: &'static str, pub rgb: Srgba, pub linear_rgb: LinearRgba, pub hsl: Hsla, pub hsv: Hsva, pub hwb: Hwba, pub l...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/srgba.rs
crates/bevy_color/src/srgba.rs
use crate::{ color_difference::EuclideanDistance, impl_componentwise_vector_space, Alpha, ColorToComponents, ColorToPacked, Gray, LinearRgba, Luminance, Mix, StandardColor, Xyza, }; #[cfg(feature = "alloc")] use alloc::{format, string::String}; use bevy_math::{ops, Vec3, Vec4}; #[cfg(feature = "bevy_reflect")] ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/hsla.rs
crates/bevy_color/src/hsla.rs
use crate::{ Alpha, ColorToComponents, Gray, Hsva, Hue, Hwba, Lcha, LinearRgba, Luminance, Mix, Saturation, Srgba, StandardColor, Xyza, }; use bevy_math::{Vec3, Vec4}; #[cfg(feature = "bevy_reflect")] use bevy_reflect::prelude::*; /// Color in Hue-Saturation-Lightness (HSL) color space with alpha. /// Further ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/linear_rgba.rs
crates/bevy_color/src/linear_rgba.rs
use crate::{ color_difference::EuclideanDistance, impl_componentwise_vector_space, Alpha, ColorToComponents, ColorToPacked, Gray, Luminance, Mix, StandardColor, }; use bevy_math::{ops, Vec3, Vec4}; #[cfg(feature = "bevy_reflect")] use bevy_reflect::prelude::*; use bytemuck::{Pod, Zeroable}; /// Linear RGB colo...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/palettes/css.rs
crates/bevy_color/src/palettes/css.rs
//! [Extended colors from the CSS4 specification](https://en.wikipedia.org/wiki/Web_colors#Extended_colors), //! Also known as X11 colors, which were standardized in HTML 4.0. use crate::Srgba; // The CSS4 colors are a superset of the CSS1 colors, so we can just re-export the CSS1 colors. pub use crate::palettes::bas...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/palettes/mod.rs
crates/bevy_color/src/palettes/mod.rs
//! Color palettes consisting of collections of const colors. pub mod basic; pub mod css; pub mod tailwind;
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/palettes/basic.rs
crates/bevy_color/src/palettes/basic.rs
//! Named colors from the CSS1 specification, also known as //! [basic colors](https://en.wikipedia.org/wiki/Web_colors#Basic_colors). //! This is the same set of colors used in the //! [VGA graphics standard](https://en.wikipedia.org/wiki/Video_Graphics_Array). use crate::Srgba; /// <div style="background-color: #00...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/src/palettes/tailwind.rs
crates/bevy_color/src/palettes/tailwind.rs
//! Colors from [Tailwind CSS](https://tailwindcss.com/docs/customizing-colors) (MIT License). //! Grouped by hue with numeric lightness scale (50 is light, 950 is dark). //! //! Generated from Tailwind 3.4.1. // MIT License // // Copyright (c) Tailwind Labs, Inc. // // Permission is hereby granted, free of charge, to...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
true
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_color/crates/gen_tests/src/main.rs
crates/bevy_color/crates/gen_tests/src/main.rs
use palette::{Hsl, Hsv, Hwb, IntoColor, Lab, Lch, LinSrgb, Oklab, Oklch, Srgb, Xyz}; const TEST_COLORS: &[(f32, f32, f32, &str)] = &[ (0., 0., 0., "black"), (1., 1., 1., "white"), (1., 0., 0., "red"), (0., 1., 0., "green"), (0., 0., 1., "blue"), (1., 1., 0., "yellow"), (1., 0., 1., "magenta...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_app/src/app.rs
crates/bevy_app/src/app.rs
use crate::{ First, Main, MainSchedulePlugin, PlaceholderPlugin, Plugin, Plugins, PluginsState, SubApp, SubApps, }; use alloc::{ boxed::Box, string::{String, ToString}, vec::Vec, }; pub use bevy_derive::AppLabel; use bevy_ecs::{ component::RequiredComponentsError, error::{DefaultErrorHandler...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
true
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_app/src/sub_app.rs
crates/bevy_app/src/sub_app.rs
use crate::{App, AppLabel, InternedAppLabel, Plugin, Plugins, PluginsState}; use alloc::{boxed::Box, string::String, vec::Vec}; use bevy_ecs::{ message::MessageRegistry, prelude::*, schedule::{ InternedScheduleLabel, InternedSystemSet, ScheduleBuildSettings, ScheduleCleanupPolicy, ScheduleEr...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_app/src/lib.rs
crates/bevy_app/src/lib.rs
#![cfg_attr( any(docsrs, docsrs_dep), expect( internal_features, reason = "rustdoc_internals is needed for fake_variadic" ) )] #![cfg_attr(any(docsrs, docsrs_dep), feature(doc_cfg, rustdoc_internals))] #![forbid(unsafe_code)] #![doc( html_logo_url = "https://bevy.org/assets/icon.png", ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_app/src/plugin_group.rs
crates/bevy_app/src/plugin_group.rs
use crate::{App, AppError, Plugin}; use alloc::{ boxed::Box, string::{String, ToString}, vec::Vec, }; use bevy_platform::collections::hash_map::Entry; use bevy_utils::TypeIdMap; use core::any::TypeId; use log::{debug, warn}; /// A macro for generating a well-documented [`PluginGroup`] from a list of [`Plug...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_app/src/schedule_runner.rs
crates/bevy_app/src/schedule_runner.rs
use crate::{ app::{App, AppExit}, plugin::Plugin, PluginsState, }; use bevy_platform::time::Instant; use core::time::Duration; #[cfg(all(target_arch = "wasm32", feature = "web"))] use { alloc::{boxed::Box, rc::Rc}, core::cell::RefCell, wasm_bindgen::{prelude::*, JsCast}, }; /// Determines the ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_app/src/main_schedule.rs
crates/bevy_app/src/main_schedule.rs
use crate::{App, Plugin}; use alloc::{vec, vec::Vec}; use bevy_ecs::{ resource::Resource, schedule::{ ExecutorKind, InternedScheduleLabel, IntoScheduleConfigs, Schedule, ScheduleLabel, SystemSet, }, system::Local, world::{Mut, World}, }; /// The schedule that contains the app logic ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_app/src/terminal_ctrl_c_handler.rs
crates/bevy_app/src/terminal_ctrl_c_handler.rs
use core::sync::atomic::{AtomicBool, Ordering}; use bevy_ecs::message::MessageWriter; use crate::{App, AppExit, Plugin, Update}; pub use ctrlc; /// Indicates that all [`App`]'s should exit. static SHOULD_EXIT: AtomicBool = AtomicBool::new(false); /// Gracefully handles `Ctrl+C` by emitting a [`AppExit`] event. Thi...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_app/src/task_pool_plugin.rs
crates/bevy_app/src/task_pool_plugin.rs
use crate::{App, Plugin}; use alloc::string::ToString; use bevy_platform::sync::Arc; use bevy_tasks::{AsyncComputeTaskPool, ComputeTaskPool, IoTaskPool, TaskPoolBuilder}; use core::fmt::Debug; use log::trace; cfg_if::cfg_if! { if #[cfg(not(all(target_arch = "wasm32", feature = "web")))] { use {crate::Last...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_app/src/panic_handler.rs
crates/bevy_app/src/panic_handler.rs
//! This module provides panic handlers for [Bevy](https://bevy.org) //! apps, and automatically configures platform specifics (i.e. Wasm or Android). //! //! By default, the [`PanicHandlerPlugin`] from this crate is included in Bevy's `DefaultPlugins`. //! //! For more fine-tuned control over panic behavior, disable t...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_app/src/hotpatch.rs
crates/bevy_app/src/hotpatch.rs
//! Utilities for hotpatching code. extern crate alloc; use alloc::sync::Arc; #[cfg(feature = "reflect_auto_register")] use bevy_ecs::schedule::IntoScheduleConfigs; use bevy_ecs::{ change_detection::DetectChangesMut, message::MessageWriter, system::ResMut, HotPatchChanges, HotPatched, }; #[cfg(not(target_fami...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_app/src/propagate.rs
crates/bevy_app/src/propagate.rs
use alloc::vec::Vec; use core::marker::PhantomData; use crate::{App, Plugin}; #[cfg(feature = "bevy_reflect")] use bevy_ecs::reflect::ReflectComponent; use bevy_ecs::{ change_detection::DetectChangesMut, component::Component, entity::Entity, hierarchy::ChildOf, intern::Interned, lifecycle::Remo...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_app/src/plugin.rs
crates/bevy_app/src/plugin.rs
use crate::App; use core::any::Any; use downcast_rs::{impl_downcast, Downcast}; /// A collection of Bevy app logic and configuration. /// /// Plugins configure an [`App`]. When an [`App`] registers a plugin, /// the plugin's [`Plugin::build`] function is run. By default, a plugin /// can only be added once to an [`App...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_audio/src/lib.rs
crates/bevy_audio/src/lib.rs
#![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" )] //! Audio support for the game engine Bevy //! //! ```no_run //! # use bevy_ecs::prelude::*; //! # use bevy_audio::{AudioPlayer, Au...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_audio/src/pitch.rs
crates/bevy_audio/src/pitch.rs
use crate::Decodable; use bevy_asset::Asset; use bevy_reflect::TypePath; use rodio::{ source::{SineWave, TakeDuration}, Source, }; /// A source of sine wave sound #[derive(Asset, Debug, Clone, TypePath)] pub struct Pitch { /// Frequency at which sound will be played pub frequency: f32, /// Duration...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_audio/src/volume.rs
crates/bevy_audio/src/volume.rs
use bevy_ecs::prelude::*; use bevy_math::ops; use bevy_reflect::prelude::*; /// Use this [`Resource`] to control the global volume of all audio. /// /// Note: Changing [`GlobalVolume`] does not affect already playing audio. #[derive(Resource, Debug, Default, Clone, Copy, Reflect)] #[reflect(Resource, Debug, Default, C...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_audio/src/audio_output.rs
crates/bevy_audio/src/audio_output.rs
use crate::{ AudioPlayer, Decodable, DefaultSpatialScale, GlobalVolume, PlaybackMode, PlaybackSettings, SpatialAudioSink, SpatialListener, }; use bevy_asset::{Asset, Assets}; use bevy_ecs::{prelude::*, system::SystemParam}; use bevy_math::Vec3; use bevy_transform::prelude::GlobalTransform; use rodio::{OutputStr...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_audio/src/audio_source.rs
crates/bevy_audio/src/audio_source.rs
use alloc::sync::Arc; use bevy_asset::{io::Reader, Asset, AssetLoader, LoadContext}; use bevy_reflect::TypePath; use std::io::Cursor; /// A source of audio data #[derive(Asset, Debug, Clone, TypePath)] pub struct AudioSource { /// Raw data of the audio source. /// /// The data must be one of the file forma...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_audio/src/audio.rs
crates/bevy_audio/src/audio.rs
use crate::{AudioSource, Decodable, Volume}; use bevy_asset::{Asset, Handle}; use bevy_ecs::prelude::*; use bevy_math::Vec3; use bevy_reflect::prelude::*; use bevy_transform::components::Transform; /// The way Bevy manages the sound playback. #[derive(Debug, Clone, Copy, Reflect)] #[reflect(Clone)] pub enum PlaybackMo...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_audio/src/sinks.rs
crates/bevy_audio/src/sinks.rs
use crate::Volume; use bevy_ecs::component::Component; use bevy_math::Vec3; use bevy_transform::prelude::Transform; use core::time::Duration; pub use rodio::source::SeekError; use rodio::{Sink, SpatialSink}; /// Common interactions with an audio sink. pub trait AudioSinkPlayback { /// Gets the volume of the sound ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_dev_tools/src/picking_debug.rs
crates/bevy_dev_tools/src/picking_debug.rs
//! Text and on-screen debugging tools use bevy_app::prelude::*; use bevy_camera::visibility::Visibility; use bevy_camera::{Camera, RenderTarget}; use bevy_color::prelude::*; use bevy_ecs::prelude::*; use bevy_picking::backend::HitData; use bevy_picking::hover::HoverMap; use bevy_picking::pointer::{Location, PointerId...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_dev_tools/src/easy_screenshot.rs
crates/bevy_dev_tools/src/easy_screenshot.rs
#[cfg(feature = "screenrecording")] use core::time::Duration; use std::time::{SystemTime, UNIX_EPOCH}; use bevy_app::{App, Plugin, PostUpdate, Update}; use bevy_camera::Camera; use bevy_ecs::prelude::*; use bevy_input::{common_conditions::input_just_pressed, keyboard::KeyCode}; use bevy_math::{Quat, StableInterpolate,...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_dev_tools/src/fps_overlay.rs
crates/bevy_dev_tools/src/fps_overlay.rs
//! Module containing logic for FPS overlay. use bevy_app::{Plugin, Startup, Update}; use bevy_asset::Assets; use bevy_color::Color; use bevy_diagnostic::{DiagnosticsStore, FrameTimeDiagnosticsPlugin}; use bevy_ecs::{ component::Component, entity::Entity, query::{With, Without}, reflect::ReflectResourc...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_dev_tools/src/lib.rs
crates/bevy_dev_tools/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" )] //! This crate provides additional utilities for the [Bevy game engine](https://bevy.org), //! focused on improving developer exper...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_dev_tools/src/states.rs
crates/bevy_dev_tools/src/states.rs
//! Tools for debugging states. use bevy_ecs::message::MessageReader; use bevy_state::state::{StateTransitionEvent, States}; use tracing::info; /// Logs state transitions into console. /// /// This system is provided to make debugging easier by tracking state changes. pub fn log_transitions<S: States>(mut transitions...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_dev_tools/src/ci_testing/config.rs
crates/bevy_dev_tools/src/ci_testing/config.rs
use bevy_ecs::prelude::*; use bevy_math::{Quat, Vec3}; use serde::Deserialize; /// A configuration struct for automated CI testing. /// /// It gets used when the `bevy_ci_testing` feature is enabled to automatically /// exit a Bevy app when run through the CI. This is needed because otherwise /// Bevy apps would be st...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_dev_tools/src/ci_testing/systems.rs
crates/bevy_dev_tools/src/ci_testing/systems.rs
use crate::CameraMovement; use super::config::*; use bevy_app::AppExit; use bevy_camera::Camera; use bevy_ecs::prelude::*; use bevy_render::view::screenshot::{save_to_disk, Screenshot}; use tracing::{debug, info}; pub(crate) fn send_events(world: &mut World, mut current_frame: Local<u32>) { let mut config = world...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_dev_tools/src/ci_testing/mod.rs
crates/bevy_dev_tools/src/ci_testing/mod.rs
//! Utilities for testing in CI environments. mod config; mod systems; use crate::EasyCameraMovementPlugin; #[cfg(feature = "screenrecording")] use crate::EasyScreenRecordPlugin; pub use self::config::*; use bevy_app::prelude::*; use bevy_ecs::prelude::*; use bevy_render::view::screenshot::trigger_screenshots; use ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_dev_tools/src/frame_time_graph/mod.rs
crates/bevy_dev_tools/src/frame_time_graph/mod.rs
//! Module containing logic for the frame time graph use bevy_app::{Plugin, Update}; use bevy_asset::{load_internal_asset, uuid_handle, Asset, Assets, Handle}; use bevy_diagnostic::{DiagnosticsStore, FrameTimeDiagnosticsPlugin}; use bevy_ecs::system::{Res, ResMut}; use bevy_math::ops::log2; use bevy_reflect::TypePath;...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_image/src/ktx2.rs
crates/bevy_image/src/ktx2.rs
#[cfg(any(feature = "flate2", feature = "zstd_rust"))] use std::io::Read; #[cfg(feature = "basis-universal")] use basis_universal::{ DecodeFlags, LowLevelUastcTranscoder, SliceParametersUastc, TranscoderBlockFormat, }; use bevy_color::Srgba; use bevy_utils::default; #[cfg(any(feature = "flate2", feature = "zstd_ru...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
true
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_image/src/image_loader.rs
crates/bevy_image/src/image_loader.rs
use crate::{ image::{Image, ImageFormat, ImageType, TextureError}, TextureReinterpretationError, }; use bevy_asset::{io::Reader, AssetLoader, LoadContext, RenderAssetUsages}; use bevy_reflect::TypePath; use thiserror::Error; use super::{CompressedImageFormats, ImageSampler}; use serde::{Deserialize, Serialize}...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_image/src/lib.rs
crates/bevy_image/src/lib.rs
#![expect(missing_docs, reason = "Not all docs are written yet, see #3492.")] extern crate alloc; pub mod prelude { pub use crate::{ dynamic_texture_atlas_builder::DynamicTextureAtlasBuilder, texture_atlas::{TextureAtlas, TextureAtlasLayout, TextureAtlasSources}, BevyDefault as _, Image, I...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_image/src/image.rs
crates/bevy_image/src/image.rs
use crate::ImageLoader; #[cfg(feature = "basis-universal")] use super::basis::*; #[cfg(feature = "dds")] use super::dds::*; #[cfg(feature = "ktx2")] use super::ktx2::*; use bevy_app::{App, Plugin}; #[cfg(not(feature = "bevy_reflect"))] use bevy_reflect::TypePath; #[cfg(feature = "bevy_reflect")] use bevy_reflect::{std...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
true
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_image/src/serialized_image.rs
crates/bevy_image/src/serialized_image.rs
use crate::{Image, ImageSampler}; use bevy_asset::RenderAssetUsages; use core::fmt::Debug; use serde::{Deserialize, Serialize}; use wgpu_types::{ TextureAspect, TextureDataOrder, TextureDescriptor, TextureFormat, TextureUsages, TextureViewDescriptor, TextureViewDimension, }; /// A version of [`Image`] suitable...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_image/src/hdr_texture_loader.rs
crates/bevy_image/src/hdr_texture_loader.rs
use crate::{Image, TextureAccessError, TextureFormatPixelInfo}; use bevy_asset::RenderAssetUsages; use bevy_asset::{io::Reader, AssetLoader, LoadContext}; use bevy_reflect::TypePath; use image::DynamicImage; use serde::{Deserialize, Serialize}; use thiserror::Error; use wgpu_types::{Extent3d, TextureDimension, TextureF...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_image/src/basis.rs
crates/bevy_image/src/basis.rs
use basis_universal::{ BasisTextureType, DecodeFlags, TranscodeParameters, Transcoder, TranscoderTextureFormat, }; use wgpu_types::{AstcBlock, AstcChannel, Extent3d, TextureDimension, TextureFormat}; use super::{CompressedImageFormats, Image, TextureError}; pub fn basis_buffer_to_image( buffer: &[u8], sup...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_image/src/compressed_image_saver.rs
crates/bevy_image/src/compressed_image_saver.rs
use crate::{Image, ImageFormat, ImageFormatSetting, ImageLoader, ImageLoaderSettings}; use bevy_asset::saver::{AssetSaver, SavedAsset}; use bevy_reflect::TypePath; use futures_lite::AsyncWriteExt; use thiserror::Error; #[derive(TypePath)] pub struct CompressedImageSaver; #[non_exhaustive] #[derive(Debug, Error, Type...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_image/src/image_texture_conversion.rs
crates/bevy_image/src/image_texture_conversion.rs
use crate::{Image, TextureFormatPixelInfo}; use bevy_asset::RenderAssetUsages; use image::{DynamicImage, ImageBuffer}; use thiserror::Error; use wgpu_types::{Extent3d, TextureDimension, TextureFormat}; impl Image { /// Converts a [`DynamicImage`] to an [`Image`]. pub fn from_dynamic( dyn_img: DynamicIm...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_image/src/dds.rs
crates/bevy_image/src/dds.rs
//! [DirectDraw Surface](https://en.wikipedia.org/wiki/DirectDraw_Surface) functionality. use ddsfile::{Caps2, D3DFormat, Dds, DxgiFormat}; use std::io::Cursor; use wgpu_types::{ Extent3d, TextureDimension, TextureFormat, TextureViewDescriptor, TextureViewDimension, }; #[cfg(debug_assertions)] use {bevy_utils::onc...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_image/src/texture_atlas.rs
crates/bevy_image/src/texture_atlas.rs
use bevy_app::prelude::*; use bevy_asset::{Asset, AssetApp as _, AssetId, Assets, Handle}; use bevy_math::{Rect, URect, UVec2}; use bevy_platform::collections::HashMap; #[cfg(not(feature = "bevy_reflect"))] use bevy_reflect::TypePath; #[cfg(feature = "bevy_reflect")] use bevy_reflect::{std_traits::ReflectDefault, Refle...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_image/src/dynamic_texture_atlas_builder.rs
crates/bevy_image/src/dynamic_texture_atlas_builder.rs
use crate::{Image, TextureAccessError, TextureAtlasLayout, TextureFormatPixelInfo as _}; use bevy_asset::RenderAssetUsages; use bevy_math::{URect, UVec2}; use guillotiere::{size2, Allocation, AtlasAllocator}; use thiserror::Error; /// An error produced by [`DynamicTextureAtlasBuilder`] when trying to add a new /// tex...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_image/src/texture_atlas_builder.rs
crates/bevy_image/src/texture_atlas_builder.rs
use bevy_asset::{AssetId, RenderAssetUsages}; use bevy_math::{URect, UVec2}; use bevy_platform::collections::HashMap; use rectangle_pack::{ contains_smallest_box, pack_rects, volume_heuristic, GroupedRectsToPlace, PackedLocation, RectToInsert, TargetBin, }; use thiserror::Error; use tracing::{debug, error, warn...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_image/src/exr_texture_loader.rs
crates/bevy_image/src/exr_texture_loader.rs
use crate::{Image, TextureAccessError, TextureFormatPixelInfo}; use bevy_asset::{io::Reader, AssetLoader, LoadContext, RenderAssetUsages}; use bevy_reflect::TypePath; use image::ImageDecoder; use serde::{Deserialize, Serialize}; use thiserror::Error; use wgpu_types::{Extent3d, TextureDimension, TextureFormat}; /// Loa...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_anti_alias/src/lib.rs
crates/bevy_anti_alias/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" )] use bevy_app::Plugin; use contrast_adaptive_sharpening::CasPlugin; use fxaa::...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_anti_alias/src/fxaa/node.rs
crates/bevy_anti_alias/src/fxaa/node.rs
use std::sync::Mutex; use crate::fxaa::{CameraFxaaPipeline, Fxaa, FxaaPipeline}; use bevy_ecs::{prelude::*, query::QueryItem}; use bevy_render::{ diagnostic::RecordDiagnostics, render_graph::{NodeRunError, RenderGraphContext, ViewNode}, render_resource::{ BindGroup, BindGroupEntries, Operations, Pi...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_anti_alias/src/fxaa/mod.rs
crates/bevy_anti_alias/src/fxaa/mod.rs
use bevy_app::prelude::*; use bevy_asset::{embedded_asset, load_embedded_asset, AssetServer, Handle}; use bevy_camera::Camera; use bevy_core_pipeline::{ core_2d::graph::{Core2d, Node2d}, core_3d::graph::{Core3d, Node3d}, FullscreenShader, }; use bevy_ecs::prelude::*; use bevy_image::BevyDefault as _; use be...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_anti_alias/src/contrast_adaptive_sharpening/node.rs
crates/bevy_anti_alias/src/contrast_adaptive_sharpening/node.rs
use std::sync::Mutex; use crate::contrast_adaptive_sharpening::ViewCasPipeline; use bevy_ecs::prelude::*; use bevy_render::{ diagnostic::RecordDiagnostics, extract_component::{ComponentUniforms, DynamicUniformIndex}, render_graph::{Node, NodeRunError, RenderGraphContext}, render_resource::{ Bin...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_anti_alias/src/contrast_adaptive_sharpening/mod.rs
crates/bevy_anti_alias/src/contrast_adaptive_sharpening/mod.rs
use bevy_app::prelude::*; use bevy_asset::{embedded_asset, load_embedded_asset, AssetServer}; use bevy_camera::Camera; use bevy_core_pipeline::{ core_2d::graph::{Core2d, Node2d}, core_3d::graph::{Core3d, Node3d}, FullscreenShader, }; use bevy_ecs::{prelude::*, query::QueryItem}; use bevy_image::BevyDefault ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_anti_alias/src/taa/mod.rs
crates/bevy_anti_alias/src/taa/mod.rs
use bevy_app::{App, Plugin}; use bevy_asset::{embedded_asset, load_embedded_asset, AssetServer}; use bevy_camera::{Camera, Camera3d}; use bevy_core_pipeline::{ core_3d::graph::{Core3d, Node3d}, prepass::{DepthPrepass, MotionVectorPrepass, ViewPrepassTextures}, FullscreenShader, }; use bevy_diagnostic::Frame...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_anti_alias/src/dlss/node.rs
crates/bevy_anti_alias/src/dlss/node.rs
use super::{ prepare::DlssRenderContext, Dlss, DlssFeature, DlssRayReconstructionFeature, DlssSuperResolutionFeature, ViewDlssRayReconstructionTextures, }; use bevy_camera::MainPassResolutionOverride; use bevy_core_pipeline::prepass::ViewPrepassTextures; use bevy_ecs::{query::QueryItem, world::World}; use bevy_...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_anti_alias/src/dlss/mod.rs
crates/bevy_anti_alias/src/dlss/mod.rs
//! NVIDIA Deep Learning Super Sampling (DLSS). //! //! DLSS uses machine learning models to upscale and anti-alias images. //! //! Requires a NVIDIA RTX GPU, and the Windows/Linux Vulkan rendering backend. Does not work on other platforms. //! //! See https://github.com/bevyengine/dlss_wgpu for licensing requirements ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_anti_alias/src/dlss/extract.rs
crates/bevy_anti_alias/src/dlss/extract.rs
use super::{prepare::DlssRenderContext, Dlss, DlssFeature}; use bevy_camera::{Camera, MainPassResolutionOverride, Projection}; use bevy_ecs::{ query::{Has, With}, system::{Commands, Query, ResMut}, }; use bevy_render::{sync_world::RenderEntity, view::Hdr, MainWorld}; pub fn extract_dlss<F: DlssFeature>( mu...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_anti_alias/src/dlss/prepare.rs
crates/bevy_anti_alias/src/dlss/prepare.rs
use super::{Dlss, DlssFeature, DlssSdk}; use bevy_camera::{Camera3d, CameraMainTextureUsages, MainPassResolutionOverride}; use bevy_core_pipeline::prepass::{DepthPrepass, MotionVectorPrepass}; use bevy_diagnostic::FrameCount; use bevy_ecs::{ component::Component, entity::Entity, query::With, system::{Co...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_anti_alias/src/smaa/mod.rs
crates/bevy_anti_alias/src/smaa/mod.rs
//! Subpixel morphological antialiasing (SMAA). //! //! [SMAA] is a 2011 antialiasing technique that takes an aliased image and //! smooths out the *jaggies*, making edges smoother. It's been used in numerous //! games and has become a staple postprocessing technique. Compared to MSAA, //! SMAA has the advantage of com...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
true
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_time/src/virt.rs
crates/bevy_time/src/virt.rs
#[cfg(feature = "bevy_reflect")] use bevy_reflect::Reflect; use core::time::Duration; use log::debug; use crate::{real::Real, time::Time}; /// The virtual game clock representing game time. /// /// A specialization of the [`Time`] structure. **For method documentation, see /// [`Time<Virtual>#impl-Time<Virtual>`].** ...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_time/src/lib.rs
crates/bevy_time/src/lib.rs
#![doc = include_str!("../README.md")] #![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] #[cfg(feature = "std")] extern crate std; extern crate alloc; /// Common run co...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false
bevyengine/bevy
https://github.com/bevyengine/bevy/blob/51a6fedb06a022ab5d39e099413caa882e1b022d/crates/bevy_time/src/fixed.rs
crates/bevy_time/src/fixed.rs
use bevy_app::FixedMain; use bevy_ecs::world::World; #[cfg(feature = "bevy_reflect")] use bevy_reflect::Reflect; use core::time::Duration; use crate::{time::Time, virt::Virtual}; /// The fixed timestep game clock following virtual time. /// /// A specialization of the [`Time`] structure. **For method documentation, s...
rust
Apache-2.0
51a6fedb06a022ab5d39e099413caa882e1b022d
2026-01-04T15:31:59.438636Z
false