Merge pull request #1880 from georgeouzou/master
Add support for GL_ARB_explicit_uniform_location
This commit is contained in:
@@ -167,3 +167,12 @@ void qux2()
|
||||
}
|
||||
|
||||
layout(early_fragment_tests) out; // ERROR
|
||||
|
||||
#extension GL_ARB_explicit_uniform_location : enable
|
||||
|
||||
layout(location = 3) uniform vec4 ucolor0; // ERROR: explicit attrib location is also required for version < 330
|
||||
|
||||
#extension GL_ARB_explicit_attrib_location : enable
|
||||
|
||||
layout(location = 4) uniform vec4 ucolor1;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
|
||||
@@ -29,10 +29,13 @@ ERROR: 0:153: 'early_fragment_tests' : not supported for this version or the ena
|
||||
ERROR: 0:154: 'image load store' : not supported for this version or the enabled extensions
|
||||
ERROR: 0:154: 'iimage2D' : Reserved word.
|
||||
ERROR: 0:169: 'early_fragment_tests' : can only apply to 'in'
|
||||
ERROR: 28 compilation errors. No code generated.
|
||||
ERROR: 0:173: 'location qualifier on uniform or buffer' : not supported for this version or the enabled extensions
|
||||
ERROR: 29 compilation errors. No code generated.
|
||||
|
||||
|
||||
Shader version: 130
|
||||
Requested GL_ARB_explicit_attrib_location
|
||||
Requested GL_ARB_explicit_uniform_location
|
||||
Requested GL_ARB_gpu_shader5
|
||||
Requested GL_ARB_separate_shader_objects
|
||||
Requested GL_ARB_shader_image_load_store
|
||||
@@ -402,12 +405,16 @@ ERROR: node is still EOpNull!
|
||||
0:? 'gl_FogFragCoord' ( smooth in float)
|
||||
0:? 'iimg2Dbad' (layout( r32i) uniform iimage2D)
|
||||
0:? 'iimg2D' (layout( r32i) uniform iimage2D)
|
||||
0:? 'ucolor0' (layout( location=3) uniform 4-component vector of float)
|
||||
0:? 'ucolor1' (layout( location=4) uniform 4-component vector of float)
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
|
||||
|
||||
Shader version: 130
|
||||
Requested GL_ARB_explicit_attrib_location
|
||||
Requested GL_ARB_explicit_uniform_location
|
||||
Requested GL_ARB_gpu_shader5
|
||||
Requested GL_ARB_separate_shader_objects
|
||||
Requested GL_ARB_shader_image_load_store
|
||||
@@ -457,4 +464,6 @@ ERROR: node is still EOpNull!
|
||||
0:? 'gl_FogFragCoord' ( smooth in float)
|
||||
0:? 'iimg2Dbad' (layout( r32i) uniform iimage2D)
|
||||
0:? 'iimg2D' (layout( r32i) uniform iimage2D)
|
||||
0:? 'ucolor0' (layout( location=3) uniform 4-component vector of float)
|
||||
0:? 'ucolor1' (layout( location=4) uniform 4-component vector of float)
|
||||
|
||||
|
||||
@@ -40,11 +40,14 @@ ERROR: 0:140: 'assign' : cannot convert from ' const float' to ' temp 2-compone
|
||||
ERROR: 0:141: 'textureQueryLod' : no matching overloaded function found
|
||||
ERROR: 0:141: 'assign' : cannot convert from ' const float' to ' temp 2-component vector of float'
|
||||
ERROR: 0:152: 'index' : value must be 0 or 1
|
||||
ERROR: 41 compilation errors. No code generated.
|
||||
ERROR: 0:154: 'location qualifier on uniform or buffer' : not supported for this version or the enabled extensions
|
||||
ERROR: 0:160: 'location' : cannot apply to uniform or buffer block
|
||||
ERROR: 43 compilation errors. No code generated.
|
||||
|
||||
|
||||
Shader version: 330
|
||||
Requested GL_ARB_enhanced_layouts
|
||||
Requested GL_ARB_explicit_uniform_location
|
||||
Requested GL_ARB_separate_shader_objects
|
||||
ERROR: node is still EOpNull!
|
||||
0:8 Function Definition: main( ( global void)
|
||||
@@ -126,6 +129,9 @@ ERROR: node is still EOpNull!
|
||||
0:? 'precise' ( global int)
|
||||
0:? 'KeyMem' ( global structure{ global int precise})
|
||||
0:? 'outIndex2' (layout( location=28 index=0) out 4-component vector of float)
|
||||
0:? 'ucolor0' (layout( location=4) uniform 4-component vector of float)
|
||||
0:? 'ucolor1' (layout( location=5) uniform 4-component vector of float)
|
||||
0:? 'colorsBuffer' (layout( location=6 column_major shared) uniform block{layout( column_major shared) uniform 128-element array of 4-component vector of float colors})
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
@@ -135,6 +141,7 @@ ERROR: Linking fragment stage: Cannot use both gl_FragColor and gl_FragData
|
||||
|
||||
Shader version: 330
|
||||
Requested GL_ARB_enhanced_layouts
|
||||
Requested GL_ARB_explicit_uniform_location
|
||||
Requested GL_ARB_separate_shader_objects
|
||||
ERROR: node is still EOpNull!
|
||||
0:8 Function Definition: main( ( global void)
|
||||
@@ -191,4 +198,7 @@ ERROR: node is still EOpNull!
|
||||
0:? 'precise' ( global int)
|
||||
0:? 'KeyMem' ( global structure{ global int precise})
|
||||
0:? 'outIndex2' (layout( location=28 index=0) out 4-component vector of float)
|
||||
0:? 'ucolor0' (layout( location=4) uniform 4-component vector of float)
|
||||
0:? 'ucolor1' (layout( location=5) uniform 4-component vector of float)
|
||||
0:? 'colorsBuffer' (layout( location=6 column_major shared) uniform block{layout( column_major shared) uniform 128-element array of 4-component vector of float colors})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user