Beispiel #1
0
 public BufferLayoutElement(BufferLayoutElementTypes type, BufferLayoutElementUsages usage, int streamIndex, int usageIndex, int floatOffset)
 {
     Type = type;
     Usage = usage;
     StreamIndex = streamIndex;
     UsageIndex = usageIndex;
     FloatOffset = floatOffset;
 }
Beispiel #2
0
 public BufferLayoutElement(BufferLayoutElementTypes type, BufferLayoutElementUsages usage, int streamIndex, int usageIndex, int floatOffset)
 {
     Type        = type;
     Usage       = usage;
     StreamIndex = streamIndex;
     UsageIndex  = usageIndex;
     FloatOffset = floatOffset;
 }
Beispiel #3
0
        public List <BufferLayoutElement> ElementsUsages(BufferLayoutElementUsages usage)
        {
            List <BufferLayoutElement> newList = new List <BufferLayoutElement>();

            foreach (var element in Elements)
            {
                if (element.Usage == usage)
                {
                    newList.Add(element);
                }
            }
            return(newList);
        }
Beispiel #4
0
 public List<BufferLayoutElement> ElementsUsages(BufferLayoutElementUsages usage)
 {
     List<BufferLayoutElement> newList = new List<BufferLayoutElement>();
     foreach (var element in Elements)
     {
         if (element.Usage == usage) newList.Add(element);
     }
     return newList;
 }