1// Copyright (c) 2018-2020 NVIDIA Corporation
2//
3// SPDX-License-Identifier: CC-BY-4.0
4
5include::{generated}/meta/{refprefix}VK_NV_scissor_exclusive.txt[]
6
7=== Other Extension Metadata
8
9*Last Modified Date*::
10    2018-07-31
11*IP Status*::
12    No known IP claims.
13*Interactions and External Dependencies*::
14    None
15*Contributors*::
16  - Pat Brown, NVIDIA
17  - Jeff Bolz, NVIDIA
18  - Piers Daniell, NVIDIA
19  - Daniel Koch, NVIDIA
20
21=== Description
22
23This extension adds support for an exclusive scissor test to Vulkan.
24The exclusive scissor test behaves like the scissor test, except that the
25exclusive scissor test fails for pixels inside the corresponding rectangle
26and passes for pixels outside the rectangle.
27If the same rectangle is used for both the scissor and exclusive scissor
28tests, the exclusive scissor test will pass if and only if the scissor test
29fails.
30
31include::{generated}/interfaces/VK_NV_scissor_exclusive.txt[]
32
33=== Issues
34
351) For the scissor test, the viewport state must be created with a matching
36   number of scissor and viewport rectangles.
37   Should we have the same requirement for exclusive scissors?
38
39*RESOLVED*: For exclusive scissors, we relax this requirement and allow an
40exclusive scissor rectangle count that is either zero or equal to the number
41of viewport rectangles.
42If you pass in an exclusive scissor count of zero, the exclusive scissor
43test is treated as disabled.
44
45=== Version History
46
47  * Revision 1, 2018-07-31 (Pat Brown)
48    - Internal revisions
49