Lines Matching refs:uni

42     const Uniform& uni = fUniforms[u.toIndex()];  in set1f()  local
43 SkASSERT(uni.fType == kFloat_GrSLType); in set1f()
44 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in set1f()
45 SkASSERT(GrVkUniformHandler::kUniformBufferDescSet == uni.fSetNumber); in set1f()
47 if (GrVkUniformHandler::kVertexBinding == uni.fBinding) { in set1f()
50 SkASSERT(GrVkUniformHandler::kFragBinding == uni.fBinding); in set1f()
53 buffer = static_cast<char*>(buffer) + uni.fOffset; in set1f()
61 const Uniform& uni = fUniforms[u.toIndex()]; in set1fv() local
62 SkASSERT(uni.fType == kFloat_GrSLType); in set1fv()
64 SkASSERT(arrayCount <= uni.fArrayCount || in set1fv()
65 (1 == arrayCount && GrGLSLShaderVar::kNonArray == uni.fArrayCount)); in set1fv()
66 SkASSERT(GrVkUniformHandler::kUniformBufferDescSet == uni.fSetNumber); in set1fv()
69 if (GrVkUniformHandler::kVertexBinding == uni.fBinding) { in set1fv()
72 SkASSERT(GrVkUniformHandler::kFragBinding == uni.fBinding); in set1fv()
75 buffer = static_cast<char*>(buffer) + uni.fOffset; in set1fv()
81 const Uniform& uni = fUniforms[u.toIndex()]; in set2f() local
82 SkASSERT(uni.fType == kVec2f_GrSLType); in set2f()
83 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in set2f()
84 SkASSERT(GrVkUniformHandler::kUniformBufferDescSet == uni.fSetNumber); in set2f()
86 if (GrVkUniformHandler::kVertexBinding == uni.fBinding) { in set2f()
89 SkASSERT(GrVkUniformHandler::kFragBinding == uni.fBinding); in set2f()
92 buffer = static_cast<char*>(buffer) + uni.fOffset; in set2f()
101 const Uniform& uni = fUniforms[u.toIndex()]; in set2fv() local
102 SkASSERT(uni.fType == kVec2f_GrSLType); in set2fv()
104 SkASSERT(arrayCount <= uni.fArrayCount || in set2fv()
105 (1 == arrayCount && GrGLSLShaderVar::kNonArray == uni.fArrayCount)); in set2fv()
106 SkASSERT(GrVkUniformHandler::kUniformBufferDescSet == uni.fSetNumber); in set2fv()
109 if (GrVkUniformHandler::kVertexBinding == uni.fBinding) { in set2fv()
112 SkASSERT(GrVkUniformHandler::kFragBinding == uni.fBinding); in set2fv()
115 buffer = static_cast<char*>(buffer) + uni.fOffset; in set2fv()
121 const Uniform& uni = fUniforms[u.toIndex()]; in set3f() local
122 SkASSERT(uni.fType == kVec3f_GrSLType); in set3f()
123 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in set3f()
124 SkASSERT(GrVkUniformHandler::kUniformBufferDescSet == uni.fSetNumber); in set3f()
126 if (GrVkUniformHandler::kVertexBinding == uni.fBinding) { in set3f()
129 SkASSERT(GrVkUniformHandler::kFragBinding == uni.fBinding); in set3f()
132 buffer = static_cast<char*>(buffer) + uni.fOffset; in set3f()
141 const Uniform& uni = fUniforms[u.toIndex()]; in set3fv() local
142 SkASSERT(uni.fType == kVec3f_GrSLType); in set3fv()
144 SkASSERT(arrayCount <= uni.fArrayCount || in set3fv()
145 (1 == arrayCount && GrGLSLShaderVar::kNonArray == uni.fArrayCount)); in set3fv()
146 SkASSERT(GrVkUniformHandler::kUniformBufferDescSet == uni.fSetNumber); in set3fv()
149 if (GrVkUniformHandler::kVertexBinding == uni.fBinding) { in set3fv()
152 SkASSERT(GrVkUniformHandler::kFragBinding == uni.fBinding); in set3fv()
155 buffer = static_cast<char*>(buffer) + uni.fOffset; in set3fv()
161 const Uniform& uni = fUniforms[u.toIndex()]; in set4f() local
162 SkASSERT(uni.fType == kVec4f_GrSLType); in set4f()
163 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in set4f()
164 SkASSERT(GrVkUniformHandler::kUniformBufferDescSet == uni.fSetNumber); in set4f()
166 if (GrVkUniformHandler::kVertexBinding == uni.fBinding) { in set4f()
169 SkASSERT(GrVkUniformHandler::kFragBinding == uni.fBinding); in set4f()
172 buffer = static_cast<char*>(buffer) + uni.fOffset; in set4f()
181 const Uniform& uni = fUniforms[u.toIndex()]; in set4fv() local
182 SkASSERT(uni.fType == kVec4f_GrSLType); in set4fv()
184 SkASSERT(arrayCount <= uni.fArrayCount || in set4fv()
185 (1 == arrayCount && GrGLSLShaderVar::kNonArray == uni.fArrayCount)); in set4fv()
186 SkASSERT(GrVkUniformHandler::kUniformBufferDescSet == uni.fSetNumber); in set4fv()
189 if (GrVkUniformHandler::kVertexBinding == uni.fBinding) { in set4fv()
192 SkASSERT(GrVkUniformHandler::kFragBinding == uni.fBinding); in set4fv()
195 buffer = static_cast<char*>(buffer) + uni.fOffset; in set4fv()
201 const Uniform& uni = fUniforms[u.toIndex()]; in setMatrix3f() local
202 SkASSERT(uni.fType == kMat33f_GrSLType); in setMatrix3f()
203 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in setMatrix3f()
204 SkASSERT(GrVkUniformHandler::kUniformBufferDescSet == uni.fSetNumber); in setMatrix3f()
206 if (GrVkUniformHandler::kVertexBinding == uni.fBinding) { in setMatrix3f()
209 SkASSERT(GrVkUniformHandler::kFragBinding == uni.fBinding); in setMatrix3f()
214 buffer = static_cast<char*>(buffer) + uni.fOffset; in setMatrix3f()
225 const Uniform& uni = fUniforms[u.toIndex()]; in setMatrix3fv() local
226 SkASSERT(uni.fType == kMat33f_GrSLType); in setMatrix3fv()
228 SkASSERT(arrayCount <= uni.fArrayCount || in setMatrix3fv()
229 (1 == arrayCount && GrGLSLShaderVar::kNonArray == uni.fArrayCount)); in setMatrix3fv()
230 SkASSERT(GrVkUniformHandler::kUniformBufferDescSet == uni.fSetNumber); in setMatrix3fv()
233 if (GrVkUniformHandler::kVertexBinding == uni.fBinding) { in setMatrix3fv()
236 SkASSERT(GrVkUniformHandler::kFragBinding == uni.fBinding); in setMatrix3fv()
240 buffer = static_cast<char*>(buffer)+uni.fOffset; in setMatrix3fv()
254 const Uniform& uni = fUniforms[u.toIndex()]; in setMatrix4f() local
255 SkASSERT(uni.fType == kMat44f_GrSLType); in setMatrix4f()
256 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in setMatrix4f()
257 SkASSERT(GrVkUniformHandler::kUniformBufferDescSet == uni.fSetNumber); in setMatrix4f()
259 if (GrVkUniformHandler::kVertexBinding == uni.fBinding) { in setMatrix4f()
262 SkASSERT(GrVkUniformHandler::kFragBinding == uni.fBinding); in setMatrix4f()
265 buffer = static_cast<char*>(buffer) + uni.fOffset; in setMatrix4f()
273 const Uniform& uni = fUniforms[u.toIndex()]; in setMatrix4fv() local
274 SkASSERT(uni.fType == kMat44f_GrSLType); in setMatrix4fv()
276 SkASSERT(arrayCount <= uni.fArrayCount || in setMatrix4fv()
277 (1 == arrayCount && GrGLSLShaderVar::kNonArray == uni.fArrayCount)); in setMatrix4fv()
278 SkASSERT(GrVkUniformHandler::kUniformBufferDescSet == uni.fSetNumber); in setMatrix4fv()
281 if (GrVkUniformHandler::kVertexBinding == uni.fBinding) { in setMatrix4fv()
284 SkASSERT(GrVkUniformHandler::kFragBinding == uni.fBinding); in setMatrix4fv()
287 buffer = static_cast<char*>(buffer) + uni.fOffset; in setMatrix4fv()