alelievr / HDRP-Custom-Passes

A bunch of custom passes made for HDRP
MIT License
1.25k stars 136 forks source link

'GetSurfaceAndBuiltinData': output parameter 'surfaceData' not completely initialized error #21

Closed tomekkie closed 3 years ago

tomekkie commented 3 years ago

How to fix this error? 'GetSurfaceAndBuiltinData': output parameter 'surfaceData' not completely initialized in Unity 2020.2.1, Hdrp 10.2.2 I would be grateful for any help or update.

tommy4421 commented 3 years ago

Want to know it too, I have the same issue.

tommy4421 commented 3 years ago

Hmm.. adding ZERO_INITIALIZE(SurfaceData, surfaceData); in the GetSurfaceAndBuiltinData method seems to fix the problem

alelievr commented 3 years ago

Hello, for HDRP 10.x you can use the 2020.2 branch here: https://github.com/alelievr/HDRP-Custom-Passes/tree/2020.2

I'll merge it soon as the 2020.2 release is now official

alelievr commented 3 years ago

I merged the 2020.2 branch so now it's fixed in master