Lines Matching refs:arrayCount
14 GrAssert(offset + arrayCount <= uni.fArrayCount || \
15 (0 == offset && 1 == arrayCount && GrGLShaderVar::kNonArray == uni.fArrayCount))
17 GrGLUniformManager::UniformHandle GrGLUniformManager::appendUniform(GrSLType type, int arrayCount) {
20 GrAssert(GrGLShaderVar::kNonArray == arrayCount || arrayCount > 0);
21 uni.fArrayCount = arrayCount;
59 int arrayCount,
63 GrAssert(arrayCount > 0);
64 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, offset, arrayCount);
70 GR_GL_CALL(fContext.interface(), Uniform1fv(uni.fFSLocation + offset, arrayCount, v));
73 GR_GL_CALL(fContext.interface(), Uniform1fv(uni.fVSLocation + offset, arrayCount, v));
92 int arrayCount,
96 GrAssert(arrayCount > 0);
97 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, offset, arrayCount);
100 GR_GL_CALL(fContext.interface(), Uniform2fv(uni.fFSLocation + offset, arrayCount, v));
103 GR_GL_CALL(fContext.interface(), Uniform2fv(uni.fVSLocation + offset, arrayCount, v));
122 int arrayCount,
126 GrAssert(arrayCount > 0);
127 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, offset, arrayCount);
130 GR_GL_CALL(fContext.interface(), Uniform3fv(uni.fFSLocation + offset, arrayCount, v));
133 GR_GL_CALL(fContext.interface(), Uniform3fv(uni.fVSLocation + offset, arrayCount, v));
156 int arrayCount,
160 GrAssert(arrayCount > 0);
163 GR_GL_CALL(fContext.interface(), Uniform4fv(uni.fFSLocation + offset, arrayCount, v));
166 GR_GL_CALL(fContext.interface(), Uniform4fv(uni.fVSLocation + offset, arrayCount, v));
199 int arrayCount,
203 GrAssert(arrayCount > 0);
204 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, offset, arrayCount);
208 UniformMatrix3fv(uni.fFSLocation + offset, arrayCount, false, matrices));
212 UniformMatrix3fv(uni.fVSLocation + offset, arrayCount, false, matrices));
218 int arrayCount,
222 GrAssert(arrayCount > 0);
223 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, offset, arrayCount);
227 UniformMatrix4fv(uni.fFSLocation + offset, arrayCount, false, matrices));
231 UniformMatrix4fv(uni.fVSLocation + offset, arrayCount, false, matrices));