Beispiel #1
0
        public void ResetResource(GLDescriptorPoolResourceInfo resourceInfo)
        {
            if (resourceInfo != null)
            {
                switch (resourceInfo.GroupType)
                {
                case GLDescriptorBindingGroup.UniformBuffer:
                    UniformBuffers.Free(resourceInfo.Ticket);
                    break;

                case GLDescriptorBindingGroup.CombinedImageSampler:
                    CombinedImageSamplers.Free(resourceInfo.Ticket);
                    break;

                case GLDescriptorBindingGroup.StorageBuffer:
                    StorageBuffers.Free(resourceInfo.Ticket);
                    break;
                }
            }
        }
Beispiel #2
0
 public void ResetResource(GLDescriptorPoolResourceInfo resource)
 {
 }