Package org.lwjgl.vulkan
Class EXTShaderViewportIndexLayer
- java.lang.Object
-
- org.lwjgl.vulkan.EXTShaderViewportIndexLayer
-
public final class EXTShaderViewportIndexLayer extends java.lang.Object
This extension adds support for theShaderViewportIndexLayerEXT
capability from theSPV_EXT_shader_viewport_index_layer
extension in Vulkan.This extension allows variables decorated with the
Layer
andViewportIndex
built-ins to be exported from vertex or tessellation shaders, using theShaderViewportIndexLayerEXT
capability.When using GLSL source-based shading languages, the
gl_ViewportIndex
andgl_Layer
built-in variables map to the SPIR-VViewportIndex
andLayer
built-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_array2
extensions).Note
The
ShaderViewportIndexLayerEXT
capability is equivalent to theShaderViewportIndexLayerNV
capability added byVK_NV_viewport_array2
.- 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
- Contact
- Daniel Koch dgkoch
- Last Modified Date
- 2017-08-08
- Interactions and External Dependencies
- This extension requires the
SPV_EXT_shader_viewport_index_layer
SPIR-V extension. - This extension requires the
GL_ARB_shader_viewport_layer_array
,GL_AMD_vertex_shader_layer
,GL_AMD_vertex_shader_viewport_index
, orGL_NV_viewport_array2
extensions for GLSL source languages. - This extension requires the
multiViewport
feature. - This extension interacts with the
tessellationShader
feature.
- This extension requires the
- 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.String
VK_EXT_SHADER_VIEWPORT_INDEX_LAYER_EXTENSION_NAME
The extension name.static int
VK_EXT_SHADER_VIEWPORT_INDEX_LAYER_SPEC_VERSION
The 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
-
-