Description

When creating and modifying a material, the base Texture Sampler count and instructions are returning incorrect values.

In 4.14.3 whenever you create a new material the Texture Sampler count is 0/16 which is correct. This is contrary to how 4.15 behaves as the base Texture Sampler count on a newly created material returns 1/16 instead.

In both engine versions if you create a Vector3 node, delete it, and then press the 'Apply' button. It will return an incorrect Texture Sampler count. The only way I have found to clear the issue and reset the counts was to close the material window/tab entirely and re-open it.

Steps to Reproduce

1. In any new or existing project create a new material.
2. Observe the Texture Sampler count.
3. Create new Vector3 and then delete it.
4. Press 'Apply'.
5. Observe the Texture Sampler count.

Outcome The instruction count and Texture Sampler count are incorrect after applying the changes.

Expected Whenever the user applies any changes made within the material editor, the Stats should correctly reflect what is being utilized within the shader.

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

15
Login to Vote

Cannot Reproduce
ComponentUE - Graphics Features
Affects Versions4.14.34.15
Target Fix4.20
CreatedMar 9, 2017
ResolvedMar 15, 2018
UpdatedMay 17, 2018