public override void Dispose() { VkApi.DestroyPipelineLayout(this.Device, GraphicsPipelineLayout, null); foreach (var layout in DescriptorSetLayouts) { VkApi.DestroyDescriptorSetLayout(this.Device, layout, null); } base.Dispose(); }