Search Issue Tracker

By Design

Votes

0

Found in

2020.3.45f1

2021.3.18f1

2022.2.7f1

2023.1.0b3

2023.2.0a2

Issue ID

UUM-26900

Regression

No

Error is thrown when enabling a Keyword on a Shader

-

How to reproduce:
1. Open the attached Project "shaderTest" and load the Scene "New Scene"
2. Enter Play Mode
3. Observe the Console

Expected result: No Errors are thrown in the Console
Actual result: The following Error is thrown:
"Metal: Vertex or Fragment Shader "Universal Render Pipeline/Lit" requires a ComputeBuffer at index 0 to be bound, but none provided. Skipping draw calls to avoid crashing."

Reproducible with: 2020.3.45f1, 2021.3.18f1, 2022.2.7f1, 2023.1.0b3, 2023.2.0a2

Reproduced on:
- MacOS Editor (Intel)
Could not test on:
- Windows (The Project contains a Plugin that does not work on Windows)

Notes:
- The Keyword that is being enabled is reserved by a Plugin in the Project using this Interface: https://docs.unity3d.com/Manual/LowLevelNativePluginShaderCompilerAccess.html
- Issue appears to only reproduce with URP Shaders and does not reproduce with the Standard Shader

  1. Resolution Note:

    The plugin needs to be compiled into a .dll in order for it to work.

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.