添加光影接口V3 - #180
Open
eastear23333 wants to merge 5 commits into
Open
Conversation
…pat/ShaderCompatSRWorkModeProvider.java Co-authored-by: 187J3X1-114514 <2434998722@qq.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces Shader Compat config schema V3 support, including new runtime state flags for “frame-generation-only” shader packs and shader-pack-driven algorithm disabling, and wires these signals into the UI and dispatch pipeline.
Changes:
- Add V3 config parser + processor and register them as the latest shader compat schema.
- Extend work-mode state to carry
onlySupportsFrameGenerationanddisabledAlgorithms, and use them to adjust dispatch/UI behavior. - Add/adjust localization strings for new tooltips and warnings.
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| common/src/shadercompat/java/io/homo/superresolution/shadercompat/ShaderCompatSRWorkModeProvider.java | Exposes new V3 state (onlySupportsFrameGeneration, disabledAlgorithms) via SRWorkModeState. |
| common/src/shadercompat/java/io/homo/superresolution/shadercompat/IrisShaderCompatUpscaleDispatcher.java | Skips upscale dispatch/copy in frame-gen-only mode; adds V3 cache cleanup. |
| common/src/shadercompat/java/io/homo/superresolution/common/minecraft/handler/shadercompat/v3/SRCompatV3Processor.java | New schema V3 processor (macros/uniforms + MV preprocess injection + pipeline cache). |
| common/src/shadercompat/java/io/homo/superresolution/common/minecraft/handler/shadercompat/v3/SRCompatConfigV3Parser.java | New schema V3 JSON parser (adds only-frame-gen + disabled algorithms validation). |
| common/src/shadercompat/java/io/homo/superresolution/common/minecraft/handler/shadercompat/SRShaderCompatData.java | Extends UpscaleConfig to include onlySupportsFrameGeneration and disabledAlgorithms. |
| common/src/shadercompat/java/io/homo/superresolution/common/minecraft/handler/shadercompat/SRCompatConfigParser.java | Bumps latest schema to 3 and routes parsing/processor creation to V3. |
| common/src/shadercompat/java/io/homo/superresolution/common/minecraft/handler/shadercompat/SRCompatBuiltinMacros.java | Updates built-in macros for frame-gen-only scaling behavior and schema macro. |
| common/src/shadercompat/java/io/homo/superresolution/common/minecraft/handler/shadercompat/ShaderCompatHandler.java | Ensures V3 pipeline cache is destroyed on teardown. |
| common/src/main/resources/assets/super_resolution/lang/zh_tw.json | Adds “disabled by shaderpack” tooltip string. |
| common/src/main/resources/assets/super_resolution/lang/zh_cn.json | Adds “disabled by shaderpack” tooltip + frame-gen-only warning strings. |
| common/src/main/resources/assets/super_resolution/lang/ja_jp.json | Adds “disabled by shaderpack” tooltip string (and formatting changes). |
| common/src/main/resources/assets/super_resolution/lang/en_us.json | Adds “disabled by shaderpack” tooltip + frame-gen-only warning strings. |
| common/src/main/java/io/homo/superresolution/common/workmode/SRWorkModeState.java | Adds new fields for frame-gen-only and shaderpack-disabled algorithms. |
| common/src/main/java/io/homo/superresolution/common/gui/MaterialConfigScreen.java | Shows frame-gen-only warning and disables algorithms blocked by shaderpack config. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Author
|
fix |
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.
No description provided.