예제 #1
0
        void SetupCombinedImageSamplers(IGLImageDescriptorEntrypoint entrypoint, uint noOfCombinedImageSamplers)
        {
            var cis = new GLImageDescriptor[noOfCombinedImageSamplers];

            for (var i = 0; i < noOfCombinedImageSamplers; i += 1)
            {
                cis[i] = new GLImageDescriptor(entrypoint);
            }
            CombinedImageSamplers = new GLPoolResource <GLImageDescriptor>(
                noOfCombinedImageSamplers,
                cis);
        }
예제 #2
0
        void SetupStorageBuffers(uint noOfStorageBuffers)
        {
            var buffers = new GLBufferDescriptor[noOfStorageBuffers];

            for (var i = 0; i < noOfStorageBuffers; i += 1)
            {
                buffers[i] = new GLBufferDescriptor();
            }

            StorageBuffers = new GLPoolResource <GLBufferDescriptor>(
                noOfStorageBuffers,
                buffers);
        }