Home | History | Annotate | Download | only in sksl

Lines Matching refs:CType

116         Layout::CType ctype, const std::vector<String>& skslTypes, const String& setUniformFormat,
119 : fCType(ctype)
131 static UniformCTypeMapper REGISTER(Layout::CType ctype, const std::vector<String>& skslTypes,
134 return UniformCTypeMapper(ctype, skslTypes, uniformFormat, defaultValue, dirtyExpression,
138 static UniformCTypeMapper REGISTER(Layout::CType ctype, const std::vector<String>& skslTypes,
140 return REGISTER(ctype, skslTypes, uniformFormat, defaultValue,
150 REGISTER(Layout::CType::kSkRect, { "half4", "float4", "double4" },
155 REGISTER(Layout::CType::kSkIRect, { "int4", "short4", "byte4" },
160 REGISTER(Layout::CType::kSkPMColor4f, { "half4", "float4", "double4" },
164 REGISTER(Layout::CType::kSkPoint, { "half2", "float2", "double2" } ,
168 REGISTER(Layout::CType::kSkIPoint, { "int2", "short2", "byte2" },
172 REGISTER(Layout::CType::kSkMatrix, { "half3x3", "float3x3", "double3x3" },
177 REGISTER(Layout::CType::kSkMatrix44, { "half4x4", "float4x4", "double4x4" },
182 REGISTER(Layout::CType::kFloat, { "half", "float", "double" },
186 REGISTER(Layout::CType::kInt32, { "int", "short", "byte" },
197 // ctype and supports the sksl type of the variable.
202 Layout::CType ctype = layout.fCType;
203 // If there's no custom ctype declared in the layout, use the default type mapping
204 if (ctype == Layout::CType::kDefault) {
205 ctype = HCodeGenerator::ParameterCType(context, type, layout);
211 if (registeredMappers[i].ctype() == ctype) {