コード例 #1
0
        private static UniformsPack CreatePackWithPointerUniform(EPropElevationPointer elevationId)
        {
            var uniformsPack = new UniformsPack();

            uniformsPack.SetUniform("_Pointer", CastUtils.BitwiseCastUIntToFloat(elevationId.Value));
            return(uniformsPack);
        }
コード例 #2
0
        public EPropElevationPointer ClaimFreePointer(EPropElevationId id)
        {
            uint freeIndex = _pointersContainer.AddElement(null);
            var  pointer   = new EPropElevationPointer()
            {
                Value = freeIndex
            };

            _pointerIdDict.Add(id, pointer);
            return(pointer);
        }
コード例 #3
0
 public EPropElevationId RetriveId(EPropElevationPointer pointer)
 {
     return(_pointerIdDict.Get(pointer));
 }
コード例 #4
0
 public bool Equals(EPropElevationPointer other)
 {
     return(Value == other.Value);
 }