Skip to content

Commit c29a434

Browse files
arttu-peltonenEvergreen
authored andcommitted
[content automatically redacted] touching PlatformDependent folder
1 parent f6acad2 commit c29a434

59 files changed

Lines changed: 236 additions & 3 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Packages/com.unity.render-pipelines.core/Editor/GPUDriven/GPUInstanceDataBufferViewer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if !UNITY_WEBGL_RENDERER_ONLY
12
using UnityEditor;
23

34
namespace UnityEngine.Rendering
@@ -75,3 +76,4 @@ public void OnGUI()
7576
}
7677
}
7778
}
79+
#endif

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if !UNITY_WEBGL_RENDERER_ONLY
12
using System;
23
using UnityEngine.Assertions;
34
using Unity.Collections;
@@ -188,3 +189,5 @@ public void NeedsRebuild()
188189
}
189190
}
190191
}
192+
193+
#endif // !UNITY_WEBGL_RENDERER_ONLY

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if !UNITY_WEBGL_RENDERER_ONLY
12
using Unity.Collections;
23
using UnityEngine.Rendering;
34
using Unity.Burst;
@@ -69,3 +70,5 @@ public static unsafe void RemoveDrawInstanceIndices(in NativeArray<int> drawInst
6970
}
7071
}
7172
}
73+
74+
#endif // !UNITY_WEBGL_RENDERER_ONLY

Packages/com.unity.render-pipelines.core/Runtime/GPUDriven/Batching/InstanceCullingBatcher.Jobs.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if !UNITY_WEBGL_RENDERER_ONLY
12
using System;
23
using System.Threading;
34
using UnityEngine.Assertions;
@@ -232,3 +233,5 @@ public unsafe void Execute(int index)
232233
}
233234
}
234235
}
236+
237+
#endif // !UNITY_WEBGL_RENDERER_ONLY

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if !UNITY_WEBGL_RENDERER_ONLY
12
using System;
23
using Unity.Collections;
34
using Unity.Jobs;
@@ -472,3 +473,5 @@ public void RegisterAndBuildBatches(NativeArray<InstanceHandle> instances, in Me
472473
}
473474
}
474475
}
476+
477+
#endif // !UNITY_WEBGL_RENDERER_ONLY

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if !UNITY_WEBGL_RENDERER_ONLY
12
using Unity.Collections;
23
using Unity.Burst;
34
using UnityEngine.Assertions;
@@ -255,3 +256,5 @@ public static void CreateDrawBatches(in NativeArray<InstanceHandle> instances,
255256
}
256257
}
257258
}
259+
260+
#endif // !UNITY_WEBGL_RENDERER_ONLY

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if !UNITY_WEBGL_RENDERER_ONLY
12
using System;
23
using UnityEngine.Serialization;
34

@@ -67,3 +68,5 @@ private void OnValidate()
6768
}
6869
}
6970
}
71+
72+
#endif // !UNITY_WEBGL_RENDERER_ONLY

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if !UNITY_WEBGL_RENDERER_ONLY
12
using System;
23

34
namespace UnityEngine.Rendering
@@ -63,3 +64,5 @@ private void OnValidate()
6364
}
6465
}
6566
}
67+
68+
#endif // !UNITY_WEBGL_RENDERER_ONLY

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if !UNITY_WEBGL_RENDERER_ONLY
12
using Unity.Collections;
23

34
namespace UnityEngine.Rendering
@@ -113,3 +114,5 @@ public void Dispose()
113114
}
114115
}
115116
}
117+
118+
#endif // !UNITY_WEBGL_RENDERER_ONLY

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if !UNITY_WEBGL_RENDERER_ONLY
12
using System;
23
using System.Collections;
34
using System.Collections.Generic;
@@ -298,3 +299,5 @@ public NativeList<GPUComponentHandle> GetComponents(Allocator allocator)
298299
}
299300
}
300301
}
302+
303+
#endif // !UNITY_WEBGL_RENDERER_ONLY

0 commit comments

Comments
 (0)