• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2017-2022 The Khronos Group Inc.
2//
3// SPDX-License-Identifier: CC-BY-4.0
4
5include::{generated}/meta/{refprefix}VK_EXT_depth_range_unrestricted.adoc[]
6
7=== Other Extension Metadata
8
9*Last Modified Date*::
10    2017-06-22
11*Contributors*::
12  - Daniel Koch, NVIDIA
13  - Jeff Bolz, NVIDIA
14
15=== Description
16
17This extension removes the slink:VkViewport pname:minDepth and
18pname:maxDepth restrictions that the values must be between `0.0` and `1.0`,
19inclusive.
20It also removes the same restriction on
21slink:VkPipelineDepthStencilStateCreateInfo pname:minDepthBounds and
22pname:maxDepthBounds.
23Finally it removes the restriction on the pname:depth value in
24slink:VkClearDepthStencilValue.
25
26include::{generated}/interfaces/VK_EXT_depth_range_unrestricted.adoc[]
27
28=== Issues
29
301) How do slink:VkViewport pname:minDepth and pname:maxDepth values outside
31of the `0.0` to `1.0` range interact with
32<<vertexpostproc-clipping,Primitive Clipping>>?
33
34*RESOLVED*: The behavior described in <<vertexpostproc-clipping,Primitive
35Clipping>> still applies.
36If depth clamping is disabled the depth values are still clipped to [eq]#0
37{leq} z~c~ {leq} w~c~# before the viewport transform.
38If depth clamping is enabled the above equation is ignored and the depth
39values are instead clamped to the slink:VkViewport pname:minDepth and
40pname:maxDepth values, which in the case of this extension can be outside of
41the `0.0` to `1.0` range.
42
432) What happens if a resulting depth fragment is outside of the `0.0` to
44`1.0` range and the depth buffer is fixed-point rather than floating-point?
45
46*RESOLVED*: This situation can also arise without this extension (when
47fragment shaders replace depth values, for example), and this extension does
48not change the behaviour, which is defined in the <<fragops-depth,Depth
49Test>> section of the Fragment Operations chapter.
50
51=== Version History
52
53  * Revision 1, 2017-06-22 (Piers Daniell)
54  ** Internal revisions
55