Fixed compilation errors;

Added MaterialPalette
This commit is contained in:
2026-03-14 12:27:49 +09:00
parent 8a3b40b4f8
commit 912b320d8f
27 changed files with 1870 additions and 483 deletions

View File

@@ -7,7 +7,7 @@ namespace Ghost.Entities.Test;
internal struct TestEntityQueryJob : IJobEntity<Transform>
{
public readonly void Execute(Entity entity, ref Transform transform, int threadIndex)
public readonly void Execute(Entity entity, ref Transform transform, ref readonly JobExecutionContext ctx)
{
transform.position += new float3(5, 5, 5);
}
@@ -15,9 +15,9 @@ internal struct TestEntityQueryJob : IJobEntity<Transform>
internal struct TestChunkQueryJob : IJobChunk
{
public readonly void Execute(ChunkView view, int threadIndex)
public readonly void Execute(ChunkView view, ref readonly JobExecutionContext ctx)
{
var random = new random((uint)threadIndex + 1u);
var random = new random((uint)ctx.ThreadIndex + 1u);
var transforms = view.GetComponentDataRW<Transform>();
for (var i = 0; i < view.Count; i++)
@@ -54,7 +54,7 @@ public partial class EntityQueryTest : ITest
var testJob = new TestChunkQueryJob();
var handle = query.ScheduleChunkParallel(testJob, 1, JobHandle.Invalid);
_jobScheduler.WaitComplete(handle);
_jobScheduler.Wait(handle);
query.ForEach<Transform>((e, ref t) =>
{

View File

@@ -19,8 +19,7 @@ internal class SystemTest : ITest
group.SortSystems();
var api = new SystemAPI();
_world.SystemManager.InitializeAll(in api);
_world.SystemManager.InitializeAll(new TimeData());
}
public void Cleanup()