示例#1
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);
        }
示例#2
0
        void SetupUniformBlocks(uint noOfUniformBlocks)
        {
            var blocks = new GLBufferDescriptor[noOfUniformBlocks];

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

            UniformBuffers = new GLPoolResource <GLBufferDescriptor>(
                noOfUniformBlocks,
                blocks);
        }