We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42b673f commit 297cd57Copy full SHA for 297cd57
1 file changed
Packages/com.unity.visualeffectgraph/Shaders/Sort.compute
@@ -112,6 +112,8 @@ void LoadFromMemory(uint3 groupId, uint ldsIndex)
112
uint memIndex = DST_INDEX(groupId, ldsIndex);
113
114
KVP kvp = { REJECTED_VALUE, 0xFFFFFFFF };
115
+
116
+ UNITY_BRANCH
117
if (instanceDstIndex < GetElementCount(groupId.z))
118
kvp = inputSequence[totalInstanceCount + memIndex];
119
@@ -245,6 +247,7 @@ void MERGE_PASS(uint3 groupId : SV_GroupID,
245
247
const int arrayStart = arraySize * (id / arraySize);
246
248
249
// If the current array considered is less than one half filled (due to element count), we can copy it directly as it is already sorted
250
251
if (GetElementCount(groupId.z) - (uint)arrayStart <= subArraySize)
252
{
253
#if FINAL_PASS
0 commit comments