Search Issue Tracker

Fixed

Fixed in 2022.3.19f1, 2023.2.7f1, 2023.3.0b4

Votes

4

Found in

2022.3.16f1

2023.2.4f1

2023.3.0b1

Issue ID

UUM-59364

Regression

No

Errors "Shader error in 'Universal Render Pipeline/Particles/Unlit' : out parameters require l-value arguments" and "undeclared identifier 'unity_WorldToObject'" are thrown when building the project

--

-

How to reproduce:
1. Open the "IN_63889" project
2. In the Build Settings press Build
3. Wait until the build finishes
4. Observe the Console

Expected result: No errors in the Console
Actual result: Errors "Shader error in 'Universal Render Pipeline/Particles/Unlit': out parameters require l-value arguments at..." and "hader error in 'Universal Render Pipeline/Particles/Unlit': undeclared identifier 'unity_WorldToObject' at..."

Reproducible with: 2022.3.16f1, 2023.2.4f1, 2023.3.0b1
Couldn't test with: 2021.3.33f1 (due to errors in the Console)

Reproducible on: Windows 10 Pro
Not reproducible on: No other environment tested

Notes:
- Reproducible on Windows Standalone and Android Platforms
- Reproducible with all "BatchRendererGroup Variants" options from the dropdown
- Reproducible on Vulkan and OpenGLES3 Graphics API

First lines of the errors:
1st error: Shader error in 'Universal Render Pipeline/Particles/Unlit': out parameters require l-value arguments at /Users/danielius.pliuskys/Downloads/IN-63889_brg-shooter/Library/PackageCache/com.unity.render-pipelines.universal@14.0.8/ShaderLibrary/ParticlesInstancing.hlsl(57) (on gles3) Compiling Subshader: 0, Pass: ForwardLit, Vertex program with DOTS_INSTANCING_ON PROCEDURAL_INSTANCING_ON

2nd error: Shader error in 'Universal Render Pipeline/Particles/Unlit': undeclared identifier 'unity_WorldToObject' at /Users/danielius.pliuskys/Downloads/IN-63889_brg-shooter/Library/PackageCache/com.unity.render-pipelines.universal@14.0.8/ShaderLibrary/ParticlesInstancing.hlsl(57) (on gles3) Compiling Subshader: 0, Pass: ForwardLit, Vertex program with DOTS_INSTANCING_ON PROCEDURAL_INSTANCING_ON

Comments (2)

  1. -DarkTiger-

    Jan 20, 2024 16:06

    I have these particles errors with Lit and SampleLit too, when try to build for Windows, D3d12, Forward+ with Unity 2023.3.0b3 (same since 2023.3.0a8)

    Repeated with (on vulkan) and (on d3d11):

    Shader error in 'Universal Render Pipeline/Particles/Unlit': out parameters require l-value arguments at ../Library/PackageCache/com.unity.render-pipelines.universal/ShaderLibrary/ParticlesInstancing.hlsl(57)

    Shader error in 'Universal Render Pipeline/Particles/Unlit': undeclared identifier 'unity_WorldToObject' at ../Library/PackageCache/com.unity.render-pipelines.universal/ShaderLibrary/ParticlesInstancing.hlsl(57)

    Shader error in 'Universal Render Pipeline/Particles/Simple Lit': undeclared identifier 'unity_WorldToObject' at ../Library/PackageCache/com.unity.render-pipelines.universal/ShaderLibrary/ParticlesInstancing.hlsl(57)

    Shader error in 'Universal Render Pipeline/Particles/Simple Lit': out parameters require l-value arguments at ../Library/PackageCache/com.unity.render-pipelines.universal/ShaderLibrary/ParticlesInstancing.hlsl(57)

    Shader error in 'Universal Render Pipeline/Particles/Lit': out parameters require l-value arguments at ../Library/PackageCache/com.unity.render-pipelines.universal/ShaderLibrary/ParticlesInstancing.hlsl(57)

    Shader error in 'Universal Render Pipeline/Particles/Lit': undeclared identifier 'unity_WorldToObject' at ../Library/PackageCache/com.unity.render-pipelines.universal/ShaderLibrary/ParticlesInstancing.hlsl(57)

  2. jonkuze

    Jan 05, 2024 04:03

    I am also seeing the same error in 2023.3.0b1. I provided my build error log on the WebGPU Forum Thread here:
    https://forum.unity.com/threads/early-access-to-the-new-webgpu-backend-in-unity-2023-3.1516621/page-2#post-9562711

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.