From e1ba0b2d52d0bd4d69d594d0ed1156c00711cb83 Mon Sep 17 00:00:00 2001 From: Aleksi Juvani Date: Mon, 9 Sep 2019 15:57:57 +0300 Subject: [PATCH] Add missing limits --- libportability-gfx/src/conv.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libportability-gfx/src/conv.rs b/libportability-gfx/src/conv.rs index 3bbb4c5..1a53a29 100644 --- a/libportability-gfx/src/conv.rs +++ b/libportability-gfx/src/conv.rs @@ -49,6 +49,10 @@ pub fn limits_from_hal(limits: Limits) -> VkPhysicalDeviceLimits { maxSamplerAnisotropy: limits.max_sampler_anisotropy, optimalBufferCopyOffsetAlignment: limits.optimal_buffer_copy_offset_alignment, optimalBufferCopyRowPitchAlignment: limits.optimal_buffer_copy_pitch_alignment, + maxPerStageDescriptorSampledImages: limits.max_per_stage_descriptor_sampled_images as _, + maxPerStageDescriptorSamplers: limits.max_per_stage_descriptor_samplers as _, + maxDescriptorSetSampledImages: limits.max_descriptor_set_sampled_images as _, + maxDescriptorSetSamplers: limits.max_descriptor_set_samplers as _, .. unsafe { mem::zeroed() } //TODO } }