Lines Matching defs:uni
46 const Uniform& uni = fUniforms[u.toIndex()];
47 SkASSERT(uni.fType == kInt_GrSLType || uni.fType == kShort_GrSLType);
48 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount);
49 if (kUnusedUniform != uni.fLocation) {
50 GR_GL_CALL(fGpu->glInterface(), Uniform1i(uni.fLocation, i));
57 const Uniform& uni = fUniforms[u.toIndex()];
58 SkASSERT(uni.fType == kInt_GrSLType || uni.fType == kShort_GrSLType);
60 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount);
61 if (kUnusedUniform != uni.fLocation) {
62 GR_GL_CALL(fGpu->glInterface(), Uniform1iv(uni.fLocation, arrayCount, v));
67 const Uniform& uni = fUniforms[u.toIndex()];
68 SkASSERT(uni.fType == kFloat_GrSLType || uni.fType == kHalf_GrSLType);
69 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount);
70 if (kUnusedUniform != uni.fLocation) {
71 GR_GL_CALL(fGpu->glInterface(), Uniform1f(uni.fLocation, v0));
78 const Uniform& uni = fUniforms[u.toIndex()];
79 SkASSERT(uni.fType == kFloat_GrSLType || uni.fType == kHalf_GrSLType);
81 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount);
85 // this->printUni(uni);
86 if (kUnusedUniform != uni.fLocation) {
87 GR_GL_CALL(fGpu->glInterface(), Uniform1fv(uni.fLocation, arrayCount, v));
92 const Uniform& uni = fUniforms[u.toIndex()];
93 SkASSERT(uni.fType == kInt2_GrSLType || uni.fType == kShort2_GrSLType);
94 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount);
95 if (kUnusedUniform != uni.fLocation) {
96 GR_GL_CALL(fGpu->glInterface(), Uniform2i(uni.fLocation, i0, i1));
103 const Uniform& uni = fUniforms[u.toIndex()];
104 SkASSERT(uni.fType == kInt2_GrSLType || uni.fType == kShort2_GrSLType);
106 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount);
107 if (kUnusedUniform != uni.fLocation) {
108 GR_GL_CALL(fGpu->glInterface(), Uniform2iv(uni.fLocation, arrayCount, v));
113 const Uniform& uni = fUniforms[u.toIndex()];
114 SkASSERT(uni.fType == kFloat2_GrSLType || uni.fType == kHalf2_GrSLType);
115 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount);
116 if (kUnusedUniform != uni.fLocation) {
117 GR_GL_CALL(fGpu->glInterface(), Uniform2f(uni.fLocation, v0, v1));
124 const Uniform& uni = fUniforms[u.toIndex()];
125 SkASSERT(uni.fType == kFloat2_GrSLType || uni.fType == kHalf2_GrSLType);
127 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount);
128 if (kUnusedUniform != uni.fLocation) {
129 GR_GL_CALL(fGpu->glInterface(), Uniform2fv(uni.fLocation, arrayCount, v));
134 const Uniform& uni = fUniforms[u.toIndex()];
135 SkASSERT(uni.fType == kInt3_GrSLType || uni.fType == kShort3_GrSLType);
136 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount);
137 if (kUnusedUniform != uni.fLocation) {
138 GR_GL_CALL(fGpu->glInterface(), Uniform3i(uni.fLocation, i0, i1, i2));
145 const Uniform& uni = fUniforms[u.toIndex()];
146 SkASSERT(uni.fType == kInt3_GrSLType || uni.fType == kShort3_GrSLType);
148 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount);
149 if (kUnusedUniform != uni.fLocation) {
150 GR_GL_CALL(fGpu->glInterface(), Uniform3iv(uni.fLocation, arrayCount, v));
155 const Uniform& uni = fUniforms[u.toIndex()];
156 SkASSERT(uni.fType == kFloat3_GrSLType || uni.fType == kHalf3_GrSLType);
157 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount);
158 if (kUnusedUniform != uni.fLocation) {
159 GR_GL_CALL(fGpu->glInterface(), Uniform3f(uni.fLocation, v0, v1, v2));
166 const Uniform& uni = fUniforms[u.toIndex()];
167 SkASSERT(uni.fType == kFloat3_GrSLType || uni.fType == kHalf3_GrSLType);
169 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount);
170 if (kUnusedUniform != uni.fLocation) {
171 GR_GL_CALL(fGpu->glInterface(), Uniform3fv(uni.fLocation, arrayCount, v));
180 const Uniform& uni = fUniforms[u.toIndex()];
181 SkASSERT(uni.fType == kInt4_GrSLType || uni.fType == kShort4_GrSLType);
182 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount);
183 if (kUnusedUniform != uni.fLocation) {
184 GR_GL_CALL(fGpu->glInterface(), Uniform4i(uni.fLocation, i0, i1, i2, i3));
191 const Uniform& uni = fUniforms[u.toIndex()];
192 SkASSERT(uni.fType == kInt4_GrSLType || uni.fType == kShort4_GrSLType);
194 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount);
195 if (kUnusedUniform != uni.fLocation) {
196 GR_GL_CALL(fGpu->glInterface(), Uniform4iv(uni.fLocation, arrayCount, v));
205 const Uniform& uni = fUniforms[u.toIndex()];
206 SkASSERT(uni.fType == kFloat4_GrSLType || uni.fType == kHalf4_GrSLType);
207 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount);
208 if (kUnusedUniform != uni.fLocation) {
209 GR_GL_CALL(fGpu->glInterface(), Uniform4f(uni.fLocation, v0, v1, v2, v3));
216 const Uniform& uni = fUniforms[u.toIndex()];
217 SkASSERT(uni.fType == kFloat4_GrSLType || uni.fType == kHalf4_GrSLType);
219 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount);
220 if (kUnusedUniform != uni.fLocation) {
221 GR_GL_CALL(fGpu->glInterface(), Uniform4fv(uni.fLocation, arrayCount, v));
254 const Uniform& uni = fUniforms[u.toIndex()];
255 SkASSERT(uni.fType == kFloat2x2_GrSLType + (N - 2) ||
256 uni.fType == kHalf2x2_GrSLType + (N - 2));
258 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount);
259 if (kUnusedUniform != uni.fLocation) {
260 set_uniform_matrix<N>::set(fGpu->glInterface(), uni.fLocation, arrayCount, matrices);