Skip to content

Fix: restrict Metal foveated rendering to VisionOS - #867

Merged
sindharta-tanuwijaya merged 2 commits into
Unity-Technologies:visionosfrom
ValDesu:master
Aug 18, 2026
Merged

Fix: restrict Metal foveated rendering to VisionOS#867
sindharta-tanuwijaya merged 2 commits into
Unity-Technologies:visionosfrom
ValDesu:master

Conversation

@ValDesu

@ValDesu ValDesu commented Aug 17, 2026

Copy link
Copy Markdown

Prevents standard iOS and macOS Metal targets from incorrectly enabling SUPPORTS_FOVEATED_RENDERING_NON_UNIFORM_RASTER.

Fixed error

Shader error in 'Toon/Toon': undeclared identifier 'RemapFoveatedRenderingLinearToNonUniform' at /Library/PackageCache/com.unity.render-pipelines.core@9d79d0cd2cf7/ShaderLibrary/FoveatedRendering.hlsl(25) (on metal)

This error causes the shader to instantly fall back to the pink internal error shader. Wrapping SHADER_API_METAL with defined(UNITY_VISIONOS) ensures the build target is actually compatible with foveated rendering before defining the macro.

@cla-assistant-unity

cla-assistant-unity Bot commented Aug 17, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@sindharta-tanuwijaya
sindharta-tanuwijaya changed the base branch from master to visionos August 18, 2026 08:09
@sindharta-tanuwijaya

Copy link
Copy Markdown
Contributor

Thank you for your contribution!
We'll merge this PR into an internal branch to run our CI, and we may push additional related edits there. Because of this, your commits may not appear in the master branch even after this PR has been merged, but your changes will be included in an upcoming release if our CI passes.
Thanks again!

@sindharta-tanuwijaya
sindharta-tanuwijaya merged commit 51008b7 into Unity-Technologies:visionos Aug 18, 2026
4 checks passed
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.

2 participants