Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2021.2.X
Votes
0
Found in
Issue ID
1347380
Regression
No
[Shaders] ShaderUtil.GetPassKeywords returns array which is not efficient for searching specific keyword
Currently new API ShaderUtil.GetPassKeywords returns an array of LocalKeywords, which is not efficient enough for searching specific enabled local keyword.
To wokaround it the array have to be recreated to hashset.
For example:
// Get all contained local keywords by this pass
var m_ContainedLocalKeywords = new HashSet<LocalKeyword>();
var keywords = ShaderUtil.GetPassKeywords(shader, snippetData.pass);
foreach (var kw in keywords)
m_ContainedLocalKeywords.Add(kw);
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
Add comment