Description

Uniform folding is not working with material parameter collections along with one additional unnecessary instruction generated. 

Found in 4.22 CL# 7053642, 4.23 CL# 8386587, 4.24 CL# 8748719

 

Steps to Reproduce
  1. Open the Editor
  2. Create a material like in the attached screenshot
  3. Set the static s-w-i-t-c-h to True and record the instruction count
  4. Set the static s-w-i-t-c-h to False and record the instruction count

Results:
Material network with material parameter collection in it gives 41 instructions. Material network with scalar parameter in it gives 33 instructions.

Expected:
Both material networks should be compiled to 32 instructions.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-80574 in the post.

0
Login to Vote

Won't Fix
ComponentUE - Graphics Features
Affects Versions4.224.234.24
Target Fix5.0
CreatedSep 19, 2019
ResolvedOct 12, 2021
UpdatedDec 2, 2022