Skip to content

Ensure valid image dimensions.#90

Merged
crud89 merged 2 commits intomainfrom
min-fb-size
Mar 28, 2023
Merged

Ensure valid image dimensions.#90
crud89 merged 2 commits intomainfrom
min-fb-size

Conversation

@crud89
Copy link
Copy Markdown
Owner

@crud89 crud89 commented Mar 28, 2023

Describe the pull request

Currently, it is possible to allocate images with a dimension (width, height and/or depth) set to 0, which is not valid, since it would yield an empty memory block. Although this only produces warnings on most hardware, we should clamp image dimensions to 1 in any direction. This PR implements such clamping.

@crud89 crud89 added Priority: Low A low priority issue. Type: Requirement Vulkan πŸŒ‹ The issue involves the Vulkan backend. DX12 ❎ The issue involves the DX12 backend. labels Mar 28, 2023
@crud89 crud89 added this to the Alpha #04 milestone Mar 28, 2023
@crud89 crud89 self-assigned this Mar 28, 2023
@crud89 crud89 marked this pull request as ready for review March 28, 2023 09:06
@crud89 crud89 merged commit 623955c into main Mar 28, 2023
@crud89 crud89 deleted the min-fb-size branch March 28, 2023 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DX12 ❎ The issue involves the DX12 backend. Priority: Low A low priority issue. Vulkan πŸŒ‹ The issue involves the Vulkan backend.

Projects

Status: v0.4.1

Development

Successfully merging this pull request may close these issues.

1 participant