diff options
author | MinusKube <minuskube@gmail.com> | 2022-08-22 00:16:56 +0200 |
---|---|---|
committer | MinusKube <minuskube@gmail.com> | 2022-09-04 22:48:54 +0200 |
commit | f5a808192b263b7227b448492cc65d9145e18afd (patch) | |
tree | 6e7cd72df7c8b08ecbfdeb9af2ff1d72090c8580 /drivers/vulkan | |
parent | e7a0a97c0bc5d86644e62d537503e3b05313a01c (diff) |
Prevent windows from having a size greater than device limit
Diffstat (limited to 'drivers/vulkan')
-rw-r--r-- | drivers/vulkan/rendering_device_vulkan.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/vulkan/rendering_device_vulkan.cpp b/drivers/vulkan/rendering_device_vulkan.cpp index 6a88f2c442..4590a7c0c6 100644 --- a/drivers/vulkan/rendering_device_vulkan.cpp +++ b/drivers/vulkan/rendering_device_vulkan.cpp @@ -9688,6 +9688,10 @@ uint64_t RenderingDeviceVulkan::limit_get(Limit p_limit) const { return limits.maxComputeWorkGroupSize[1]; case LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_Z: return limits.maxComputeWorkGroupSize[2]; + case LIMIT_MAX_VIEWPORT_DIMENSIONS_X: + return limits.maxViewportDimensions[0]; + case LIMIT_MAX_VIEWPORT_DIMENSIONS_Y: + return limits.maxViewportDimensions[1]; case LIMIT_SUBGROUP_SIZE: { VulkanContext::SubgroupCapabilities subgroup_capabilities = context->get_subgroup_capabilities(); return subgroup_capabilities.size; |