Update HzCulling
This commit is contained in:
@@ -7,11 +7,28 @@ namespace Misaki.AoVolume
|
||||
public readonly int entityIndex;
|
||||
public readonly bool IsValid => entityIndex != _INVALID_INDEX;
|
||||
|
||||
public static readonly VolumeEntity InvalidEntity = new(_INVALID_INDEX);
|
||||
public static readonly VolumeEntity Invalid = new(_INVALID_INDEX);
|
||||
|
||||
public VolumeEntity(int index)
|
||||
{
|
||||
entityIndex = index;
|
||||
this.entityIndex = index;
|
||||
}
|
||||
}
|
||||
|
||||
// Intermediate struct which holds the data index of an entity and other information.
|
||||
internal readonly struct VolumeEntityInfo
|
||||
{
|
||||
private const int _INVALID_INDEX = -1;
|
||||
|
||||
public readonly int dataIndex;
|
||||
|
||||
public static readonly VolumeEntityInfo Invalid = new VolumeEntityInfo(_INVALID_INDEX);
|
||||
|
||||
public bool IsValid => dataIndex != _INVALID_INDEX;
|
||||
|
||||
public VolumeEntityInfo(int dataIndex)
|
||||
{
|
||||
this.dataIndex = dataIndex;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user