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