/third_party/skia/third_party/externals/tint/samples/ |
D | main.cc | 39 const tint::diag::List& diagnostics) { in TintInternalCompilerErrorReporter() 40 auto printer = tint::diag::Printer::create(stderr, true); in TintInternalCompilerErrorReporter() 41 tint::diag::Formatter{}.format(diagnostics, printer.get()); in TintInternalCompilerErrorReporter() 42 tint::diag::Style bold_red{tint::diag::Color::kRed, true}; in TintInternalCompilerErrorReporter() 219 tint::inspector::ResourceBinding::TextureDimension dim) { in TextureDimensionToString() 221 case tint::inspector::ResourceBinding::TextureDimension::kNone: in TextureDimensionToString() 223 case tint::inspector::ResourceBinding::TextureDimension::k1d: in TextureDimensionToString() 225 case tint::inspector::ResourceBinding::TextureDimension::k2d: in TextureDimensionToString() 227 case tint::inspector::ResourceBinding::TextureDimension::k2dArray: in TextureDimensionToString() 229 case tint::inspector::ResourceBinding::TextureDimension::k3d: in TextureDimensionToString() [all …]
|
D | CMakeLists.txt | 20 add_executable(tint ${TINT_SRCS}) target 21 tint_default_compile_options(tint) 22 target_link_libraries(tint libtint tint_val) 25 target_link_libraries(tint SPIRV-Tools) 29 target_link_libraries(tint glslang) 30 target_link_libraries(tint glslang-default-resource-limits) 32 target_compile_options(tint PRIVATE
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | ShaderModule.cpp | 38 tint::transform::VertexFormat ToTintVertexFormat(wgpu::VertexFormat format) { in ToTintVertexFormat() 41 return tint::transform::VertexFormat::kUint8x2; in ToTintVertexFormat() 43 return tint::transform::VertexFormat::kUint8x4; in ToTintVertexFormat() 45 return tint::transform::VertexFormat::kSint8x2; in ToTintVertexFormat() 47 return tint::transform::VertexFormat::kSint8x4; in ToTintVertexFormat() 49 return tint::transform::VertexFormat::kUnorm8x2; in ToTintVertexFormat() 51 return tint::transform::VertexFormat::kUnorm8x4; in ToTintVertexFormat() 53 return tint::transform::VertexFormat::kSnorm8x2; in ToTintVertexFormat() 55 return tint::transform::VertexFormat::kSnorm8x4; in ToTintVertexFormat() 57 return tint::transform::VertexFormat::kUint16x2; in ToTintVertexFormat() [all …]
|
D | CompilationMessages.cpp | 26 WGPUCompilationMessageType tintSeverityToMessageType(tint::diag::Severity severity) { in tintSeverityToMessageType() 28 case tint::diag::Severity::Note: in tintSeverityToMessageType() 30 case tint::diag::Severity::Warning: in tintSeverityToMessageType() 59 void OwnedCompilationMessages::AddMessage(const tint::diag::Diagnostic& diagnostic) { in AddMessage() 108 void OwnedCompilationMessages::AddMessages(const tint::diag::List& diagnostics) { in AddMessages() 146 void OwnedCompilationMessages::AddFormattedTintMessages(const tint::diag::List& diagnostics) { in AddFormattedTintMessages() 147 tint::diag::List messageList; in AddFormattedTintMessages() 152 case (tint::diag::Severity::Fatal): in AddFormattedTintMessages() 153 case (tint::diag::Severity::Error): in AddFormattedTintMessages() 154 case (tint::diag::Severity::InternalCompilerError): { in AddFormattedTintMessages() [all …]
|
/third_party/skia/third_party/externals/tint/infra/config/global/generated/ |
D | luci-milo.cfg | 10 repo_url: "https://dawn.googlesource.com/tint" 14 name: "buildbucket/luci.tint.ci/linux-clang-dbg-x64" 19 name: "buildbucket/luci.tint.ci/linux-clang-rel-x64" 24 name: "buildbucket/luci.tint.ci/linux-clang-dbg-x86" 29 name: "buildbucket/luci.tint.ci/linux-clang-rel-x86" 34 name: "buildbucket/luci.tint.ci/mac-dbg" 39 name: "buildbucket/luci.tint.ci/mac-rel" 44 name: "buildbucket/luci.tint.ci/win-clang-dbg-x64" 49 name: "buildbucket/luci.tint.ci/win-clang-rel-x64" 54 name: "buildbucket/luci.tint.ci/win-clang-dbg-x86" [all …]
|
D | commit-queue.cfg | 19 name: "tint" 25 committer_list: "project-tint-committers" 26 dry_run_access_list: "project-tint-tryjobs-access" 30 name: "tint/try/linux-clang-dbg-x64" 33 name: "tint/try/linux-clang-dbg-x86" 36 name: "tint/try/linux-clang-rel-x64" 39 name: "tint/try/linux-clang-rel-x86" 42 name: "tint/try/mac-dbg" 45 name: "tint/try/mac-rel" 48 name: "tint/try/presubmit" [all …]
|
D | cr-buildbucket.cfg | 20 name: "tint" 28 service_account: "tint-ci-builder@chops-service-accounts.iam.gserviceaccount.com" 41 name: "tint" 49 service_account: "tint-ci-builder@chops-service-accounts.iam.gserviceaccount.com" 62 name: "tint" 70 service_account: "tint-ci-builder@chops-service-accounts.iam.gserviceaccount.com" 83 name: "tint" 91 service_account: "tint-ci-builder@chops-service-accounts.iam.gserviceaccount.com" 104 name: "tint" 116 service_account: "tint-ci-builder@chops-service-accounts.iam.gserviceaccount.com" [all …]
|
D | luci-scheduler.cfg | 13 bucket: "luci.tint.ci" 23 bucket: "luci.tint.ci" 33 bucket: "luci.tint.ci" 43 bucket: "luci.tint.ci" 53 bucket: "luci.tint.ci" 63 bucket: "luci.tint.ci" 73 bucket: "luci.tint.ci" 83 bucket: "luci.tint.ci" 93 bucket: "luci.tint.ci" 103 bucket: "luci.tint.ci" [all …]
|
/third_party/skia/third_party/externals/tint/docs/ |
D | origin-trial-changes.md | 8 * Module-scope declarations can no longer alias a builtin name. [tint:1318](https://crbug.com/tint/… 9 …tively, from a loop continuing block, that uses `discard`. [tint:1302](https://crbug.com/tint/1302) 13 … builtins has been deprecated and will be removed in M101. [tint:1312](https://crbug.com/tint/1312) 17 … builtins: `textureGather()` and `textureGatherCompare()`. [tint:1330](https://crbug.com/tint/1330) 18 * Shadowing is now fully supported. [tint:819](https://crbug.com/tint/819) 20 * Identifiers can now start with a single leading underscore. [tint:1292](https://crbug.com/tint/1… 21 …o longer need to `return` if the statement is unreachable. [tint:1302](https://crbug.com/tint/1302) 26 …` in a `workgroup_size` may result in a compilation error. [tint:1320](https://crbug.com/tint/1320) 42 …`bool` parameter. These simply return the passed argument. [tint:1253](https://crbug.com/tint/1253) 49 …orage` and `uniform` buffers has been fixed for Metal 1.x. [tint:1249](https://crbug.com/tint/1249) [all …]
|
/third_party/skia/third_party/externals/tint/fuzzers/ |
D | tint_ast_clone_fuzzer.cc | 45 const tint::diag::List& diagnostics) { in TintInternalCompilerErrorReporter() 46 auto printer = tint::diag::Printer::create(stderr, true); in TintInternalCompilerErrorReporter() 47 tint::diag::Formatter{}.format(diagnostics, printer.get()); in TintInternalCompilerErrorReporter() 54 tint::SetInternalCompilerErrorReporter(&TintInternalCompilerErrorReporter); in LLVMFuzzerTestOneInput() 56 tint::Source::File file("test.wgsl", str); in LLVMFuzzerTestOneInput() 59 tint::reader::wgsl::ParserImpl parser(&file); in LLVMFuzzerTestOneInput() 70 tint::Program dst(src.Clone()); in LLVMFuzzerTestOneInput() 73 ASSERT_EQ(tint::Program::printer(&src), tint::Program::printer(&dst)); in LLVMFuzzerTestOneInput() 76 std::unordered_set<tint::ast::Node*> src_nodes; in LLVMFuzzerTestOneInput() 80 std::unordered_set<tint::sem::Type*> src_types; in LLVMFuzzerTestOneInput() [all …]
|
D | tint_black_box_fuzz_target.cc | 109 tint::fuzzers::DataBuilder builder(data.data(), data.size()); in main() 132 tint::fuzzers::CommonFuzzer fuzzer(tint::fuzzers::InputFormat::kWGSL, in main() 133 tint::fuzzers::OutputFormat::kHLSL); in main() 137 tint::writer::msl::Options options; in main() 139 tint::fuzzers::CommonFuzzer fuzzer(tint::fuzzers::InputFormat::kWGSL, in main() 140 tint::fuzzers::OutputFormat::kMSL); in main() 145 tint::writer::spirv::Options options; in main() 147 tint::fuzzers::CommonFuzzer fuzzer(tint::fuzzers::InputFormat::kWGSL, in main() 148 tint::fuzzers::OutputFormat::kSpv); in main() 153 tint::fuzzers::CommonFuzzer fuzzer(tint::fuzzers::InputFormat::kWGSL, in main() [all …]
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_opcodes.py | 95 tint = "int" variable 196 unop("ineg", tint, "-src0") 198 unop("inot", tint, "~src0") # invert every bit of the integer 217 unop("isign", tint, "(src0 == 0) ? 0 : ((src0 > 0) ? 1 : -1)") 218 unop("iabs", tint, "(src0 < 0) ? -src0 : src0") 228 for src_t in [tint, tuint, tfloat, tbool]: 230 dst_types = [tfloat, tint, tbool] 231 elif src_t == tint: 232 dst_types = [tfloat, tint, tbool] 236 dst_types = [tint, tuint, tfloat, tbool] [all …]
|
/third_party/skia/third_party/externals/tint/fuzzers/tint_spirv_tools_fuzzer/ |
D | mutator_debugger.cc | 38 tint::fuzzers::spvtools_fuzzer::ParseMutatorDebuggerCliParams(argc, argv); in main() 40 std::unique_ptr<tint::fuzzers::spvtools_fuzzer::Mutator> mutator; in main() 43 case tint::fuzzers::spvtools_fuzzer::MutatorType::kFuzz: in main() 45 std::make_unique<tint::fuzzers::spvtools_fuzzer::SpirvFuzzMutator>( in main() 52 case tint::fuzzers::spvtools_fuzzer::MutatorType::kReduce: in main() 54 std::make_unique<tint::fuzzers::spvtools_fuzzer::SpirvReduceMutator>( in main() 60 case tint::fuzzers::spvtools_fuzzer::MutatorType::kOpt: in main() 62 std::make_unique<tint::fuzzers::spvtools_fuzzer::SpirvOptMutator>( in main() 75 tint::fuzzers::spvtools_fuzzer::Mutator::Status::kInvalid) { in main() 80 tint::fuzzers::spvtools_fuzzer::Mutator::Status::kLimitReached) { in main()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
D | ShaderModuleD3D12.cpp | 58 constexpr bool operator()(const tint::transform::BindingPoint& lhs, in operator ()() 59 const tint::transform::BindingPoint& rhs) const { in operator ()() 68 void Serialize(std::stringstream& output, const tint::ast::Access& access) { in Serialize() 73 const tint::transform::BindingPoint& binding_point) { in Serialize() 88 const std::unordered_map<tint::transform::BindingPoint, T>& map) { in Serialize() 91 std::map<tint::transform::BindingPoint, T, CompareBindingPoint> sorted(map.begin(), in Serialize() 103 const tint::writer::ArrayLengthFromUniformOptions& arrayLengthFromUniform) { in Serialize() 186 const tint::Program* program; 191 tint::transform::BindingRemapper::BindingPoints remappedBindingPoints; 192 tint::transform::BindingRemapper::AccessControls remappedAccessControls; [all …]
|
/third_party/skia/third_party/externals/tint/src/ |
D | castable.h | 42 namespace tint { 56 const tint::TypeInfo tint::detail::TypeInfoOf<CLASS>::info{ \ 57 &tint::detail::TypeInfoOf<CLASS::TrueBase>::info, \ 72 bool Is(const tint::TypeInfo& type) const; 211 virtual const tint::TypeInfo& TypeInfo() const = 0; 216 return tint::Is<TO>(this); in Is() 225 return tint::Is<TO, FLAGS>(this, std::forward<Pred>(pred)); in Is() 232 return tint::IsAnyOf<TO...>(this); in IsAnyOf() 240 return tint::As<TO, FLAGS>(this); in As() 248 return tint::As<const TO, FLAGS>(this); in As() [all …]
|
D | symbol.h | 29 namespace tint { 40 Symbol(uint32_t val, tint::ProgramID program_id); 46 Symbol(uint32_t val, tint::ProgramID program_id, std::string debug_name); 87 tint::ProgramID ProgramID() const { return program_id_; } in ProgramID() 91 tint::ProgramID program_id_; 110 class hash<tint::Symbol> { 114 inline std::size_t operator()(const tint::Symbol& sym) const { in operator()
|
D | test_main.cc | 28 void TintInternalCompilerErrorReporter(const tint::diag::List& diagnostics) { in TintInternalCompilerErrorReporter() 58 tint::Program::printer = [](const tint::Program* program) { in main() 59 auto result = tint::writer::wgsl::Generate(program, {}); in main() 74 tint::reader::spirv::test::DumpSuccessfullyConvertedSpirv(); in main() 78 tint::SetInternalCompilerErrorReporter(&TintInternalCompilerErrorReporter); in main()
|
/third_party/skia/third_party/externals/tint/fuzzers/tint_ast_fuzzer/ |
D | mutator.cc | 28 namespace tint { namespace 56 bool MaybeApplyMutation(const tint::Program& program, in MaybeApplyMutation() 59 tint::Program* out_program, in MaybeApplyMutation() 70 tint::ProgramBuilder mutated; in MaybeApplyMutation() 71 tint::CloneContext clone_context(&mutated, &program); in MaybeApplyMutation() 76 auto* cloned = tint::As<ast::Node>(node->Clone(&clone_context)); in MaybeApplyMutation() 87 *out_program = tint::Program(std::move(mutated)); in MaybeApplyMutation() 92 tint::Program Replay(tint::Program program, in Replay() 112 tint::Program Mutate(tint::Program program, in Mutate()
|
D | mutator.h | 26 namespace tint { 54 bool MaybeApplyMutation(const tint::Program& program, 57 tint::Program* out_program, 70 tint::Program Replay(tint::Program program, 91 tint::Program Mutate(tint::Program program,
|
/third_party/skia/third_party/externals/tint/test/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/ |
D | 0-opt.wgsl.expected.hlsl | 85 C:\src\tint\test\Shader@0x0000012C749BFE70(15,8-20): warning X3556: integer modulus may be much slo… 86 C:\src\tint\test\Shader@0x0000012C749BFE70(24,18-29): warning X3557: loop doesn't seem to do anythi… 87 C:\src\tint\test\Shader@0x0000012C749BFE70(24,18-29): warning X3551: infinite loop detected - loop … 88 C:\src\tint\test\Shader@0x0000012C749BFE70(24,18-29): warning X3557: loop doesn't seem to do anythi… 89 C:\src\tint\test\Shader@0x0000012C749BFE70(24,18-29): warning X3551: infinite loop detected - loop … 90 C:\src\tint\test\Shader@0x0000012C749BFE70(24,18-29): warning X3557: loop doesn't seem to do anythi… 91 C:\src\tint\test\Shader@0x0000012C749BFE70(24,18-29): warning X3551: infinite loop detected - loop … 92 C:\src\tint\test\Shader@0x0000012C749BFE70(24,18-29): warning X3557: loop doesn't seem to do anythi… 93 C:\src\tint\test\Shader@0x0000012C749BFE70(24,18-29): warning X3551: infinite loop detected - loop … 94 C:\src\tint\test\Shader@0x0000012C749BFE70(24,18-29): warning X3557: loop doesn't seem to do anythi… [all …]
|
D | 0-opt.spvasm.expected.hlsl | 85 C:\src\tint\test\Shader@0x000001BF7F9DDFF0(15,8-20): warning X3556: integer modulus may be much slo… 86 C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3557: loop doesn't seem to do anythi… 87 C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3551: infinite loop detected - loop … 88 C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3557: loop doesn't seem to do anythi… 89 C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3551: infinite loop detected - loop … 90 C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3557: loop doesn't seem to do anythi… 91 C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3551: infinite loop detected - loop … 92 C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3557: loop doesn't seem to do anythi… 93 C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3551: infinite loop detected - loop … 94 C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3557: loop doesn't seem to do anythi… [all …]
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
D | ShaderModuleVk.cpp | 89 tint::transform::Robustness robustness; in Initialize() 90 tint::transform::DataMap transformInputs; in Initialize() 92 tint::Program program; in Initialize() 96 parseResult->tintProgram = std::make_unique<tint::Program>(std::move(program)); in Initialize() 128 using BindingRemapper = tint::transform::BindingRemapper; in GetTransformedModuleHandle() 129 using BindingPoint = tint::transform::BindingPoint; in GetTransformedModuleHandle() 152 tint::transform::Manager transformManager; in GetTransformedModuleHandle() 153 transformManager.append(std::make_unique<tint::transform::BindingRemapper>()); in GetTransformedModuleHandle() 155 transformManager.append(std::make_unique<tint::transform::SingleEntryPoint>()); in GetTransformedModuleHandle() 157 tint::transform::DataMap transformInputs; in GetTransformedModuleHandle() [all …]
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/ |
D | ShaderModuleMTL.mm | 23 #include <tint/tint.h> 63 using BindingRemapper = tint::transform::BindingRemapper; 64 using BindingPoint = tint::transform::BindingPoint; 93 tint::transform::Manager transformManager; 94 tint::transform::DataMap transformInputs; 98 transformManager.Add<tint::transform::SingleEntryPoint>(); 99 transformInputs.Add<tint::transform::SingleEntryPoint::Config>(entryPointName); 103 transformManager.Add<tint::transform::VertexPulling>(); 121 transformManager.Add<tint::transform::Robustness>(); 123 transformManager.Add<tint::transform::BindingRemapper>(); [all …]
|
/third_party/skia/third_party/externals/tint/src/sem/ |
D | call_target.cc | 20 TINT_INSTANTIATE_TYPEINFO(tint::sem::CallTarget); 22 namespace tint { namespace 69 std::size_t hash<tint::sem::CallTargetSignature>::operator()( in operator ()() 70 const tint::sem::CallTargetSignature& sig) const { in operator ()() 71 size_t hash = tint::utils::Hash(sig.parameters.size()); in operator ()() 73 tint::utils::HashCombine(&hash, p->Type(), p->Usage()); in operator ()() 75 return tint::utils::Hash(hash, sig.return_type); in operator ()()
|
/third_party/skia/third_party/externals/tint/fuzzers/tint_ast_fuzzer/mutations/ |
D | replace_identifier.cc | 22 namespace tint { namespace 37 const tint::Program& program, in IsApplicable() 39 const auto* use_ast_node = tint::As<ast::IdentifierExpression>( in IsApplicable() 48 tint::As<sem::VariableUser>(program.Sem().Get(use_ast_node)); in IsApplicable() 56 tint::As<ast::Variable>(node_id_map.GetNode(message_.replacement_id())); in IsApplicable() 85 tint::CloneContext* clone_context, in Apply() 89 tint::As<ast::Variable>(node_id_map.GetNode(message_.replacement_id())); in Apply()
|