Fix max viewport size limit

This commit is contained in:
Dzmitry Malyshau 2019-03-04 16:25:17 -05:00
parent 0fe866eda8
commit 2c6886401d
2 changed files with 2 additions and 0 deletions

View file

@ -18,6 +18,7 @@ pub fn limits_from_hal(limits: Limits) -> VkPhysicalDeviceLimits {
maxTessellationPatchSize: limits.max_patch_size as _,
maxPushConstantsSize: 0x80, //TODO
maxViewports: limits.max_viewports as _,
maxViewportDimensions: [limits.max_texture_size as u32; 2],
maxVertexInputAttributes: limits.max_vertex_input_attributes as _,
maxVertexInputBindings: limits.max_vertex_input_bindings as _,
maxVertexInputAttributeOffset: limits.max_vertex_input_attribute_offset as _,

View file

@ -1086,6 +1086,7 @@ pub extern "C" fn gfxQueueSubmit(
};
// only provide the fence for the last submission
//TODO: support multiple submissions at gfx-hal level
let fence = if i + 1 == submits.len() {
fence.as_ref()
} else {