This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private ModuleBuilder m_module; | |
[Test] | |
public void TestComp() { | |
/* | |
var assembly = AssemblyDefinitionFor(GetType()); | |
var module = assembly.MainModule; | |
TypeDefinition cClass = new TypeDefinition(GetType().Namespace, "MyTestJob", TypeAttributes.Class); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BurstTest | |
{ | |
[BurstCompile] | |
public struct MultJob : IJob | |
{ | |
[ReadOnly] | |
public NativeArray<float> a; | |
[ReadOnly] | |
public NativeArray<float> b; | |
[WriteOnly] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using DG.Tweening; | |
using UnityEditor; | |
using UnityEngine; | |
using Object = UnityEngine.Object; | |
public class Void | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Reflection; | |
namespace Assets.Scripts.Core | |
{ | |
public static class Utils | |
{ | |
public static IEnumerable<FieldInfo> GetFieldsWithAttribute<T>(this Type classType) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using Assets.Scripts.Core; | |
using UnityEngine; | |
using Object = UnityEngine.Object; | |
public class Inject : Attribute { } | |
public class Controller | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using Unity.Collections; | |
using Unity.Jobs; | |
using Unity.Burst; | |
using UnityEngine; | |
using Debug = UnityEngine.Debug; | |
using static Unity.Mathematics.math; | |
using Unity.Mathematics; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[PerformanceTest] | |
public void FindPolygonBurst() | |
{ | |
var navMeshData = CreateNavMesh(); | |
var count = 0; | |
var testPoint = new Vector2(1, 1); | |
var tile = navMeshData.GetTileAtWorldPosition(testPoint); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using Assets.Scripts.Core; | |
using UnityEngine; | |
using Object = UnityEngine.Object; | |
public class Inject : Attribute { } | |
public class Controller | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private struct StructTest | |
{ | |
public float t; | |
public float p; | |
public bool a; | |
public int i; |