Lines Matching refs:uni

65     const Uniform& uni = fUniforms[u.toIndex()];  in set1i()  local
66 SkASSERT(uni.fType == kInt_GrSLType || uni.fType == kShort_GrSLType); in set1i()
67 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set1i()
68 if (kUnusedUniform != uni.fLocation) { in set1i()
69 GR_GL_CALL(fGpu->glInterface(), Uniform1i(uni.fLocation, i)); in set1i()
76 const Uniform& uni = fUniforms[u.toIndex()]; in set1iv() local
77 SkASSERT(uni.fType == kInt_GrSLType || uni.fType == kShort_GrSLType); in set1iv()
79 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount); in set1iv()
80 if (kUnusedUniform != uni.fLocation) { in set1iv()
81 GR_GL_CALL(fGpu->glInterface(), Uniform1iv(uni.fLocation, arrayCount, v)); in set1iv()
86 const Uniform& uni = fUniforms[u.toIndex()]; in set1f() local
87 SkASSERT(uni.fType == kFloat_GrSLType || uni.fType == kHalf_GrSLType); in set1f()
88 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set1f()
89 if (kUnusedUniform != uni.fLocation) { in set1f()
90 GR_GL_CALL(fGpu->glInterface(), Uniform1f(uni.fLocation, v0)); in set1f()
97 const Uniform& uni = fUniforms[u.toIndex()]; in set1fv() local
98 SkASSERT(uni.fType == kFloat_GrSLType || uni.fType == kHalf_GrSLType); in set1fv()
100 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount); in set1fv()
105 if (kUnusedUniform != uni.fLocation) { in set1fv()
106 GR_GL_CALL(fGpu->glInterface(), Uniform1fv(uni.fLocation, arrayCount, v)); in set1fv()
111 const Uniform& uni = fUniforms[u.toIndex()]; in set2i() local
112 SkASSERT(uni.fType == kInt2_GrSLType || uni.fType == kShort2_GrSLType); in set2i()
113 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set2i()
114 if (kUnusedUniform != uni.fLocation) { in set2i()
115 GR_GL_CALL(fGpu->glInterface(), Uniform2i(uni.fLocation, i0, i1)); in set2i()
122 const Uniform& uni = fUniforms[u.toIndex()]; in set2iv() local
123 SkASSERT(uni.fType == kInt2_GrSLType || uni.fType == kShort2_GrSLType); in set2iv()
125 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount); in set2iv()
126 if (kUnusedUniform != uni.fLocation) { in set2iv()
127 GR_GL_CALL(fGpu->glInterface(), Uniform2iv(uni.fLocation, arrayCount, v)); in set2iv()
132 const Uniform& uni = fUniforms[u.toIndex()]; in set2f() local
133 SkASSERT(uni.fType == kFloat2_GrSLType || uni.fType == kHalf2_GrSLType); in set2f()
134 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set2f()
135 if (kUnusedUniform != uni.fLocation) { in set2f()
136 GR_GL_CALL(fGpu->glInterface(), Uniform2f(uni.fLocation, v0, v1)); in set2f()
143 const Uniform& uni = fUniforms[u.toIndex()]; in set2fv() local
144 SkASSERT(uni.fType == kFloat2_GrSLType || uni.fType == kHalf2_GrSLType); in set2fv()
146 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount); in set2fv()
147 if (kUnusedUniform != uni.fLocation) { in set2fv()
148 GR_GL_CALL(fGpu->glInterface(), Uniform2fv(uni.fLocation, arrayCount, v)); in set2fv()
153 const Uniform& uni = fUniforms[u.toIndex()]; in set3i() local
154 SkASSERT(uni.fType == kInt3_GrSLType || uni.fType == kShort3_GrSLType); in set3i()
155 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set3i()
156 if (kUnusedUniform != uni.fLocation) { in set3i()
157 GR_GL_CALL(fGpu->glInterface(), Uniform3i(uni.fLocation, i0, i1, i2)); in set3i()
164 const Uniform& uni = fUniforms[u.toIndex()]; in set3iv() local
165 SkASSERT(uni.fType == kInt3_GrSLType || uni.fType == kShort3_GrSLType); in set3iv()
167 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount); in set3iv()
168 if (kUnusedUniform != uni.fLocation) { in set3iv()
169 GR_GL_CALL(fGpu->glInterface(), Uniform3iv(uni.fLocation, arrayCount, v)); in set3iv()
174 const Uniform& uni = fUniforms[u.toIndex()]; in set3f() local
175 SkASSERT(uni.fType == kFloat3_GrSLType || uni.fType == kHalf3_GrSLType); in set3f()
176 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set3f()
177 if (kUnusedUniform != uni.fLocation) { in set3f()
178 GR_GL_CALL(fGpu->glInterface(), Uniform3f(uni.fLocation, v0, v1, v2)); in set3f()
185 const Uniform& uni = fUniforms[u.toIndex()]; in set3fv() local
186 SkASSERT(uni.fType == kFloat3_GrSLType || uni.fType == kHalf3_GrSLType); in set3fv()
188 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount); in set3fv()
189 if (kUnusedUniform != uni.fLocation) { in set3fv()
190 GR_GL_CALL(fGpu->glInterface(), Uniform3fv(uni.fLocation, arrayCount, v)); in set3fv()
199 const Uniform& uni = fUniforms[u.toIndex()]; in set4i() local
200 SkASSERT(uni.fType == kInt4_GrSLType || uni.fType == kShort4_GrSLType); in set4i()
201 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set4i()
202 if (kUnusedUniform != uni.fLocation) { in set4i()
203 GR_GL_CALL(fGpu->glInterface(), Uniform4i(uni.fLocation, i0, i1, i2, i3)); in set4i()
210 const Uniform& uni = fUniforms[u.toIndex()]; in set4iv() local
211 SkASSERT(uni.fType == kInt4_GrSLType || uni.fType == kShort4_GrSLType); in set4iv()
213 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount); in set4iv()
214 if (kUnusedUniform != uni.fLocation) { in set4iv()
215 GR_GL_CALL(fGpu->glInterface(), Uniform4iv(uni.fLocation, arrayCount, v)); in set4iv()
224 const Uniform& uni = fUniforms[u.toIndex()]; in set4f() local
225 SkASSERT(uni.fType == kFloat4_GrSLType || uni.fType == kHalf4_GrSLType); in set4f()
226 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set4f()
227 if (kUnusedUniform != uni.fLocation) { in set4f()
228 GR_GL_CALL(fGpu->glInterface(), Uniform4f(uni.fLocation, v0, v1, v2, v3)); in set4f()
235 const Uniform& uni = fUniforms[u.toIndex()]; in set4fv() local
236 SkASSERT(uni.fType == kFloat4_GrSLType || uni.fType == kHalf4_GrSLType); in set4fv()
238 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount); in set4fv()
239 if (kUnusedUniform != uni.fLocation) { in set4fv()
240 GR_GL_CALL(fGpu->glInterface(), Uniform4fv(uni.fLocation, arrayCount, v)); in set4fv()
273 const Uniform& uni = fUniforms[u.toIndex()]; in setMatrices() local
274 SkASSERT(uni.fType == kFloat2x2_GrSLType + (N - 2) || in setMatrices()
275 uni.fType == kHalf2x2_GrSLType + (N - 2)); in setMatrices()
277 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount); in setMatrices()
278 if (kUnusedUniform != uni.fLocation) { in setMatrices()
279 set_uniform_matrix<N>::set(fGpu->glInterface(), uni.fLocation, arrayCount, matrices); in setMatrices()