Unity Issue Tracker - Having Sphere or Cube Output in the scene results in shader errors snd build failure when building player
Fixed
UUM-29387
Having Sphere or Cube Output in the scene results in shader errors snd build failure when building player
Unity: Visual Effects
VFX Graph
Fixed
2023.2.X
2023.1.X
2022.2.X
Fix has landed and been verified as working on 2023.1.0b13.
How to reproduce:
Import the attached Test-02 package to the HDRP project
Build 201.b_SimpleLitOutputs_HDRP scene
Observe that build fails and there are errors thrown to the console
Expected result: Build succeeds and there are no errors thrown coming from Sphere or Cube Outputs
Actual result: Build fails and shader errors are thrown to the console
Shader error in 'Hidden/VFX/LitOutputs - MaskMap/System (1)/Output Particle HDRP Lit Sphere': Program 'frag', error X8000: D3D11 Internal Compiler Error: Invalid Bytecode: Interpolation mode for PS input position must be linear_noperspective_centroid or linear_noperspective_sample when outputting oDepthGE or oDepthLE and not running at sample frequency (which is forced by inputting SV_SampleIndex or declaring an input linear_sample or linear_noperspective_sample). at line 2109 (on metal)
Shader error in 'Hidden/VFX/LitOutputs - Simple Lit - All/System (1)/Output Particle HDRP Lit Cube': undeclared identifier 'VFXComputePixelOutputToNormalBuffer' at line 1984 (on metal)
Prioritise and Follow this issue
Have a workaround or additional info about this issue?