Skip to content

Decouple Slang shader compilation from the core runtime - #36

Merged
qian-o merged 6 commits into
masterfrom
feat/29-decouple-slang-compiler
Sep 16, 2026
Merged

qian-o merged 6 commits into
masterfrom
feat/29-decouple-slang-compiler

Conversation

@qian-o

@qian-o qian-o commented Sep 16, 2026

Copy link
Copy Markdown
Owner

Move ZenithCompiler and Slangc.NET into the Zenith.NET.Compiler project/package. ZenithCompiler remains in the Zenith.NET namespace.

Update consumers, upgrade Slangc.NET to 2026.18.0, and regenerate embedded shaders.

Closes #29

Moved the <ItemGroup> including SGSR-LICENSE.txt for Release builds to after the <Import> statement. No functional changes; only element reordering.
Moved ZenithCompiler and dependencies from Zenith.NET to new Zenith.NET.Compiler project using Slangc.NET. Updated CornellBox.csproj and FluidTank.csproj to reference Zenith.NET.Compiler. Relocated Slangc.NET package reference. Restored ZenithCompiler implementation in the new project.
Changed reference from Zenith.NET to Zenith.NET.Compiler in Compile.cs to reflect the correct project dependency. No other code changes made.
Updated Slangc.NET NuGet package from 2026.16.1 to 2026.18.0 to use the latest features and fixes. No other package references were changed.
Copilot AI lite review requested due to automatic review settings September 16, 2026 04:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Update documentation and installation guidance to reflect the new compiler package.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Decouples Slang shader compilation from the core runtime by introducing the Zenith.NET.Compiler package.

Changes:

  • Moves ZenithCompiler and Slangc.NET out of the core package.
  • Updates shader-generation scripts and sample projects.
  • Upgrades Slangc.NET to 2026.18.0 and refreshes shader bytecode.
File summaries
File Description
Zenith.NET.slnx Adds the compiler project.
sources/Zenith.NET/Zenith.NET.csproj Removes the compiler dependency from the runtime.
sources/Zenith.NET.Compiler/ZenithCompiler.cs Provides the extracted compiler API.
sources/Zenith.NET.Compiler/Zenith.NET.Compiler.csproj Defines the compiler package and dependencies.
sources/Extensions/Zenith.NET.Extensions.Upscaling/Zenith.NET.Extensions.Upscaling.csproj Preserves shader asset packaging.
sources/Extensions/Zenith.NET.Extensions.Upscaling/Shaders/Compile.cs Uses the compiler for shader generation.
sources/Extensions/Zenith.NET.Extensions.ImGui/Shaders/Compile.cs Uses the compiler for shader generation.
sources/Experiments/FluidTank/FluidTank.csproj References the compiler project.
sources/Experiments/CornellBox/CornellBox.csproj References the compiler project.
sources/Directory.Packages.props Upgrades Slangc.NET.
Review details
  • Files reviewed: 9/15 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread sources/Zenith.NET.Compiler/Zenith.NET.Compiler.csproj
@qian-o
qian-o merged commit 614eb49 into master Sep 16, 2026
3 checks passed
@qian-o
qian-o deleted the feat/29-decouple-slang-compiler branch September 16, 2026 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proposal: Move ZenithCompiler.cs to a separate Zenith.NET.Shader project to decouple runtime from Slangc.Net

2 participants