Additional layout-related error checking.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@21108 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
bcd79fe5a3
commit
63eed3867a
3 changed files with 27 additions and 18 deletions
|
|
@ -1,29 +1,15 @@
|
|||
#version 300 es
|
||||
|
||||
in vec4 pos;
|
||||
in vec4 color;
|
||||
layout (location = 2) in vec4 color; // ERROR
|
||||
|
||||
layout(location = 7) out vec4 c;
|
||||
layout(location = 1) out vec4 c;
|
||||
layout(location = 3) out vec4 p;
|
||||
|
||||
//layout(std140) uniform Transform { // layout of this block is std140
|
||||
// mat4 M1; // row_major
|
||||
// layout(column_major) mat4 M2; // column major
|
||||
// mat3 N1; // row_major
|
||||
//};
|
||||
//
|
||||
//uniform T2 { // layout of this block is shared
|
||||
//...
|
||||
//};
|
||||
//
|
||||
//layout(column_major) uniform T3 { // shared and column_major
|
||||
// mat4 M3; // column_major
|
||||
// layout(row_major) mat4 m4; // row major
|
||||
// mat3 N2; // column_major
|
||||
//};
|
||||
layout(location = 4) out vec4 q[2];
|
||||
|
||||
void main()
|
||||
{
|
||||
c = color;
|
||||
p = pos;
|
||||
q[1] = pos;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue