/third_party/skia/third_party/externals/tint/src/ast/ |
D | builtin.cc | 20 std::ostream& operator<<(std::ostream& out, Builtin builtin) { in operator <<() 22 case Builtin::kNone: { in operator <<() 26 case Builtin::kPosition: { in operator <<() 30 case Builtin::kVertexIndex: { in operator <<() 34 case Builtin::kInstanceIndex: { in operator <<() 38 case Builtin::kFrontFacing: { in operator <<() 42 case Builtin::kFragDepth: { in operator <<() 46 case Builtin::kLocalInvocationId: { in operator <<() 50 case Builtin::kLocalInvocationIndex: { in operator <<() 54 case Builtin::kGlobalInvocationId: { in operator <<() [all …]
|
D | builtin_decoration_test.cc | 25 auto* d = create<BuiltinDecoration>(Builtin::kFragDepth); in TEST_F() 26 EXPECT_EQ(Builtin::kFragDepth, d->builtin); in TEST_F()
|
D | builtin.h | 24 enum class Builtin { enum 47 std::ostream& operator<<(std::ostream& out, Builtin builtin);
|
D | builtin_decoration.h | 33 BuiltinDecoration(ProgramID pid, const Source& src, Builtin builtin); 46 const Builtin builtin;
|
/third_party/skia/third_party/externals/tint/src/resolver/ |
D | builtins_validation_test.cc | 39 ast::Builtin builtin; 45 constexpr Params ParamsFor(ast::Builtin builtin, in ParamsFor() 51 ParamsFor<vec4<f32>>(ast::Builtin::kPosition, 54 ParamsFor<vec4<f32>>(ast::Builtin::kPosition, 57 ParamsFor<vec4<f32>>(ast::Builtin::kPosition, 61 ParamsFor<u32>(ast::Builtin::kVertexIndex, 64 ParamsFor<u32>(ast::Builtin::kVertexIndex, 67 ParamsFor<u32>(ast::Builtin::kVertexIndex, 71 ParamsFor<u32>(ast::Builtin::kInstanceIndex, 74 ParamsFor<u32>(ast::Builtin::kInstanceIndex, [all …]
|
D | entry_point_validation_test.cc | 68 {Builtin(ast::Builtin::kPosition)}); in TEST_F() 96 Builtin(Source{{14, 52}}, ast::Builtin::kPosition)}); in TEST_F() 114 Member("b", ty.f32(), {Builtin(ast::Builtin::kFragDepth)})}); in TEST_F() 135 Builtin(Source{{14, 52}}, ast::Builtin::kFragDepth)})}); in TEST_F() 179 "Output", {Member("a", ty.f32(), {Builtin(ast::Builtin::kFragDepth)}), in TEST_F() 180 Member("b", ty.f32(), {Builtin(ast::Builtin::kFragDepth)})}); in TEST_F() 219 Builtin(Source{{14, 52}}, ast::Builtin::kSampleIndex)}); in TEST_F() 237 Member("b", ty.u32(), {Builtin(ast::Builtin::kSampleIndex)})}); in TEST_F() 256 Builtin(Source{{14, 52}}, ast::Builtin::kSampleIndex)})}); in TEST_F() 292 Param("param_a", ty.u32(), {Builtin(ast::Builtin::kSampleIndex)}); in TEST_F() [all …]
|
D | struct_pipeline_stage_use_test.cc | 70 {Builtin(ast::Builtin::kPosition)}); in TEST_F() 82 "S", {Member("a", ty.vec4<f32>(), {Builtin(ast::Builtin::kPosition)})}); in TEST_F() 126 {Member("a", ty.u32(), {Builtin(ast::Builtin::kLocalInvocationIndex)})}); in TEST_F() 141 "S", {Member("a", ty.vec4<f32>(), {Builtin(ast::Builtin::kPosition)})}); in TEST_F()
|
D | decoration_validation_test.cc | 98 return {builder.Builtin(source, ast::Builtin::kPosition)}; in createDecorations() 258 decos.push_back(Builtin(Source{{34, 56}}, ast::Builtin::kPosition)); in TEST_P() 302 {Builtin(ast::Builtin::kPosition)}); in TEST_P() 445 decos.push_back(Builtin(Source{{34, 56}}, ast::Builtin::kPosition)); in TEST_P() 653 Builtin(ast::Builtin::kPosition), in TEST_F() 1160 Builtin(Source{{56, 78}}, ast::Builtin::kPosition)}); in TEST_F() 1381 Member("pos", ty.vec4<f32>(), {Builtin(ast::Builtin::kPosition)}), in TEST_F() 1399 {Builtin(ast::Builtin::kPosition), in TEST_F() 1414 {Builtin(ast::Builtin::kPosition), in TEST_F()
|
/third_party/skia/third_party/externals/tint/src/writer/hlsl/ |
D | generator_impl_test.cc | 37 ast::Builtin builtin; 56 HlslBuiltinData{ast::Builtin::kPosition, "SV_Position"}, 57 HlslBuiltinData{ast::Builtin::kVertexIndex, "SV_VertexID"}, 58 HlslBuiltinData{ast::Builtin::kInstanceIndex, "SV_InstanceID"}, 59 HlslBuiltinData{ast::Builtin::kFrontFacing, "SV_IsFrontFace"}, 60 HlslBuiltinData{ast::Builtin::kFragDepth, "SV_Depth"}, 61 HlslBuiltinData{ast::Builtin::kLocalInvocationId, "SV_GroupThreadID"}, 62 HlslBuiltinData{ast::Builtin::kLocalInvocationIndex, "SV_GroupIndex"}, 63 HlslBuiltinData{ast::Builtin::kGlobalInvocationId, 65 HlslBuiltinData{ast::Builtin::kWorkgroupId, "SV_GroupID"}, [all …]
|
D | generator_impl_function_test.cc | 152 Param("coord", ty.vec4<f32>(), {Builtin(ast::Builtin::kPosition)}); in TEST_F() 156 {Builtin(ast::Builtin::kFragDepth)}); in TEST_F() 199 Member("pos", ty.vec4<f32>(), {Builtin(ast::Builtin::kPosition)}), in TEST_F() 281 {Member("pos", ty.vec4<f32>(), {Builtin(ast::Builtin::kPosition)})}); in TEST_F()
|
/third_party/skia/third_party/externals/tint/src/writer/glsl/ |
D | generator_impl_test.cc | 50 ast::Builtin builtin; 69 GlslBuiltinData{ast::Builtin::kPosition, "gl_Position"}, 70 GlslBuiltinData{ast::Builtin::kVertexIndex, "gl_VertexID"}, 71 GlslBuiltinData{ast::Builtin::kInstanceIndex, "gl_InstanceID"}, 72 GlslBuiltinData{ast::Builtin::kFrontFacing, "gl_FrontFacing"}, 73 GlslBuiltinData{ast::Builtin::kFragDepth, "gl_FragDepth"}, 74 GlslBuiltinData{ast::Builtin::kLocalInvocationId, 76 GlslBuiltinData{ast::Builtin::kLocalInvocationIndex, 78 GlslBuiltinData{ast::Builtin::kGlobalInvocationId, 80 GlslBuiltinData{ast::Builtin::kWorkgroupId, "gl_WorkGroupID"}, [all …]
|
D | generator_impl_function_test.cc | 180 Param("coord", ty.vec4<f32>(), {Builtin(ast::Builtin::kPosition)}); in TEST_F() 184 {Builtin(ast::Builtin::kFragDepth)}); in TEST_F() 239 Member("pos", ty.vec4<f32>(), {Builtin(ast::Builtin::kPosition)}), in TEST_F() 348 {Member("pos", ty.vec4<f32>(), {Builtin(ast::Builtin::kPosition)})});
|
D | generator_impl.cc | 1697 sem::Type* GeneratorImpl::builtin_type(ast::Builtin builtin) { in builtin_type() 1699 case ast::Builtin::kPosition: { in builtin_type() 1703 case ast::Builtin::kVertexIndex: in builtin_type() 1704 case ast::Builtin::kInstanceIndex: { in builtin_type() 1707 case ast::Builtin::kFrontFacing: { in builtin_type() 1710 case ast::Builtin::kFragDepth: { in builtin_type() 1713 case ast::Builtin::kLocalInvocationId: in builtin_type() 1714 case ast::Builtin::kGlobalInvocationId: in builtin_type() 1715 case ast::Builtin::kWorkgroupId: { in builtin_type() 1719 case ast::Builtin::kSampleIndex: { in builtin_type() [all …]
|
/third_party/skia/third_party/externals/tint/src/reader/spirv/ |
D | enum_converter.cc | 69 ast::Builtin EnumConverter::ToBuiltin(SpvBuiltIn b) { in ToBuiltin() 72 return ast::Builtin::kPosition; in ToBuiltin() 74 return ast::Builtin::kVertexIndex; in ToBuiltin() 76 return ast::Builtin::kInstanceIndex; in ToBuiltin() 78 return ast::Builtin::kFrontFacing; in ToBuiltin() 80 return ast::Builtin::kPosition; in ToBuiltin() 82 return ast::Builtin::kFragDepth; in ToBuiltin() 84 return ast::Builtin::kLocalInvocationId; in ToBuiltin() 86 return ast::Builtin::kLocalInvocationIndex; in ToBuiltin() 88 return ast::Builtin::kGlobalInvocationId; in ToBuiltin() [all …]
|
D | enum_converter_test.cc | 166 ast::Builtin expected; 209 BuiltinCase{SpvBuiltInPosition, true, ast::Builtin::kPosition}, 211 ast::Builtin::kInstanceIndex}, 212 BuiltinCase{SpvBuiltInFrontFacing, true, ast::Builtin::kFrontFacing}, 213 BuiltinCase{SpvBuiltInFragCoord, true, ast::Builtin::kPosition}, 215 ast::Builtin::kLocalInvocationId}, 217 ast::Builtin::kLocalInvocationIndex}, 219 ast::Builtin::kGlobalInvocationId}, 220 BuiltinCase{SpvBuiltInWorkgroupId, true, ast::Builtin::kWorkgroupId}, 221 BuiltinCase{SpvBuiltInSampleId, true, ast::Builtin::kSampleIndex}, [all …]
|
/third_party/skia/third_party/externals/tint/src/writer/msl/ |
D | generator_impl_test.cc | 46 ast::Builtin builtin; 65 testing::Values(MslBuiltinData{ast::Builtin::kPosition, "position"}, 66 MslBuiltinData{ast::Builtin::kVertexIndex, "vertex_id"}, 67 MslBuiltinData{ast::Builtin::kInstanceIndex, "instance_id"}, 68 MslBuiltinData{ast::Builtin::kFrontFacing, "front_facing"}, 69 MslBuiltinData{ast::Builtin::kFragDepth, "depth(any)"}, 70 MslBuiltinData{ast::Builtin::kLocalInvocationId, 72 MslBuiltinData{ast::Builtin::kLocalInvocationIndex, 74 MslBuiltinData{ast::Builtin::kGlobalInvocationId, 76 MslBuiltinData{ast::Builtin::kWorkgroupId, [all …]
|
D | generator_impl_function_test.cc | 133 Param("coord", ty.vec4<f32>(), {Builtin(ast::Builtin::kPosition)}); in TEST_F() 137 {Builtin(ast::Builtin::kFragDepth)}); in TEST_F() 182 Member("pos", ty.vec4<f32>(), {Builtin(ast::Builtin::kPosition)}), in TEST_F() 264 {Member("pos", ty.vec4<f32>(), {Builtin(ast::Builtin::kPosition)})}); in TEST_F()
|
/third_party/skia/third_party/externals/tint/src/writer/spirv/ |
D | builder_entry_point_test.cc | 46 Param("coord", ty.vec4<f32>(), {Builtin(ast::Builtin::kPosition)}); in TEST_F() 205 ast::DecorationList{Builtin(ast::Builtin::kPosition)}), in TEST_F() 217 {Builtin(ast::Builtin::kFragDepth)}); in TEST_F() 304 {Param("sample_index", ty.u32(), {Builtin(ast::Builtin::kSampleIndex)})}, in TEST_F()
|
D | builder_global_variable_test.cc | 323 ast::Builtin builtin; 343 BuiltinData{ast::Builtin::kNone, ast::StorageClass::kNone, 345 BuiltinData{ast::Builtin::kPosition, ast::StorageClass::kInput, 347 BuiltinData{ast::Builtin::kPosition, ast::StorageClass::kOutput, 350 ast::Builtin::kVertexIndex, 354 BuiltinData{ast::Builtin::kInstanceIndex, ast::StorageClass::kInput, 356 BuiltinData{ast::Builtin::kFrontFacing, ast::StorageClass::kInput, 358 BuiltinData{ast::Builtin::kFragDepth, ast::StorageClass::kOutput, 360 BuiltinData{ast::Builtin::kLocalInvocationId, ast::StorageClass::kInput, 362 BuiltinData{ast::Builtin::kLocalInvocationIndex, [all …]
|
D | builder_function_decoration_test.cc | 59 ret_type_decos.push_back(Builtin(ast::Builtin::kPosition)); in TEST_P() 256 Builtin(ast::Builtin::kFragDepth), in TEST_F()
|
/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
D | parser_impl_variable_decoration_test.cc | 81 ast::Builtin result; 110 BuiltinData{"position", ast::Builtin::kPosition}, 111 BuiltinData{"vertex_index", ast::Builtin::kVertexIndex}, 112 BuiltinData{"instance_index", ast::Builtin::kInstanceIndex}, 113 BuiltinData{"front_facing", ast::Builtin::kFrontFacing}, 114 BuiltinData{"frag_depth", ast::Builtin::kFragDepth}, 115 BuiltinData{"local_invocation_id", ast::Builtin::kLocalInvocationId}, 117 ast::Builtin::kLocalInvocationIndex}, 119 ast::Builtin::kLocalInvocationIndex}, 120 BuiltinData{"global_invocation_id", ast::Builtin::kGlobalInvocationId}, [all …]
|
/third_party/skia/third_party/externals/tint/src/transform/ |
D | first_index_offset.cc | 85 ast::Builtin builtin = builtin_dec->builtin; in Run() 86 if (builtin == ast::Builtin::kVertexIndex) { in Run() 91 if (builtin == ast::Builtin::kInstanceIndex) { in Run() 102 ast::Builtin builtin = builtin_dec->builtin; in Run() 103 if (builtin == ast::Builtin::kVertexIndex) { in Run() 108 if (builtin == ast::Builtin::kInstanceIndex) { in Run()
|
/third_party/python/Doc/tools/extensions/ |
D | asdl_highlight.py | 36 bygroups(Name.Builtin.Pseudo, Operator, Name), 38 (words(builtin_types), Name.Builtin), 39 (r"attributes", Name.Builtin),
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/ |
D | PDBSymbolTypeFunctionSig.cpp | 85 if (auto Builtin = llvm::dyn_cast_or_null<PDBSymbolTypeBuiltin>(Last.get())) { in isCVarArgs() local 86 if (Builtin->getBuiltinType() == PDB_BuiltinType::None) in isCVarArgs()
|
/third_party/skia/third_party/externals/tint/src/inspector/ |
D | inspector_test.cc | 416 Param("in_var0", ty.u32(), {Builtin(ast::Builtin::kSampleIndex)}); in TEST_F() 420 {Builtin(ast::Builtin::kFragDepth)}); in TEST_F() 744 Param("in_var", ty.u32(), {Builtin(ast::Builtin::kSampleMask)}); in TEST_F() 759 Member("inner_position", ty.u32(), {Builtin(ast::Builtin::kSampleMask)})); in TEST_F() 776 Param("in_var", ty.u32(), {Builtin(ast::Builtin::kSampleMask)}); in TEST_F() 779 {Builtin(ast::Builtin::kSampleMask)}); in TEST_F() 792 {Builtin(ast::Builtin::kSampleMask)})); in TEST_F() 809 Param("in_var", ty.vec4<f32>(), {Builtin(ast::Builtin::kPosition)}); in TEST_F() 824 {Builtin(ast::Builtin::kPosition)})); in TEST_F() 841 Param("in_var", ty.bool_(), {Builtin(ast::Builtin::kFrontFacing)}); in TEST_F() [all …]
|