Skip to content
Merged
Show file tree
Hide file tree
Changes from 71 commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
c75b2b4
Initial DLSS implementation
JMS55 Jun 29, 2025
af1b47c
Update example description
JMS55 Jun 29, 2025
eb8c77f
Rename variable
JMS55 Jun 29, 2025
951c3f9
Merge commit '1579256709dd64dcc4910b0bad5e81622d9ede0c' into dlss3
JMS55 Jul 6, 2025
742ebfa
Fix merge
JMS55 Jul 6, 2025
463c66d
Switch to git dep
JMS55 Jul 6, 2025
950f3e8
Merge branch 'main' into dlss3
JMS55 Jul 6, 2025
bf56980
Add release notes
JMS55 Jul 6, 2025
6b960b0
Modify release notes
JMS55 Jul 6, 2025
cf1a1f7
Add note about DlssSupported
JMS55 Jul 6, 2025
1b71463
Merge commit '5e3927ba489f597dd189f63286dc7985840db1b5' into dlss3
JMS55 Jul 8, 2025
10c96e8
Fix resolution override to work even if the camera lacks a viewport
JMS55 Jul 8, 2025
04f488b
Update release notes
JMS55 Jul 8, 2025
e2a9761
Docs
JMS55 Jul 8, 2025
fda09d1
Fix typo
JMS55 Jul 8, 2025
ab113c8
Fix
JMS55 Jul 8, 2025
5ab0093
Add missing import
JMS55 Jul 8, 2025
baa2668
Switch link to https://github.com/bevyengine/dlss_wgpu
JMS55 Jul 9, 2025
e2d8a9e
Fix another link
JMS55 Jul 9, 2025
8084745
Merge branch 'main' into dlss3
JMS55 Jul 9, 2025
e202226
Update release-content/release-notes/dlss.md
JMS55 Jul 9, 2025
1701bb1
Add blurb
JMS55 Jul 9, 2025
6f9114b
Merge branch 'main' into dlss3
JMS55 Jul 9, 2025
484310d
Move DLSS setup to ManageViews, so that prepare systems can later che…
JMS55 Jul 11, 2025
27f40ef
Merge commit '20dfae9a2d07038bda2921f82af50ded6151c3de' into dlss3
JMS55 Jul 11, 2025
d962a37
Release notes
JMS55 Jul 11, 2025
baa46ae
Have Solari account for MainPassResolutionOverride
JMS55 Jul 11, 2025
a6751bd
Misc
JMS55 Jul 15, 2025
b89387d
Merge commit '2bddbdfd7c920d1ea61245dcdb7ff1c155e6b03b' into dlss3
JMS55 Jul 15, 2025
b0303fe
Fix bug
JMS55 Jul 15, 2025
ded4b9f
Merge commit '04cc4bb55681fca705cd97ba3b441d24a0b3bad7' into dlss3
JMS55 Aug 2, 2025
497e85f
Fix rebase
JMS55 Aug 2, 2025
e33d1f0
More fixes
JMS55 Aug 2, 2025
3499283
Fix
JMS55 Aug 2, 2025
733017a
Use dlss_wgpu::create_instance
JMS55 Aug 2, 2025
e66ba3f
Testing ray reconstruction setup
JMS55 Aug 2, 2025
1bce5f5
Fix
JMS55 Aug 2, 2025
f707d2d
More fixes
JMS55 Aug 2, 2025
97989d1
Use main branch of dlss_wgpu
JMS55 Aug 2, 2025
4d7a107
Fix urls
JMS55 Aug 2, 2025
8c7df68
Fix solari copy under DLSS
JMS55 Aug 3, 2025
546244a
Merge commit '0b30b6ba588abfe5d862631603860e30c461f9d8' into dlss3
JMS55 Aug 3, 2025
da757a8
Trait-ify DLSS so that DLSS-RR can be supported easily
JMS55 Aug 3, 2025
40acb71
Fix render world cleanup
JMS55 Aug 3, 2025
24c6bce
Markdown lint
JMS55 Aug 3, 2025
f644683
Have bevy_anti_aliasing instead of bevy_internal enable bevy_render/dlss
JMS55 Aug 3, 2025
6225e61
Add main_pass_viewport for shaders
JMS55 Aug 3, 2025
975a10b
Use main_pass_viewport in SolariLighting
JMS55 Aug 3, 2025
4c87049
Merge commit 'b378e0ad9701ac1ad98763ee6106bba164e20907' into dlss3
JMS55 Aug 4, 2025
b6412b5
Merge commit '40b6940356e4ba1cf5ff3dc7a43f7261d660f242' into dlss3
JMS55 Aug 7, 2025
e2f6ec4
Fix rebase
JMS55 Aug 7, 2025
f205394
Add timing span
JMS55 Aug 7, 2025
160c386
Merge commit '777556453cacd3ab9c69df5eeb2ba7526cb0c0b8' into dlss3
JMS55 Aug 9, 2025
9cb2e1a
Don't enable DLSS for bevy_ci_testing
JMS55 Aug 9, 2025
890bc71
Switch back to bevy repo for dlss_wgpu
JMS55 Aug 9, 2025
73c35a7
Finish hooking up DLSS-RR
JMS55 Aug 9, 2025
b6aaea4
Use specular motion vectors as it's better than specular hit distance
JMS55 Aug 9, 2025
817cd14
Format
JMS55 Aug 9, 2025
e954fc9
Merge branch 'main' into dlss3
JMS55 Aug 9, 2025
622522c
Merge commit '3f14e3486063b8c2435e06130cf538135e30df0b' into dlss3
JMS55 Aug 10, 2025
d7cde18
Add seperate force_disable_dlss feature
JMS55 Aug 10, 2025
9209d3b
Build templated pages
JMS55 Aug 10, 2025
53e1c2f
Add note about UUID
JMS55 Aug 10, 2025
548b53d
Remove force_disable_dlss from public example
JMS55 Aug 10, 2025
45d6f3c
Merge branch 'main' into dlss3
JMS55 Aug 10, 2025
4eeab79
Revert "Remove force_disable_dlss from public example"
JMS55 Aug 10, 2025
73ff83f
Merge commit 'e742730e3540b67643389c80d35b4478851941a3' into dlss3
JMS55 Aug 11, 2025
a406188
Merge branch 'main' into dlss3
JMS55 Aug 11, 2025
2bf8837
Merge commit 'c0eb89eedcf0f451a26ea71e456532b8b8311a29' into dlss3
JMS55 Aug 12, 2025
7b3f14b
Fix merge
JMS55 Aug 12, 2025
3bfd551
Port to "raw vulkan init"
cart Aug 14, 2025
c349dcd
Address feedback
cart Aug 14, 2025
da202cc
Merge commit 'a76e0a20d9ea44f9f042e15a8624024f41e1f5dd' into dlss3
JMS55 Aug 15, 2025
bbf69b3
Use published dlss_wgpu
JMS55 Aug 15, 2025
9374266
Fix feature
JMS55 Aug 15, 2025
20b7d61
Credit cart
JMS55 Aug 15, 2025
4d6d6ad
Remove unused import
JMS55 Aug 15, 2025
11ad770
Fix some things
cart Aug 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,9 @@ spirv_shader_passthrough = ["bevy_internal/spirv_shader_passthrough"]
# Statically linked DXC shader compiler for DirectX 12
statically-linked-dxc = ["bevy_internal/statically-linked-dxc"]

# Forces the wgpu instance to be initialized using the raw Vulkan HAL, enabling additional configuration
raw_vulkan_init = ["bevy_internal/raw_vulkan_init"]

# Tracing support, saving a file in Chrome Tracing format
trace_chrome = ["trace", "bevy_internal/trace_chrome"]

Expand Down Expand Up @@ -472,6 +475,12 @@ tonemapping_luts = ["bevy_internal/tonemapping_luts", "ktx2", "bevy_image/zstd"]
# Include SMAA Look Up Tables KTX2 Files
smaa_luts = ["bevy_internal/smaa_luts"]

# NVIDIA Deep Learning Super Sampling
dlss = ["bevy_internal/dlss"]

# Forcibly disable DLSS so that cargo build --all-features works without the DLSS SDK being installed. Not meant for users.
force_disable_dlss = ["bevy_internal/force_disable_dlss"]

# Enable AccessKit on Unix backends (currently only works with experimental screen readers and forks.)
accesskit_unix = ["bevy_internal/accesskit_unix"]

Expand Down Expand Up @@ -1027,7 +1036,7 @@ doc-scrape-examples = true

[package.metadata.example.anti_aliasing]
name = "Anti-aliasing"
description = "Compares different anti-aliasing methods"
description = "Compares different anti-aliasing techniques supported by Bevy"
category = "3D Rendering"
# TAA not supported by WebGL
wasm = false
Expand Down
4 changes: 4 additions & 0 deletions crates/bevy_anti_aliasing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ trace = []
webgl = []
webgpu = []
smaa_luts = ["bevy_image/ktx2", "bevy_image/zstd"]
dlss = ["dep:dlss_wgpu", "dep:uuid", "bevy_render/raw_vulkan_init"]
force_disable_dlss = ["dlss_wgpu?/mock"]

[dependencies]
# bevy
Expand All @@ -32,6 +34,8 @@ bevy_diagnostic = { path = "../bevy_diagnostic", version = "0.17.0-dev" }

# other
tracing = { version = "0.1", default-features = false, features = ["std"] }
dlss_wgpu = { git = "https://github.com/bevyengine/dlss_wgpu", optional = true }
uuid = { version = "1", optional = true }

[lints]
workspace = true
Expand Down
29 changes: 29 additions & 0 deletions crates/bevy_anti_aliasing/src/dlss/extract.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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>(
mut commands: Commands,
mut main_world: ResMut<MainWorld>,
cleanup_query: Query<Has<Dlss<F>>>,
) {
let mut cameras_3d = main_world
.query_filtered::<(RenderEntity, &Camera, &Projection, Option<&mut Dlss<F>>), With<Hdr>>();

for (entity, camera, camera_projection, mut dlss) in cameras_3d.iter_mut(&mut main_world) {
let has_perspective_projection = matches!(camera_projection, Projection::Perspective(_));
let mut entity_commands = commands
.get_entity(entity)
.expect("Camera entity wasn't synced.");
if dlss.is_some() && camera.is_active && has_perspective_projection {
entity_commands.insert(dlss.as_deref().unwrap().clone());
dlss.as_mut().unwrap().reset = false;
} else if cleanup_query.get(entity) == Ok(true) {
entity_commands.remove::<(Dlss<F>, DlssRenderContext<F>, MainPassResolutionOverride)>();
}
}
}
Loading