Skip to content

Commit bc9d742

Browse files
christopherreddenEvergreen
authored andcommitted
EntityId 8-byte prep: Test migrations
1 parent 20b8abf commit bc9d742

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

Tests/SRPTests/Projects/SRP_SmokeTest/Assets/Tests/Editor/RenderGraphViewer/RenderGraphViewerDebugDataSerializationTests.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Collections.Generic;
22
using System.IO;
33
using NUnit.Framework;
4+
using Unity.Collections.LowLevel.Unsafe;
45
using UnityEngine;
56
using UnityEngine.Rendering;
67
using UnityEngine.Rendering.RenderGraphModule;
@@ -13,14 +14,7 @@ class RenderGraphViewerDebugDataSerializationTests
1314
{
1415
static EntityId CreateTestEntityId(int intValue)
1516
{
16-
EntityId testEntityId;
17-
unsafe
18-
{
19-
UnityEngine.Debug.Assert(sizeof(int) == sizeof(EntityId));
20-
testEntityId = *(EntityId*)&intValue;
21-
}
22-
23-
return testEntityId;
17+
return EntityId.FromULong((ulong)intValue);
2418
}
2519

2620
static RenderGraph.DebugData CreateTestDebugData()

0 commit comments

Comments
 (0)