Search Issue Tracker

By Design

Votes

0

Found in

2019.4

2019.4.17f1

2020.1

2020.2

2021.1

Issue ID

1303658

Regression

No

[SRP] "unrecognized identifier 'Texture2DMS_float'" Shader error is thrown when having Texture2DMS_float attribute in a Shader

Shader System

-

How to reproduce:
1. Open the user's attached "TestHighpTexture2DMS.zip" project
2. Change the "Texture2DMSArray" to "Texture2DMS_float" in CopyDepthPass.hlsl
3. Select the CopyDepth Shader
4. Observe the Inspector window

Expected result: No error messages in the Inspector window
Actual result: "Shader error in 'Hidden/Universal Render Pipeline/CopyDepth': unrecognized identifier 'Texture2DMS_float'" message is shown in the Inspector window

Reproducible with: 2019.4.17f1 (7.5.2), 2020.1.17f1 (8.3.1), 2020.2.1f1 (10.2.2), 2021.1.0b1 (11.0.0)

  1. Resolution Note:

    SRP uses different macros
    #define TEXTURE2D_X_MSAA(type, textureName) Texture2DMS<type, 1> textureName

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.