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); }
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); }