Class NVViewportArray2
- java.lang.Object
-
- org.lwjgl.vulkan.NVViewportArray2
-
public final class NVViewportArray2 extends java.lang.Object
This extension adds support for the following SPIR-V extension in Vulkan:SPV_NV_viewport_array2
which allows a single primitive to be broadcast to multiple viewports and/or multiple layers. A new shader built-in output
ViewportMaskNV
is provided, which allows a single primitive to be output to multiple viewports simultaneously. Also, a new SPIR-V decoration is added to control whether the effective viewport index is added into the variable decorated with theLayer
built-in decoration. These capabilities allow a single primitive to be output to multiple layers simultaneously.This extension allows variables decorated with the
Layer
andViewportIndex
built-ins to be exported from vertex or tessellation shaders, using theShaderViewportIndexLayerNV
capability.This extension adds a new
ViewportMaskNV
built-in decoration that is available for output variables in vertex, tessellation evaluation, and geometry shaders, and a newViewportRelativeNV
decoration that can be added on variables decorated withLayer
when using theShaderViewportMaskNV
capability.When using GLSL source-based shading languages, the
gl_ViewportMask
[] built-in output variable andviewport_relative
layout qualifier fromGL_NV_viewport_array2
map to theViewportMaskNV
andViewportRelativeNV
decorations, respectively. Behaviour is described in theGL_NV_viewport_array2
extension specificiation.Note
The
ShaderViewportIndexLayerNV
capability is equivalent to theShaderViewportIndexLayerEXT
capability added byVK_EXT_shader_viewport_index_layer
.- Name String
VK_NV_viewport_array2
- Extension Type
- Device extension
- Registered Extension Number
- 97
- Revision
- 1
- Extension and Version Dependencies
- Requires Vulkan 1.0
- Contact
- Daniel Koch dgkoch
- Last Modified Date
- 2017-02-15
- Interactions and External Dependencies
- This extension requires the
SPV_NV_viewport_array2
SPIR-V extension. - This extension requires the
GL_NV_viewport_array2
extension for GLSL source languages. - This extension requires the
geometryShader
andmultiViewport
features. - This extension interacts with the
tessellationShader
feature.
- This extension requires the
- Contributors
- Piers Daniell, NVIDIA
- Jeff Bolz, NVIDIA
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
VK_NV_VIEWPORT_ARRAY2_EXTENSION_NAME
The extension name.static int
VK_NV_VIEWPORT_ARRAY2_SPEC_VERSION
The extension specification version.
-
-
-
Field Detail
-
VK_NV_VIEWPORT_ARRAY2_SPEC_VERSION
public static final int VK_NV_VIEWPORT_ARRAY2_SPEC_VERSION
The extension specification version.- See Also:
- Constant Field Values
-
VK_NV_VIEWPORT_ARRAY2_EXTENSION_NAME
public static final java.lang.String VK_NV_VIEWPORT_ARRAY2_EXTENSION_NAME
The extension name.- See Also:
- Constant Field Values
-
-