Skip to content

Commit

Permalink
Vulkan: Lift unmotivated restriction on texture size
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Dec 15, 2023
1 parent 43a2af4 commit 06ba002
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Common/GPU/Vulkan/VulkanImage.cpp
Expand Up @@ -42,7 +42,8 @@ bool VulkanTexture::CreateDirect(VkCommandBuffer cmd, int w, int h, int depth, i
ERROR_LOG(G3D, "Can't create a zero-size VulkanTexture");
return false;
}
if (w > 4096 || h > 4096) {
int maxDim = vulkan_->GetPhysicalDeviceProperties(0).properties.limits.maxImageDimension2D;
if (w > maxDim || h > maxDim) {
ERROR_LOG(G3D, "Can't create a texture this large");
return false;
}
Expand Down

0 comments on commit 06ba002

Please sign in to comment.