public static JobHandle ClearBuffer <TBufferElementData>( this EntityQuery entityQuery, ComponentSystemBase system, JobHandle inputDeps) where TBufferElementData : struct, IBufferElementData { return(new ResizeBuffer <TBufferElementData> { BufferType = system.GetBufferTypeHandle <TBufferElementData>(false), Length = 0 }.Schedule(entityQuery, inputDeps)); }
public static JobHandle ResizeBufferDeferred <TBufferElementData>( this EntityQuery entityQuery, ComponentSystemBase system, NativeCounter length, JobHandle inputDeps) where TBufferElementData : struct, IBufferElementData { return(new ResizeBufferDeferred <TBufferElementData> { BufferType = system.GetBufferTypeHandle <TBufferElementData>(false), Length = length }.Schedule(entityQuery, inputDeps)); }
public void ScheduleTimeInitialize(ComponentSystemBase jobComponentSystem, bool isReadOnly) { _typeHandle = jobComponentSystem.GetBufferTypeHandle <T>(isReadOnly); }