Class EXTShaderViewportIndexLayer
- java.lang.Object
-
- org.lwjgl.vulkan.EXTShaderViewportIndexLayer
-
public final class EXTShaderViewportIndexLayer extends java.lang.ObjectThis extension adds support for theShaderViewportIndexLayerEXTcapability from theSPV_EXT_shader_viewport_index_layerextension in Vulkan.This extension allows variables decorated with the
LayerandViewportIndexbuilt-ins to be exported from vertex or tessellation shaders, using theShaderViewportIndexLayerEXTcapability.When using GLSL source-based shading languages, the
gl_ViewportIndexandgl_Layerbuilt-in variables map to the SPIR-VViewportIndexandLayerbuilt-in decorations, respectively. Behaviour of these variables is extended as described in theGL_ARB_shader_viewport_layer_array(or the precursorGL_AMD_vertex_shader_layer,GL_AMD_vertex_shader_viewport_index, andGL_NV_viewport_array2extensions).Note
The
ShaderViewportIndexLayerEXTcapability is equivalent to theShaderViewportIndexLayerNVcapability added byVK_NV_viewport_array2.Promotion to Vulkan 1.2
All functionality in this extension is included in core Vulkan 1.2.
The single
ShaderViewportIndexLayerEXTcapability from theSPV_EXT_shader_viewport_index_layerextension is replaced by theShaderViewportIndexandShaderLayercapabilities from SPIR-V 1.5 which are enabled by the shaderOutputViewportIndex and shaderOutputLayer features, respectively. Additionally, if Vulkan 1.2 is supported but this extension is not, these capabilities are optional.Enabling both features is equivalent to enabling the
VK_EXT_shader_viewport_index_layerextension.VK_EXT_shader_viewport_index_layer
- Name String
VK_EXT_shader_viewport_index_layer- Extension Type
- Device extension
- Registered Extension Number
- 163
- Revision
- 1
- Extension and Version Dependencies
- Requires Vulkan 1.0
- Deprecation state
- Promoted to Vulkan 1.2
- Contact
- Daniel Koch dgkoch
Other Extension Metadata
- Last Modified Date
- 2017-08-08
- Interactions and External Dependencies
- Promoted to Vulkan 1.2 Core
- This extension requires
SPV_EXT_shader_viewport_index_layer - This extension provides API support for
GL_ARB_shader_viewport_layer_array,GL_AMD_vertex_shader_layer,GL_AMD_vertex_shader_viewport_index, andGL_NV_viewport_array2 - This extension requires the
multiViewportfeature. - This extension interacts with the
tessellationShaderfeature.
- Contributors
- Piers Daniell, NVIDIA
- Jeff Bolz, NVIDIA
- Jan-Harald Fredriksen, ARM
- Daniel Rakos, AMD
- Slawomir Grajeswki, Intel
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringVK_EXT_SHADER_VIEWPORT_INDEX_LAYER_EXTENSION_NAMEThe extension name.static intVK_EXT_SHADER_VIEWPORT_INDEX_LAYER_SPEC_VERSIONThe extension specification version.
-
-
-
Field Detail
-
VK_EXT_SHADER_VIEWPORT_INDEX_LAYER_SPEC_VERSION
public static final int VK_EXT_SHADER_VIEWPORT_INDEX_LAYER_SPEC_VERSION
The extension specification version.- See Also:
- Constant Field Values
-
VK_EXT_SHADER_VIEWPORT_INDEX_LAYER_EXTENSION_NAME
public static final java.lang.String VK_EXT_SHADER_VIEWPORT_INDEX_LAYER_EXTENSION_NAME
The extension name.- See Also:
- Constant Field Values
-
-