bevy/crates/bevy_render/src/camera
Sludge c0cebfef45
Make Viewport::default() return a 1x1 viewport (#14372)
# Objective

- The current default viewport crashes bevy due to a wgpu validation
error, this PR fixes that
- Fixes https://github.com/bevyengine/bevy/issues/14355

## Solution

- `Viewport::default()` now returns a 1x1 viewport

## Testing

- I modified the `3d_viewport_to_world` example to use
`Viewport::default()`, and it works as expected (only the top-left pixel
is rendered)
2024-07-20 14:18:12 +00:00
..
camera_driver_node.rs RenderGraph Labelization (#10644) 2024-01-31 14:51:19 +00:00
camera.rs Make Viewport::default() return a 1x1 viewport (#14372) 2024-07-20 14:18:12 +00:00
clear_color.rs Allow mix of hdr and non-hdr cameras to same render target (#13419) 2024-06-06 20:55:05 +00:00
manual_texture_view.rs bevy_reflect: FromReflect Ergonomics Implementation (#6056) 2023-06-29 01:31:34 +00:00
mod.rs Refactor App and SubApp internals for better separation (#9202) 2024-03-31 03:16:10 +00:00
projection.rs Normalise matrix naming (#13489) 2024-06-03 16:56:53 +00:00