From b19dbb8936cb1b0f4b2bdd82848687c57741e592 Mon Sep 17 00:00:00 2001 From: Felix Kaaman Date: Sun, 24 Jun 2018 14:55:19 +0300 Subject: [PATCH] add `maxColorAttachments` to device limit conversion --- libportability-gfx/src/conv.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/libportability-gfx/src/conv.rs b/libportability-gfx/src/conv.rs index c8dee1a..cb8b2ae 100644 --- a/libportability-gfx/src/conv.rs +++ b/libportability-gfx/src/conv.rs @@ -32,6 +32,7 @@ pub fn limits_from_hal(limits: Limits) -> VkPhysicalDeviceLimits { framebufferColorSampleCounts: limits.framebuffer_color_samples_count as _, framebufferDepthSampleCounts: limits.framebuffer_depth_samples_count as _, framebufferStencilSampleCounts: limits.framebuffer_stencil_samples_count as _, + maxColorAttachments: limits.max_color_attachments as _, nonCoherentAtomSize: limits.non_coherent_atom_size as _, .. unsafe { mem::zeroed() } //TODO }