google / filament

Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2

Home Page:https://google.github.io/filament/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FrameGraph creates passes with 0 width in some coner cases.

daemyung opened this issue · comments

Describe the bug
FrameGraph creates passes with 0 width or 0 height in some coner cases.

To Reproduce
Steps to reproduce the behavior:

  1. Run gltf_viewer
  2. Resize gltf_vewer to very small size.
  3. Print a Vulkan validation error.

Expected behavior
Minimum width or height should be 1.

Logs

VULKAN ERROR: (VUID-VkImageCreateInfo-extent-00944) Validation Error: [ VUID-VkImageCreateInfo-extent-00944 ]
Object 0: handle = 0x7fac3e899018, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x8869da08 |
vkCreateImage: parameter pCreateInfo->extent.width (= 0) is not greater than 0
The Vulkan spec states: extent.width must be greater than 0
(https://vulkan.lunarg.com/doc/view/1.3.204.0/mac/1.3-extensions/vkspec.html#VUID-VkImageCreateInfo-extent-00944)