Search Issue Tracker

Fixed in 2021.1

Fixed in 2019.4, 2020.1, 2020.2

Votes

1

Found in

2018.4

2019.4

2020.1

2020.2

Issue ID

1261620

Regression

No

[Bug] Frame Debugger does not show all keywords used by the shader when certain shader_feature directives are used

Shader System

-

How to reproduce:
1. Open the attached project named "Case_1261620"
2. Open the Test Scene
3. Click Window -> Analysis -> Frame Debugger -> Enable
4. Select one of the Spheres in the draw sequence
5. Observe the details of the Unlit/Test shader

Expected result: There is a COLOR_GREEN keyword listed in the Keywords section
Actual result: COLOR_GREEN keyword is not listed. Since it was the only keyword used in the shader, the whole Keywords section is missing

Reproducible with: 2018.4.26f1, 2019.4.5f1, 2020.1.0f1, 2020.2.0a19

Graphics APIs affected: D3D11, D3D12, OpenGLCore, Metal
Graphics APIs not affected: Vulkan

Notes:
1. Reproducible when shader_feature_local_fragment or shader_feature_fragment is used. Usually, does not reproduce when shader_feature_local or shader_feature is used.
2. Reproducible with the built-in renderer, URP(8.1.0, 9.0.0-preview.35) and HDRP(8.1.0)
3. shader_feature_local_fragment and shader_feature_local did not toggle the keyword in 2018.4.26f1(Track_12612620_V1)

  1. Response avatar

    Resolution Note (fix version 2021.1):

    Fixed in - 2021.1.0a6

  2. Response avatar

    Resolution Note (fix version 2020.2):

    Fixed in - 2020.2.0b14

  3. Response avatar

    Resolution Note (fix version 2020.1):

    Fixed in - 2020.1.16f1

  4. Response avatar

    Resolution Note (fix version 2019.4):

    Fixed in - 2019.4.17f1

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.