Add support for GL_ARB_explicit_uniform_location
This commit is contained in:
parent
a3bc04b278
commit
d2b24ae5d7
7 changed files with 54 additions and 6 deletions
|
|
@ -149,4 +149,17 @@ void fooKeyMem()
|
|||
KeyMem.precise;
|
||||
}
|
||||
|
||||
layout(location=28, index=2) out vec4 outIndex2; // ERROR index out of range
|
||||
layout(location=28, index=2) out vec4 outIndex2; // ERROR index out of range
|
||||
|
||||
layout(location=4) uniform vec4 ucolor0; // ERROR: extension is not enabled
|
||||
|
||||
#extension GL_ARB_explicit_uniform_location : enable
|
||||
|
||||
layout(location=5) uniform vec4 ucolor1;
|
||||
|
||||
layout(location=6) uniform ColorsBuffer // ERROR: location cannot be applied in uniform buffer block
|
||||
{
|
||||
vec4 colors[128];
|
||||
} colorsBuffer;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue