mirror of
https://github.com/italicsjenga/portability.git
synced 2024-11-27 01:11:32 +11:00
Fix max viewport size limit
This commit is contained in:
parent
0fe866eda8
commit
2c6886401d
|
@ -18,6 +18,7 @@ pub fn limits_from_hal(limits: Limits) -> VkPhysicalDeviceLimits {
|
||||||
maxTessellationPatchSize: limits.max_patch_size as _,
|
maxTessellationPatchSize: limits.max_patch_size as _,
|
||||||
maxPushConstantsSize: 0x80, //TODO
|
maxPushConstantsSize: 0x80, //TODO
|
||||||
maxViewports: limits.max_viewports as _,
|
maxViewports: limits.max_viewports as _,
|
||||||
|
maxViewportDimensions: [limits.max_texture_size as u32; 2],
|
||||||
maxVertexInputAttributes: limits.max_vertex_input_attributes as _,
|
maxVertexInputAttributes: limits.max_vertex_input_attributes as _,
|
||||||
maxVertexInputBindings: limits.max_vertex_input_bindings as _,
|
maxVertexInputBindings: limits.max_vertex_input_bindings as _,
|
||||||
maxVertexInputAttributeOffset: limits.max_vertex_input_attribute_offset as _,
|
maxVertexInputAttributeOffset: limits.max_vertex_input_attribute_offset as _,
|
||||||
|
|
|
@ -1086,6 +1086,7 @@ pub extern "C" fn gfxQueueSubmit(
|
||||||
};
|
};
|
||||||
|
|
||||||
// only provide the fence for the last submission
|
// only provide the fence for the last submission
|
||||||
|
//TODO: support multiple submissions at gfx-hal level
|
||||||
let fence = if i + 1 == submits.len() {
|
let fence = if i + 1 == submits.len() {
|
||||||
fence.as_ref()
|
fence.as_ref()
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue