bevy/crates/bevy_core_pipeline/src
Greeble 8f083307c3 Remove WebGL padding from MotionBlur (#18727)
## Objective

The `MotionBlur` component exposes renderer internals. Users shouldn't
have to deal with this.

```rust
MotionBlur {
    shutter_angle: 1.0,
    samples: 2,
    #[cfg(all(feature = "webgl2", target_arch = "wasm32", not(feature = "webgpu")))]
    _webgl2_padding: Default::default(),
},
```

## Solution

The renderer now uses a separate `MotionBlurUniform` struct for its
internals. `MotionBlur` no longer needs padding.

I was a bit unsure about the name `MotionBlurUniform`. Other modules use
a mix of `Uniform` and `Uniforms`.

## Testing

```
cargo run --example motion_blur
```

Tested on Win10/Nvidia across Vulkan, WebGL/Chrome, WebGPU/Chrome.
2025-04-09 00:21:41 +02:00
..
auto_exposure bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
blit Weak handle migration (#17695) 2025-02-05 22:44:20 +00:00
bloom Record bloom render commands in parallel (#18330) 2025-03-25 22:44:01 +01:00
contrast_adaptive_sharpening bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
core_2d Improved Require Syntax (#18555) 2025-03-26 19:07:30 +01:00
core_3d Improved Require Syntax (#18555) 2025-03-26 19:07:30 +01:00
deferred Implement occlusion culling for the deferred rendering pipeline. (#17934) 2025-02-20 12:54:27 +00:00
dof bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
experimental Generic system config (#17962) 2025-03-12 00:12:30 +00:00
fullscreen_vertex_shader Weak handle migration (#17695) 2025-02-05 22:44:20 +00:00
fxaa bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
motion_blur Remove WebGL padding from MotionBlur (#18727) 2025-04-09 00:21:41 +02:00
oit reexport entity set collections in entity module (#18413) 2025-03-30 10:24:00 +02:00
post_process bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
prepass bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
skybox bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
smaa bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
taa bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
tonemapping Allowed creating uninitialized images (for use as storage textures) (#17760) 2025-02-10 22:22:07 +00:00
upscaling Move hashbrown and foldhash out of bevy_utils (#17460) 2025-01-23 16:46:08 +00:00
lib.rs Implement experimental GPU two-phase occlusion culling for the standard 3D mesh pipeline. (#17413) 2025-01-27 05:02:46 +00:00
msaa_writeback.rs