public void Dispose() { if (isRender.Length > 0) { isRender.Dispose(); } }
public void DisposeVertices() { if (vertices.Length > 0) { vertices.Dispose(); } }
public void Constructor_float_TempJob() { DoesNotThrow(() => { var array = new BlitableArray <float>(10, Allocator.TempJob); array.Dispose(); }); }
public void Constructor_float_Persistent() { DoesNotThrow(() => { var array = new BlitableArray <float>(10, Allocator.Persistent); array.Dispose(); }); }
public void Constructor_float_Minus() { Throws <ArgumentException>(() => { var array = new BlitableArray <float>(-1, Allocator.Temp); array.Dispose(); }); }
public void Constructor_float_Empty() { DoesNotThrow(() => { var array = new BlitableArray <float>(); array.Dispose(); }); }
public void Dispose() { Value.Dispose(); if (chunkRenders.Length > 0) { chunkRenders.Dispose(); } }
public void Alocation_Count_Minus() { Throws <ArgumentException>(() => { var array = new BlitableArray <float>(); array.Allocate(-1, Allocator.Temp); array.Dispose(); }); }
public void Constructor_float_None() { LogAssert.ignoreFailingMessages = true; Throws <ArgumentException>(() => { var array = new BlitableArray <float>(10, Allocator.None); array.Dispose(); }); }
public void Alocation_Count_Ten_TempJob() { DoesNotThrow(() => { var array = new BlitableArray <float>(); array.Allocate(10, Allocator.TempJob); array.Dispose(); }); }
public void Alocation_Count_Ten_Persistent() { DoesNotThrow(() => { var array = new BlitableArray <float>(); array.Allocate(10, Allocator.Persistent); array.Dispose(); }); }
public void Alocation_Count_Ten_None() { LogAssert.ignoreFailingMessages = true; Throws <ArgumentException>(() => { var array = new BlitableArray <float>(); array.Allocate(10, Allocator.None); array.Dispose(); }); }
public void Dispose() { if (boneWeightsIndexes0.Length > 0) { boneWeightsIndexes0.Dispose(); boneWeights0.Dispose(); bonePositions.Dispose(); boneRotations.Dispose(); boneInfluences.Dispose(); } }
public void Size() { var array = new BlitableArray <float>(); Zero(array.Length); array.Dispose(); array = new BlitableArray <float>(10, Allocator.Temp); AreEqual(10, array.Length); array.Dispose(); }
public void Dispose() { if (vertices.Length > 0) { vertices.Dispose(); } if (triangles.Length > 0) { triangles.Dispose(); } }
public void Dispose() { if (sidesUp.Length > 0) { sidesUp.Dispose(); sidesDown.Dispose(); sidesLeft.Dispose(); sidesRight.Dispose(); sidesBack.Dispose(); sidesForward.Dispose(); } }
public void Constructor_bool() { DoesNotThrow(() => { var array = new BlitableArray <bool>(); array.Dispose(); }); Throws <ArgumentException>(() => { var array = new BlitableArray <bool>(0, Allocator.Temp); array.Dispose(); }); }
public void Dispose() { if (modelIndexes.Length > 0) { modelIndexes.Dispose(); } if (voxelColors.Length > 0) { voxelColors.Dispose(); } if (uvMaps.Length > 0) { uvMaps.Dispose(); } }
public void Dispose() { if (chunks.Length > 0) { chunks.Dispose(); } if (chunkIDs.Length > 0) { chunkIDs.Dispose(); } if (chunkPositions.Length > 0) { chunkPositions.Dispose(); } }
public void Dispose() { if (voxels.Length > 0) { voxels.Dispose(); } if (voxelsUp.Length > 0) { voxelsUp.Dispose(); voxelsDown.Dispose(); voxelsLeft.Dispose(); voxelsRight.Dispose(); voxelsForward.Dispose(); voxelsBack.Dispose(); } }
public void Alocation_From_List() { var list = Enumerable.Range(0, 25).Select(x => (float)x).ToList(); var array = new BlitableArray <float>(); array.Allocate(list, Allocator.Temp); AreEqual(list.Count, array.Length); for (int i = 0; i < array.Length; i++) { AreEqual(list[i], array[i]); } array.Dispose(); }
public void To_NativeArray_Zero() { var array = new BlitableArray <float>(); NativeArray <float> nativeArray = array.ToNativeArray(Allocator.Temp); AreEqual(array.Length, nativeArray.Length); for (int i = 0; i < array.Length; i++) { AreEqual(array[i], nativeArray[i]); } nativeArray.Dispose(); array.Dispose(); }
public void Alocation_From_ManagedArray() { var managedArray = Enumerable.Range(0, 25).Select(x => (float)x).ToArray(); var array = new BlitableArray <float>(); array.Allocate(managedArray, Allocator.Temp); AreEqual(managedArray.Length, array.Length); for (int i = 0; i < array.Length; i++) { AreEqual(managedArray[i], array[i]); } array.Dispose(); }
public void To_NativeArray_Call() { var managedArray = Enumerable.Range(0, 25).Select(x => (float)x).ToArray(); var array = new BlitableArray <float>(); array.Allocate(managedArray, Allocator.Temp); NativeArray <float> nativeArray = array.ToNativeArray(Allocator.Temp); AreEqual(array.Length, nativeArray.Length); for (int i = 0; i < array.Length; i++) { AreEqual(array[i], nativeArray[i]); } nativeArray.Dispose(); array.Dispose(); }
// shuold be between 0 and 1 public void Dispose() { biomes.Dispose(); blends.Dispose(); }
public void Dispose() { spawnedIDs.Dispose(); spawnDatas.Dispose(); }
public void Dispose() { chunkPositions.Dispose(); isRender.Dispose(); chunkIDs.Dispose(); }