Ejemplo n.º 1
0
        public GLDescriptorPool(int poolSize, IGLImageDescriptorEntrypoint imgDescriptor)
        {
            Sets = new ConcurrentBag <GLDescriptorSet> ();

            for (int i = 0; i < poolSize; ++i)
            {
                var descriptorSet = new GLDescriptorSet(i, imgDescriptor);
                Sets.Add(descriptorSet);
            }
        }
Ejemplo n.º 2
0
 public bool TryTake(out GLDescriptorSet dSet)
 {
     return(Sets.TryTake(out dSet));
 }
Ejemplo n.º 3
0
 public void Add(GLDescriptorSet localSet)
 {
     Sets.Add(localSet);
 }