KhronosGroup / KhronosGroup/Vulkan-Docs

Dynamic rectangle count for VK_EXT_discard_rectangles

Open
#2,119 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.3k
Forks
549
Avg merge
5d 5h
Merged PRs (30d)
2

Description

Right now clients wishing to use `VK_EXT_discard_rectangles` need to provide a static `discardRectangleCount` at pipeline creation stage. This is an issue if the number of rectangles is not known in advance.

Would it be reasonable to add a new `vkCmdSetDiscardRectangleCountEXT` command to dynamically set the number of discard rectangles?

Alternatively, as a workaround, can "no-op" rectangles with a zero width/height be provided?

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the VK_EXT_discard_rectangles specification and the issue's questions about pipeline creation and zero-size rectangles. A complete outcome would clarify whether a dynamic discard-rectangle count is appropriate and document the accepted behavior or workaround.

Written by the indexing model from the issue text.

Assessment

Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.