From 3d1ea51b55014bfd0695d49259f03c5572c5b99b Mon Sep 17 00:00:00 2001 From: Antoshidza Date: Tue, 11 Oct 2022 01:51:29 +0300 Subject: [PATCH] Update SpriteRenderingSystem.cs remove unused job code --- Rendering/System/SpriteRenderingSystem.cs | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/Rendering/System/SpriteRenderingSystem.cs b/Rendering/System/SpriteRenderingSystem.cs index b658a19..d10ace7 100644 --- a/Rendering/System/SpriteRenderingSystem.cs +++ b/Rendering/System/SpriteRenderingSystem.cs @@ -293,27 +293,6 @@ public void Execute(ArchetypeChunk batchInChunk, int batchIndex, int indexOfFirs } } [BurstCompile] - internal struct GatherPropertyByOrderMapJob : IJobChunk - where TProperty : struct - //TPropety supposed to be: - // * float - // * float4 - // * float4x4 - { - //this should be filled every frame with GetDynamicComponentTypeHandle - [ReadOnly] public DynamicComponentTypeHandle componentTypeHandle; - public int typeSize; - [NoAlias][ReadOnly] public NativeSlice orderMap; - [NoAlias][WriteOnly][NativeDisableParallelForRestriction] public NativeArray outputArray; - - public void Execute(ArchetypeChunk chunk, int chunkIndex, int firstEntityIndex) - { - var dataArray = chunk.GetDynamicComponentDataArrayReinterpret(componentTypeHandle, typeSize); - for(int i = 0; i < dataArray.Length; i++) - outputArray[orderMap[firstEntityIndex + i]] = dataArray[i]; - } - } - [BurstCompile] internal struct GatherPropertyJob : IJobChunk where TProperty : struct //TPropety supposed to be: