Status
-
Complete
-
Approved by the SPIR Working group: 2017-01-11
-
Approved by the Khronos Board of Promoters: 2017-02-24
Dependencies
This extension is written against the SPIR-V Specification, Version 1.1 Revision 4.
This extension requires SPIR-V 1.0.
Overview
This extension adds a new capability to support the Vulkan VK_KHX_multiview extension in SPIR-V.
The new MultiView capability allows the ViewIndex builtin variable to be exported from all shaders stages except compute, which represents the index of view currently being rendered to.
Extension Name
To use this extension within a SPIR-V module, the following OpExtension must be present in the module:
OpExtension "SPV_KHR_multiview"
New Builtins
A new builtin is added as an input for all shader stages except compute.
ViewIndex
Input view index of the view currently being rendered to.
Token Number Assignments
MultiView |
4439 |
ViewIndex |
4440 |
- (Modify Section 3.21, BuiltIn)
-
(add a new row to the Builtin table)
BuiltIn Enabling Capabilities 4440
ViewIndex
Input view index of the view currently being rendered to. See VK_KHX_multiview for more details.MultiView
- (Modify Section 3.31, Capability, adding new row to the Capability table)
-
Capability Implicitly Declares Enabled by Extension 4439
MultiView
Shader
SPV_KHR_multiview