Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 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));
 }
Ejemplo n.º 3
0
 public void ScheduleTimeInitialize(ComponentSystemBase jobComponentSystem, bool isReadOnly)
 {
     _typeHandle = jobComponentSystem.GetBufferTypeHandle <T>(isReadOnly);
 }