Home
last modified time | relevance | path

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

1234

/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.h34 inline size_t GetTypeSize(reflection::BaseType base_type) { in GetTypeSize() argument
37 return sizes[base_type]; in GetTypeSize()
42 inline size_t GetTypeSizeInline(reflection::BaseType base_type, in GetTypeSizeInline() argument
45 if (base_type == reflection::Obj && in GetTypeSizeInline()
49 return GetTypeSize(base_type); in GetTypeSizeInline()
64 assert(sizeof(T) == GetTypeSize(field.type()->base_type())); in GetFieldI()
72 assert(sizeof(T) == GetTypeSize(field.type()->base_type())); in GetFieldF()
80 assert(field.type()->base_type() == reflection::String); in GetFieldS()
87 assert(field.type()->base_type() == reflection::Vector && in GetFieldV()
103 assert(field.type()->base_type() == reflection::Obj || in GetFieldT()
[all …]
/external/flatbuffers/src/
Didl_gen_general.cpp229 return type.enum_def != nullptr && IsInteger(type.base_type); in IsEnum()
250 if (type.base_type == BASE_TYPE_STRUCT) { in GenTypeBasic()
257 return java_typename[type.base_type]; in GenTypeBasic()
260 return csharp_typename[type.base_type]; in GenTypeBasic()
269 switch (type.base_type) { in GenTypePointer()
286 return IsScalar(type.base_type) in GenTypeGet()
295 switch (type.base_type) { in DestinationType()
344 switch (type.base_type) { in DestinationMask()
358 if (type.base_type == BASE_TYPE_VECTOR) { in DestinationCast()
364 if (type.base_type == BASE_TYPE_UINT) return "(long)"; in DestinationCast()
[all …]
Didl_gen_js.cpp203 switch (type.base_type) { in GenType()
224 switch (type.base_type) { in GenGetter()
231 if (type.base_type == BASE_TYPE_BOOL) { in GenGetter()
254 switch (value.type.base_type) { in GenDefaultValue()
275 if (type.base_type == BASE_TYPE_STRING) { in GenTypeName()
278 if (type.base_type == BASE_TYPE_STRUCT) { in GenTypeName()
283 switch (type.base_type) { in GenTypeName()
288 if (IsScalar(type.base_type)) { in GenTypeName()
301 switch (type.base_type) { in GenWriteMethod()
310 return IsScalar(type.base_type) in GenWriteMethod()
[all …]
Didl_gen_cpp.cpp305 if (type.base_type == BASE_TYPE_BOOL) return "bool"; in GenTypeBasic()
307 return ctypename[type.base_type]; in GenTypeBasic()
313 switch (type.base_type) { in GenTypePointer()
336 if (IsScalar(type.base_type)) { in GenTypeWire()
348 if (IsScalar(type.base_type)) { in GenTypeSize()
384 switch (type.base_type) { in GenTypeNative()
422 if (IsScalar(type.base_type)) { in GenTypeGet()
829 if (from && field.value.type.base_type == BASE_TYPE_BOOL) { in GenUnderlyingCast()
832 IsScalar(field.value.type.base_type)) || in GenUnderlyingCast()
833 field.value.type.base_type == BASE_TYPE_BOOL) { in GenUnderlyingCast()
[all …]
Didl_parser.cpp539 if (enum_def->is_union) type.base_type = BASE_TYPE_UNION; in ParseTypeIdent()
541 type.base_type = BASE_TYPE_STRUCT; in ParseTypeIdent()
550 type.base_type = static_cast<BaseType>(token_ - kTokenNONE); in ParseType()
559 if (subtype.base_type == BASE_TYPE_VECTOR) { in ParseType()
566 type.element = subtype.base_type; in ParseType()
607 if (struct_def.fixed && !IsScalar(type.base_type) && !IsStruct(type)) in ParseField()
611 if (type.base_type == BASE_TYPE_UNION) { in ParseField()
616 } else if (type.base_type == BASE_TYPE_VECTOR && in ParseField()
636 if (!IsScalar(type.base_type)) in ParseField()
640 if (IsFloat(field->value.type.base_type)) { in ParseField()
[all …]
Didl_gen_go.cpp331 if (vectortype.base_type == BASE_TYPE_STRING) { in GetMemberOfVectorOfNonStruct()
434 if (!IsScalar(field.value.type.base_type) && (!struct_def.fixed)) { in BuildFieldOfTable()
443 if (!IsScalar(field.value.type.base_type) && (!struct_def.fixed)) { in BuildFieldOfTable()
491 if (IsScalar(field.value.type.base_type)) { in GenStructAccessor()
498 switch (field.value.type.base_type) { in GenStructAccessor()
511 if (vectortype.base_type == BASE_TYPE_STRUCT) { in GenStructAccessor()
525 if (field.value.type.base_type == BASE_TYPE_VECTOR) { in GenStructAccessor()
566 if (IsScalar(field.value.type.base_type)) { in GenStructMutator()
588 if (field.value.type.base_type == BASE_TYPE_VECTOR) { in GenTableBuilders()
662 switch (type.base_type) { in GenGetter()
[all …]
Didl_gen_php.cpp354 switch (field.value.type.base_type) { in GetMemberOfVectorOfStruct()
373 if (vectortype.base_type == BASE_TYPE_STRUCT) { in GetMemberOfVectorOfStruct()
416 if (field.value.type.VectorType().base_type == BASE_TYPE_STRING) { in GetMemberOfVectorOfNonStruct()
576 if (field.value.type.base_type == BASE_TYPE_BOOL) { in BuildFieldOfTable()
608 if (IsScalar(field.value.type.VectorType().base_type)) { in BuildVectorOfTable()
686 if (IsScalar(field.value.type.base_type)) { in GenStructAccessor()
693 switch (field.value.type.base_type) { in GenStructAccessor()
706 if (vectortype.base_type == BASE_TYPE_STRUCT) { in GenStructAccessor()
720 if (field.value.type.base_type == BASE_TYPE_VECTOR) { in GenStructAccessor()
739 if (field.value.type.base_type == BASE_TYPE_UNION) { in GenTableBuilders()
[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/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/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
/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/libcxx/test/std/experimental/utilities/meta/meta.type.synop/
Dmeta.rel.pass.cpp17 struct base_type {}; struct
18 struct derived_type : base_type {};
36 typedef base_type T; in main()

1234