private DescriptorSet Bind(uint dstBinding, ref VkDescriptorBufferInfo bufferInfo, BufferView bufferView) { var descriptorType = resourceLayout.Bindings[(int)dstBinding].descriptorType; for (int img = 0; img < Swapchain.IMAGE_COUNT; img++) { AddWriteDescriptorSet(img, new VkWriteDescriptorSet(dstBinding, descriptorSet[img], descriptorType, ref bufferInfo, ref bufferView.HandleRef)); } return(this); }
public void CreateView(VkFormat format, ulong offset, ulong range) { view = new BufferView(this, format, offset, range); }