Search Issue Tracker

Active

Fixed in 2021.3.37f1, 2022.3.25f1, 2023.3.0b1

Votes

2

Found in

2021.3.30f1

2022.3.10f1

2023.1.19f1

2023.2.0b16

2023.3.0a12

7000.0.0a1

Issue ID

UUM-53114

Regression

No

[Mac] Shader errors appear when calling Shader.WarmupAllShaders()

--

-

How to reproduce:
1. Download and open the attached project
2. Attach the "Test" script to the Main Camera
3. Enter Play mode
4. Observe the Console window

Expected outcome: No errors appear
Actual outcome: "A non-multisampled texture being bound to a multisampled sampler. Disabling in order to avoid undefined behavior. Please enable the bindMS flag on the texture." errors appear

Reproducible with: 2021.3.30f1, 2022.3.10f1, 2023.1.16f1, 2023.2.0b12, 2023.3.0a7
Reproduced on: MacOS Ventura 13.4

  1. Resolution Note (fix version 2023.3.0b1):

    Unity was not properly detecting the case where a default texture property might be a multisampled texture (it is not technically supported by the syntax, so there is not a direct way to handle it in the shader other than not declaring a default).

  2. Resolution Note (fix version 2022.3.25f1):

    Verified with: 2022.3.25f1.git.5442272
    Revision: 2022.3/staging 530ae0ba3889
    Built: Wed, 10 Apr 2024 02:52:05 GMT

  3. Resolution Note (fix version 2021.3.37f1):

    Verified with: 2021.3.37f1.git.3891205 Personal
    Revision: 2021.3/staging 3b6005ad5ad6
    Built: Tue, 26 Mar 2024 21:50:09 GMT

Comments (2)

  1. jessebarker

    Apr 08, 2024 15:47

    Unity does not support texture properties whose default value is a multisampled texture. Please remove the default attribute, and ensure that you always define a texture for that property.

  2. hiwarp

    Apr 05, 2024 09:34

    Please, Can you elaborate what means "other than not declaring a default" in the resolution note?
    I'm struggling on how to remove this error when calling Shader.WarmupAllShaders();.

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.