Unity Issue Tracker - Compute Shader won't be reimported when Graphics API is changed
Fixed
UUM-20091
Compute Shader won't be reimported when Graphics API is changed
Unity: Shader System
Andorid
Fixed
2020.3.X
Won't Fix
2023.2.X
2023.1.X
2022.2.X
2022.1.X
2021.3.X
2022.1 has reached end of life so the issue will be fixed in a newer version.
Fixed the editor compute shaders to work correctly independent from the re-imports.
Reproduction steps:
Open the user’s attached project “GraphicsAPIbug”
Go to Player Settings (menu: Edit > Project Settings > Player)
Select “Pc, Mac & Linux Standalone” settings
Expand the “Other Settings” property
Change “Graphics APIs for Windows” from “Vulkan” to “Direct3D11”
Restart Unity Editor
Select “Assets/NewComputeShader“
In the Inspector Window check the “CSMain” property
Expected result: “CSMain” property is updated accordingly to the selected API
Actual result: “Compute Shader” asset is not reimported, “CSMain” property is not changed