bevy/crates/bevy_core_pipeline/src
Greeble a1fd3a4c69
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-06 20:00:59 +00: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 04:06:42 +00:00
core_2d Improved Require Syntax (#18555) 2025-03-26 17:48:27 +00:00
core_3d Improved Require Syntax (#18555) 2025-03-26 17:48:27 +00: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 Add bevy_anti_aliasing (#18323) 2025-03-19 18:40:32 +00:00
fullscreen_vertex_shader Weak handle migration (#17695) 2025-02-05 22:44:20 +00:00
motion_blur Remove WebGL padding from MotionBlur (#18727) 2025-04-06 20:00:59 +00:00
oit reexport entity set collections in entity module (#18413) 2025-03-30 03:51:14 +00: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
tonemapping Remove Image::from_buffer name argument (only present in debug "dds" builds) (#18538) 2025-03-25 19:25:01 +00:00
upscaling Move hashbrown and foldhash out of bevy_utils (#17460) 2025-01-23 16:46:08 +00:00
lib.rs Add bevy_anti_aliasing (#18323) 2025-03-19 18:40:32 +00:00
msaa_writeback.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00