Repository navigation
Unify upscaling across DLSS, FSR, and MetalFX and upgrade to .NET 11 - #41
Merged
Merged
Conversation
Upgrade package versions in `Directory.Packages.props`: - Metal.NET 2.4.0 → 2.5.0 - Microsoft.WindowsAppSDK 2.5.1 → 2.6.4 - SkiaSharp 4.153.1 → 4.154.0
Introduce `BeginExternalCommands` and `EndExternalCommands` with synchronization barriers and backend hooks for DLSS dispatches. Update D3D12, Vulkan, and Metal command buffers to manage descriptor heaps and compute encoding around external commands, remove redundant pipeline heap binding, and expose the native Metal 4 command-buffer object.
- Add `Zenith.NET.Extensions.Reconstruction` to the solution. - Target `$(StandardTargetFramework)` and reference `Zenith.NET`. - Add `Metal.NET` and `NGX.NET` dependencies. - Configure packaging and disable `IDE0130`.
Remove the IDE0130 suppression from the reconstruction project.
Upgrade the Metal.NET package version in Directory.Packages.props.
Define a shared MetalFX-based API for temporal upscaling, denoising, and frame generation, including cross-backend contracts, DLSS and MetalFX mappings, lifecycle requirements, and usage examples.
修订重建扩展的公共 API、DLSS 参数映射与 MetalFX 27 行为,明确标志、运动矢量和历史管理约定,并记录待验证事项。
Upgrade the centrally managed Metal.NET package dependency to version 2.7.0.
…ith DenoisingUpscalingPass class implementation
- Implemented DLSSFrameGenerator and DLSSTemporalUpscaler for DLSS-based frame generation and temporal upscaling. - Created DenoisingUpscaler and its associated classes for denoising operations. - Introduced FrameGenerator and TemporalUpscaler base classes for common functionality. - Developed MetalFXContext and related classes for Metal-based reconstruction, including MetalFXFrameGenerator and MetalFXTemporalUpscaler. - Added support for various pixel formats and reconstruction flags. - Implemented utility extensions for graphics context and command buffer handling. - Defined structures for denoising and temporal upscaling arguments and descriptions. - Established a ReconstructionBackend to manage different graphics APIs.
- Changed DLSSFeature to use DLSSBackend instead of DLSSContext. - Updated DLSSFrameGenerator and DLSSTemporalUpscaler to utilize DLSSBackend. - Introduced MetalFXBackend and MetalFXCapabilities for Metal integration. - Created new enums for ReconstructionFlags and UpscalerMode. - Added structs for DenoisingUpscalerArgs, DenoisingUpscalerDesc, FrameGeneratorArgs, FrameGeneratorDesc, TemporalUpscalerArgs, TemporalUpscalerDesc, and UpscalerInputSize. - Refactored ReconstructionBackend to be abstract and removed context-specific implementations. - Organized code structure by creating Enums and Structs directories. - Updated Extensions.cs to handle backend initialization based on GraphicsApi. - Enhanced documentation to reflect architectural changes and capabilities.
Remove D24UNormS8UInt from the pixel-format enum, backend and DLSS mappings, and depth/stencil helpers. Update depth, stencil, and block layout metadata so D24_UNORM_S8_UINT is no longer treated as supported.
Remove the standalone DLSS and Upscaling projects and package documentation, consolidating reconstruction functionality under `Zenith.NET.Extensions.Reconstruction`. Delete spatial and temporal upscalers, SGSR1/SGSR2 passes, platform shader sources and generated binaries, shader tooling, packaging configuration, and related license files.
Update documentation and shader comments to describe the Reconstruction extension generically, removing explicit DLSS, MetalFX, and NVIDIA DLSS-RR references. Update the CornellBox sample description accordingly.
Add A8, HDR, 10-bit, BC1–BC3, and EAC formats with backend mappings, block layouts, and size calculations. Remove the obsolete reconstruction design document.
Remove unsupported BC, EAC, and ASTC mappings from the DirectX and Metal format-conversion tables. Retain supported BC1, BC4, Metal EAC R11, and ASTC 4x4 mappings, allowing removed formats to fall back to the default value.
Bump the centrally managed Avalonia package version from 12.1.4 to 12.1.5.
- Implemented DLSSTemporalUpscaler for temporal upscaling using DLSS. - Created DenoisingUpscaler and its associated classes for denoising operations. - Added FrameGenerator and related classes for frame generation. - Developed MetalFX capabilities and upscalers for Metal-based rendering. - Introduced various supporting structures and enums for upscaling configurations. - Established a ReconstructionBackend for managing different upscaling methods. - Added project file for Zenith.NET.Extensions.Upscaling with necessary dependencies.
- Changed namespace from Zenith.NET.Extensions.Reconstruction to Zenith.NET.Extensions.Upscaling across multiple files. - Renamed ReconstructionCapabilities to UpscalingCapabilities and updated related classes and methods. - Introduced UpscalingBackend and UpscalingBackendCapabilities to manage upscaling providers. - Updated DLSS and MetalFX classes to align with new upscaling architecture. - Modified Renderer to utilize new Upscaling capabilities and providers. - Adjusted input flags and descriptors to reflect the new upscaling context. - Ensured compatibility with existing functionality while enhancing structure and readability.
…lity classes, and restructure provider class for improved architecture
…ods for improved clarity and consistency
- Removed the abstract UpscalingProvider class to streamline the upscaling architecture. - Introduced DLSSBackend for DirectX12 and Vulkan, encapsulating DLSS functionality. - Added Vulkan and DirectX12 specific implementations for DLSS features, including creation and evaluation methods. - Implemented MetalFXBackend for Metal API support, including capabilities checks and input size calculations. - Created extension methods for NGXResult and Vulkan error handling to improve debugging. - Added UpscalingHelper for perspective matrix decomposition utility. - Established a structured approach for managing upscaling resources across different graphics APIs.
- Implemented SkiaBackend for rendering with SkiaSharp, supporting DirectX12, Metal, and Vulkan graphics APIs. - Introduced UpscalingBackend to manage various upscaling APIs including DLSS and MetalFX, with capabilities for temporal upscaling, denoising, and frame generation. - Added interfaces and methods for creating and managing upscaling resources.
…idges for improved clarity and consistency
… improved clarity and consistency
- Deleted SurfacePass.cs, WaterPass.cs, Program.cs, launchSettings.json, Renderer.cs, Simulation.cs - Updated README.md to remove FluidTank project reference
Bump the centralized SkiaSharp package version.
- Introduced triangular dithering in the ToneMappingFS and AntialiasingFS shaders to improve visual quality. - Adjusted shadow rendering parameters, including increased radius for lantern shadows and refined depth threshold calculations. - Updated GIProbePass to include probe offsets for better global illumination accuracy. - Modified LightingPass to accommodate new probe offsets and adjusted texture usage flags. - Refined shadow filtering logic in ShadowPass, removing unnecessary warmup filter logic and optimizing transitions. - Enhanced CornellBox geometry for improved visual fidelity with adjusted dimensions and materials.
Reflow DDGI sampling, water subsurface, and surface lighting expressions in Slang shaders for improved readability.
…LSS and FSR implementations
…ss DLSS, FSR, and MetalFX implementations
…nagement and enhance frame generation handling
- Implemented ReflectionPass class to handle reflection calculations in the CornellBox experiment. - Introduced compute pipelines for tracing and filtering reflections using shaders. - Managed resources for reflection textures and constants, including resizing and destruction logic. - Added functionality to record reflection data during rendering, including handling jitter and camera position. - Created a structured layout for reflection constants to optimize memory usage.
…rename metadata variables and enhance frame context handling
Filter known frame-generation backend warnings and allow startup without hardware ray tracing support.
Add comments explaining the Vulkan FSR and Skia D3D12 issues that cause validation message suppressions.
…om history support - Introduced `EncodeMaterialId` and `DecodeMaterialId` functions for consistent material ID handling across shaders. - Updated `EvaluateMaterialEmission` to utilize pixel footprint and view direction for improved emission calculations. - Modified `OutputPass` to incorporate bloom history and motion vector sampling for enhanced visual fidelity. - Adjusted `ShadowPass` to include albedo and material data, improving shadow accuracy for water surfaces. - Refactored `Renderer` to pass `gBufferPass` to `OutputPass`, ensuring correct data flow in the rendering pipeline.
…arity - Consolidated view projection matrices in FrameContext to reduce redundancy. - Introduced ClipJitter and PixelFootprintScale properties for enhanced rendering control. - Updated GBufferPass to utilize new FrameContext properties, removing unnecessary matrix calculations. - Adjusted MaterialId enum for better clarity and organization of material identifiers. - Streamlined GIProbePass to simplify constant creation and dispatch logic. - Optimized LightingPass by removing unused inverse matrices and adjusting field offsets. - Enhanced OutputPass to utilize new motion vector handling. - Refined ReflectionPass and ShadowPass to improve filtering logic and reduce redundancy.
…curacy and performance
- Renamed 'LanternCore' to 'CrystalUplight' in MaterialId enum and added 'CofferLight'. - Adjusted NightLightIntensity from 0.68f to 0.48f for improved scene ambiance. - Updated key light parameters in the Night atmosphere preset for enhanced lighting realism: - KeyLightDirection modified for better alignment. - KeyLightIrradiance, SkyZenithColor, and SkyHorizonColor values adjusted for improved visual quality. - Increased Exposure from 1.15f to 1.16f for better brightness control.
- Improved tone mapping in Output.slang by adding bloom effect calculations with offsets for better visual quality. - Updated reflection handling in Reflection.slang to exclude water material from roughness checks, enhancing realism in reflections. - Adjusted roughness threshold in Shading.slang for more accurate material representation and refined solar disk inclusion logic for sky rendering. - Added new caustic evaluation functions in Shading.slang to simulate light behavior through glass and crystal materials, enhancing visual fidelity. - Modified CornellBoxGeometry.cs to refine mesh details, including torus and sphere parameters, and added new gimbal axle and faceted cone structures for improved aesthetics. - Updated GBufferPass.cs to change pixel formats for albedo and material targets, enhancing rendering quality and depth precision.
- GBufferPass: Simplified static depth validation logic. - GIProbePass: Removed redundant 'scene' parameter from CreateConstants calls for consistency. - LightingPass: Reformatted method parameters for better readability. - ReflectionPass: Introduced DispatchFilterStep method to streamline texture transition and dispatch logic. - ShadowPass: Similar refactoring as ReflectionPass to enhance code maintainability.
- Introduced Shadow.slang for shadow tracing and filtering, implementing ambient occlusion and night light visibility. - Added shader entries for shadow pass in shaders.json, linking to the new shadow shaders.
There was a problem hiding this comment.
🟡 Changes recommended
Failed swapchain acquisition can allow rendering or presentation of an unowned image, while motion-vector configuration and Metal debug-group handling also remain incorrect.
3 open issues
What changed in this PR
This PR consolidates vendor-specific upscaling into Zenith.NET’s shared graphics API, modernizes its rendering backends, and moves the codebase to .NET 11 and package version 1.2.0.
Changes:
- Unifies super resolution, ray reconstruction, and frame generation across DLSS, FSR, and MetalFX.
- Reworks CornellBox, removes FluidTank and legacy upscalers, and updates shader generation and UI integration.
- Refines resource lifetimes, native-command interoperability, formats, and shader APIs, with corresponding dependency and documentation updates.
| File | Description |
|---|---|
Zenith.NET.slnx |
Updates projects and adds shader tooling. |
sources/Zenith.NET/ZenithHelper.cs |
Updates format sizes and block layouts. |
sources/Zenith.NET/Structs/ThreadGroup.cs |
Renames thread-group metadata. |
sources/Zenith.NET/Structs/ShaderDesc.cs |
Renames and reorders shader fields. |
sources/Zenith.NET/Structs/RayTracingTriangleGeometry.cs |
Removes configurable vertex format. |
sources/Zenith.NET/Pipeline.cs |
Declares the pipeline hierarchy closed. |
sources/Zenith.NET/GraphicsContext.cs |
Disposes capabilities with the context. |
sources/Zenith.NET/Enums/PixelFormat.cs |
Revises supported pixel formats. |
sources/Zenith.NET/Enums/NativeObjectType.cs |
Exposes Metal 4 command buffers. |
sources/Zenith.NET/Enums/BarrierStages.cs |
Adds mesh and attachment stages. |
sources/Zenith.NET/CommandBuffer.cs |
Adds external-command boundaries. |
sources/Zenith.NET/Capabilities.cs |
Adopts the graphics-resource lifecycle. |
sources/Zenith.NET.Vulkan/VKTopLevelAccelerationStructure.cs |
Uses device-address resource handles. |
sources/Zenith.NET.Vulkan/VKSwapChain.cs |
Corrects extent clamping and acquisition waits. |
sources/Zenith.NET.Vulkan/VKShader.cs |
Uses renamed shader fields. |
sources/Zenith.NET.Vulkan/VKGraphicsContext.cs |
Enables available compute-derivative support. |
sources/Zenith.NET.Vulkan/VKDescriptorHeap.cs |
Removes acceleration-structure descriptor allocation. |
sources/Zenith.NET.Vulkan/VKCapabilities.cs |
Implements graphics-resource lifecycle methods. |
sources/Zenith.NET.Vulkan/VKBottomLevelAccelerationStructure.cs |
Fixes vertex format and non-indexed geometry handling. |
sources/Zenith.NET.Vulkan/KhrComputeShaderDerivatives.cs |
Defines the compute-derivative extension name. |
sources/Zenith.NET.Metal/NSAutorelease.cs |
Adds focused retained-object helpers. |
sources/Zenith.NET.Metal/MTLTopLevelAccelerationStructure.cs |
Updates descriptor ownership and encoder access. |
sources/Zenith.NET.Metal/MTLTimeline.cs |
Explicitly manages label strings. |
sources/Zenith.NET.Metal/MTLTextureView.cs |
Updates format mapping and labels. |
sources/Zenith.NET.Metal/MTLTexture.cs |
Disposes descriptors and label strings. |
sources/Zenith.NET.Metal/MTLSwapChain.cs |
Updates layer and drawable ownership. |
sources/Zenith.NET.Metal/MTLShader.cs |
Updates shader fields and temporary-resource disposal. |
sources/Zenith.NET.Metal/MTLSampler.cs |
Disposes sampler descriptors. |
sources/Zenith.NET.Metal/MTLQueryHeap.cs |
Disposes descriptors and label strings. |
sources/Zenith.NET.Metal/MTLHeap.cs |
Manages temporary descriptors explicitly. |
sources/Zenith.NET.Metal/MTLGraphicsContext.cs |
Updates initialization and native-object handling. |
sources/Zenith.NET.Metal/MTLComputePipeline.cs |
Updates thread-group metadata and descriptor disposal. |
sources/Zenith.NET.Metal/MTLCapabilities.cs |
Implements graphics-resource lifecycle methods. |
sources/Zenith.NET.Metal/MTLBuffer.cs |
Explicitly manages label strings. |
sources/Zenith.NET.Metal/MTLBottomLevelAccelerationStructure.cs |
Updates geometry format and descriptor ownership. |
sources/Zenith.NET.Metal/Extensions.cs |
Stops disposing borrowed error objects. |
sources/Zenith.NET.DirectX12/DXTextureView.cs |
Removes the retired depth-format mapping. |
sources/Zenith.NET.DirectX12/DXShader.cs |
Uses the renamed bytecode field. |
sources/Zenith.NET.DirectX12/DXCommandBuffer.cs |
Binds descriptor heaps at recording and interop boundaries. |
sources/Zenith.NET.DirectX12/DXCapabilities.cs |
Implements graphics-resource lifecycle methods. |
sources/Zenith.NET.DirectX12/DXBottomLevelAccelerationStructure.cs |
Fixes triangle positions to float3. |
sources/Zenith.NET.Compiler/ZenithCompiler.cs |
Adds macros and descriptor-handle preamble support. |
sources/NuGet.Packaging.props |
Bumps package version to 1.2.0. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/Zenith.NET.Extensions.Upscaling.csproj |
Adds vendor SDK dependencies. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/UpscalingQuality.cs |
Exposes shared quality presets. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/UpscalingBridge.cs |
Selects vendors and creates shared features. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/ThirdParty/SGSR-LICENSE.txt |
Removes the retired SGSR notice. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/TemporalUpscalerMode.cs |
Removes legacy temporal modes. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/TemporalUpscalerDesc.cs |
Removes the legacy temporal descriptor. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/TemporalUpscalerArgs.cs |
Removes legacy temporal inputs. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/SuperResolutionDesc.cs |
Adds shared sizing and quality presets. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/SuperResolutionArgs.cs |
Defines shared super-resolution inputs. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/SuperResolution.cs |
Manages output and feature rebuilding. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/SpatialUpscalerDesc.cs |
Removes the legacy spatial descriptor. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/SpatialUpscalerArgs.cs |
Removes legacy spatial inputs. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/SpatialUpscaler.cs |
Removes the SGSR spatial wrapper. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/Shaders/shaders.json |
Defines reconstruction shader generation. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/RayReconstructionDesc.cs |
Adds shared reconstruction presets. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/RayReconstructionArgs.cs |
Defines reconstruction textures and temporal inputs. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/RayReconstruction.cs |
Manages reconstruction output and rebuilding. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/Passes/Sgsr1Pass.cs |
Removes the SGSR compute pass. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/MetalFX/MetalFXVendor.cs |
Detects and creates MetalFX features. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/MetalFX/MetalFXSuperResolution.cs |
Implements MetalFX temporal upscaling. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/MetalFX/MetalFXRayReconstruction.cs |
Implements MetalFX denoising and upscaling. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/MetalFX/MetalFXFrameGeneration.cs |
Implements MetalFX frame interpolation. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/MetalFX/Extensions.cs |
Wraps native Metal objects for interop. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/FSR/FSRSuperResolution.cs |
Implements FSR upscaling dispatch. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/FSR/FSRFrameGeneration.cs |
Implements FSR frame-generation dispatch. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/FSR/Extensions.cs |
Converts native resources for FSR. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/FrameGenerationSwapChainDesc.cs |
Defines presentation configuration. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/FrameGenerationSwapChainArgs.cs |
Defines frame-generated presentation inputs. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/FrameGenerationDesc.cs |
Defines render and output dimensions. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/FrameGenerationArgs.cs |
Defines shared interpolation inputs. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/FrameGeneration.cs |
Manages interpolation output and rebuilding. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/Extensions.cs |
Exposes initialization, capabilities, and factories. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/DLSS/Extensions.cs |
Provides DLSS native-object access helpers. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/DLSS/DLSSSuperResolution.cs |
Implements unified DLSS super resolution. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/DLSS/DLSSRayReconstruction.cs |
Implements unified DLSS ray reconstruction. |
sources/Extensions/Zenith.NET.Extensions.Upscaling/DLSS/DLSSFrameGeneration.cs |
Implements unified DLSS frame generation. |
sources/Extensions/Zenith.NET.Extensions.Skia/SkiaTexture.cs |
Adopts graphics-resource lifecycle and naming. |
sources/Extensions/Zenith.NET.Extensions.Skia/SkiaFormats.cs |
Expands color-format mappings. |
sources/Extensions/Zenith.NET.Extensions.Skia/SkiaBridge.cs |
Renames the internal backend to bridge. |
sources/Extensions/Zenith.NET.Extensions.Skia/Extensions.cs |
Updates bridge registration and factories. |
sources/Extensions/Zenith.NET.Extensions.ImGui/Zenith.NET.Extensions.ImGui.csproj |
Removes the shader-directory compilation exclusion. |
sources/Extensions/Zenith.NET.Extensions.ImGui/Shaders/shaders.json |
Defines legacy and linear shader variants. |
sources/Extensions/Zenith.NET.Extensions.ImGui/Shaders/ImGui.slang |
Renames entry points and enables macro variants. |
sources/Extensions/Zenith.NET.Extensions.ImGui/ImGuiInputArgs.cs |
Normalizes the final newline. |
sources/Extensions/Zenith.NET.Extensions.ImGui/ImGuiInput.cs |
Normalizes the final newline. |
sources/Extensions/Zenith.NET.Extensions.ImGui/ImGuiBridge.Graphics.cs |
Updates generated shaders and clips scaled scissors. |
sources/Extensions/Zenith.NET.Extensions.ImGui/ImGuiBridge.cs |
Accepts DPI scale and clipboard properties. |
sources/Extensions/Zenith.NET.Extensions.ImGui/IImGuiPlatform.cs |
Replaces clipboard methods with a property. |
sources/Extensions/Zenith.NET.Extensions.ImGui/Extensions.cs |
Updates bridge access and frame parameters. |
sources/Extensions/Zenith.NET.Extensions.ImageSharp/Extensions.cs |
Reformats mip-dimension arguments. |
sources/Extensions/Zenith.NET.Extensions.DLSS/Zenith.NET.Extensions.DLSS.csproj |
Removes the standalone DLSS project. |
sources/Extensions/Zenith.NET.Extensions.DLSS/Structs/DLSSSuperResolutionDesc.cs |
Removes the vendor-specific descriptor. |
sources/Extensions/Zenith.NET.Extensions.DLSS/Structs/DLSSSuperResolutionArgs.cs |
Removes vendor-specific dispatch inputs. |
sources/Extensions/Zenith.NET.Extensions.DLSS/Structs/DLSSRayReconstructionDesc.cs |
Removes the vendor-specific reconstruction descriptor. |
sources/Extensions/Zenith.NET.Extensions.DLSS/Structs/DLSSRayReconstructionArgs.cs |
Removes vendor-specific reconstruction inputs. |
sources/Extensions/Zenith.NET.Extensions.DLSS/Structs/DLSSOptimalSettings.cs |
Removes vendor-specific optimal settings. |
sources/Extensions/Zenith.NET.Extensions.DLSS/Structs/DLSSFrameGenerationDesc.cs |
Removes the vendor-specific generation descriptor. |
sources/Extensions/Zenith.NET.Extensions.DLSS/Structs/DLSSFrameGenerationArgs.cs |
Removes vendor-specific generation inputs. |
sources/Extensions/Zenith.NET.Extensions.DLSS/Extensions.cs |
Removes standalone DLSS initialization and factories. |
sources/Extensions/Zenith.NET.Extensions.DLSS/Enums/DLSSSuperResolutionFlags.cs |
Removes public DLSS upscaling flags. |
sources/Extensions/Zenith.NET.Extensions.DLSS/Enums/DLSSRayReconstructionFlags.cs |
Removes public DLSS reconstruction flags. |
sources/Extensions/Zenith.NET.Extensions.DLSS/Enums/DLSSMode.cs |
Replaces vendor modes with shared quality presets. |
sources/Extensions/Zenith.NET.Extensions.DLSS/DLSSSuperResolution.cs |
Removes the standalone feature wrapper. |
sources/Extensions/Zenith.NET.Extensions.DLSS/DLSSRayReconstruction.cs |
Removes the standalone reconstruction wrapper. |
sources/Extensions/Zenith.NET.Extensions.DLSS/DLSSFrameGeneration.cs |
Removes the standalone generation wrapper. |
sources/Extensions/Zenith.NET.Extensions.DLSS/DLSSFeature.cs |
Removes the old shared DLSS base class. |
sources/Extensions/Zenith.NET.Extensions.DLSS/DLSSCapabilities.cs |
Removes the standalone capability API. |
sources/Experiments/README.md |
Updates experiments and SDK guidance. |
sources/Experiments/InkCanvas/Drawing/Toolbar.cs |
Uses application logical dimensions. |
sources/Experiments/InkCanvas/Drawing/CanvasPresenter.cs |
Simplifies texture recreation and presentation. |
sources/Experiments/InkCanvas/Drawing/Canvas.cs |
Moves DPI scaling into canvas drawing. |
sources/Experiments/FluidTank/Renderer.cs |
Removes the FluidTank renderer. |
sources/Experiments/FluidTank/Properties/launchSettings.json |
Removes FluidTank launch profiles. |
sources/Experiments/FluidTank/Program.cs |
Removes the FluidTank entry point. |
sources/Experiments/FluidTank/Passes/ParticlePass.cs |
Removes particle rendering. |
sources/Experiments/FluidTank/Passes/GlassPass.cs |
Removes glass rendering. |
sources/Experiments/FluidTank/Models/SceneResources.cs |
Removes FluidTank scene resources. |
sources/Experiments/FluidTank/Models/SceneMaterial.cs |
Removes FluidTank material data. |
sources/Experiments/FluidTank/Models/FluidViewMode.cs |
Removes fluid display modes. |
sources/Experiments/FluidTank/Helpers/ImGuiHelper.cs |
Removes FluidTank UI helpers. |
sources/Experiments/FluidTank/Helpers/CocoaHelper.cs |
Removes FluidTank Cocoa helpers. |
sources/Experiments/FluidTank/FluidTank.csproj |
Removes the experiment project. |
sources/Experiments/FluidTank/Assets/Shaders/SurfaceCommon.slang |
Removes fluid surface helpers. |
sources/Experiments/FluidTank/Assets/Shaders/SceneBackground.slang |
Removes background rendering shaders. |
sources/Experiments/FluidTank/Assets/Shaders/Scene.slang |
Removes FluidTank scene shaders. |
sources/Experiments/FluidTank/Assets/Shaders/Particles.slang |
Removes particle shaders. |
sources/Experiments/FluidTank/Assets/Shaders/Output.slang |
Removes FluidTank output shaders. |
sources/Experiments/FluidTank/Assets/Shaders/Glass.slang |
Removes glass shaders. |
sources/Experiments/FluidTank/Assets/Shaders/FluidReflection.slang |
Removes fluid reflection tracing. |
sources/Experiments/FluidTank/Assets/Shaders/FluidCommon.slang |
Removes shared fluid shader definitions. |
sources/Experiments/CornellBox/Shaders/shaders.json |
Defines generated shaders for the new render passes. |
sources/Experiments/CornellBox/Passes/UpscalingPass.cs |
Integrates shared super resolution. |
sources/Experiments/CornellBox/Passes/DenoisingUpscalingPass.cs |
Removes the old DLSS-only pass. |
sources/Experiments/CornellBox/Passes/CompositePass.cs |
Removes the old frame-composition pass. |
sources/Experiments/CornellBox/Models/Vertex.cs |
Removes the previous vertex model. |
sources/Experiments/CornellBox/Models/SurfacePattern.cs |
Removes the previous pattern enum. |
sources/Experiments/CornellBox/Models/SceneVertex.cs |
Moves the scene vertex model into CornellBox. |
sources/Experiments/CornellBox/Models/SceneMaterial.cs |
Adds richer materials and factory methods. |
sources/Experiments/CornellBox/Models/RenderingTechnology.cs |
Removes explicit vendor selection. |
sources/Experiments/CornellBox/Models/RenderDesc.cs |
Removes the previous render configuration. |
sources/Experiments/CornellBox/Models/RenderArgs.cs |
Removes the previous frame-input structure. |
sources/Experiments/CornellBox/Models/PathTracingOutput.cs |
Removes the old path-tracing output bundle. |
sources/Experiments/CornellBox/Models/OutputConstants.cs |
Removes old composition constants. |
sources/Experiments/CornellBox/Models/Mesh.cs |
Removes the previous mesh range model. |
sources/Experiments/CornellBox/Models/MaterialPattern.cs |
Adds expanded material patterns. |
sources/Experiments/CornellBox/Models/MaterialId.cs |
Defines scene material identifiers. |
sources/Experiments/CornellBox/Models/Material.cs |
Removes the previous material layout. |
sources/Experiments/CornellBox/Models/Instance.cs |
Removes the previous instance layout. |
sources/Experiments/CornellBox/Models/InputType.cs |
Removes the old input-event enum. |
sources/Experiments/CornellBox/Models/Input.cs |
Removes the old input-event structure. |
sources/Experiments/CornellBox/Models/FrameGenerationMode.cs |
Removes legacy generation-count modes. |
sources/Experiments/CornellBox/Models/FrameContext.cs |
Centralizes camera history, jitter, and reset state. |
sources/Experiments/CornellBox/Models/DrawBatch.cs |
Adds indexed instanced draw ranges. |
sources/Experiments/CornellBox/Models/AtmospherePreset.cs |
Adds day, sunset, and night presets. |
sources/Experiments/CornellBox/Helpers/ImGuiHelper.cs |
Makes the overlay ignore input. |
sources/Experiments/CornellBox/Handlers/PlatformHandler.cs |
Removes the previous buffered input handler. |
sources/Experiments/CornellBox/CornellBox.csproj |
Uses unified upscaling and vendor runtimes. |
sources/Experiments/CornellBox/Assets/Shaders/Output.slang |
Removes the old output shader implementation. |
sources/Directory.Packages.props |
Updates dependencies and adds FSR.NET. |
sources/Directory.Build.props |
Targets .NET 11. |
README.md |
Updates upscaling capabilities and getting-started wording. |
documents/locales/zh-CN/strings.yml |
Aligns Chinese text with API and experiment changes. |
documents/locales/en-US/strings.yml |
Aligns English text with API and experiment changes. |
documents/learn/samples.md |
Removes the FluidTank listing. |
documents/learn/concepts/synchronization.md |
Removes the FluidTank example link. |
documents/learn/concepts/shader-data-and-binding.md |
Updates the thread-group API reference. |
.github/workflows/continuous-integration.yml |
Uses the .NET 11 SDK. |
Review effort: Balanced
Comment on lines
+298
to
+301
| if (Context.Swapchain?.AcquireNextImage(Context.Device, Swapchain, ulong.MaxValue, default, fence.Fence, ref index) is Result.Success or Result.SuboptimalKhr) | ||
| { | ||
| fence.Wait(); | ||
| } |
| @@ -393,6 +393,20 @@ public void InsertDebugMarker(string label) | |||
| InsertDebugMarkerImpl(label); | |||
| } | |||
|
|
|||
| public void BeginExternalCommands() | |||
| { | |||
| BeginExternalCommandsImpl(); | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Unify super resolution, ray reconstruction, and frame generation across DLSS, FSR, and MetalFX in
Zenith.NET.Extensions.Upscaling, reworkCornellBoxaround hybrid ray-traced rendering and frame-generated presentation, refine core RHI and shader compilation APIs, and upgrade the target framework to .NET 11 (1.2.0).Changes
NGX.NET), FSR (FSR.NET), and MetalFX (Metal.NET) behindZenith.NET.Extensions.Upscaling(SuperResolution,RayReconstruction,FrameGeneration,FrameGenerationSwapChain, andUpscalingHelper), replacingZenith.NET.Extensions.DLSSand the legacy SGSR spatial/temporal upscalers.CornellBoxwith G-buffer, ray-traced shadows, DDGI probes, ray-traced reflections, lighting, upscaling/ray reconstruction, tone-mapping/bloom output, andFrameGenerationSwapChainpresentation. Remove theFluidTankexperiment.DescriptorHandlepreamble toZenithCompiler, and introduce rootCompileShaders.cswith per-projectShaders/shaders.jsonmanifests to generate embedded shader binaries.CommandBuffer.BeginExternalCommands/EndExternalCommandsandNativeObjectType.MTL4CommandBufferfor native SDK interop, and bind Vulkan descriptor heaps duringBeginImpland after external commands.BarrierStages(MeshShading,ColorAttachment,DepthStencilAttachment) andPixelFormat(A8UNorm,R9G9B9E5Float,R11G11B10Float,R10G10B10A2*,BC1–BC3,EACR11*); removeR32G32B32*andD24UNormS8UInt.CapabilitiesandSkiaTexturefromGraphicsResource, markPipelineas aclosed class, and updateZenith.NET.Extensions.ImGuiwith explicit DPI scale input andIImGuiPlatform.ClipboardText.StandardTargetFrameworkand CI to.NET 11, bump package version to1.2.0, update central package dependencies, remove internalmaintenance.mdandtranslation.mdguides, and align README, conceptual/sample docs, and all 10 localizedstrings.ymldictionaries.API changes
ShaderDesc:CodeBytes,Name, andThreadGroupSizebecomeBytecode,EntryPoint, andThreadGroup(ThreadGroupSizestruct renamed toThreadGroup).ZenithCompiler.CompileFromFile/CompileFromSource: renamenametoentryPointand add optionalDictionary<string, string>? preprocessorMacros = null.RayTracingTriangleGeometry: removeVertexFormat(triangle positions useR32G32B32Float).CommandBuffer: addBeginExternalCommands()andEndExternalCommands().CapabilitiesandSkiaTexturenow inheritGraphicsResource;Pipelineis nowpublic closed class Pipeline.Zenith.NET.Extensions.ImGui:BeginImGuiFrameaddsVector2 dpiScale;IImGuiPlatform.GetClipboardText()/SetClipboardText(...)becomestring ClipboardText { get; set; }.Zenith.NET.Extensions.DLSSis removed in favor ofZenith.NET.Extensions.Upscaling.Validation
dotnet build -c Releasepassed with 0 warnings and 0 errors.docfx documents/docfx.json --warningsAsErrorspassed with 0 warnings and 0 errors.git diff --check origin/master...HEADpassed.