SPIR-V Built-In
LayerPerViewNV
Layer index per view for layered rendering
LayerPerViewNV
Decorating a variable with the LayerPerViewNV
built-in decoration will
make that variable contain the per-view layer information.
The per-view layer has the same semantics as Layer
, for each view.
Valid Usage
VUID-LayerPerViewNV-LayerPerViewNV-04277
The LayerPerViewNV
decoration must be used only within the
MeshNV
Execution
Model
VUID-LayerPerViewNV-LayerPerViewNV-04278
The variable decorated with LayerPerViewNV
must be declared using
the Output
Storage
Class
VUID-LayerPerViewNV-LayerPerViewNV-04279
The variable decorated with LayerPerViewNV
must also be decorated
with the PerViewNV
decoration
VUID-LayerPerViewNV-LayerPerViewNV-04280
The variable decorated with LayerPerViewNV
must be declared as an
array of scalar 32-bit integer values