Lines Matching defs:location
216 str << "layout(location = ";
670 , location(_location)
678 int currentLocation = location.val;
730 Loc location;
803 , location(_location)
835 , location(_location)
898 Loc location;
966 uniforms[i].location.streamDefinition(ret, shader);
1002 //layout(location = X) subroutine uniform stX uX[...];
1003 subroutineUniforms[i].location.streamDefinition(ret, shader);
1431 if (uniform.location.isImplicit(program.stages))
1440 loc = uniform.location.val;
1520 if (subroutineUniform.location.isImplicit(program.stages))
1529 loc = subroutineUniform.location.val + arrayElem;
1652 explicit location (if passed in GLSL code) and is less than value of
1674 if (!uniform.location.isImplicit(program.stages))
1676 reservedLocation = uniform.location.val + arrayElem;
1680 bool runQueries = uniform.location.isImplicit(program.stages) ||
1708 if (!uniform.location.isImplicit(program.stages))
1710 //Validate uniform location against explicit value
1715 Logger() << "Unexpected uniform \"" << name.str() << "\" location: expected " << expected
1721 //Check if location > 0 if used;
1728 << "\" location: expected positive value, got " << returned << ".";
1739 //check if location is less than max
1744 Logger() << "Uniform \"" << name.str() << "\" returned location (" << returned
1753 //check if location is unique
1757 Logger() << "Uniform location (" << reservedLocation << ") is not unique.";
1774 matches explicit location (if passed in GLSL code) and is less than
1822 if (!subroutineUniform.location.isImplicit(std::vector<glw::GLenum>(1, stage)))
1824 //Validate uniform location against explicit value
1825 GLint expected = subroutineUniform.location.val + arrayElem;
1829 Logger() << "Unexpected subroutine uniform \"" << name.str() << "\" location: expected " << expected
1837 //Check if location > 0 if used;
1844 << "\" location: expected positive value, got " << returned << ".";
1855 //check if location is unique
1859 Logger() << "Subroutine uniform \"" << name.str() << "\" location (" << reservedLocation
1867 //check if location is less than max
1872 Logger() << "Subroutine uniform \"" << name.str() << "\" returned location (" << returned
1931 //Validate uniform location against explicit value
1944 //Check if location > 0 if used;
1962 //check if location is unique
1973 //check if location is less than max
2135 //layout (location = 2) uniform vec4 u0;
2146 //layout (location = 0x0a) uniform vec4 u0;
2147 //layout (location = 010) uniform vec4 u1;
2161 //layout (location = 2) uniform vec4 u0;
2172 //layout (location = 2) uniform vec4 u0;
2173 //layout (location = 3) uniform vec4 u1;
2174 //layout (location = 5) uniform vec4 u2;
2187 //layout (location = 2) uniform float u0;
2188 //layout (location = 3) uniform vec3 u1;
2189 //layout (location = 0) uniform uint u2;
2190 //layout (location = 1) uniform ivec3 u3;
2191 //layout (location = 4) uniform mat2 u4;
2192 //layout (location = 7) uniform mat2 u5;
2193 //layout (location = 5) uniform mat2 u6;
2194 //layout (location = 6) uniform mat3 u7;
2213 //layout (location = 1) uniform mat2x3 u0;
2214 //layout (location = 2) uniform mat3x2 u1;
2215 //layout (location = 0) uniform mat2 u2;
2216 //layout (location = 3) uniform imat3x4 u3;
2229 //layout (location = 1) uniform sampler2D s0[3];
2230 //layout (location = 13) uniform sampler2D s1;
2285 * layout (location = 1) uniform S s0[3];
2286 * layout (location = 13) uniform S s1;
2304 //layout (location = 2) uniform float[3] u0;
2305 //layout (location = 5) uniform vec3[2] u1;
2306 //layout (location = 7) uniform int[3] u2;
2307 //layout (location = 10) uniform ivec4 u3;
2321 //layout (location = 2) uniform float u0;
2322 //layout (location = 5) uniform vec3[2] u1;
2323 //layout (location = 8) uniform int[3] u2;
2324 //layout (location = 12) uniform ivec4[1] u3;
2338 //layout (location = 2) uniform float[2][3] u0;
2339 //layout (location = 8) uniform vec3[2][2] u1;
2340 //layout (location = 12) uniform float u2;
2363 //layout (location = 0) uniform float u0;
2364 //layout (location = 2) uniform vec3 u1;
2365 //layout (location = 3) uniform int u2;
2383 //layout (location = 3) uniform vec3[2] u1;
2385 //layout (location = 8) uniform ivec4 u3;
2399 //layout (location = 0) uniform float u0; //unused
2400 //layout (location = 2) uniform vec3 u1; //unused
2401 //layout (location = 3) uniform int u2; //unused
2443 assert(uniforms[uniforms.size() - 1].location.val + uniforms[uniforms.size() - 1].type.arraySize ==
2453 assert(uniforms[uniforms.size() - 1].location.val + uniforms[uniforms.size() - 1].type.arraySize ==
2487 assert(uniforms[uniforms.size() - 1].location.val + uniforms[uniforms.size() - 1].type.arraySize ==
2497 assert(uniforms[uniforms.size() - 1].location.val + uniforms[uniforms.size() - 1].type.arraySize ==
2512 //Another shader: layout (location = 3) uniform float u0;
2524 //Another shader: layout (location = 3) uniform float u0; //not used!
2527 //location only in fsh, declaration in all shaders, usage in all shaders but fsh.
2540 //location only in fsh, declaration in all shaders, usage in all shaders but fsh.
2544 //location in all but fsh, declaration in all shaders, usage in fsh.
2548 //location only in fsh, declaration in all shaders, usage in all shaders but fsh.
2552 //location in all but fsh, declaration in all shaders, usage in fsh.
2557 //location only in vsh, declaration in all shaders, usage in all shaders but vsh.
2561 //location only in vsh, declaration in all shaders, usage in all shaders but vsh.
2573 std::string def = "layout (location = x) uniform float u0;";
2582 std::string def = NL "const int i = 1;" NL "layout (location = i) uniform float u0;";
2591 //layout (location = 2) uniform float u0;
2592 //layout (location = 2) uniform float u1;
2604 ///layout (location = 2) uniform float u0;
2605 //layout (location = 2) uniform float u1;
2617 //layout (location = X) uniform float u0;
2658 //layout(location = 2) subroutine uniform st0 u0;
2677 //layout(location = 0x0a) subroutine uniform st0 u0;
2680 //layout(location = 010 ) subroutine uniform st0 u1;
2698 //layout(location = 2) subroutine uniform st0 u0;
2716 //layout(location = 1) subroutine uniform st0 u0[2];
2738 //layout(location = 1) subroutine uniform st0 u0[2];
2741 ////layout(location = 3) subroutine uniform st0 u1[2][3];
2748 //layout(location = 9) subroutine uniform st1 u2;
2767 //layout(location = 1 ) subroutine uniform st0 u1;
2769 //layout(location = 0 ) subroutine uniform st0 u2;
2783 "layout(location = x ) subroutine uniform st0 u0;";
2795 "layout(location = i ) subroutine uniform st0 u0;";
2804 //layout(location = 1) subroutine uniform st0 u0;
2805 //layout(location = 1) subroutine uniform st0 u0;
2820 //layout(location = N) subroutine uniform st0 u0;
2911 //layout(location = 3) subroutine uniform st0 u0;
2933 //layout(location = 2) subroutine uniform st0 u0;
2962 //layout(location = 1) subroutine uniform st0 u0;
2965 //layout(location = 9) subroutine uniform st1 u1;
3010 //layout(location = 2) subroutine uniform st0 u0;
3157 addChild(new TestSubcase(m_context, "uniform-loc-negative-link-location-reused1",
3159 addChild(new TestSubcase(m_context, "uniform-loc-negative-link-location-reused2",
3161 addChild(new TestSubcase(m_context, "uniform-loc-negative-link-max-location",
3177 addChild(new TestSubcase(m_context, "subroutine-loc-negative-link-location-reused1",
3179 addChild(new TestSubcase(m_context, "subroutine-loc-negative-link-location-max-location",
3199 addChild(new TestSubcase(m_context, "subroutine-index-negative-link-location-maxindex",
3251 addChild(new TestSubcase(m_context, "uniform-loc-negative-link-location-reused1",
3253 addChild(new TestSubcase(m_context, "uniform-loc-negative-link-location-reused2",
3255 addChild(new TestSubcase(m_context, "uniform-loc-negative-link-max-location",