Search Issue Tracker

Fixed

Fixed in 2021.3.39f1, 2022.3.21f1, 2023.2.12f1, 2023.3.0b8

Votes

6

Found in

2021.3.31f1

2022.3.11f1

2023.1.18f1

2023.2.0b14

2023.3.0a11

Issue ID

UUM-53994

Regression

No

[VFX] Shader warnings thrown after installing Visual Effects Graph package

--

-

How to reproduce:
1. Open package manager
2. Install the Visual Effects Graph package

Expected result: No Warnings in the console
Actual result: "Shader warning..." warnings appear in the console

Reproducible with: 12.1.12 (2021.3.31f1), 14.0.9(2022.3.11f1), 15.0.7(2023.1.18f1), 16.0.4(2023.2.0b14), 17.0.1(2023.3.0a11)
Reproducible on: Windows 10 (Both URP and HDRP)

Full warnings:

(DX11, DX12, but both have '(on d3d11)' )

 
{code:java}
Shader warning in '[05_Head_Trail] [Strip] Initialize Particles': use of potentially uninitialized variable (GetParticleIndex) at kernel CSMain at 05_Head_Trail.vfx(197) (on d3d11)

Shader warning in '[04_Simple_Trail] [Ribbon] Initialize Particle Strip': use of potentially uninitialized variable (GetParticleIndex) at kernel CSMain at 04_Simple_Trail.vfx(181) (on d3d11){code}
 

 

(Vulkan)
{code:java}
Shader warning in 'Sort': use of potentially uninitialized variable (CompareKVP) at kernel MergePass at Sort.compute(96) (on vulkan)
Shader warning in 'Sort': use of potentially uninitialized variable (CompareKVP) at kernel MergeFinalPass at Sort.compute(96) (on vulkan)
Shader warning in 'Sort': use of potentially uninitialized variable (CompareKVP) at kernel BitonicSort4096_128 at Sort.compute(96) (on vulkan){code}
 

(GLES3, GLCore)
{code:java}
Shader warning in '[06_Firework] [Heads] Update Particles': Buffer count exceeding default GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS. Shader might not work on all hw. Consider combining separate buffers into one containing struct elements. at kernel CSMain (on gles3)
Shader warning in '[05_Head_Trail] [Strip] Initialize Particles': use of potentially uninitialized variable (GetParticleIndex) at kernel CSMain at 05_Head_Trail.vfx(197) (on gles3)
Shader warning in 'GenSdfRayMap': HLSLcc: The resource 'rayMap' uses an unsupported type/format for read/write access at kernel RayMapScanX (on gles3)

etc... {code}
 

(GLCore)
{code:java}
Shader warning in 'Sort': use of potentially uninitialized variable (CompareKVP) at kernel BitonicPrePass at Sort.compute(96) (on glcore)  Shader warning in 'Sort': use of potentially uninitialized variable (CompareKVP) at kernel BitonicPrePass2048_128 at Sort.compute(96) (on glcore)
{code}
 

 

 

 

  1. Resolution Note (fix version 2023.3.0b8):

    The warnings about the buffer count on GLES3 will still be present, as VFX Graph does not officially support GLES3.

Comments (1)

  1. unity_299B2B77BFFAD3FCF88C

    Oct 30, 2023 17:22

    These warnings started showing for me after updating from 2022.2.3 to 2022.3.11

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.