Skip to content

Commit 808e8d7

Browse files
Update Location Chapter (#320)
1 parent 4f4395d commit 808e8d7

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

chapters/images/location_example_array2.svg

Lines changed: 1 addition & 1 deletion
Loading

chapters/location_component_interface.adoc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,20 @@ image::{images}location_example_array.svg[location_example_array]
104104

105105
As seen, using a scalar or something such as a `vec2`/`float2` will leave many `Component` slots unused.
106106

107-
It is **not** allowed to use any other `Component` in a `Location` that is being consumed by an array
107+
It is **allowed** to use any other `Component` in a `Location` that is being consumed by an array
108+
109+
[NOTE]
110+
====
111+
This behavior is guaranteed to work correctly with CTS 1.4.4.0 and higher compliant drivers.
112+
====
108113

109114
[source,glsl]
110115
----
111116
layout(location=0) in float a[3];
112117
layout(location=2, component=2) in float b;
113118
----
114119

115-
`float b` is invalid because the array consumes all of `Location` 2.
120+
`float b` is still valid because the array consumes only the first part of `Location` 2.
116121

117122
image::{images}location_example_array2.svg[location_example_array2]
118123

0 commit comments

Comments
 (0)