Use dynamic viewport states. #12
Labels
Module: Vulkan 🌋
The issue involves the Vulkan backend.
Priority: Medium
A issue with normal priority.
Type: Feature Request
New feature or request.
Type: Requirement
An implementation is required before the next release.
Milestone
In Vulkan there are two ways for updating a viewport. Currently only static viewports, that are directly passed to the pipeline during creation are supported. The problem is, that a resize requires all pipelines to be recreated in this case, which can be inefficient. Dynamic viewport states do not require the pipeline itself to be recreated, but only the swap-chain. In this case, a
vkCmdSetViewport
call is made to set the viewport. The problem with this approach, however, is, that it might not be as efficient during runtime.Since there are tradeoffs with both approaches, we should support them both.
The text was updated successfully, but these errors were encountered: