Home
last modified time | relevance | path

Searched refs:base_type (Results 1 – 25 of 109) sorted by relevance

12345

/external/mesa3d/src/compiler/glsl/
Dir_validate.cpp244 assert(ir->type->base_type == GLSL_TYPE_BOOL); in visit_leave()
245 assert(ir->operands[0]->type->base_type == GLSL_TYPE_BOOL); in visit_leave()
254 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT || in visit_leave()
255 ir->operands[0]->type->base_type == GLSL_TYPE_FLOAT || in visit_leave()
256 ir->operands[0]->type->base_type == GLSL_TYPE_DOUBLE); in visit_leave()
263 assert(ir->type->base_type == GLSL_TYPE_FLOAT || in visit_leave()
264 ir->type->base_type == GLSL_TYPE_DOUBLE); in visit_leave()
273 assert(ir->operands[0]->type->base_type == GLSL_TYPE_FLOAT); in visit_leave()
278 assert(ir->operands[0]->type->base_type == GLSL_TYPE_FLOAT); in visit_leave()
279 assert(ir->type->base_type == GLSL_TYPE_INT); in visit_leave()
[all …]
Dlink_uniform_initializers.cpp50 const enum glsl_base_type base_type, in copy_constant_to_storage() argument
55 switch (base_type) { in copy_constant_to_storage()
133 if (storage->type->base_type == GLSL_TYPE_SAMPLER && in set_opaque_binding()
141 } else if (storage->type->base_type == GLSL_TYPE_IMAGE && in set_opaque_binding()
216 const enum glsl_base_type base_type = in set_uniform_initializer() local
217 val->array_elements[0]->type->base_type; in set_uniform_initializer()
220 unsigned dmul = glsl_base_type_is_64bit(base_type) ? 2 : 1; in set_uniform_initializer()
226 base_type, in set_uniform_initializer()
235 val->type->base_type, in set_uniform_initializer()
Dir.cpp557 assert((type->base_type >= GLSL_TYPE_UINT) in ir_constant()
558 && (type->base_type <= GLSL_TYPE_BOOL)); in ir_constant()
635 switch (this->type->base_type) { in ir_constant()
693 assert(type->base_type == GLSL_TYPE_FLOAT || in ir_constant()
694 type->base_type == GLSL_TYPE_DOUBLE); in ir_constant()
696 if (type->base_type == GLSL_TYPE_FLOAT) in ir_constant()
705 switch (type->base_type) { in ir_constant()
765 switch (type->base_type) { in ir_constant()
828 switch (this->type->base_type) { in get_bool_component()
846 switch (this->type->base_type) { in get_float_component()
[all …]
/external/pdfium/third_party/agg23/
Dagg_conv_stroke.h31 typedef conv_adaptor_vcgen<VertexSource, vcgen_stroke, Markers> base_type; typedef
38 base_type::generator().line_cap(lc); in line_cap()
42 base_type::generator().line_join(lj); in line_join()
46 base_type::generator().inner_join(ij); in inner_join()
50 return base_type::generator().line_cap(); in line_cap()
54 return base_type::generator().line_join(); in line_join()
58 return base_type::generator().inner_join(); in inner_join()
62 base_type::generator().width(w); in width()
66 base_type::generator().miter_limit(ml); in miter_limit()
70 base_type::generator().miter_limit_theta(t); in miter_limit_theta()
[all …]
Dagg_vertex_sequence.h31 typedef pod_deque<T, S> base_type; typedef
39 if(base_type::size() > 1) { in add()
40 if(!(*this)[base_type::size() - 2]((*this)[base_type::size() - 1])) { in add()
41 base_type::remove_last(); in add()
44 base_type::add(val); in add()
49 base_type::remove_last(); in modify_last()
55 while(base_type::size() > 1) { in close()
56 if((*this)[base_type::size() - 2]((*this)[base_type::size() - 1])) { in close()
59 T t = (*this)[base_type::size() - 1]; in close()
60 base_type::remove_last(); in close()
[all …]
Dagg_conv_dash.h30 typedef conv_adaptor_vcgen<VertexSource, vcgen_dash, Markers> base_type; typedef
37 base_type::generator().remove_all_dashes(); in remove_all_dashes()
41 base_type::generator().add_dash(dash_len, gap_len); in add_dash()
45 base_type::generator().dash_start(ds); in dash_start()
49 base_type::generator().shorten(s); in shorten()
53 return base_type::generator().shorten(); in shorten()
/external/mesa3d/src/compiler/
Dglsl_types.h130 glsl_base_type base_type; member
254 static const glsl_type *get_instance(unsigned base_type, unsigned rows,
436 && (base_type >= GLSL_TYPE_UINT) in is_scalar()
437 && (base_type <= GLSL_TYPE_BOOL); in is_scalar()
447 && (base_type >= GLSL_TYPE_UINT) in is_vector()
448 && (base_type <= GLSL_TYPE_BOOL); in is_vector()
457 … return (matrix_columns > 1) && (base_type == GLSL_TYPE_FLOAT || base_type == GLSL_TYPE_DOUBLE); in is_matrix()
465 return (base_type >= GLSL_TYPE_UINT) && (base_type <= GLSL_TYPE_DOUBLE); in is_numeric()
473 return (base_type == GLSL_TYPE_UINT) || (base_type == GLSL_TYPE_INT); in is_integer()
493 return base_type == GLSL_TYPE_FLOAT; in is_float()
[all …]
Dglsl_types.cpp49 glsl_base_type base_type, unsigned vector_elements, in glsl_type() argument
52 base_type(base_type), in glsl_type()
79 glsl_type::glsl_type(GLenum gl_type, glsl_base_type base_type, in glsl_type() argument
83 base_type(base_type), in glsl_type()
98 if (base_type == GLSL_TYPE_SAMPLER) { in glsl_type()
109 base_type(GLSL_TYPE_STRUCT), in glsl_type()
138 base_type(GLSL_TYPE_INTERFACE), in glsl_type()
166 base_type(GLSL_TYPE_FUNCTION), in glsl_type()
198 base_type(GLSL_TYPE_SUBROUTINE), in glsl_type()
263 switch (base_type) { in contains_opaque()
[all …]
Dnir_types.cpp78 return type->base_type; in glsl_get_base_type()
298 glsl_scalar_type(enum glsl_base_type base_type) in glsl_scalar_type() argument
300 return glsl_type::get_instance(base_type, 1, 1); in glsl_scalar_type()
304 glsl_vector_type(enum glsl_base_type base_type, unsigned components) in glsl_vector_type() argument
307 return glsl_type::get_instance(base_type, components, 1); in glsl_vector_type()
311 glsl_matrix_type(enum glsl_base_type base_type, unsigned rows, unsigned columns) in glsl_matrix_type() argument
314 return glsl_type::get_instance(base_type, rows, columns); in glsl_matrix_type()
332 enum glsl_base_type base_type) in glsl_sampler_type() argument
334 return glsl_type::get_sampler_instance(dim, is_shadow, is_array, base_type); in glsl_sampler_type()
345 enum glsl_base_type base_type) in glsl_image_type() argument
[all …]
Dnir_types.h131 const struct glsl_type *glsl_scalar_type(enum glsl_base_type base_type);
132 const struct glsl_type *glsl_vector_type(enum glsl_base_type base_type,
134 const struct glsl_type *glsl_matrix_type(enum glsl_base_type base_type,
142 enum glsl_base_type base_type);
146 enum glsl_base_type base_type);
/external/webrtc/webrtc/base/
Dsigslotrepeater.h30 typedef signal0<mt_policy> base_type; typedef
34 repeater0(const this_type& s) : base_type(s) { } in repeater0()
37 void repeat(base_type &s) { s.connect(this, &this_type::reemit); } in repeat()
38 void stop(base_type &s) { s.disconnect(this); } in stop()
46 typedef signal1<arg1_type, mt_policy> base_type; typedef
50 repeater1(const this_type& s) : base_type(s) { } in repeater1()
53 void repeat(base_type& s) { s.connect(this, &this_type::reemit); } in repeat()
54 void stop(base_type &s) { s.disconnect(this); } in stop()
62 typedef signal2<arg1_type, arg2_type, mt_policy> base_type; typedef
66 repeater2(const this_type& s) : base_type(s) { } in repeater2()
[all …]
/external/mesa3d/prebuilt-intermediates/glsl/
Dir_expression_operation_constant.h4 switch (op[0]->type->base_type) {
19 switch (op[0]->type->base_type) {
31 switch (op[0]->type->base_type) {
52 switch (op[0]->type->base_type) {
70 switch (op[0]->type->base_type) {
88 switch (op[0]->type->base_type) {
103 switch (op[0]->type->base_type) {
118 switch (op[0]->type->base_type) {
133 switch (op[0]->type->base_type) {
145 switch (op[0]->type->base_type) {
[all …]
/external/flatbuffers/include/flatbuffers/
Dreflection.h43 inline size_t GetTypeSize(reflection::BaseType base_type) { in GetTypeSize() argument
46 return sizes[base_type]; in GetTypeSize()
51 inline size_t GetTypeSizeInline(reflection::BaseType base_type, in GetTypeSizeInline() argument
54 if (base_type == reflection::Obj && in GetTypeSizeInline()
58 return GetTypeSize(base_type); in GetTypeSizeInline()
72 assert(sizeof(T) == GetTypeSize(field.type()->base_type())); in GetFieldDefaultI()
78 assert(sizeof(T) == GetTypeSize(field.type()->base_type())); in GetFieldDefaultF()
85 assert(sizeof(T) == GetTypeSize(field.type()->base_type())); in GetFieldI()
93 assert(sizeof(T) == GetTypeSize(field.type()->base_type())); in GetFieldF()
101 assert(field.type()->base_type() == reflection::String); in GetFieldS()
[all …]
/external/flatbuffers/src/
Didl_gen_general.cpp249 && !IsScalar(DestinationType(t, true).base_type) ? " @Nullable ": ""; in GenNullableAnnotation()
253 return type.enum_def != nullptr && IsInteger(type.base_type); in IsEnum()
276 if (type.base_type == BASE_TYPE_STRUCT) { in GenTypeBasic()
283 return java_typename[type.base_type]; in GenTypeBasic()
286 return csharp_typename[type.base_type]; in GenTypeBasic()
295 switch (type.base_type) { in GenTypePointer()
312 return IsScalar(type.base_type) in GenTypeGet()
321 switch (type.base_type) { in DestinationType()
370 switch (type.base_type) { in DestinationMask()
384 if (type.base_type == BASE_TYPE_VECTOR) { in DestinationCast()
[all …]
Didl_gen_js.cpp342 switch (type.base_type) { in GenType()
363 switch (type.base_type) { in GenGetter()
370 if (type.base_type == BASE_TYPE_BOOL) { in GenGetter()
398 switch (value.type.base_type) { in GenDefaultValue()
419 if (type.base_type == BASE_TYPE_STRING || type.base_type == BASE_TYPE_STRUCT) { in GenTypeName()
421 if (type.base_type == BASE_TYPE_STRING) { in GenTypeName()
430 switch (type.base_type) { in GenTypeName()
435 if (IsScalar(type.base_type)) { in GenTypeName()
448 switch (type.base_type) { in GenWriteMethod()
457 return IsScalar(type.base_type) in GenWriteMethod()
[all …]
Didl_parser.cpp474 if (enum_def->is_union) type.base_type = BASE_TYPE_UNION; in ParseTypeIdent()
476 type.base_type = BASE_TYPE_STRUCT; in ParseTypeIdent()
486 type.base_type = BASE_TYPE_BOOL; in ParseType()
489 type.base_type = BASE_TYPE_CHAR; in ParseType()
492 type.base_type = BASE_TYPE_UCHAR; in ParseType()
495 type.base_type = BASE_TYPE_SHORT; in ParseType()
498 type.base_type = BASE_TYPE_USHORT; in ParseType()
501 type.base_type = BASE_TYPE_INT; in ParseType()
504 type.base_type = BASE_TYPE_UINT; in ParseType()
507 type.base_type = BASE_TYPE_LONG; in ParseType()
[all …]
Didl_gen_cpp.cpp383 if (type.base_type == BASE_TYPE_BOOL) return "bool"; in GenTypeBasic()
385 return ctypename[type.base_type]; in GenTypeBasic()
391 switch (type.base_type) { in GenTypePointer()
414 if (IsScalar(type.base_type)) { in GenTypeWire()
426 if (IsScalar(type.base_type)) { in GenTypeSize()
476 switch (type.base_type) { in GenTypeNative()
519 if (IsScalar(type.base_type)) { in GenTypeGet()
555 if (ev.union_type.base_type == BASE_TYPE_STRUCT) { in GetUnionElement()
560 } else if (ev.union_type.base_type == BASE_TYPE_STRING) { in GetUnionElement()
684 auto is_vector = type.base_type == BASE_TYPE_VECTOR; in GenMiniReflect()
[all …]
Didl_gen_python.cpp269 if (vectortype.base_type == BASE_TYPE_STRING) { in GetMemberOfVectorOfNonStruct()
287 if (!(IsScalar(vectortype.base_type))) { in GetVectorOfNonStructAsNumpy()
301 if (vectortype.base_type == BASE_TYPE_STRING) { in GetVectorOfNonStructAsNumpy()
403 if (!IsScalar(field.value.type.base_type) && (!struct_def.fixed)) { in BuildFieldOfTable()
451 if (IsScalar(field.value.type.base_type)) { in GenStructAccessor()
458 switch (field.value.type.base_type) { in GenStructAccessor()
471 if (vectortype.base_type == BASE_TYPE_STRUCT) { in GenStructAccessor()
486 if (field.value.type.base_type == BASE_TYPE_VECTOR) { in GenStructAccessor()
504 if (field.value.type.base_type == BASE_TYPE_VECTOR) { in GenTableBuilders()
563 switch (type.base_type) { in GenGetter()
[all …]
Didl_gen_text.cpp65 if (type.base_type == BASE_TYPE_BOOL) { in Print()
111 switch (type.base_type) { in Print()
137 switch (type.base_type) { in Print()
214 IsScalar(fd.value.type.base_type) && in GenStruct()
224 (fd.value.type.base_type != BASE_TYPE_STRUCT && in GenStruct()
225 fd.value.type.base_type != BASE_TYPE_VECTOR)) text += ":"; in GenStruct()
228 switch (fd.value.type.base_type) { in GenStruct()
251 if (fd.value.type.base_type == BASE_TYPE_UTYPE) { in GenStruct()
Didl_gen_php.cpp357 switch (field.value.type.base_type) { in GetMemberOfVectorOfStruct()
376 if (vectortype.base_type == BASE_TYPE_STRUCT) { in GetMemberOfVectorOfStruct()
419 if (field.value.type.VectorType().base_type == BASE_TYPE_STRING) { in GetMemberOfVectorOfNonStruct()
604 if (field.value.type.base_type == BASE_TYPE_BOOL) { in BuildFieldOfTable()
636 if (IsScalar(field.value.type.VectorType().base_type)) { in BuildVectorOfTable()
714 if (IsScalar(field.value.type.base_type)) { in GenStructAccessor()
721 switch (field.value.type.base_type) { in GenStructAccessor()
734 if (vectortype.base_type == BASE_TYPE_UNION) { in GenStructAccessor()
736 } else if (vectortype.base_type == BASE_TYPE_STRUCT) { in GenStructAccessor()
750 if (field.value.type.base_type == BASE_TYPE_VECTOR) { in GenStructAccessor()
[all …]
/external/tpm2/generator/
Dstructure_generator.py303 def SetBaseType(self, base_type): argument
304 self._base_type = base_type
327 base_type = self._base_type
329 base_type = self.old_type
330 if base_type not in marshalled_types:
331 typemap[base_type].OutputMarshalImpl(
333 return base_type
447 base_type = self._GetBaseType(out_file, marshalled_types, typemap)
448 out_file.write(self._TYPEDEF_MARSHAL_FUNCTION % {'old_type': base_type,
451 self._TYPEDEF_UNMARSHAL_FUNCTION % {'old_type': base_type,
[all …]
/external/mesa3d/src/compiler/glsl/tests/
Duniform_initializer_utils.cpp83 switch (type->base_type) { in generate_data_element()
117 switch (type->base_type) { in generate_data_element()
148 generate_data(void *mem_ctx, enum glsl_base_type base_type, in generate_data() argument
155 glsl_type::get_instance(base_type, rows, columns); in generate_data()
162 generate_array_data(void *mem_ctx, enum glsl_base_type base_type, in generate_array_data() argument
169 glsl_type::get_instance(base_type, rows, columns); in generate_array_data()
205 if (val->type->base_type == GLSL_TYPE_ARRAY) { in verify_data()
223 switch (val->type->base_type) { in verify_data()
Dcopy_constant_to_storage_tests.cpp34 const enum glsl_base_type base_type,
80 val->type->base_type, in int_test()
100 val->type->base_type, in uint_test()
120 val->type->base_type, in float_test()
140 val->type->base_type, in bool_test()
/external/mesa3d/src/mesa/main/
Duniform_query.cpp350 if (returnType == uni->type->base_type in _mesa_get_uniform()
354 (uni->type->base_type == GLSL_TYPE_INT in _mesa_get_uniform()
355 || uni->type->base_type == GLSL_TYPE_UINT in _mesa_get_uniform()
356 || uni->type->base_type == GLSL_TYPE_SAMPLER in _mesa_get_uniform()
357 || uni->type->base_type == GLSL_TYPE_IMAGE))) { in _mesa_get_uniform()
372 switch (uni->type->base_type) { in _mesa_get_uniform()
396 switch (uni->type->base_type) { in _mesa_get_uniform()
426 switch (uni->type->base_type) { in _mesa_get_uniform()
736 switch (uni->type->base_type) { in _mesa_uniform()
747 match = (basicType == uni->type->base_type); in _mesa_uniform()
[all …]
/external/flatbuffers/reflection/
Dreflection.fbs30 base_type:BaseType;
31 element:BaseType = None; // Only if base_type == Vector.
32 index:int = -1; // If base_type == Object, index into "objects" below.
33 // If base_type == Union, UnionType, or integral derived

12345