Skip to content

Commit f69bb8c

Browse files
svc-reach-platform-supportEvergreen
authored andcommitted
1 parent 655d79f commit f69bb8c

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

Packages/com.unity.render-pipelines.core/Runtime/GPUDriven/GPUResidentDrawer.Validator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ internal static bool IsProjectSupported(out string message, out LogType severity
4242
#if UNITY_EDITOR
4343
// Check the build target is supported by checking the depth downscale kernel (which has an only_renderers pragma) is present
4444
var resources = GraphicsSettings.GetRenderPipelineSettings<GPUResidentDrawerResources>();
45-
if (!resources.occluderDepthPyramidKernels.HasKernel("OccluderDepthDownscale"))
45+
if (!(resources.occluderDepthPyramidKernels && resources.occluderDepthPyramidKernels.HasKernel("OccluderDepthDownscale")))
4646
{
4747
severity = LogType.Warning;
4848
message = Strings.kernelNotPresent;

Packages/com.unity.render-pipelines.core/Runtime/GPUDriven/InstanceData/InstanceData.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,11 @@ public void Remove(SharedInstanceHandle instance)
483483

484484
instances[index] = instances[lastIndex];
485485
rendererGroupIDs[index] = rendererGroupIDs[lastIndex];
486+
486487
materialIDArrays[index].Dispose();
487488
materialIDArrays[index] = materialIDArrays[lastIndex];
489+
materialIDArrays[lastIndex] = default;
490+
488491
meshIDs[index] = meshIDs[lastIndex];
489492
localAABBs[index] = localAABBs[lastIndex];
490493
flags[index] = flags[lastIndex];

Packages/com.unity.render-pipelines.core/Runtime/GPUDriven/Utilities/ParallelSortExtensions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ static void Swap(ref NativeArray<int> a, ref NativeArray<int> b)
9494
Swap(ref arraySource, ref arrayDest);
9595
}
9696

97-
supportArray.Dispose();
98-
counter.Dispose();
99-
buckets.Dispose();
100-
indices.Dispose();
101-
indicesSum.Dispose();
97+
supportArray.Dispose(jobHandle);
98+
counter.Dispose(jobHandle);
99+
buckets.Dispose(jobHandle);
100+
indices.Dispose(jobHandle);
101+
indicesSum.Dispose(jobHandle);
102102
}
103103
else
104104
{

0 commit comments

Comments
 (0)