Home
last modified time | relevance | path

Searched refs:basetype (Results 1 – 25 of 26) sorted by relevance

12

/third_party/skia/third_party/externals/spirv-cross/
Dspirv_hlsl.cpp128 static string image_format_to_type(ImageFormat fmt, SPIRType::BaseType basetype) in image_format_to_type() argument
134 if (basetype != SPIRType::Float) in image_format_to_type()
139 if (basetype != SPIRType::Float) in image_format_to_type()
144 if (basetype != SPIRType::Float) in image_format_to_type()
148 if (basetype != SPIRType::Float) in image_format_to_type()
154 if (basetype != SPIRType::Float) in image_format_to_type()
159 if (basetype != SPIRType::Float) in image_format_to_type()
164 if (basetype != SPIRType::Float) in image_format_to_type()
170 if (basetype != SPIRType::Float) in image_format_to_type()
175 if (basetype != SPIRType::Float) in image_format_to_type()
[all …]
Dspirv_parser.cpp134 target.basetype = source.basetype; in parse()
475 type.basetype = SPIRType::Void; in parse()
483 type.basetype = SPIRType::Boolean; in parse()
494 type.basetype = SPIRType::Double; in parse()
496 type.basetype = SPIRType::Float; in parse()
498 type.basetype = SPIRType::Half; in parse()
511 type.basetype = signedness ? to_signed_basetype(width) : to_unsigned_basetype(width); in parse()
600 type.basetype = SPIRType::Image; in parse()
618 type.basetype = SPIRType::SampledImage; in parse()
627 type.basetype = SPIRType::Sampler; in parse()
[all …]
Dspirv_glsl.cpp344 auto &type = get<SPIRType>(var.basetype); in remap_pls_variables()
387 if (type.basetype == SPIRType::Double) in find_static_extensions()
394 else if (type.basetype == SPIRType::Int64 || type.basetype == SPIRType::UInt64) in find_static_extensions()
401 else if (type.basetype == SPIRType::Half) in find_static_extensions()
407 else if (type.basetype == SPIRType::SByte || type.basetype == SPIRType::UByte) in find_static_extensions()
413 else if (type.basetype == SPIRType::Short || type.basetype == SPIRType::UShort) in find_static_extensions()
1093 return type.basetype == SPIRType::Struct && type.member_types.empty(); in type_is_empty()
1347 switch (type.basetype) in type_to_packed_base_size()
1405 if (type.basetype == SPIRType::Struct) in type_to_packed_alignment()
1503 if (packing_is_hlsl(packing) && type.basetype != SPIRType::Struct) in type_to_packed_size()
[all …]
Dspirv_cpp.cpp34 auto &type = get<SPIRType>(var.basetype); in emit_buffer_block()
54 auto &type = get<SPIRType>(var.basetype); in emit_interface_block()
90 auto &type = get<SPIRType>(var.basetype); in emit_uniform()
100 if (type.basetype == SPIRType::Image || type.basetype == SPIRType::SampledImage || in emit_uniform()
101 type.basetype == SPIRType::AtomicCounter) in emit_uniform()
123 auto &type = get<SPIRType>(var.basetype); in emit_push_constant_block()
184 if (type.basetype == SPIRType::Struct && type.array.empty() && !type.pointer && in emit_resources()
202 auto &type = get<SPIRType>(var.basetype); in emit_resources()
220 auto &type = get<SPIRType>(var.basetype); in emit_resources()
235 auto &type = get<SPIRType>(var.basetype); in emit_resources()
[all …]
Dspirv_cross.cpp80 auto &type = get<SPIRType>(v.basetype); in variable_storage_is_aliased()
83 bool image = type.basetype == SPIRType::Image; in variable_storage_is_aliased()
84 bool counter = type.basetype == SPIRType::AtomicCounter; in variable_storage_is_aliased()
255 auto &type = get<SPIRType>(var->basetype); in register_global_read_dependencies()
258 if (type.basetype != SPIRType::Image && type.image.dim != DimSubpassData) in register_global_read_dependencies()
433 return get<SPIRVariable>(id).basetype; in expression_type_id()
442 return get<SPIRConstantOp>(id).basetype; in expression_type_id()
445 return get<SPIRUndef>(id).basetype; in expression_type_id()
451 return get<SPIRAccessChain>(id).basetype; in expression_type_id()
466 switch (type.basetype) in expression_is_lvalue()
[all …]
Dspirv_msl.cpp81 switch (binding.basetype) in add_msl_resource_binding()
423 workgroup_id_type = var.basetype; in build_implicit_builtins()
440 vec4_type.basetype = SPIRType::Float; in build_implicit_builtins()
896 if (var_type.basetype == SPIRType::Struct) in build_implicit_builtins()
921 vec4_type.basetype = SPIRType::Float; in build_implicit_builtins()
1083 type.basetype = SPIRType::UInt; in get_uint_type_id()
1099 auto &type = get<SPIRType>(var.basetype); in emit_entry_point_declarations()
1100 if (type.basetype == SPIRType::Sampler) in emit_entry_point_declarations()
1216 … type.basetype == SPIRType::SampledImage ? to_sampler_expression(samp.first) : to_name(samp.first), in emit_entry_point_declarations()
1220 … type.basetype == SPIRType::SampledImage ? to_sampler_expression(samp.first) : to_name(samp.first), in emit_entry_point_declarations()
[all …]
Dspirv_common.hpp441 : basetype(basetype_) in SPIRUndef()
444 TypeID basetype; member
496 , basetype(result_type) in SPIRConstantOp()
505 TypeID basetype; member
548 BaseType basetype = Unknown; member
985 : basetype(basetype_) in SPIRAccessChain()
998 TypeID basetype; member
1026 : basetype(basetype_) in SPIRVariable()
1033 TypeID basetype = 0; member
1690 …return type.basetype == SPIRType::Half || type.basetype == SPIRType::Float || type.basetype == SPI… in type_is_floating_point()
[all …]
Dspirv_reflect.cpp288 return type.basetype == SPIRType::Struct && !type.pointer && type.array.empty(); in naturally_emit_type()
393 else if (membertype.basetype == SPIRType::Struct) in emit_type_member()
577 if (type.basetype == SPIRType::Struct) in emit_resources()
639 if (type.basetype == SPIRType::Image && type.image.sampled == 2) in emit_resources()
666 switch (type.basetype) in emit_specialization_constants()
Dspirv_cross_util.cpp48 if (type.basetype == SPIRType::Struct) in rename_interface_variable()
Dmain.cpp296 const char *basetype = "?"; in print_resources() local
298 switch (type.basetype) in print_resources()
300 case SPIRType::Float: basetype = "float"; break; in print_resources()
301 case SPIRType::Int: basetype = "int"; break; in print_resources()
302 case SPIRType::UInt: basetype = "uint"; break; in print_resources()
314 string type_str = basetype; in print_resources()
Dspirv_msl.hpp90 SPIRType::BaseType basetype = SPIRType::Unknown; member
871 …uint32_t get_metal_resource_index(SPIRVariable &var, SPIRType::BaseType basetype, uint32_t plane =…
1080 SPIRType::BaseType basetype = SPIRType::Unknown);
Dspirv_cross_parsed_ir.cpp554 auto &type = get<SPIRType>(var.basetype); in get_buffer_block_flags()
555 assert(type.basetype == SPIRType::Struct); in get_buffer_block_flags()
Dspirv_glsl.hpp703 …std::pair<std::string, uint32_t> flattened_access_chain_offset(const SPIRType &basetype, const uin…
Dspirv_cross_c.cpp2078 return convert_basetype(type->basetype); in spvc_type_get_basetype()
/third_party/mesa3d/src/gallium/drivers/r600/sb/
Dsb_ra_init.cpp44 typedef uint32_t basetype; typedef in r600_sb::regbits
45 static const unsigned bt_bytes = sizeof(basetype);
51 basetype dta[size];
125 dta[ih] |= ((basetype)1u << il); in set()
132 dta[ih] &= ~((basetype)1u << il); in clear()
138 return dta[ih] & ((basetype)1u << il); in get()
144 basetype bm = 1u << il; in set()
191 basetype cd = dta[elt]; in find_free_chans()
203 unsigned p = __builtin_ctz(cd) & ~(basetype)3u; in find_free_chans()
226 basetype cd = dta[elt]; in find_free_chan_by_mask()
[all …]
Dsb_valtable.cpp413 basetype d = data[w]; in set_chk()
414 basetype dn = (d & ~(1 << b)) | (bit << b); in set_chk()
434 basetype clear_mask = (~(basetype)0u) << (bit_size % bt_bits); in resize()
448 basetype d = data[w] >> b; in find_bit()
Dsb_ir.h223 typedef uint32_t basetype; typedef
224 static const unsigned bt_bits = sizeof(basetype) << 3;
225 std::vector<basetype> data;
/third_party/ltp/tools/sparse/sparse-src/
Dparse.dtd5 <!ATTLIST symbol type (uninitialized|preprocessor|basetype|node|pointer|function|array|struct|union…
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_meta_copy.c490 enum glsl_base_type basetype; in panvk_meta_copy_img2img_shader() local
492 basetype = GLSL_TYPE_FLOAT; in panvk_meta_copy_img2img_shader()
494 basetype = GLSL_TYPE_UINT16; in panvk_meta_copy_img2img_shader()
497 basetype = GLSL_TYPE_UINT; in panvk_meta_copy_img2img_shader()
504 outtype = glsl_vector_type(basetype, ndstcomps); in panvk_meta_copy_img2img_shader()
1022 enum glsl_base_type basetype; in panvk_meta_copy_buf2img_shader() local
1035 basetype = GLSL_TYPE_FLOAT; in panvk_meta_copy_buf2img_shader()
1043 basetype = GLSL_TYPE_FLOAT; in panvk_meta_copy_buf2img_shader()
1046 basetype = imgcompsz == 2 ? GLSL_TYPE_UINT16 : GLSL_TYPE_UINT; in panvk_meta_copy_buf2img_shader()
1052 glsl_vector_type(basetype, nimgcomps), in panvk_meta_copy_buf2img_shader()
/third_party/python/Lib/test/
Dtest_bytes.py1892 self.assertTrue(issubclass(self.type2test, self.basetype))
1893 self.assertIsInstance(self.type2test(), self.basetype)
1920 s2 = self.basetype().join([s1])
1922 self.assertIs(type(s2), self.basetype, type(s2))
1926 self.assertIs(type(s3), self.basetype)
1959 class B1(self.basetype):
1961 me = self.basetype.__new__(cls, value)
1970 class B2(self.basetype):
1972 if self.basetype is not bytes:
1973 self.basetype.__init__(me, *args, **kwargs)
[all …]
Dtest_set.py77 self.assertEqual(type(u), self.basetype)
107 self.assertEqual(type(i), self.basetype)
152 self.assertEqual(type(i), self.basetype)
179 self.assertEqual(type(i), self.basetype)
357 basetype = set variable in TestSet
405 self.assertEqual(type(dup), self.basetype)
645 basetype = set variable in TestSetSubclass
659 basetype = frozenset variable in TestFrozenSet
735 basetype = frozenset variable in TestFrozenSetSubclass
/third_party/python/Lib/unittest/
Dcase.py151 def _is_subtype(expected, basetype): argument
153 return all(_is_subtype(e, basetype) for e in expected)
154 return isinstance(expected, type) and issubclass(expected, basetype)
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DShaderModuleGL.cpp113 compiler.get_type(imageType.type).basetype; in ExtractSpirvInfo()
/third_party/flatbuffers/src/
Didl_gen_cpp.cpp2915 const auto basetype = GenTypeBasic( in GenCreateParam() local
2917 code += "_fbb.CreateVectorScalarCast<" + basetype + in GenCreateParam()
Didl_parser.cpp2431 BaseType basetype) { in CheckClash() argument
2440 if (field && field->value.type.base_type == basetype) in CheckClash()

12