/third_party/skia/third_party/externals/tint/src/reader/spirv/ |
H A D | parser_type_test.cc | 27 TypeManager ty; in TEST() local 28 EXPECT_EQ(ty.Void(), ty.Void()); in TEST() 29 EXPECT_EQ(ty.Bool(), ty.Bool()); in TEST() 30 EXPECT_EQ(ty.U32(), ty.U32()); in TEST() 31 EXPECT_EQ(ty.F32(), ty.F32()); in TEST() 32 EXPECT_EQ(ty in TEST() 58 TypeManager ty; TEST() local [all...] |
/third_party/skia/third_party/externals/tint/src/resolver/ |
H A D | atomics_validation_test.cc | 30 Global("a", ty.atomic(Source{{12, 34}}, ty.i32()), in TEST_F() 37 auto* s = Structure("s", {Member("a", ty.atomic(Source{{12, 34}}, ty.i32()))}, in TEST_F() 39 Global("g", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kReadWrite, in TEST_F() 46 Global("a", ty.atomic(ty.f32(Source{{12, 34}})), in TEST_F() 54 Global("a", ty.atomic(Source{{12, 34}}, ty.i32()), in TEST_F() 64 Global("a", ty in TEST_F() [all...] |
H A D | storage_class_layout_validation_test.cc | 38 {Member("a", ty.f32(), {MemberSize(5)}), in TEST_F() 39 Member(Source{{34, 56}}, "b", ty.f32(), {MemberAlign(1)})}, in TEST_F() 42 Global(Source{{78, 90}}, "a", ty.type_name("S"), ast::StorageClass::kStorage, in TEST_F() 69 {Member("a", ty.f32(), {MemberSize(5)}), in TEST_F() 70 Member(Source{{34, 56}}, "b", ty.f32(), {MemberAlign(4)})}, in TEST_F() 73 Global(Source{{78, 90}}, "a", ty.type_name("S"), ast::StorageClass::kStorage, in TEST_F() 95 Structure(Source{{12, 34}}, "Inner", {Member("scalar", ty.i32())}); in TEST_F() 99 Member("scalar", ty.f32()), in TEST_F() 100 Member(Source{{56, 78}}, "inner", ty.type_name("Inner")), in TEST_F() 104 Global(Source{{78, 90}}, "a", ty in TEST_F() [all...] |
H A D | call_validation_test.cc | 28 Func("foo", {Param(Sym(), ty.i32()), Param(Sym(), ty.f32())}, ty.void_(), in TEST_F() 40 Func("foo", {Param(Sym(), ty.i32()), Param(Sym(), ty.f32())}, ty.void_(), in TEST_F() 52 Func("foo", {Param(Sym(), ty.i32()), Param(Sym(), ty.f32())}, ty.void_(), in TEST_F() 67 Func("func", {}, ty in TEST_F() [all...] |
H A D | function_validation_test.cc | 32 Func("func_a", {Param("common_name", ty.f32())}, ty.void_(), {}); in TEST_F() 33 Func("func_b", {Param("common_name", ty.f32())}, ty.void_(), {}); in TEST_F() 41 Global("common_name", ty.f32(), ast::StorageClass::kPrivate); in TEST_F() 42 Func("func", {Param("common_name", ty.f32())}, ty.void_(), {}); in TEST_F() 51 Func("func", {Param(Source{{12, 34}}, "common_name", ty.f32())}, ty.void_(), in TEST_F() 65 Func("func", {Param(Source{{12, 34}}, "common_name", ty in TEST_F() [all...] |
H A D | entry_point_validation_test.cc | 56 Func(Source{{12, 34}}, "main", {}, ty.f32(), {Return(1.0f)}, in TEST_F() 65 Func(Source{{12, 34}}, "main", {}, ty.vec4<f32>(), in TEST_F() 66 {Return(Construct(ty.vec4<f32>()))}, in TEST_F() 78 Func(Source{{12, 34}}, "main", {}, ty.vec4<f32>(), in TEST_F() 79 {Return(Construct(ty.vec4<f32>()))}, in TEST_F() 92 Func(Source{{12, 34}}, "main", {}, ty.vec4<f32>(), in TEST_F() 93 {Return(Construct(ty.vec4<f32>()))}, in TEST_F() 113 "Output", {Member("a", ty.f32(), {Location(0)}), in TEST_F() 114 Member("b", ty.f32(), {Builtin(ast::Builtin::kFragDepth)})}); in TEST_F() 115 Func(Source{{12, 34}}, "main", {}, ty in TEST_F() [all...] |
H A D | assignment_validation_test.cc | 32 auto* s = Structure("S", {Member("m", ty.i32())}, in TEST_F() 34 Global(Source{{12, 34}}, "a", ty.Of(s), ast::StorageClass::kStorage, in TEST_F() 55 auto* var = Var("a", ty.i32(), ast::StorageClass::kNone, Expr(2)); in TEST_F() 76 auto* a = Var("a", ty.array(ty.f32(), 4)); in TEST_F() 77 auto* b = Var("b", ty.array(ty.f32(), "len")); in TEST_F() 96 auto* a = Var("a", ty.array(ty.f32(), 4)); in TEST_F() 97 auto* b = Var("b", ty in TEST_F() [all...] |
H A D | array_accessor_test.cc | 28 Global("my_var", ty.mat2x3<f32>(), ast::StorageClass::kPrivate); in TEST_F() 38 Global("my_var", ty.mat2x3<f32>(), ast::StorageClass::kPrivate); in TEST_F() 39 auto* idx = Var("idx", ty.i32(), Construct(ty.i32())); in TEST_F() 47 Global("my_var", ty.mat4x4<f32>(), ast::StorageClass::kPrivate); in TEST_F() 48 auto* idx = Var("idx", ty.u32(), Expr(3u)); in TEST_F() 49 auto* idy = Var("idy", ty.u32(), Expr(2u)); in TEST_F() 57 GlobalConst("my_const", ty.mat2x3<f32>(), Construct(ty.mat2x3<f32>())); in TEST_F() 58 auto* idx = Var("idx", ty in TEST_F() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | ty.c | 2 * TiVo ty stream demuxer 169 TYDemuxContext *ty = s->priv_data; in analyze_chunk() local 222 ty->tivo_series = TIVO_SERIES1; in analyze_chunk() 223 ty->pes_length = SERIES1_PES_LENGTH; in analyze_chunk() 226 ty->tivo_series = TIVO_SERIES2; in analyze_chunk() 227 ty->pes_length = SERIES2_PES_LENGTH; in analyze_chunk() 231 ty->audio_type = TIVO_AUDIO_AC3; in analyze_chunk() 232 ty->tivo_type = TIVO_TYPE_DTIVO; in analyze_chunk() 233 ty->pts_offset = AC3_PTS_OFFSET; in analyze_chunk() 234 ty in analyze_chunk() 280 TYDemuxContext *ty = s->priv_data; ty_read_header() local 336 TYDemuxContext *ty = s->priv_data; get_chunk() local 389 TYDemuxContext *ty = s->priv_data; demux_video() local 476 TYDemuxContext *ty = s->priv_data; check_sync_pes() local 513 TYDemuxContext *ty = s->priv_data; demux_audio() local 655 TYDemuxContext *ty = s->priv_data; ty_read_packet() local 706 TYDemuxContext *ty = s->priv_data; ty_read_close() local [all...] |
/third_party/rust/crates/syn/codegen/src/ |
H A D | snapshot.rs | 11 fn rust_type(ty: &Type) -> TokenStream { in rust_type() 12 match ty { in rust_type() 13 Type::Syn(ty) => { in rust_type() 14 let ident = Ident::new(ty, Span::call_site()); in rust_type() 17 Type::Std(ty) => { in rust_type() 18 let ident = Ident::new(ty, Span::call_site()); in rust_type() 21 Type::Ext(ty) => { in rust_type() 22 let ident = Ident::new(ty, Span::call_site()); in rust_type() 25 Type::Token(ty) | Type::Group(ty) in rust_type() [all...] |
/third_party/skia/third_party/externals/tint/src/writer/glsl/ |
H A D | generator_impl_member_accessor_test.cc | 28 const ast::Type* (*)(const ProgramBuilder::TypesBuilder& ty); 30 inline const ast::Type* ty_i32(const ProgramBuilder::TypesBuilder& ty) { in ty_i32() argument 31 return ty.i32(); in ty_i32() 33 inline const ast::Type* ty_u32(const ProgramBuilder::TypesBuilder& ty) { in ty_u32() argument 34 return ty.u32(); in ty_u32() 36 inline const ast::Type* ty_f32(const ProgramBuilder::TypesBuilder& ty) { in ty_f32() argument 37 return ty.f32(); in ty_f32() 40 inline const ast::Type* ty_vec2(const ProgramBuilder::TypesBuilder& ty) { in ty_vec2() argument 41 return ty.vec2<T>(); in ty_vec2() 44 inline const ast::Type* ty_vec3(const ProgramBuilder::TypesBuilder& ty) { in ty_vec3() argument 48 ty_vec4(const ProgramBuilder::TypesBuilder& ty) ty_vec4() argument 52 ty_mat2x2(const ProgramBuilder::TypesBuilder& ty) ty_mat2x2() argument 56 ty_mat2x3(const ProgramBuilder::TypesBuilder& ty) ty_mat2x3() argument 60 ty_mat2x4(const ProgramBuilder::TypesBuilder& ty) ty_mat2x4() argument 64 ty_mat3x2(const ProgramBuilder::TypesBuilder& ty) ty_mat3x2() argument 68 ty_mat3x3(const ProgramBuilder::TypesBuilder& ty) ty_mat3x3() argument 72 ty_mat3x4(const ProgramBuilder::TypesBuilder& ty) ty_mat3x4() argument 76 ty_mat4x2(const ProgramBuilder::TypesBuilder& ty) ty_mat4x2() argument 80 ty_mat4x3(const ProgramBuilder::TypesBuilder& ty) ty_mat4x3() argument 84 ty_mat4x4(const ProgramBuilder::TypesBuilder& ty) ty_mat4x4() argument 163 auto* ty = c.member_type(b.ty); operator <<() local [all...] |
H A D | generator_impl_function_test.cc | 32 Func("my_func", ast::VariableList{}, ty.void_(), in TEST_F() 52 Func("centroid", ast::VariableList{}, ty.void_(), in TEST_F() 68 Func("my_func", ast::VariableList{Param("a", ty.f32()), Param("b", ty.i32())}, in TEST_F() 69 ty.void_(), in TEST_F() 90 Func("func", ast::VariableList{}, ty.void_(), {/* no explicit return */}, in TEST_F() 116 Func("f", {Param("foo", ty.pointer<f32>(ast::StorageClass::kFunction))}, in TEST_F() 117 ty.f32(), {Return(Deref("foo"))}); in TEST_F() 133 auto* foo_in = Param("foo", ty.f32(), {Location(0)}); in TEST_F() 134 Func("frag_main", ast::VariableList{foo_in}, ty in TEST_F() [all...] |
/third_party/skia/third_party/externals/tint/src/writer/hlsl/ |
H A D | generator_impl_function_test.cc | 32 Func("my_func", ast::VariableList{}, ty.void_(), in TEST_F() 49 Func("GeometryShader", ast::VariableList{}, ty.void_(), in TEST_F() 65 Func("my_func", ast::VariableList{Param("a", ty.f32()), Param("b", ty.i32())}, in TEST_F() 66 ty.void_(), in TEST_F() 84 Func("main", ast::VariableList{}, ty.void_(), {/* no explicit return */}, in TEST_F() 102 Func("f", {Param("foo", ty.pointer<f32>(ast::StorageClass::kFunction))}, in TEST_F() 103 ty.f32(), {Return(Deref("foo"))}); in TEST_F() 119 auto* foo_in = Param("foo", ty.f32(), {Location(0)}); in TEST_F() 120 Func("frag_main", ast::VariableList{foo_in}, ty in TEST_F() [all...] |
H A D | generator_impl_member_accessor_test.cc | 28 const ast::Type* (*)(const ProgramBuilder::TypesBuilder& ty); 30 inline const ast::Type* ty_i32(const ProgramBuilder::TypesBuilder& ty) { in ty_i32() argument 31 return ty.i32(); in ty_i32() 33 inline const ast::Type* ty_u32(const ProgramBuilder::TypesBuilder& ty) { in ty_u32() argument 34 return ty.u32(); in ty_u32() 36 inline const ast::Type* ty_f32(const ProgramBuilder::TypesBuilder& ty) { in ty_f32() argument 37 return ty.f32(); in ty_f32() 40 inline const ast::Type* ty_vec2(const ProgramBuilder::TypesBuilder& ty) { in ty_vec2() argument 41 return ty.vec2<T>(); in ty_vec2() 44 inline const ast::Type* ty_vec3(const ProgramBuilder::TypesBuilder& ty) { in ty_vec3() argument 48 ty_vec4(const ProgramBuilder::TypesBuilder& ty) ty_vec4() argument 52 ty_mat2x2(const ProgramBuilder::TypesBuilder& ty) ty_mat2x2() argument 56 ty_mat2x3(const ProgramBuilder::TypesBuilder& ty) ty_mat2x3() argument 60 ty_mat2x4(const ProgramBuilder::TypesBuilder& ty) ty_mat2x4() argument 64 ty_mat3x2(const ProgramBuilder::TypesBuilder& ty) ty_mat3x2() argument 68 ty_mat3x3(const ProgramBuilder::TypesBuilder& ty) ty_mat3x3() argument 72 ty_mat3x4(const ProgramBuilder::TypesBuilder& ty) ty_mat3x4() argument 76 ty_mat4x2(const ProgramBuilder::TypesBuilder& ty) ty_mat4x2() argument 80 ty_mat4x3(const ProgramBuilder::TypesBuilder& ty) ty_mat4x3() argument 84 ty_mat4x4(const ProgramBuilder::TypesBuilder& ty) ty_mat4x4() argument 155 auto* ty = c.member_type(b.ty); operator <<() local [all...] |
H A D | generator_impl_assign_test.cc | 25 Func("fn", {}, ty.void_(), in TEST_F() 27 Decl(Var("lhs", ty.i32())), in TEST_F() 28 Decl(Var("rhs", ty.i32())), in TEST_F() 45 Func("fn", {}, ty.void_(), in TEST_F() 47 Decl(Var("lhs", ty.vec3<f32>())), in TEST_F() 48 Decl(Var("rhs", ty.f32())), in TEST_F() 49 Decl(Const("index", ty.u32(), Expr(0u))), in TEST_F() 67 Func("fn", {}, ty.void_(), in TEST_F() 69 Decl(Var("lhs", ty.vec3<f32>())), in TEST_F() 70 Decl(Var("rhs", ty in TEST_F() [all...] |
H A D | generator_impl_sanitizer_test.cc | 29 auto* s = Structure("my_struct", {Member(0, "a", ty.array<f32>(4))}, in TEST_F() 31 Global("b", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kRead, in TEST_F() 37 Func("a_func", ast::VariableList{}, ty.void_(), in TEST_F() 39 Decl(Var("len", ty.u32(), ast::StorageClass::kNone, in TEST_F() 67 Member(0, "z", ty.f32()), in TEST_F() 68 Member(4, "a", ty.array<f32>(4)), in TEST_F() 71 Global("b", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kRead, in TEST_F() 77 Func("a_func", ast::VariableList{}, ty.void_(), in TEST_F() 79 Decl(Var("len", ty.u32(), ast::StorageClass::kNone, in TEST_F() 106 auto* s = Structure("my_struct", {Member(0, "a", ty in TEST_F() [all...] |
/third_party/rust/crates/serde/serde_derive_internals/src/ |
H A D | receiver.rs | 44 ty: Box::new(Type::Path(self.self_ty(span))), in self_to_qself() 75 fn visit_type_mut(&mut self, ty: &mut Type) { in visit_type_mut() 76 let span = if let Type::Path(node) = ty { in visit_type_mut() 84 self.visit_type_mut_impl(ty); in visit_type_mut() 87 *ty = self.self_ty(span).into(); in visit_type_mut() 91 fn visit_type_path_mut(&mut self, ty: &mut TypePath) { in visit_type_path_mut() 92 if ty.qself.is_none() { in visit_type_path_mut() 93 self.self_to_qself(&mut ty.qself, &mut ty.path); in visit_type_path_mut() 95 self.visit_type_path_mut_impl(ty); in visit_type_path_mut() [all...] |
/third_party/rust/crates/serde/serde_derive/src/internals/ |
H A D | receiver.rs | 44 ty: Box::new(Type::Path(self.self_ty(span))), in self_to_qself() 75 fn visit_type_mut(&mut self, ty: &mut Type) { in visit_type_mut() 76 let span = if let Type::Path(node) = ty { in visit_type_mut() 84 self.visit_type_mut_impl(ty); in visit_type_mut() 87 *ty = self.self_ty(span).into(); in visit_type_mut() 91 fn visit_type_path_mut(&mut self, ty: &mut TypePath) { in visit_type_path_mut() 92 if ty.qself.is_none() { in visit_type_path_mut() 93 self.self_to_qself(&mut ty.qself, &mut ty.path); in visit_type_path_mut() 95 self.visit_type_path_mut_impl(ty); in visit_type_path_mut() [all...] |
/third_party/skia/third_party/externals/tint/src/writer/msl/ |
H A D | generator_impl_function_test.cc | 28 Func("my_func", ast::VariableList{}, ty.void_(), in TEST_F() 51 params.push_back(Param("a", ty.f32())); in TEST_F() 52 params.push_back(Param("b", ty.i32())); in TEST_F() 54 Func("my_func", params, ty.void_(), in TEST_F() 76 Func("main", ast::VariableList{}, ty.void_(), in TEST_F() 97 auto* foo_in = Param("foo", ty.f32(), {Location(0)}); in TEST_F() 98 Func("frag_main", ast::VariableList{foo_in}, ty.f32(), {Return("foo")}, in TEST_F() 133 Param("coord", ty.vec4<f32>(), {Builtin(ast::Builtin::kPosition)}); in TEST_F() 134 Func("frag_main", ast::VariableList{coord_in}, ty.f32(), in TEST_F() 180 Member("col1", ty in TEST_F() [all...] |
/third_party/rust/crates/syn/tests/ |
H A D | test_path.rs | 56 let mut ty: TypePath = parse_quote!(<Self as A>::Q); in print_incomplete_qpath() variables 57 snapshot!(ty.to_token_stream(), @r###" in print_incomplete_qpath() 60 assert!(ty.path.segments.pop().is_some()); in print_incomplete_qpath() 61 snapshot!(ty.to_token_stream(), @r###" in print_incomplete_qpath() 64 assert!(ty.path.segments.pop().is_some()); in print_incomplete_qpath() 65 snapshot!(ty.to_token_stream(), @r###" in print_incomplete_qpath() 68 assert!(ty.path.segments.pop().is_none()); in print_incomplete_qpath() 71 let mut ty: TypePath = parse_quote!(<Self>::A::B); in print_incomplete_qpath() variables 72 snapshot!(ty.to_token_stream(), @r###" in print_incomplete_qpath() 75 assert!(ty in print_incomplete_qpath() 86 let mut ty: TypePath = parse_quote!(Self::A::B); print_incomplete_qpath() variables [all...] |
/third_party/rust/crates/cxx/gen/lib/src/syntax/ |
H A D | check.rs | 45 for ty in cx.types { in do_typecheck() 46 match ty { in do_typecheck() 49 Type::RustVec(ty) => check_type_rust_vec(cx, ty), in do_typecheck() 54 Type::Ref(ty) => check_type_ref(cx, ty), in do_typecheck() 55 Type::Ptr(ty) => check_type_ptr(cx, ty), in do_typecheck() 57 Type::Fn(ty) => check_type_fn(cx, ty), in do_typecheck() [all...] |
/third_party/rust/crates/cxx/syntax/ |
H A D | check.rs | 45 for ty in cx.types { in do_typecheck() 46 match ty { in do_typecheck() 49 Type::RustVec(ty) => check_type_rust_vec(cx, ty), in do_typecheck() 54 Type::Ref(ty) => check_type_ref(cx, ty), in do_typecheck() 55 Type::Ptr(ty) => check_type_ptr(cx, ty), in do_typecheck() 57 Type::Fn(ty) => check_type_fn(cx, ty), in do_typecheck() [all...] |
/third_party/rust/crates/cxx/gen/cmd/src/syntax/ |
H A D | check.rs | 45 for ty in cx.types { in do_typecheck() 46 match ty { in do_typecheck() 49 Type::RustVec(ty) => check_type_rust_vec(cx, ty), in do_typecheck() 54 Type::Ref(ty) => check_type_ref(cx, ty), in do_typecheck() 55 Type::Ptr(ty) => check_type_ptr(cx, ty), in do_typecheck() 57 Type::Fn(ty) => check_type_fn(cx, ty), in do_typecheck() [all...] |
/third_party/rust/crates/cxx/macro/src/syntax/ |
H A D | check.rs | 45 for ty in cx.types { in do_typecheck() 46 match ty { in do_typecheck() 49 Type::RustVec(ty) => check_type_rust_vec(cx, ty), in do_typecheck() 54 Type::Ref(ty) => check_type_ref(cx, ty), in do_typecheck() 55 Type::Ptr(ty) => check_type_ptr(cx, ty), in do_typecheck() 57 Type::Fn(ty) => check_type_fn(cx, ty), in do_typecheck() [all...] |
/third_party/rust/crates/cxx/gen/build/src/syntax/ |
H A D | check.rs | 45 for ty in cx.types { in do_typecheck() 46 match ty { in do_typecheck() 49 Type::RustVec(ty) => check_type_rust_vec(cx, ty), in do_typecheck() 54 Type::Ref(ty) => check_type_ref(cx, ty), in do_typecheck() 55 Type::Ptr(ty) => check_type_ptr(cx, ty), in do_typecheck() 57 Type::Fn(ty) => check_type_fn(cx, ty), in do_typecheck() [all...] |