Search Issue Tracker

Active

Votes

0

Found in

2017.4

2018.4

2019.2

2019.2.14f1

2019.3

2020.1

Issue ID

1208664

Regression

No

Certain Shaders remain broken when an undeclared variable is removed

Shaders

-

Reproduction steps:
1. Create a new Project
2. Create a new Unlit shader
3. In the struct v2f add the following line "float3 test;"
4. Save the Shader
5. Observe the Shader in the Inspector window. "Shader is not supported on this GPU" error is thrown
6. Delete the added line and save the shader
7. Observe the Inspector window again

Expected behavior: The error message is gone, as the code which caused the error has been removed
Actual behavior: The error remains. Any materials that have been using this shader remain magenta

Reproducible with: 2017.4.36f1, 2018.4.15f1, 2019.2.17f1, 2019.3.2f1, 2020.1.0a23

Notes:
1. Only reproducible with D3D11 and D3D12. Does not reproduce when using Vulkan, Metal or OpenGL. Reimport clears the error when Vulkan or OpenGL is used.
2. Restarting the Editor or Re-importing the assets does not resolve this
3. 2017.4 does not throw an error message, but the materials that use the affected shader remain broken
4. Shaders affected: Unlit/ImageEffect

Comments (4)

  1. Daaa1d2c8df63ba34eccb460bb0087dd?d=mm

    beriberis

    Jun 01, 2020 12:28

    Nice post. I was checking constantly this blog and I am impressed! Extremely helpful information specially the last part I care for such info a lot. I was seeking this particular information for a very long time. Thank you and good luck.
    gesichtmaske https://www.hewecon.de/

  2. Daaa1d2c8df63ba34eccb460bb0087dd?d=mm

    beriberis

    May 29, 2020 14:05

    Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts.
    Governance Risk Compliance tool http://enactia.com/

  3. Daaa1d2c8df63ba34eccb460bb0087dd?d=mm

    beriberis

    May 22, 2020 17:27

    Nice to be visiting your blog once more, it has been months for me. Well this article that ive been waited for therefore long. i want this article to finish my assignment within the faculty, and it has same topic together with your article. Thanks, nice share.
    grc tool https://esowatch.org/

  4. Daaa1d2c8df63ba34eccb460bb0087dd?d=mm

    beriberis

    May 21, 2020 16:20

    Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work.
    send bulk sms cyprus https://www.steilesms.com/en/

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.