diff --git a/docs/arch.md b/docs/arch.md index 3acd7d123c..84ec568522 100644 --- a/docs/arch.md +++ b/docs/arch.md @@ -117,7 +117,7 @@ type nodes. Semantic information is held by `sem::Node`s which describe the program at a higher / more abstract level than the AST. This includes information such as -the resolved type of each expression, the resolved overload of an intrinsic +the resolved type of each expression, the resolved overload of a builtin function call, and the module scoped variables used by each function. Semantic information is generated by the `Resolver` when the `Program` diff --git a/src/BUILD.gn b/src/BUILD.gn index 5b5c406541..58b2f65ee2 100644 --- a/src/BUILD.gn +++ b/src/BUILD.gn @@ -337,6 +337,9 @@ libtint_source_set("libtint_core_all_src") { "ast/workgroup_attribute.cc", "ast/workgroup_attribute.h", "block_allocator.h", + "builtin_table.cc", + "builtin_table.h", + "builtin_table.inl", "castable.cc", "castable.h", "clone_context.cc", @@ -359,9 +362,6 @@ libtint_source_set("libtint_core_all_src") { "inspector/resource_binding.h", "inspector/scalar.cc", "inspector/scalar.h", - "intrinsic_table.cc", - "intrinsic_table.h", - "intrinsic_table.inl", "program.cc", "program.h", "program_builder.cc", @@ -382,6 +382,8 @@ libtint_source_set("libtint_core_all_src") { "sem/behavior.h", "sem/binding_point.h", "sem/bool_type.h", + "sem/builtin.h", + "sem/builtin_type.h", "sem/call.h", "sem/call_target.h", "sem/constant.h", @@ -394,8 +396,6 @@ libtint_source_set("libtint_core_all_src") { "sem/i32_type.h", "sem/if_statement.h", "sem/info.h", - "sem/intrinsic.h", - "sem/intrinsic_type.h", "sem/loop_statement.h", "sem/matrix_type.h", "sem/multisampled_texture_type.h", @@ -536,6 +536,10 @@ libtint_source_set("libtint_sem_src") { "sem/block_statement.cc", "sem/bool_type.cc", "sem/bool_type.h", + "sem/builtin.cc", + "sem/builtin.h", + "sem/builtin_type.cc", + "sem/builtin_type.h", "sem/call.cc", "sem/call.h", "sem/call_target.cc", @@ -561,10 +565,6 @@ libtint_source_set("libtint_sem_src") { "sem/if_statement.h", "sem/info.cc", "sem/info.h", - "sem/intrinsic.cc", - "sem/intrinsic.h", - "sem/intrinsic_type.cc", - "sem/intrinsic_type.h", "sem/loop_statement.cc", "sem/loop_statement.h", "sem/matrix_type.cc", diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f2ce74a8e3..8c0f20a1fe 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -219,6 +219,9 @@ set(TINT_LIB_SRCS ast/workgroup_attribute.cc ast/workgroup_attribute.h block_allocator.h + builtin_table.cc + builtin_table.h + builtin_table.inl castable.cc castable.h clone_context.cc @@ -233,9 +236,6 @@ set(TINT_LIB_SRCS inspector/resource_binding.h inspector/scalar.cc inspector/scalar.h - intrinsic_table.cc - intrinsic_table.h - intrinsic_table.inl program_builder.cc program_builder.h program_id.cc @@ -260,6 +260,10 @@ set(TINT_LIB_SRCS sem/binding_point.h sem/block_statement.cc sem/block_statement.h + sem/builtin_type.cc + sem/builtin_type.h + sem/builtin.cc + sem/builtin.h sem/call_target.cc sem/call_target.h sem/call.cc @@ -273,10 +277,6 @@ set(TINT_LIB_SRCS sem/function.cc sem/info.cc sem/info.h - sem/intrinsic_type.cc - sem/intrinsic_type.h - sem/intrinsic.cc - sem/intrinsic.h sem/member_accessor_expression.cc sem/parameter_usage.cc sem/parameter_usage.h @@ -624,6 +624,8 @@ if(TINT_BUILD_TESTS) ast/bool_test.cc ast/break_statement_test.cc ast/builtin_attribute_test.cc + ast/builtin_texture_helper_test.cc + ast/builtin_texture_helper_test.h ast/call_expression_test.cc ast/call_statement_test.cc ast/case_statement_test.cc @@ -645,8 +647,6 @@ if(TINT_BUILD_TESTS) ast/index_accessor_expression_test.cc ast/int_literal_expression_test.cc ast/interpolate_attribute_test.cc - ast/intrinsic_texture_helper_test.cc - ast/intrinsic_texture_helper_test.h ast/invariant_attribute_test.cc ast/location_attribute_test.cc ast/loop_statement_test.cc @@ -682,6 +682,7 @@ if(TINT_BUILD_TESTS) ast/vector_test.cc ast/workgroup_attribute_test.cc block_allocator_test.cc + builtin_table_test.cc castable_test.cc clone_context_test.cc debug_test.cc @@ -689,7 +690,6 @@ if(TINT_BUILD_TESTS) diagnostic/diagnostic_test.cc diagnostic/formatter_test.cc diagnostic/printer_test.cc - intrinsic_table_test.cc program_test.cc resolver/array_accessor_test.cc resolver/assignment_validation_test.cc @@ -697,6 +697,8 @@ if(TINT_BUILD_TESTS) resolver/atomics_validation_test.cc resolver/bitcast_validation_test.cc resolver/builtins_validation_test.cc + resolver/builtin_test.cc + resolver/builtin_validation_test.cc resolver/call_test.cc resolver/call_validation_test.cc resolver/compound_statement_test.cc @@ -707,8 +709,6 @@ if(TINT_BUILD_TESTS) resolver/function_validation_test.cc resolver/host_shareable_validation_test.cc resolver/inferred_type_test.cc - resolver/intrinsic_test.cc - resolver/intrinsic_validation_test.cc resolver/is_host_shareable_test.cc resolver/is_storeable_test.cc resolver/pipeline_overridable_constant_test.cc @@ -732,12 +732,12 @@ if(TINT_BUILD_TESTS) scope_stack_test.cc sem/atomic_type_test.cc sem/bool_type_test.cc + sem/builtin_test.cc sem/depth_multisampled_texture_type_test.cc sem/depth_texture_type_test.cc sem/external_texture_type_test.cc sem/f32_type_test.cc sem/i32_type_test.cc - sem/intrinsic_test.cc sem/matrix_type_test.cc sem/multisampled_texture_type_test.cc sem/pointer_type_test.cc @@ -911,6 +911,8 @@ if(TINT_BUILD_TESTS) writer/spirv/builder_binary_expression_test.cc writer/spirv/builder_bitcast_expression_test.cc writer/spirv/builder_block_test.cc + writer/spirv/builder_builtin_test.cc + writer/spirv/builder_builtin_texture_test.cc writer/spirv/builder_call_test.cc writer/spirv/builder_constructor_expression_test.cc writer/spirv/builder_discard_test.cc @@ -922,8 +924,6 @@ if(TINT_BUILD_TESTS) writer/spirv/builder_global_variable_test.cc writer/spirv/builder_ident_expression_test.cc writer/spirv/builder_if_test.cc - writer/spirv/builder_intrinsic_test.cc - writer/spirv/builder_intrinsic_texture_test.cc writer/spirv/builder_literal_test.cc writer/spirv/builder_loop_test.cc writer/spirv/builder_return_test.cc @@ -1020,6 +1020,8 @@ if(TINT_BUILD_TESTS) writer/msl/generator_impl_bitcast_test.cc writer/msl/generator_impl_block_test.cc writer/msl/generator_impl_break_test.cc + writer/msl/generator_impl_builtin_test.cc + writer/msl/generator_impl_builtin_texture_test.cc writer/msl/generator_impl_call_test.cc writer/msl/generator_impl_case_test.cc writer/msl/generator_impl_cast_test.cc @@ -1030,8 +1032,6 @@ if(TINT_BUILD_TESTS) writer/msl/generator_impl_identifier_test.cc writer/msl/generator_impl_if_test.cc writer/msl/generator_impl_import_test.cc - writer/msl/generator_impl_intrinsic_test.cc - writer/msl/generator_impl_intrinsic_texture_test.cc writer/msl/generator_impl_loop_test.cc writer/msl/generator_impl_member_accessor_test.cc writer/msl/generator_impl_module_constant_test.cc @@ -1054,6 +1054,8 @@ if(TINT_BUILD_TESTS) writer/glsl/generator_impl_bitcast_test.cc writer/glsl/generator_impl_block_test.cc writer/glsl/generator_impl_break_test.cc + writer/glsl/generator_impl_builtin_test.cc + writer/glsl/generator_impl_builtin_texture_test.cc writer/glsl/generator_impl_call_test.cc writer/glsl/generator_impl_case_test.cc writer/glsl/generator_impl_cast_test.cc @@ -1063,8 +1065,6 @@ if(TINT_BUILD_TESTS) writer/glsl/generator_impl_function_test.cc writer/glsl/generator_impl_identifier_test.cc writer/glsl/generator_impl_if_test.cc - writer/glsl/generator_impl_intrinsic_test.cc - writer/glsl/generator_impl_intrinsic_texture_test.cc writer/glsl/generator_impl_import_test.cc writer/glsl/generator_impl_loop_test.cc writer/glsl/generator_impl_member_accessor_test.cc @@ -1089,6 +1089,8 @@ if(TINT_BUILD_TESTS) writer/hlsl/generator_impl_bitcast_test.cc writer/hlsl/generator_impl_block_test.cc writer/hlsl/generator_impl_break_test.cc + writer/hlsl/generator_impl_builtin_test.cc + writer/hlsl/generator_impl_builtin_texture_test.cc writer/hlsl/generator_impl_call_test.cc writer/hlsl/generator_impl_case_test.cc writer/hlsl/generator_impl_cast_test.cc @@ -1098,8 +1100,6 @@ if(TINT_BUILD_TESTS) writer/hlsl/generator_impl_function_test.cc writer/hlsl/generator_impl_identifier_test.cc writer/hlsl/generator_impl_if_test.cc - writer/hlsl/generator_impl_intrinsic_test.cc - writer/hlsl/generator_impl_intrinsic_texture_test.cc writer/hlsl/generator_impl_import_test.cc writer/hlsl/generator_impl_loop_test.cc writer/hlsl/generator_impl_member_accessor_test.cc diff --git a/src/ast/intrinsic_texture_helper_test.cc b/src/ast/builtin_texture_helper_test.cc similarity index 99% rename from src/ast/intrinsic_texture_helper_test.cc rename to src/ast/builtin_texture_helper_test.cc index 0de6571c3f..f2726082b9 100644 --- a/src/ast/intrinsic_texture_helper_test.cc +++ b/src/ast/builtin_texture_helper_test.cc @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "src/ast/intrinsic_texture_helper_test.h" +#include "src/ast/builtin_texture_helper_test.h" #include "src/sem/depth_texture_type.h" #include "src/sem/multisampled_texture_type.h" @@ -20,7 +20,7 @@ namespace tint { namespace ast { -namespace intrinsic { +namespace builtin { namespace test { using u32 = ProgramBuilder::u32; @@ -137,11 +137,11 @@ std::ostream& operator<<(std::ostream& out, const TextureOverloadCase& data) { const ast::Type* TextureOverloadCase::BuildResultVectorComponentType( ProgramBuilder* b) const { switch (texture_data_type) { - case ast::intrinsic::test::TextureDataType::kF32: + case ast::builtin::test::TextureDataType::kF32: return b->ty.f32(); - case ast::intrinsic::test::TextureDataType::kU32: + case ast::builtin::test::TextureDataType::kU32: return b->ty.u32(); - case ast::intrinsic::test::TextureDataType::kI32: + case ast::builtin::test::TextureDataType::kI32: return b->ty.i32(); } @@ -156,29 +156,29 @@ const ast::Variable* TextureOverloadCase::BuildTextureVariable( b->create(0), }; switch (texture_kind) { - case ast::intrinsic::test::TextureKind::kRegular: + case ast::builtin::test::TextureKind::kRegular: return b->Global("texture", b->ty.sampled_texture(texture_dimension, BuildResultVectorComponentType(b)), attrs); - case ast::intrinsic::test::TextureKind::kDepth: + case ast::builtin::test::TextureKind::kDepth: return b->Global("texture", b->ty.depth_texture(texture_dimension), attrs); - case ast::intrinsic::test::TextureKind::kDepthMultisampled: + case ast::builtin::test::TextureKind::kDepthMultisampled: return b->Global("texture", b->ty.depth_multisampled_texture(texture_dimension), attrs); - case ast::intrinsic::test::TextureKind::kMultisampled: + case ast::builtin::test::TextureKind::kMultisampled: return b->Global( "texture", b->ty.multisampled_texture(texture_dimension, BuildResultVectorComponentType(b)), attrs); - case ast::intrinsic::test::TextureKind::kStorage: { + case ast::builtin::test::TextureKind::kStorage: { auto* st = b->ty.storage_texture(texture_dimension, texel_format, access); return b->Global("texture", st, attrs); } @@ -2281,6 +2281,6 @@ bool ReturnsVoid(ValidTextureOverload texture_overload) { } } // namespace test -} // namespace intrinsic +} // namespace builtin } // namespace ast } // namespace tint diff --git a/src/ast/intrinsic_texture_helper_test.h b/src/ast/builtin_texture_helper_test.h similarity index 96% rename from src/ast/intrinsic_texture_helper_test.h rename to src/ast/builtin_texture_helper_test.h index b5f4a343ae..64151c954b 100644 --- a/src/ast/intrinsic_texture_helper_test.h +++ b/src/ast/builtin_texture_helper_test.h @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef SRC_AST_INTRINSIC_TEXTURE_HELPER_TEST_H_ -#define SRC_AST_INTRINSIC_TEXTURE_HELPER_TEST_H_ +#ifndef SRC_AST_BUILTIN_TEXTURE_HELPER_TEST_H_ +#define SRC_AST_BUILTIN_TEXTURE_HELPER_TEST_H_ #include @@ -23,7 +23,7 @@ namespace tint { namespace ast { -namespace intrinsic { +namespace builtin { namespace test { enum class TextureKind { @@ -181,10 +181,10 @@ enum class ValidTextureOverload { }; /// @param texture_overload the ValidTextureOverload -/// @returns true if the ValidTextureOverload intrinsic returns no value. +/// @returns true if the ValidTextureOverload builtin returns no value. bool ReturnsVoid(ValidTextureOverload texture_overload); -/// Describes a texture intrinsic overload +/// Describes a texture builtin overload struct TextureOverloadCase { /// Constructor for textureSample...() functions TextureOverloadCase(ValidTextureOverload, @@ -262,8 +262,8 @@ struct TextureOverloadCase { std::ostream& operator<<(std::ostream& out, const TextureOverloadCase& data); } // namespace test -} // namespace intrinsic +} // namespace builtin } // namespace ast } // namespace tint -#endif // SRC_AST_INTRINSIC_TEXTURE_HELPER_TEST_H_ +#endif // SRC_AST_BUILTIN_TEXTURE_HELPER_TEST_H_ diff --git a/src/ast/call_expression.h b/src/ast/call_expression.h index 68ef6cc0ba..25d2079ff0 100644 --- a/src/ast/call_expression.h +++ b/src/ast/call_expression.h @@ -26,7 +26,7 @@ class IdentifierExpression; /// A call expression - represents either a: /// * sem::Function -/// * sem::Intrinsic +/// * sem::Builtin /// * sem::TypeConstructor /// * sem::TypeConversion class CallExpression : public Castable { @@ -64,7 +64,7 @@ class CallExpression : public Castable { /// Target is either an identifier, or a Type. /// One of these must be nullptr and the other a non-nullptr. struct Target { - /// name is a function or intrinsic to call, or type name to construct or + /// name is a function or builtin to call, or type name to construct or /// cast-to const IdentifierExpression* name = nullptr; /// type to construct or cast-to diff --git a/src/intrinsic_table.cc b/src/builtin_table.cc similarity index 90% rename from src/intrinsic_table.cc rename to src/builtin_table.cc index 23c9e30add..569d057512 100644 --- a/src/intrinsic_table.cc +++ b/src/builtin_table.cc @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "src/intrinsic_table.h" +#include "src/builtin_table.h" #include #include @@ -286,7 +286,7 @@ class OpenNumberMatcher : public NumberMatcher { }; //////////////////////////////////////////////////////////////////////////////// -// Binding functions for use in the generated intrinsic_table.inl +// Binding functions for use in the generated builtin_table.inl // TODO(bclayton): See if we can move more of this hand-rolled code to the // template //////////////////////////////////////////////////////////////////////////////// @@ -793,19 +793,19 @@ struct OverloadInfo { bool is_deprecated; }; -/// IntrinsicInfo describes an intrinsic function -struct IntrinsicInfo { - /// Number of overloads of the intrinsic function +/// BuiltinInfo describes a builtin function +struct BuiltinInfo { + /// Number of overloads of the builtin function const uint8_t num_overloads; /// Pointer to the start of the overloads for the function OverloadInfo const* const overloads; }; -#include "intrinsic_table.inl" +#include "builtin_table.inl" -/// IntrinsicPrototype describes a fully matched intrinsic function, which is -/// used as a lookup for building unique sem::Intrinsic instances. -struct IntrinsicPrototype { +/// BuiltinPrototype describes a fully matched builtin function, which is +/// used as a lookup for building unique sem::Builtin instances. +struct BuiltinPrototype { /// Parameter describes a single parameter struct Parameter { /// Parameter type @@ -814,11 +814,11 @@ struct IntrinsicPrototype { ParameterUsage const usage = ParameterUsage::kNone; }; - /// Hasher provides a hash function for the IntrinsicPrototype + /// Hasher provides a hash function for the BuiltinPrototype struct Hasher { - /// @param i the IntrinsicPrototype to create a hash for + /// @param i the BuiltinPrototype to create a hash for /// @return the hash value - inline std::size_t operator()(const IntrinsicPrototype& i) const { + inline std::size_t operator()(const BuiltinPrototype& i) const { size_t hash = utils::Hash(i.parameters.size()); for (auto& p : i.parameters) { utils::HashCombine(&hash, p.type, p.usage); @@ -828,15 +828,15 @@ struct IntrinsicPrototype { } }; - sem::IntrinsicType type = sem::IntrinsicType::kNone; + sem::BuiltinType type = sem::BuiltinType::kNone; std::vector parameters; sem::Type const* return_type = nullptr; PipelineStageSet supported_stages; bool is_deprecated = false; }; -/// Equality operator for IntrinsicPrototype -bool operator==(const IntrinsicPrototype& a, const IntrinsicPrototype& b) { +/// Equality operator for BuiltinPrototype +bool operator==(const BuiltinPrototype& a, const BuiltinPrototype& b) { if (a.type != b.type || a.supported_stages != b.supported_stages || a.return_type != b.return_type || a.is_deprecated != b.is_deprecated || a.parameters.size() != b.parameters.size()) { @@ -852,20 +852,20 @@ bool operator==(const IntrinsicPrototype& a, const IntrinsicPrototype& b) { return true; } -/// Impl is the private implementation of the IntrinsicTable interface. -class Impl : public IntrinsicTable { +/// Impl is the private implementation of the BuiltinTable interface. +class Impl : public BuiltinTable { public: explicit Impl(ProgramBuilder& builder); - const sem::Intrinsic* Lookup(sem::IntrinsicType intrinsic_type, - const std::vector& args, - const Source& source) override; + const sem::Builtin* Lookup(sem::BuiltinType builtin_type, + const std::vector& args, + const Source& source) override; private: - const sem::Intrinsic* Match(sem::IntrinsicType intrinsic_type, - const OverloadInfo& overload, - const std::vector& args, - int& match_score); + const sem::Builtin* Match(sem::BuiltinType builtin_type, + const OverloadInfo& overload, + const std::vector& args, + int& match_score); MatchState Match(ClosedState& closed, const OverloadInfo& overload, @@ -873,23 +873,21 @@ class Impl : public IntrinsicTable { void PrintOverload(std::ostream& ss, const OverloadInfo& overload, - sem::IntrinsicType intrinsic_type) const; + sem::BuiltinType builtin_type) const; ProgramBuilder& builder; Matchers matchers; - std::unordered_map - intrinsics; + std::unordered_map + builtins; }; -/// @return a string representing a call to an intrinsic with the given argument +/// @return a string representing a call to a builtin with the given argument /// types. std::string CallSignature(ProgramBuilder& builder, - sem::IntrinsicType intrinsic_type, + sem::BuiltinType builtin_type, const std::vector& args) { std::stringstream ss; - ss << sem::str(intrinsic_type) << "("; + ss << sem::str(builtin_type) << "("; { bool first = true; for (auto* arg : args) { @@ -915,9 +913,9 @@ std::string OpenNumberMatcher::String(MatchState& state) const { Impl::Impl(ProgramBuilder& b) : builder(b) {} -const sem::Intrinsic* Impl::Lookup(sem::IntrinsicType intrinsic_type, - const std::vector& args, - const Source& source) { +const sem::Builtin* Impl::Lookup(sem::BuiltinType builtin_type, + const std::vector& args, + const Source& source) { // Candidate holds information about a mismatched overload that could be what // the user intended to call. struct Candidate { @@ -928,11 +926,11 @@ const sem::Intrinsic* Impl::Lookup(sem::IntrinsicType intrinsic_type, // The list of failed matches that had promise. std::vector candidates; - auto& intrinsic = kIntrinsics[static_cast(intrinsic_type)]; - for (uint32_t o = 0; o < intrinsic.num_overloads; o++) { + auto& builtin = kBuiltins[static_cast(builtin_type)]; + for (uint32_t o = 0; o < builtin.num_overloads; o++) { int match_score = 1000; - auto& overload = intrinsic.overloads[o]; - if (auto* match = Match(intrinsic_type, overload, args, match_score)) { + auto& overload = builtin.overloads[o]; + if (auto* match = Match(builtin_type, overload, args, match_score)) { return match; } if (match_score > 0) { @@ -947,7 +945,7 @@ const sem::Intrinsic* Impl::Lookup(sem::IntrinsicType intrinsic_type, // Generate an error message std::stringstream ss; - ss << "no matching call to " << CallSignature(builder, intrinsic_type, args) + ss << "no matching call to " << CallSignature(builder, builtin_type, args) << std::endl; if (!candidates.empty()) { ss << std::endl; @@ -955,7 +953,7 @@ const sem::Intrinsic* Impl::Lookup(sem::IntrinsicType intrinsic_type, << (candidates.size() > 1 ? "s:" : ":") << std::endl; for (auto& candidate : candidates) { ss << " "; - PrintOverload(ss, *candidate.overload, intrinsic_type); + PrintOverload(ss, *candidate.overload, builtin_type); ss << std::endl; } } @@ -963,10 +961,10 @@ const sem::Intrinsic* Impl::Lookup(sem::IntrinsicType intrinsic_type, return nullptr; } -const sem::Intrinsic* Impl::Match(sem::IntrinsicType intrinsic_type, - const OverloadInfo& overload, - const std::vector& args, - int& match_score) { +const sem::Builtin* Impl::Match(sem::BuiltinType builtin_type, + const OverloadInfo& overload, + const std::vector& args, + int& match_score) { // Score wait for argument <-> parameter count matches / mismatches constexpr int kScorePerParamArgMismatch = -1; constexpr int kScorePerMatchedParam = 2; @@ -987,7 +985,7 @@ const sem::Intrinsic* Impl::Match(sem::IntrinsicType intrinsic_type, ClosedState closed(builder); - std::vector parameters; + std::vector parameters; auto num_params = std::min(num_parameters, num_arguments); for (uint32_t p = 0; p < num_params; p++) { @@ -996,7 +994,7 @@ const sem::Intrinsic* Impl::Match(sem::IntrinsicType intrinsic_type, auto* type = Match(closed, overload, indices).Type(args[p]->UnwrapRef()); if (type) { parameters.emplace_back( - IntrinsicPrototype::Parameter{type, parameter.usage}); + BuiltinPrototype::Parameter{type, parameter.usage}); match_score += kScorePerMatchedParam; } else { overload_matched = false; @@ -1044,7 +1042,7 @@ const sem::Intrinsic* Impl::Match(sem::IntrinsicType intrinsic_type, return_type = Match(closed, overload, indices).Type(&any); if (!return_type) { std::stringstream ss; - PrintOverload(ss, overload, intrinsic_type); + PrintOverload(ss, overload, builtin_type); TINT_ICE(Resolver, builder.Diagnostics()) << "MatchState.Match() returned null for " << ss.str(); return nullptr; @@ -1053,25 +1051,25 @@ const sem::Intrinsic* Impl::Match(sem::IntrinsicType intrinsic_type, return_type = builder.create(); } - IntrinsicPrototype intrinsic; - intrinsic.type = intrinsic_type; - intrinsic.return_type = return_type; - intrinsic.parameters = std::move(parameters); - intrinsic.supported_stages = overload.supported_stages; - intrinsic.is_deprecated = overload.is_deprecated; + BuiltinPrototype builtin; + builtin.type = builtin_type; + builtin.return_type = return_type; + builtin.parameters = std::move(parameters); + builtin.supported_stages = overload.supported_stages; + builtin.is_deprecated = overload.is_deprecated; - // De-duplicate intrinsics that are identical. - return utils::GetOrCreate(intrinsics, intrinsic, [&] { + // De-duplicate builtins that are identical. + return utils::GetOrCreate(builtins, builtin, [&] { std::vector params; - params.reserve(intrinsic.parameters.size()); - for (auto& p : intrinsic.parameters) { + params.reserve(builtin.parameters.size()); + for (auto& p : builtin.parameters) { params.emplace_back(builder.create( nullptr, static_cast(params.size()), p.type, ast::StorageClass::kNone, ast::Access::kUndefined, p.usage)); } - return builder.create( - intrinsic.type, intrinsic.return_type, std::move(params), - intrinsic.supported_stages, intrinsic.is_deprecated); + return builder.create( + builtin.type, builtin.return_type, std::move(params), + builtin.supported_stages, builtin.is_deprecated); }); } @@ -1083,10 +1081,10 @@ MatchState Impl::Match(ClosedState& closed, void Impl::PrintOverload(std::ostream& ss, const OverloadInfo& overload, - sem::IntrinsicType intrinsic_type) const { + sem::BuiltinType builtin_type) const { ClosedState closed(builder); - ss << intrinsic_type << "("; + ss << builtin_type << "("; for (uint32_t p = 0; p < overload.num_parameters; p++) { auto& parameter = overload.parameters[p]; if (p > 0) { @@ -1156,12 +1154,11 @@ std::string MatchState::NumName() { } // namespace -std::unique_ptr IntrinsicTable::Create( - ProgramBuilder& builder) { +std::unique_ptr BuiltinTable::Create(ProgramBuilder& builder) { return std::make_unique(builder); } -IntrinsicTable::~IntrinsicTable() = default; +BuiltinTable::~BuiltinTable() = default; /// TypeInfo for the Any type declared in the anonymous namespace above TINT_INSTANTIATE_TYPEINFO(Any); diff --git a/src/builtin_table.h b/src/builtin_table.h new file mode 100644 index 0000000000..c681fe7890 --- /dev/null +++ b/src/builtin_table.h @@ -0,0 +1,52 @@ +// Copyright 2021 The Tint Authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#ifndef SRC_BUILTIN_TABLE_H_ +#define SRC_BUILTIN_TABLE_H_ + +#include +#include +#include + +#include "src/sem/builtin.h" + +namespace tint { + +// Forward declarations +class ProgramBuilder; + +/// BuiltinTable is a lookup table of all the WGSL builtin functions +class BuiltinTable { + public: + /// @param builder the program builder + /// @return a pointer to a newly created BuiltinTable + static std::unique_ptr Create(ProgramBuilder& builder); + + /// Destructor + virtual ~BuiltinTable(); + + /// Lookup looks for the builtin overload with the given signature, raising + /// an error diagnostic if the builtin was not found. + /// @param type the builtin type + /// @param args the argument types passed to the builtin function + /// @param source the source of the builtin call + /// @return the semantic builtin if found, otherwise nullptr + virtual const sem::Builtin* Lookup(sem::BuiltinType type, + const std::vector& args, + const Source& source) = 0; +}; + +} // namespace tint + +#endif // SRC_BUILTIN_TABLE_H_ diff --git a/src/intrinsic_table.inl b/src/builtin_table.inl similarity index 99% rename from src/intrinsic_table.inl rename to src/builtin_table.inl index a876cb0353..e6a30f8273 100644 --- a/src/intrinsic_table.inl +++ b/src/builtin_table.inl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// src/intrinsic_table.inl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// src/builtin_table.inl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// @@ -25,7 +25,7 @@ // clang-format off /// TypeMatcher for 'type bool' -/// @see src/intrinsics.def:68:6 +/// @see src/builtins.def:68:6 class Bool : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -52,7 +52,7 @@ std::string Bool::String(MatchState&) const { } /// TypeMatcher for 'type f32' -/// @see src/intrinsics.def:69:6 +/// @see src/builtins.def:69:6 class F32 : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -79,7 +79,7 @@ std::string F32::String(MatchState&) const { } /// TypeMatcher for 'type i32' -/// @see src/intrinsics.def:70:6 +/// @see src/builtins.def:70:6 class I32 : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -106,7 +106,7 @@ std::string I32::String(MatchState&) const { } /// TypeMatcher for 'type u32' -/// @see src/intrinsics.def:71:6 +/// @see src/builtins.def:71:6 class U32 : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -133,7 +133,7 @@ std::string U32::String(MatchState&) const { } /// TypeMatcher for 'type vec2' -/// @see src/intrinsics.def:72:6 +/// @see src/builtins.def:72:6 class Vec2 : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -166,7 +166,7 @@ std::string Vec2::String(MatchState& state) const { } /// TypeMatcher for 'type vec3' -/// @see src/intrinsics.def:73:6 +/// @see src/builtins.def:73:6 class Vec3 : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -199,7 +199,7 @@ std::string Vec3::String(MatchState& state) const { } /// TypeMatcher for 'type vec4' -/// @see src/intrinsics.def:74:6 +/// @see src/builtins.def:74:6 class Vec4 : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -232,7 +232,7 @@ std::string Vec4::String(MatchState& state) const { } /// TypeMatcher for 'type vec' -/// @see src/intrinsics.def:75:37 +/// @see src/builtins.def:75:37 class Vec : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -273,7 +273,7 @@ std::string Vec::String(MatchState& state) const { } /// TypeMatcher for 'type mat' -/// @see src/intrinsics.def:76:37 +/// @see src/builtins.def:76:37 class Mat : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -320,7 +320,7 @@ std::string Mat::String(MatchState& state) const { } /// TypeMatcher for 'type ptr' -/// @see src/intrinsics.def:77:6 +/// @see src/builtins.def:77:6 class Ptr : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -365,7 +365,7 @@ std::string Ptr::String(MatchState& state) const { } /// TypeMatcher for 'type atomic' -/// @see src/intrinsics.def:78:6 +/// @see src/builtins.def:78:6 class Atomic : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -398,7 +398,7 @@ std::string Atomic::String(MatchState& state) const { } /// TypeMatcher for 'type array' -/// @see src/intrinsics.def:79:6 +/// @see src/builtins.def:79:6 class Array : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -431,7 +431,7 @@ std::string Array::String(MatchState& state) const { } /// TypeMatcher for 'type sampler' -/// @see src/intrinsics.def:80:6 +/// @see src/builtins.def:80:6 class Sampler : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -458,7 +458,7 @@ std::string Sampler::String(MatchState&) const { } /// TypeMatcher for 'type sampler_comparison' -/// @see src/intrinsics.def:81:6 +/// @see src/builtins.def:81:6 class SamplerComparison : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -485,7 +485,7 @@ std::string SamplerComparison::String(MatchState&) const { } /// TypeMatcher for 'type texture_1d' -/// @see src/intrinsics.def:82:6 +/// @see src/builtins.def:82:6 class Texture1D : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -518,7 +518,7 @@ std::string Texture1D::String(MatchState& state) const { } /// TypeMatcher for 'type texture_2d' -/// @see src/intrinsics.def:83:6 +/// @see src/builtins.def:83:6 class Texture2D : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -551,7 +551,7 @@ std::string Texture2D::String(MatchState& state) const { } /// TypeMatcher for 'type texture_2d_array' -/// @see src/intrinsics.def:84:6 +/// @see src/builtins.def:84:6 class Texture2DArray : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -584,7 +584,7 @@ std::string Texture2DArray::String(MatchState& state) const { } /// TypeMatcher for 'type texture_3d' -/// @see src/intrinsics.def:85:6 +/// @see src/builtins.def:85:6 class Texture3D : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -617,7 +617,7 @@ std::string Texture3D::String(MatchState& state) const { } /// TypeMatcher for 'type texture_cube' -/// @see src/intrinsics.def:86:6 +/// @see src/builtins.def:86:6 class TextureCube : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -650,7 +650,7 @@ std::string TextureCube::String(MatchState& state) const { } /// TypeMatcher for 'type texture_cube_array' -/// @see src/intrinsics.def:87:6 +/// @see src/builtins.def:87:6 class TextureCubeArray : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -683,7 +683,7 @@ std::string TextureCubeArray::String(MatchState& state) const { } /// TypeMatcher for 'type texture_multisampled_2d' -/// @see src/intrinsics.def:88:6 +/// @see src/builtins.def:88:6 class TextureMultisampled2D : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -716,7 +716,7 @@ std::string TextureMultisampled2D::String(MatchState& state) const { } /// TypeMatcher for 'type texture_depth_2d' -/// @see src/intrinsics.def:89:6 +/// @see src/builtins.def:89:6 class TextureDepth2D : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -743,7 +743,7 @@ std::string TextureDepth2D::String(MatchState&) const { } /// TypeMatcher for 'type texture_depth_2d_array' -/// @see src/intrinsics.def:90:6 +/// @see src/builtins.def:90:6 class TextureDepth2DArray : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -770,7 +770,7 @@ std::string TextureDepth2DArray::String(MatchState&) const { } /// TypeMatcher for 'type texture_depth_cube' -/// @see src/intrinsics.def:91:6 +/// @see src/builtins.def:91:6 class TextureDepthCube : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -797,7 +797,7 @@ std::string TextureDepthCube::String(MatchState&) const { } /// TypeMatcher for 'type texture_depth_cube_array' -/// @see src/intrinsics.def:92:6 +/// @see src/builtins.def:92:6 class TextureDepthCubeArray : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -824,7 +824,7 @@ std::string TextureDepthCubeArray::String(MatchState&) const { } /// TypeMatcher for 'type texture_depth_multisampled_2d' -/// @see src/intrinsics.def:93:6 +/// @see src/builtins.def:93:6 class TextureDepthMultisampled2D : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -851,7 +851,7 @@ std::string TextureDepthMultisampled2D::String(MatchState&) const { } /// TypeMatcher for 'type texture_storage_1d' -/// @see src/intrinsics.def:94:6 +/// @see src/builtins.def:94:6 class TextureStorage1D : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -890,7 +890,7 @@ std::string TextureStorage1D::String(MatchState& state) const { } /// TypeMatcher for 'type texture_storage_2d' -/// @see src/intrinsics.def:95:6 +/// @see src/builtins.def:95:6 class TextureStorage2D : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -929,7 +929,7 @@ std::string TextureStorage2D::String(MatchState& state) const { } /// TypeMatcher for 'type texture_storage_2d_array' -/// @see src/intrinsics.def:96:6 +/// @see src/builtins.def:96:6 class TextureStorage2DArray : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -968,7 +968,7 @@ std::string TextureStorage2DArray::String(MatchState& state) const { } /// TypeMatcher for 'type texture_storage_3d' -/// @see src/intrinsics.def:97:6 +/// @see src/builtins.def:97:6 class TextureStorage3D : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -1007,7 +1007,7 @@ std::string TextureStorage3D::String(MatchState& state) const { } /// TypeMatcher for 'type texture_external' -/// @see src/intrinsics.def:98:6 +/// @see src/builtins.def:98:6 class TextureExternal : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -1034,7 +1034,7 @@ std::string TextureExternal::String(MatchState&) const { } /// TypeMatcher for 'type __modf_result' -/// @see src/intrinsics.def:100:6 +/// @see src/builtins.def:100:6 class ModfResult : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -1061,7 +1061,7 @@ std::string ModfResult::String(MatchState&) const { } /// TypeMatcher for 'type __modf_result_vec' -/// @see src/intrinsics.def:101:42 +/// @see src/builtins.def:101:42 class ModfResultVec : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -1096,7 +1096,7 @@ std::string ModfResultVec::String(MatchState& state) const { } /// TypeMatcher for 'type __frexp_result' -/// @see src/intrinsics.def:102:6 +/// @see src/builtins.def:102:6 class FrexpResult : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -1123,7 +1123,7 @@ std::string FrexpResult::String(MatchState&) const { } /// TypeMatcher for 'type __frexp_result_vec' -/// @see src/intrinsics.def:103:43 +/// @see src/builtins.def:103:43 class FrexpResultVec : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules. @@ -1158,7 +1158,7 @@ std::string FrexpResultVec::String(MatchState& state) const { } /// TypeMatcher for 'match fiu32' -/// @see src/intrinsics.def:111:7 +/// @see src/builtins.def:111:7 class Fiu32 : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules, and returns the @@ -1192,7 +1192,7 @@ std::string Fiu32::String(MatchState&) const { } /// TypeMatcher for 'match iu32' -/// @see src/intrinsics.def:112:7 +/// @see src/builtins.def:112:7 class Iu32 : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules, and returns the @@ -1223,7 +1223,7 @@ std::string Iu32::String(MatchState&) const { } /// TypeMatcher for 'match scalar' -/// @see src/intrinsics.def:113:7 +/// @see src/builtins.def:113:7 class Scalar : public TypeMatcher { public: /// Checks whether the given type matches the matcher rules, and returns the @@ -1260,7 +1260,7 @@ std::string Scalar::String(MatchState&) const { } /// EnumMatcher for 'match f32_texel_format' -/// @see src/intrinsics.def:124:7 +/// @see src/builtins.def:124:7 class F32TexelFormat : public NumberMatcher { public: /// Checks whether the given number matches the enum matcher rules. @@ -1293,7 +1293,7 @@ std::string F32TexelFormat::String(MatchState&) const { } /// EnumMatcher for 'match i32_texel_format' -/// @see src/intrinsics.def:126:7 +/// @see src/builtins.def:126:7 class I32TexelFormat : public NumberMatcher { public: /// Checks whether the given number matches the enum matcher rules. @@ -1325,7 +1325,7 @@ std::string I32TexelFormat::String(MatchState&) const { } /// EnumMatcher for 'match u32_texel_format' -/// @see src/intrinsics.def:128:7 +/// @see src/builtins.def:128:7 class U32TexelFormat : public NumberMatcher { public: /// Checks whether the given number matches the enum matcher rules. @@ -1357,7 +1357,7 @@ std::string U32TexelFormat::String(MatchState&) const { } /// EnumMatcher for 'match write_only' -/// @see src/intrinsics.def:131:7 +/// @see src/builtins.def:131:7 class WriteOnly : public NumberMatcher { public: /// Checks whether the given number matches the enum matcher rules. @@ -1383,7 +1383,7 @@ std::string WriteOnly::String(MatchState&) const { } /// EnumMatcher for 'match function_private_workgroup' -/// @see src/intrinsics.def:133:7 +/// @see src/builtins.def:133:7 class FunctionPrivateWorkgroup : public NumberMatcher { public: /// Checks whether the given number matches the enum matcher rules. @@ -1413,7 +1413,7 @@ std::string FunctionPrivateWorkgroup::String(MatchState&) const { } /// EnumMatcher for 'match workgroup_or_storage' -/// @see src/intrinsics.def:134:7 +/// @see src/builtins.def:134:7 class WorkgroupOrStorage : public NumberMatcher { public: /// Checks whether the given number matches the enum matcher rules. @@ -8642,7 +8642,7 @@ constexpr OverloadInfo kOverloads[] = { }, }; -constexpr IntrinsicInfo kIntrinsics[] = { +constexpr BuiltinInfo kBuiltins[] = { { /* [0] */ /* fn abs(T) -> T */ diff --git a/src/intrinsic_table.inl.tmpl b/src/builtin_table.inl.tmpl similarity index 97% rename from src/intrinsic_table.inl.tmpl rename to src/builtin_table.inl.tmpl index a1121594ce..b7604b84a9 100644 --- a/src/intrinsic_table.inl.tmpl +++ b/src/builtin_table.inl.tmpl @@ -1,10 +1,10 @@ {{- /* -------------------------------------------------------------------------------- -Template file for use with tools/intrinsic-gen to generate intrinsic_table.inl -Used by IntrinsicTable.cc for intrinsic overload resolution. +Template file for use with tools/builtin-gen to generate builtin_table.inl +Used by BuiltinTable.cc for builtin overload resolution. See: -* tools/cmd/intrinsic-gen/gen for structures used by this template +* tools/cmd/builtin-gen/gen for structures used by this template * https://golang.org/pkg/text/template/ for documentation on the template syntax -------------------------------------------------------------------------------- */ -}} @@ -23,7 +23,7 @@ See: {{ end -}} {{- end -}} -{{- with IntrinsicTable -}} +{{- with BuiltinTable -}} {{- template "Matchers" . }} constexpr MatcherIndex kMatcherIndices[] = { @@ -106,7 +106,7 @@ constexpr OverloadInfo kOverloads[] = { {{- end }} }; -constexpr IntrinsicInfo kIntrinsics[] = { +constexpr BuiltinInfo kBuiltins[] = { {{- range $i, $f := .Functions }} { /* [{{$i}}] */ diff --git a/src/intrinsic_table_test.cc b/src/builtin_table_test.cc similarity index 76% rename from src/intrinsic_table_test.cc rename to src/builtin_table_test.cc index dbb759e99f..a9ceff01e7 100644 --- a/src/intrinsic_table_test.cc +++ b/src/builtin_table_test.cc @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "src/intrinsic_table.h" +#include "src/builtin_table.h" #include "gmock/gmock.h" #include "src/program_builder.h" @@ -30,65 +30,63 @@ namespace { using ::testing::HasSubstr; -using IntrinsicType = sem::IntrinsicType; +using BuiltinType = sem::BuiltinType; using Parameter = sem::Parameter; using ParameterUsage = sem::ParameterUsage; -class IntrinsicTableTest : public testing::Test, public ProgramBuilder { +class BuiltinTableTest : public testing::Test, public ProgramBuilder { public: - std::unique_ptr table = IntrinsicTable::Create(*this); + std::unique_ptr table = BuiltinTable::Create(*this); }; -TEST_F(IntrinsicTableTest, MatchF32) { +TEST_F(BuiltinTableTest, MatchF32) { auto* f32 = create(); - auto* result = table->Lookup(IntrinsicType::kCos, {f32}, Source{}); + auto* result = table->Lookup(BuiltinType::kCos, {f32}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kCos); + EXPECT_EQ(result->Type(), BuiltinType::kCos); EXPECT_EQ(result->ReturnType(), f32); ASSERT_EQ(result->Parameters().size(), 1u); EXPECT_EQ(result->Parameters()[0]->Type(), f32); } -TEST_F(IntrinsicTableTest, MismatchF32) { +TEST_F(BuiltinTableTest, MismatchF32) { auto* i32 = create(); - auto* result = table->Lookup(IntrinsicType::kCos, {i32}, Source{}); + auto* result = table->Lookup(BuiltinType::kCos, {i32}, Source{}); ASSERT_EQ(result, nullptr); ASSERT_THAT(Diagnostics().str(), HasSubstr("no matching call")); } -TEST_F(IntrinsicTableTest, MatchU32) { +TEST_F(BuiltinTableTest, MatchU32) { auto* f32 = create(); auto* u32 = create(); auto* vec2_f32 = create(f32, 2); - auto* result = - table->Lookup(IntrinsicType::kUnpack2x16float, {u32}, Source{}); + auto* result = table->Lookup(BuiltinType::kUnpack2x16float, {u32}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kUnpack2x16float); + EXPECT_EQ(result->Type(), BuiltinType::kUnpack2x16float); EXPECT_EQ(result->ReturnType(), vec2_f32); ASSERT_EQ(result->Parameters().size(), 1u); EXPECT_EQ(result->Parameters()[0]->Type(), u32); } -TEST_F(IntrinsicTableTest, MismatchU32) { +TEST_F(BuiltinTableTest, MismatchU32) { auto* f32 = create(); - auto* result = - table->Lookup(IntrinsicType::kUnpack2x16float, {f32}, Source{}); + auto* result = table->Lookup(BuiltinType::kUnpack2x16float, {f32}, Source{}); ASSERT_EQ(result, nullptr); ASSERT_THAT(Diagnostics().str(), HasSubstr("no matching call")); } -TEST_F(IntrinsicTableTest, MatchI32) { +TEST_F(BuiltinTableTest, MatchI32) { auto* f32 = create(); auto* i32 = create(); auto* vec4_f32 = create(f32, 4); auto* tex = create(ast::TextureDimension::k1d, f32); auto* result = - table->Lookup(IntrinsicType::kTextureLoad, {tex, i32, i32}, Source{}); + table->Lookup(BuiltinType::kTextureLoad, {tex, i32, i32}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kTextureLoad); + EXPECT_EQ(result->Type(), BuiltinType::kTextureLoad); EXPECT_EQ(result->ReturnType(), vec4_f32); ASSERT_EQ(result->Parameters().size(), 3u); EXPECT_EQ(result->Parameters()[0]->Type(), tex); @@ -99,51 +97,49 @@ TEST_F(IntrinsicTableTest, MatchI32) { EXPECT_EQ(result->Parameters()[2]->Usage(), ParameterUsage::kLevel); } -TEST_F(IntrinsicTableTest, MismatchI32) { +TEST_F(BuiltinTableTest, MismatchI32) { auto* f32 = create(); auto* tex = create(ast::TextureDimension::k1d, f32); - auto* result = - table->Lookup(IntrinsicType::kTextureLoad, {tex, f32}, Source{}); + auto* result = table->Lookup(BuiltinType::kTextureLoad, {tex, f32}, Source{}); ASSERT_EQ(result, nullptr); ASSERT_THAT(Diagnostics().str(), HasSubstr("no matching call")); } -TEST_F(IntrinsicTableTest, MatchIU32AsI32) { +TEST_F(BuiltinTableTest, MatchIU32AsI32) { auto* i32 = create(); - auto* result = table->Lookup(IntrinsicType::kCountOneBits, {i32}, Source{}); + auto* result = table->Lookup(BuiltinType::kCountOneBits, {i32}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kCountOneBits); + EXPECT_EQ(result->Type(), BuiltinType::kCountOneBits); EXPECT_EQ(result->ReturnType(), i32); ASSERT_EQ(result->Parameters().size(), 1u); EXPECT_EQ(result->Parameters()[0]->Type(), i32); } -TEST_F(IntrinsicTableTest, MatchIU32AsU32) { +TEST_F(BuiltinTableTest, MatchIU32AsU32) { auto* u32 = create(); - auto* result = table->Lookup(IntrinsicType::kCountOneBits, {u32}, Source{}); + auto* result = table->Lookup(BuiltinType::kCountOneBits, {u32}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kCountOneBits); + EXPECT_EQ(result->Type(), BuiltinType::kCountOneBits); EXPECT_EQ(result->ReturnType(), u32); ASSERT_EQ(result->Parameters().size(), 1u); EXPECT_EQ(result->Parameters()[0]->Type(), u32); } -TEST_F(IntrinsicTableTest, MismatchIU32) { +TEST_F(BuiltinTableTest, MismatchIU32) { auto* f32 = create(); - auto* result = table->Lookup(IntrinsicType::kCountOneBits, {f32}, Source{}); + auto* result = table->Lookup(BuiltinType::kCountOneBits, {f32}, Source{}); ASSERT_EQ(result, nullptr); ASSERT_THAT(Diagnostics().str(), HasSubstr("no matching call")); } -TEST_F(IntrinsicTableTest, MatchFIU32AsI32) { +TEST_F(BuiltinTableTest, MatchFIU32AsI32) { auto* i32 = create(); - auto* result = - table->Lookup(IntrinsicType::kClamp, {i32, i32, i32}, Source{}); + auto* result = table->Lookup(BuiltinType::kClamp, {i32, i32, i32}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kClamp); + EXPECT_EQ(result->Type(), BuiltinType::kClamp); EXPECT_EQ(result->ReturnType(), i32); ASSERT_EQ(result->Parameters().size(), 3u); EXPECT_EQ(result->Parameters()[0]->Type(), i32); @@ -151,13 +147,12 @@ TEST_F(IntrinsicTableTest, MatchFIU32AsI32) { EXPECT_EQ(result->Parameters()[2]->Type(), i32); } -TEST_F(IntrinsicTableTest, MatchFIU32AsU32) { +TEST_F(BuiltinTableTest, MatchFIU32AsU32) { auto* u32 = create(); - auto* result = - table->Lookup(IntrinsicType::kClamp, {u32, u32, u32}, Source{}); + auto* result = table->Lookup(BuiltinType::kClamp, {u32, u32, u32}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kClamp); + EXPECT_EQ(result->Type(), BuiltinType::kClamp); EXPECT_EQ(result->ReturnType(), u32); ASSERT_EQ(result->Parameters().size(), 3u); EXPECT_EQ(result->Parameters()[0]->Type(), u32); @@ -165,13 +160,12 @@ TEST_F(IntrinsicTableTest, MatchFIU32AsU32) { EXPECT_EQ(result->Parameters()[2]->Type(), u32); } -TEST_F(IntrinsicTableTest, MatchFIU32AsF32) { +TEST_F(BuiltinTableTest, MatchFIU32AsF32) { auto* f32 = create(); - auto* result = - table->Lookup(IntrinsicType::kClamp, {f32, f32, f32}, Source{}); + auto* result = table->Lookup(BuiltinType::kClamp, {f32, f32, f32}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kClamp); + EXPECT_EQ(result->Type(), BuiltinType::kClamp); EXPECT_EQ(result->ReturnType(), f32); ASSERT_EQ(result->Parameters().size(), 3u); EXPECT_EQ(result->Parameters()[0]->Type(), f32); @@ -179,22 +173,22 @@ TEST_F(IntrinsicTableTest, MatchFIU32AsF32) { EXPECT_EQ(result->Parameters()[2]->Type(), f32); } -TEST_F(IntrinsicTableTest, MismatchFIU32) { +TEST_F(BuiltinTableTest, MismatchFIU32) { auto* bool_ = create(); auto* result = - table->Lookup(IntrinsicType::kClamp, {bool_, bool_, bool_}, Source{}); + table->Lookup(BuiltinType::kClamp, {bool_, bool_, bool_}, Source{}); ASSERT_EQ(result, nullptr); ASSERT_THAT(Diagnostics().str(), HasSubstr("no matching call")); } -TEST_F(IntrinsicTableTest, MatchBool) { +TEST_F(BuiltinTableTest, MatchBool) { auto* f32 = create(); auto* bool_ = create(); auto* result = - table->Lookup(IntrinsicType::kSelect, {f32, f32, bool_}, Source{}); + table->Lookup(BuiltinType::kSelect, {f32, f32, bool_}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kSelect); + EXPECT_EQ(result->Type(), BuiltinType::kSelect); EXPECT_EQ(result->ReturnType(), f32); ASSERT_EQ(result->Parameters().size(), 3u); EXPECT_EQ(result->Parameters()[0]->Type(), f32); @@ -202,46 +196,43 @@ TEST_F(IntrinsicTableTest, MatchBool) { EXPECT_EQ(result->Parameters()[2]->Type(), bool_); } -TEST_F(IntrinsicTableTest, MismatchBool) { +TEST_F(BuiltinTableTest, MismatchBool) { auto* f32 = create(); - auto* result = - table->Lookup(IntrinsicType::kSelect, {f32, f32, f32}, Source{}); + auto* result = table->Lookup(BuiltinType::kSelect, {f32, f32, f32}, Source{}); ASSERT_EQ(result, nullptr); ASSERT_THAT(Diagnostics().str(), HasSubstr("no matching call")); } -TEST_F(IntrinsicTableTest, MatchPointer) { +TEST_F(BuiltinTableTest, MatchPointer) { auto* i32 = create(); auto* atomicI32 = create(i32); auto* ptr = create(atomicI32, ast::StorageClass::kWorkgroup, ast::Access::kReadWrite); - auto* result = table->Lookup(IntrinsicType::kAtomicLoad, {ptr}, Source{}); + auto* result = table->Lookup(BuiltinType::kAtomicLoad, {ptr}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kAtomicLoad); + EXPECT_EQ(result->Type(), BuiltinType::kAtomicLoad); EXPECT_EQ(result->ReturnType(), i32); ASSERT_EQ(result->Parameters().size(), 1u); EXPECT_EQ(result->Parameters()[0]->Type(), ptr); } -TEST_F(IntrinsicTableTest, MismatchPointer) { +TEST_F(BuiltinTableTest, MismatchPointer) { auto* i32 = create(); auto* atomicI32 = create(i32); - auto* result = - table->Lookup(IntrinsicType::kAtomicLoad, {atomicI32}, Source{}); + auto* result = table->Lookup(BuiltinType::kAtomicLoad, {atomicI32}, Source{}); ASSERT_EQ(result, nullptr); ASSERT_THAT(Diagnostics().str(), HasSubstr("no matching call")); } -TEST_F(IntrinsicTableTest, MatchArray) { +TEST_F(BuiltinTableTest, MatchArray) { auto* arr = create(create(), 0, 4, 4, 4, 4); auto* arr_ptr = create(arr, ast::StorageClass::kStorage, ast::Access::kReadWrite); - auto* result = - table->Lookup(IntrinsicType::kArrayLength, {arr_ptr}, Source{}); + auto* result = table->Lookup(BuiltinType::kArrayLength, {arr_ptr}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kArrayLength); + EXPECT_EQ(result->Type(), BuiltinType::kArrayLength); EXPECT_TRUE(result->ReturnType()->Is()); ASSERT_EQ(result->Parameters().size(), 1u); auto* param_type = result->Parameters()[0]->Type(); @@ -249,24 +240,24 @@ TEST_F(IntrinsicTableTest, MatchArray) { EXPECT_TRUE(param_type->As()->StoreType()->Is()); } -TEST_F(IntrinsicTableTest, MismatchArray) { +TEST_F(BuiltinTableTest, MismatchArray) { auto* f32 = create(); - auto* result = table->Lookup(IntrinsicType::kArrayLength, {f32}, Source{}); + auto* result = table->Lookup(BuiltinType::kArrayLength, {f32}, Source{}); ASSERT_EQ(result, nullptr); ASSERT_THAT(Diagnostics().str(), HasSubstr("no matching call")); } -TEST_F(IntrinsicTableTest, MatchSampler) { +TEST_F(BuiltinTableTest, MatchSampler) { auto* f32 = create(); auto* vec2_f32 = create(f32, 2); auto* vec4_f32 = create(f32, 4); auto* tex = create(ast::TextureDimension::k2d, f32); auto* sampler = create(ast::SamplerKind::kSampler); - auto* result = table->Lookup(IntrinsicType::kTextureSample, + auto* result = table->Lookup(BuiltinType::kTextureSample, {tex, sampler, vec2_f32}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kTextureSample); + EXPECT_EQ(result->Type(), BuiltinType::kTextureSample); EXPECT_EQ(result->ReturnType(), vec4_f32); ASSERT_EQ(result->Parameters().size(), 3u); EXPECT_EQ(result->Parameters()[0]->Type(), tex); @@ -277,27 +268,27 @@ TEST_F(IntrinsicTableTest, MatchSampler) { EXPECT_EQ(result->Parameters()[2]->Usage(), ParameterUsage::kCoords); } -TEST_F(IntrinsicTableTest, MismatchSampler) { +TEST_F(BuiltinTableTest, MismatchSampler) { auto* f32 = create(); auto* vec2_f32 = create(f32, 2); auto* tex = create(ast::TextureDimension::k2d, f32); - auto* result = table->Lookup(IntrinsicType::kTextureSample, + auto* result = table->Lookup(BuiltinType::kTextureSample, {tex, f32, vec2_f32}, Source{}); ASSERT_EQ(result, nullptr); ASSERT_THAT(Diagnostics().str(), HasSubstr("no matching call")); } -TEST_F(IntrinsicTableTest, MatchSampledTexture) { +TEST_F(BuiltinTableTest, MatchSampledTexture) { auto* i32 = create(); auto* f32 = create(); auto* vec2_i32 = create(i32, 2); auto* vec4_f32 = create(f32, 4); auto* tex = create(ast::TextureDimension::k2d, f32); - auto* result = table->Lookup(IntrinsicType::kTextureLoad, - {tex, vec2_i32, i32}, Source{}); + auto* result = + table->Lookup(BuiltinType::kTextureLoad, {tex, vec2_i32, i32}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kTextureLoad); + EXPECT_EQ(result->Type(), BuiltinType::kTextureLoad); EXPECT_EQ(result->ReturnType(), vec4_f32); ASSERT_EQ(result->Parameters().size(), 3u); EXPECT_EQ(result->Parameters()[0]->Type(), tex); @@ -308,17 +299,17 @@ TEST_F(IntrinsicTableTest, MatchSampledTexture) { EXPECT_EQ(result->Parameters()[2]->Usage(), ParameterUsage::kLevel); } -TEST_F(IntrinsicTableTest, MatchMultisampledTexture) { +TEST_F(BuiltinTableTest, MatchMultisampledTexture) { auto* i32 = create(); auto* f32 = create(); auto* vec2_i32 = create(i32, 2); auto* vec4_f32 = create(f32, 4); auto* tex = create(ast::TextureDimension::k2d, f32); - auto* result = table->Lookup(IntrinsicType::kTextureLoad, - {tex, vec2_i32, i32}, Source{}); + auto* result = + table->Lookup(BuiltinType::kTextureLoad, {tex, vec2_i32, i32}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kTextureLoad); + EXPECT_EQ(result->Type(), BuiltinType::kTextureLoad); EXPECT_EQ(result->ReturnType(), vec4_f32); ASSERT_EQ(result->Parameters().size(), 3u); EXPECT_EQ(result->Parameters()[0]->Type(), tex); @@ -329,16 +320,16 @@ TEST_F(IntrinsicTableTest, MatchMultisampledTexture) { EXPECT_EQ(result->Parameters()[2]->Usage(), ParameterUsage::kSampleIndex); } -TEST_F(IntrinsicTableTest, MatchDepthTexture) { +TEST_F(BuiltinTableTest, MatchDepthTexture) { auto* f32 = create(); auto* i32 = create(); auto* vec2_i32 = create(i32, 2); auto* tex = create(ast::TextureDimension::k2d); - auto* result = table->Lookup(IntrinsicType::kTextureLoad, - {tex, vec2_i32, i32}, Source{}); + auto* result = + table->Lookup(BuiltinType::kTextureLoad, {tex, vec2_i32, i32}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kTextureLoad); + EXPECT_EQ(result->Type(), BuiltinType::kTextureLoad); EXPECT_EQ(result->ReturnType(), f32); ASSERT_EQ(result->Parameters().size(), 3u); EXPECT_EQ(result->Parameters()[0]->Type(), tex); @@ -349,16 +340,16 @@ TEST_F(IntrinsicTableTest, MatchDepthTexture) { EXPECT_EQ(result->Parameters()[2]->Usage(), ParameterUsage::kLevel); } -TEST_F(IntrinsicTableTest, MatchDepthMultisampledTexture) { +TEST_F(BuiltinTableTest, MatchDepthMultisampledTexture) { auto* f32 = create(); auto* i32 = create(); auto* vec2_i32 = create(i32, 2); auto* tex = create(ast::TextureDimension::k2d); - auto* result = table->Lookup(IntrinsicType::kTextureLoad, - {tex, vec2_i32, i32}, Source{}); + auto* result = + table->Lookup(BuiltinType::kTextureLoad, {tex, vec2_i32, i32}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kTextureLoad); + EXPECT_EQ(result->Type(), BuiltinType::kTextureLoad); EXPECT_EQ(result->ReturnType(), f32); ASSERT_EQ(result->Parameters().size(), 3u); EXPECT_EQ(result->Parameters()[0]->Type(), tex); @@ -369,17 +360,17 @@ TEST_F(IntrinsicTableTest, MatchDepthMultisampledTexture) { EXPECT_EQ(result->Parameters()[2]->Usage(), ParameterUsage::kSampleIndex); } -TEST_F(IntrinsicTableTest, MatchExternalTexture) { +TEST_F(BuiltinTableTest, MatchExternalTexture) { auto* f32 = create(); auto* i32 = create(); auto* vec2_i32 = create(i32, 2); auto* vec4_f32 = create(f32, 4); auto* tex = create(); auto* result = - table->Lookup(IntrinsicType::kTextureLoad, {tex, vec2_i32}, Source{}); + table->Lookup(BuiltinType::kTextureLoad, {tex, vec2_i32}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kTextureLoad); + EXPECT_EQ(result->Type(), BuiltinType::kTextureLoad); EXPECT_EQ(result->ReturnType(), vec4_f32); ASSERT_EQ(result->Parameters().size(), 2u); EXPECT_EQ(result->Parameters()[0]->Type(), tex); @@ -388,7 +379,7 @@ TEST_F(IntrinsicTableTest, MatchExternalTexture) { EXPECT_EQ(result->Parameters()[1]->Usage(), ParameterUsage::kCoords); } -TEST_F(IntrinsicTableTest, MatchWOStorageTexture) { +TEST_F(BuiltinTableTest, MatchWOStorageTexture) { auto* f32 = create(); auto* i32 = create(); auto* vec2_i32 = create(i32, 2); @@ -399,11 +390,11 @@ TEST_F(IntrinsicTableTest, MatchWOStorageTexture) { ast::TexelFormat::kR32Float, ast::Access::kWrite, subtype); - auto* result = table->Lookup(IntrinsicType::kTextureStore, + auto* result = table->Lookup(BuiltinType::kTextureStore, {tex, vec2_i32, vec4_f32}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kTextureStore); + EXPECT_EQ(result->Type(), BuiltinType::kTextureStore); EXPECT_TRUE(result->ReturnType()->Is()); ASSERT_EQ(result->Parameters().size(), 3u); EXPECT_EQ(result->Parameters()[0]->Type(), tex); @@ -414,61 +405,59 @@ TEST_F(IntrinsicTableTest, MatchWOStorageTexture) { EXPECT_EQ(result->Parameters()[2]->Usage(), ParameterUsage::kValue); } -TEST_F(IntrinsicTableTest, MismatchTexture) { +TEST_F(BuiltinTableTest, MismatchTexture) { auto* f32 = create(); auto* i32 = create(); auto* vec2_i32 = create(i32, 2); auto* result = - table->Lookup(IntrinsicType::kTextureLoad, {f32, vec2_i32}, Source{}); + table->Lookup(BuiltinType::kTextureLoad, {f32, vec2_i32}, Source{}); ASSERT_EQ(result, nullptr); ASSERT_THAT(Diagnostics().str(), HasSubstr("no matching call")); } -TEST_F(IntrinsicTableTest, ImplicitLoadOnReference) { +TEST_F(BuiltinTableTest, ImplicitLoadOnReference) { auto* f32 = create(); auto* result = - table->Lookup(IntrinsicType::kCos, + table->Lookup(BuiltinType::kCos, {create(f32, ast::StorageClass::kFunction, ast::Access::kReadWrite)}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kCos); + EXPECT_EQ(result->Type(), BuiltinType::kCos); EXPECT_EQ(result->ReturnType(), f32); ASSERT_EQ(result->Parameters().size(), 1u); EXPECT_EQ(result->Parameters()[0]->Type(), f32); } -TEST_F(IntrinsicTableTest, MatchOpenType) { +TEST_F(BuiltinTableTest, MatchOpenType) { auto* f32 = create(); - auto* result = - table->Lookup(IntrinsicType::kClamp, {f32, f32, f32}, Source{}); + auto* result = table->Lookup(BuiltinType::kClamp, {f32, f32, f32}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kClamp); + EXPECT_EQ(result->Type(), BuiltinType::kClamp); EXPECT_EQ(result->ReturnType(), f32); EXPECT_EQ(result->Parameters()[0]->Type(), f32); EXPECT_EQ(result->Parameters()[1]->Type(), f32); EXPECT_EQ(result->Parameters()[2]->Type(), f32); } -TEST_F(IntrinsicTableTest, MismatchOpenType) { +TEST_F(BuiltinTableTest, MismatchOpenType) { auto* f32 = create(); auto* u32 = create(); - auto* result = - table->Lookup(IntrinsicType::kClamp, {f32, u32, f32}, Source{}); + auto* result = table->Lookup(BuiltinType::kClamp, {f32, u32, f32}, Source{}); ASSERT_EQ(result, nullptr); ASSERT_THAT(Diagnostics().str(), HasSubstr("no matching call")); } -TEST_F(IntrinsicTableTest, MatchOpenSizeVector) { +TEST_F(BuiltinTableTest, MatchOpenSizeVector) { auto* f32 = create(); auto* vec2_f32 = create(f32, 2); - auto* result = table->Lookup(IntrinsicType::kClamp, + auto* result = table->Lookup(BuiltinType::kClamp, {vec2_f32, vec2_f32, vec2_f32}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kClamp); + EXPECT_EQ(result->Type(), BuiltinType::kClamp); EXPECT_EQ(result->ReturnType(), vec2_f32); ASSERT_EQ(result->Parameters().size(), 3u); EXPECT_EQ(result->Parameters()[0]->Type(), vec2_f32); @@ -476,45 +465,44 @@ TEST_F(IntrinsicTableTest, MatchOpenSizeVector) { EXPECT_EQ(result->Parameters()[2]->Type(), vec2_f32); } -TEST_F(IntrinsicTableTest, MismatchOpenSizeVector) { +TEST_F(BuiltinTableTest, MismatchOpenSizeVector) { auto* f32 = create(); auto* u32 = create(); auto* vec2_f32 = create(f32, 2); auto* result = - table->Lookup(IntrinsicType::kClamp, {vec2_f32, u32, vec2_f32}, Source{}); + table->Lookup(BuiltinType::kClamp, {vec2_f32, u32, vec2_f32}, Source{}); ASSERT_EQ(result, nullptr); ASSERT_THAT(Diagnostics().str(), HasSubstr("no matching call")); } -TEST_F(IntrinsicTableTest, MatchOpenSizeMatrix) { +TEST_F(BuiltinTableTest, MatchOpenSizeMatrix) { auto* f32 = create(); auto* vec3_f32 = create(f32, 3); auto* mat3_f32 = create(vec3_f32, 3); - auto* result = - table->Lookup(IntrinsicType::kDeterminant, {mat3_f32}, Source{}); + auto* result = table->Lookup(BuiltinType::kDeterminant, {mat3_f32}, Source{}); ASSERT_NE(result, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - EXPECT_EQ(result->Type(), IntrinsicType::kDeterminant); + EXPECT_EQ(result->Type(), BuiltinType::kDeterminant); EXPECT_EQ(result->ReturnType(), f32); ASSERT_EQ(result->Parameters().size(), 1u); EXPECT_EQ(result->Parameters()[0]->Type(), mat3_f32); } -TEST_F(IntrinsicTableTest, MismatchOpenSizeMatrix) { +TEST_F(BuiltinTableTest, MismatchOpenSizeMatrix) { auto* f32 = create(); auto* vec2_f32 = create(f32, 2); auto* mat3x2_f32 = create(vec2_f32, 3); auto* result = - table->Lookup(IntrinsicType::kDeterminant, {mat3x2_f32}, Source{}); + table->Lookup(BuiltinType::kDeterminant, {mat3x2_f32}, Source{}); ASSERT_EQ(result, nullptr); ASSERT_THAT(Diagnostics().str(), HasSubstr("no matching call")); } -TEST_F(IntrinsicTableTest, OverloadOrderByNumberOfParameters) { +TEST_F(BuiltinTableTest, OverloadOrderByNumberOfParameters) { // None of the arguments match, so expect the overloads with 2 parameters to // come first auto* bool_ = create(); - table->Lookup(IntrinsicType::kTextureDimensions, {bool_, bool_}, Source{}); + table->Lookup(BuiltinType::kTextureDimensions, {bool_, bool_}, Source{}); ASSERT_EQ(Diagnostics().str(), R"(error: no matching call to textureDimensions(bool, bool) @@ -549,10 +537,10 @@ TEST_F(IntrinsicTableTest, OverloadOrderByNumberOfParameters) { )"); } -TEST_F(IntrinsicTableTest, OverloadOrderByMatchingParameter) { +TEST_F(BuiltinTableTest, OverloadOrderByMatchingParameter) { auto* tex = create(ast::TextureDimension::k2d); auto* bool_ = create(); - table->Lookup(IntrinsicType::kTextureDimensions, {tex, bool_}, Source{}); + table->Lookup(BuiltinType::kTextureDimensions, {tex, bool_}, Source{}); ASSERT_EQ( Diagnostics().str(), R"(error: no matching call to textureDimensions(texture_depth_2d, bool) @@ -588,18 +576,18 @@ TEST_F(IntrinsicTableTest, OverloadOrderByMatchingParameter) { )"); } -TEST_F(IntrinsicTableTest, SameOverloadReturnsSameIntrinsicPointer) { +TEST_F(BuiltinTableTest, SameOverloadReturnsSameBuiltinPointer) { auto* f32 = create(); auto* vec2_f32 = create(create(), 2); auto* bool_ = create(); - auto* a = table->Lookup(IntrinsicType::kSelect, {f32, f32, bool_}, Source{}); + auto* a = table->Lookup(BuiltinType::kSelect, {f32, f32, bool_}, Source{}); ASSERT_NE(a, nullptr) << Diagnostics().str(); - auto* b = table->Lookup(IntrinsicType::kSelect, {f32, f32, bool_}, Source{}); + auto* b = table->Lookup(BuiltinType::kSelect, {f32, f32, bool_}, Source{}); ASSERT_NE(b, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); - auto* c = table->Lookup(IntrinsicType::kSelect, {vec2_f32, vec2_f32, bool_}, + auto* c = table->Lookup(BuiltinType::kSelect, {vec2_f32, vec2_f32, bool_}, Source{}); ASSERT_NE(c, nullptr) << Diagnostics().str(); ASSERT_EQ(Diagnostics().str(), ""); diff --git a/src/intrinsics.def b/src/builtins.def similarity index 98% rename from src/intrinsics.def rename to src/builtins.def index 02534c3ab9..ceec3b6ef4 100644 --- a/src/intrinsics.def +++ b/src/builtins.def @@ -13,9 +13,9 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// WGSL intrinsic definition file // +// WGSL builtin definition file // // // -// This file is used to generate parts of the Tint IntrinsicTable, various // +// This file is used to generate parts of the Tint BuiltinTable, various // // enum definition files, as well as test .wgsl files. // //////////////////////////////////////////////////////////////////////////////// @@ -134,10 +134,10 @@ match function_private_workgroup: function | private | workgroup match workgroup_or_storage: workgroup | storage //////////////////////////////////////////////////////////////////////////////// -// Intrinsic Functions // +// Builtin Functions // // // -// The intrinsic function declarations below declare all the built-in // -// functions supported by the WGSL language. This intrinsic definition // +// The builtin function declarations below declare all the built-in // +// functions supported by the WGSL language. This builtin definition // // language supports simple static-type function declarations, as well as // // single overload declarations that can match a number of different // // argument types via the use of 'open-types' and 'open-numbers'. // @@ -150,7 +150,7 @@ match workgroup_or_storage: workgroup | storage // parameter of type 'f32' and returns a 'bool'. // // // // An 'open-type' can be thought as a template type that is determined by the // -// arguments to the intrinsic. // +// arguments to the builtin. // // // // * Open-type example without constraint: // // // @@ -170,7 +170,7 @@ match workgroup_or_storage: workgroup | storage // same argument type. // // // // Similarly an 'open-number' can be thought as a template number or // -// enumerator that is determined by the arguments to the intrinsic. // +// enumerator that is determined by the arguments to the builtin. // // // // * Open-number example: // // // @@ -239,7 +239,7 @@ match workgroup_or_storage: workgroup | storage // fn F(USAGE : f32) // // - Single parameter with name USAGE. // // Note: Parameter names are used by Tint to infer parameter order for // -// some intrinsic functions // +// some builtin functions // // // // fn F(T) // // - Single parameter of unconstrained open-type T (any type) // diff --git a/src/inspector/inspector.cc b/src/inspector/inspector.cc index 6fd4588ba4..57db7114b6 100644 --- a/src/inspector/inspector.cc +++ b/src/inspector/inspector.cc @@ -785,7 +785,7 @@ void Inspector::GenerateSamplerTargets() { continue; } - auto* i = call->Target()->As(); + auto* i = call->Target()->As(); if (!i) { continue; } diff --git a/src/intrinsic_table.h b/src/intrinsic_table.h deleted file mode 100644 index 12532b6b28..0000000000 --- a/src/intrinsic_table.h +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2021 The Tint Authors. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef SRC_INTRINSIC_TABLE_H_ -#define SRC_INTRINSIC_TABLE_H_ - -#include -#include -#include - -#include "src/sem/intrinsic.h" - -namespace tint { - -// Forward declarations -class ProgramBuilder; - -/// IntrinsicTable is a lookup table of all the WGSL intrinsic functions -class IntrinsicTable { - public: - /// @param builder the program builder - /// @return a pointer to a newly created IntrinsicTable - static std::unique_ptr Create(ProgramBuilder& builder); - - /// Destructor - virtual ~IntrinsicTable(); - - /// Lookup looks for the intrinsic overload with the given signature, raising - /// an error diagnostic if the intrinsic was not found. - /// @param type the intrinsic type - /// @param args the argument types passed to the intrinsic function - /// @param source the source of the intrinsic call - /// @return the semantic intrinsic if found, otherwise nullptr - virtual const sem::Intrinsic* Lookup( - sem::IntrinsicType type, - const std::vector& args, - const Source& source) = 0; -}; - -} // namespace tint - -#endif // SRC_INTRINSIC_TABLE_H_ diff --git a/src/reader/spirv/function.cc b/src/reader/spirv/function.cc index ad7b722267..b88916ecab 100644 --- a/src/reader/spirv/function.cc +++ b/src/reader/spirv/function.cc @@ -33,8 +33,8 @@ #include "src/ast/switch_statement.h" #include "src/ast/unary_op_expression.h" #include "src/ast/variable_decl_statement.h" +#include "src/sem/builtin_type.h" #include "src/sem/depth_texture_type.h" -#include "src/sem/intrinsic_type.h" #include "src/sem/sampled_texture_type.h" // Terms: @@ -437,38 +437,38 @@ std::string GetGlslStd450FuncName(uint32_t ext_opcode) { return ""; } -// Returns the WGSL standard library function intrinsic for the -// given instruction, or sem::IntrinsicType::kNone -sem::IntrinsicType GetIntrinsic(SpvOp opcode) { +// Returns the WGSL standard library function builtin for the +// given instruction, or sem::BuiltinType::kNone +sem::BuiltinType GetBuiltin(SpvOp opcode) { switch (opcode) { case SpvOpBitCount: - return sem::IntrinsicType::kCountOneBits; + return sem::BuiltinType::kCountOneBits; case SpvOpBitReverse: - return sem::IntrinsicType::kReverseBits; + return sem::BuiltinType::kReverseBits; case SpvOpDot: - return sem::IntrinsicType::kDot; + return sem::BuiltinType::kDot; case SpvOpDPdx: - return sem::IntrinsicType::kDpdx; + return sem::BuiltinType::kDpdx; case SpvOpDPdy: - return sem::IntrinsicType::kDpdy; + return sem::BuiltinType::kDpdy; case SpvOpFwidth: - return sem::IntrinsicType::kFwidth; + return sem::BuiltinType::kFwidth; case SpvOpDPdxFine: - return sem::IntrinsicType::kDpdxFine; + return sem::BuiltinType::kDpdxFine; case SpvOpDPdyFine: - return sem::IntrinsicType::kDpdyFine; + return sem::BuiltinType::kDpdyFine; case SpvOpFwidthFine: - return sem::IntrinsicType::kFwidthFine; + return sem::BuiltinType::kFwidthFine; case SpvOpDPdxCoarse: - return sem::IntrinsicType::kDpdxCoarse; + return sem::BuiltinType::kDpdxCoarse; case SpvOpDPdyCoarse: - return sem::IntrinsicType::kDpdyCoarse; + return sem::BuiltinType::kDpdyCoarse; case SpvOpFwidthCoarse: - return sem::IntrinsicType::kFwidthCoarse; + return sem::BuiltinType::kFwidthCoarse; default: break; } - return sem::IntrinsicType::kNone; + return sem::BuiltinType::kNone; } // @param opcode a SPIR-V opcode @@ -3888,9 +3888,9 @@ TypedExpression FunctionEmitter::MaybeEmitCombinatorialValue( std::move(params))}; } - const auto intrinsic = GetIntrinsic(opcode); - if (intrinsic != sem::IntrinsicType::kNone) { - return MakeIntrinsicCall(inst); + const auto builtin = GetBuiltin(opcode); + if (builtin != sem::BuiltinType::kNone) { + return MakeBuiltinCall(inst); } if (opcode == SpvOpFMod) { @@ -5081,10 +5081,10 @@ bool FunctionEmitter::EmitControlBarrier( return true; } -TypedExpression FunctionEmitter::MakeIntrinsicCall( +TypedExpression FunctionEmitter::MakeBuiltinCall( const spvtools::opt::Instruction& inst) { - const auto intrinsic = GetIntrinsic(inst.opcode()); - auto* name = sem::str(intrinsic); + const auto builtin = GetBuiltin(inst.opcode()); + auto* name = sem::str(builtin); auto* ident = create( Source{}, builder_.Symbols().Register(name)); @@ -5864,7 +5864,7 @@ TypedExpression FunctionEmitter::MakeArrayLength( auto* member_access = create( Source{}, member_expr.expr, member_ident); - // Generate the intrinsic function call. + // Generate the builtin function call. auto* call_expr = builder_.Call(Source{}, "arrayLength", builder_.AddressOf(member_access)); diff --git a/src/reader/spirv/function.h b/src/reader/spirv/function.h index e811a0dcc4..6f01c192c2 100644 --- a/src/reader/spirv/function.h +++ b/src/reader/spirv/function.h @@ -995,17 +995,17 @@ class FunctionEmitter { /// @returns false if emission failed bool EmitFunctionCall(const spvtools::opt::Instruction& inst); - /// Emits a control barrier intrinsic. On failure, emits a diagnostic and + /// Emits a control barrier builtin. On failure, emits a diagnostic and /// returns false. /// @param inst the SPIR-V control barrier instruction /// @returns false if emission failed bool EmitControlBarrier(const spvtools::opt::Instruction& inst); /// Returns an expression for a SPIR-V instruction that maps to a WGSL - /// intrinsic function call. + /// builtin function call. /// @param inst the SPIR-V instruction /// @returns an expression - TypedExpression MakeIntrinsicCall(const spvtools::opt::Instruction& inst); + TypedExpression MakeBuiltinCall(const spvtools::opt::Instruction& inst); /// Returns an expression for a SPIR-V OpArrayLength instruction. /// @param inst the SPIR-V instruction diff --git a/src/reader/spirv/function_arithmetic_test.cc b/src/reader/spirv/function_arithmetic_test.cc index 193c885be8..1114160f83 100644 --- a/src/reader/spirv/function_arithmetic_test.cc +++ b/src/reader/spirv/function_arithmetic_test.cc @@ -935,11 +935,11 @@ TEST_F(SpvBinaryArithTestBasic, OuterProduct) { << got; } -struct IntrinsicData { +struct BuiltinData { const std::string spirv; const std::string wgsl; }; -inline std::ostream& operator<<(std::ostream& out, IntrinsicData data) { +inline std::ostream& operator<<(std::ostream& out, BuiltinData data) { out << "OpData{" << data.spirv << "," << data.wgsl << "}"; return out; } @@ -955,10 +955,10 @@ inline std::ostream& operator<<(std::ostream& out, ArgAndTypeData data) { } using SpvBinaryDerivativeTest = SpvParserTestBase< - ::testing::TestWithParam>>; + ::testing::TestWithParam>>; TEST_P(SpvBinaryDerivativeTest, Derivatives) { - auto& intrinsic = std::get<0>(GetParam()); + auto& builtin = std::get<0>(GetParam()); auto& arg = std::get<1>(GetParam()); const auto assembly = R"( @@ -968,7 +968,7 @@ TEST_P(SpvBinaryDerivativeTest, Derivatives) { %entry = OpLabel %1 = OpCopyObject %)" + arg.spirv_type + " %" + arg.spirv_arg + R"( - %2 = )" + intrinsic.spirv + + %2 = )" + builtin.spirv + " %" + arg.spirv_type + R"( %1 OpReturn OpFunctionEnd @@ -979,24 +979,24 @@ TEST_P(SpvBinaryDerivativeTest, Derivatives) { auto fe = p->function_emitter(100); EXPECT_TRUE(fe.EmitBody()) << p->error(); auto ast_body = fe.ast_body(); - EXPECT_THAT(test::ToString(p->program(), ast_body), - HasSubstr("let x_2 : " + arg.ast_type + " = " + intrinsic.wgsl + - "(x_1);")); + EXPECT_THAT( + test::ToString(p->program(), ast_body), + HasSubstr("let x_2 : " + arg.ast_type + " = " + builtin.wgsl + "(x_1);")); } INSTANTIATE_TEST_SUITE_P( SpvBinaryDerivativeTest, SpvBinaryDerivativeTest, testing::Combine( - ::testing::Values(IntrinsicData{"OpDPdx", "dpdx"}, - IntrinsicData{"OpDPdy", "dpdy"}, - IntrinsicData{"OpFwidth", "fwidth"}, - IntrinsicData{"OpDPdxFine", "dpdxFine"}, - IntrinsicData{"OpDPdyFine", "dpdyFine"}, - IntrinsicData{"OpFwidthFine", "fwidthFine"}, - IntrinsicData{"OpDPdxCoarse", "dpdxCoarse"}, - IntrinsicData{"OpDPdyCoarse", "dpdyCoarse"}, - IntrinsicData{"OpFwidthCoarse", "fwidthCoarse"}), + ::testing::Values(BuiltinData{"OpDPdx", "dpdx"}, + BuiltinData{"OpDPdy", "dpdy"}, + BuiltinData{"OpFwidth", "fwidth"}, + BuiltinData{"OpDPdxFine", "dpdxFine"}, + BuiltinData{"OpDPdyFine", "dpdyFine"}, + BuiltinData{"OpFwidthFine", "fwidthFine"}, + BuiltinData{"OpDPdxCoarse", "dpdxCoarse"}, + BuiltinData{"OpDPdyCoarse", "dpdyCoarse"}, + BuiltinData{"OpFwidthCoarse", "fwidthCoarse"}), ::testing::Values( ArgAndTypeData{"float", "float_50", "f32"}, ArgAndTypeData{"v2float", "v2float_50_60", "vec2"}, diff --git a/src/reader/spirv/parser_impl_barrier_test.cc b/src/reader/spirv/parser_impl_barrier_test.cc index da4df49a41..69ebafd931 100644 --- a/src/reader/spirv/parser_impl_barrier_test.cc +++ b/src/reader/spirv/parser_impl_barrier_test.cc @@ -74,9 +74,9 @@ TEST_F(SpvParserTest, WorkgroupBarrier) { EXPECT_EQ(call->expr->args.size(), 0u); auto* sem_call = program.Sem().Get(call->expr); ASSERT_NE(sem_call, nullptr); - auto* intrinsic = sem_call->Target()->As(); - ASSERT_NE(intrinsic, nullptr); - EXPECT_EQ(intrinsic->Type(), sem::IntrinsicType::kWorkgroupBarrier); + auto* builtin = sem_call->Target()->As(); + ASSERT_NE(builtin, nullptr); + EXPECT_EQ(builtin->Type(), sem::BuiltinType::kWorkgroupBarrier); } TEST_F(SpvParserTest, StorageBarrier) { @@ -108,9 +108,9 @@ TEST_F(SpvParserTest, StorageBarrier) { EXPECT_EQ(call->expr->args.size(), 0u); auto* sem_call = program.Sem().Get(call->expr); ASSERT_NE(sem_call, nullptr); - auto* intrinsic = sem_call->Target()->As(); - ASSERT_NE(intrinsic, nullptr); - EXPECT_EQ(intrinsic->Type(), sem::IntrinsicType::kStorageBarrier); + auto* builtin = sem_call->Target()->As(); + ASSERT_NE(builtin, nullptr); + EXPECT_EQ(builtin->Type(), sem::BuiltinType::kStorageBarrier); } TEST_F(SpvParserTest, ErrBarrierInvalidExecution) { diff --git a/src/reader/wgsl/parser_impl_error_msg_test.cc b/src/reader/wgsl/parser_impl_error_msg_test.cc index b7ed0a3df6..bf3d5b894a 100644 --- a/src/reader/wgsl/parser_impl_error_msg_test.cc +++ b/src/reader/wgsl/parser_impl_error_msg_test.cc @@ -114,7 +114,7 @@ fn f() { a = 1 } )"); } -TEST_F(ParserImplErrorTest, AssignmentStmtInvalidLHS_IntrinsicFunctionName) { +TEST_F(ParserImplErrorTest, AssignmentStmtInvalidLHS_BuiltinFunctionName) { EXPECT("normalize = 5;", R"(test.wgsl:1:1 error: statement found outside of function body normalize = 5; diff --git a/src/resolver/intrinsic_test.cc b/src/resolver/builtin_test.cc similarity index 82% rename from src/resolver/intrinsic_test.cc rename to src/resolver/builtin_test.cc index 59f55f97e2..11fd8927d6 100644 --- a/src/resolver/intrinsic_test.cc +++ b/src/resolver/builtin_test.cc @@ -18,10 +18,10 @@ #include "src/ast/assignment_statement.h" #include "src/ast/bitcast_expression.h" #include "src/ast/break_statement.h" +#include "src/ast/builtin_texture_helper_test.h" #include "src/ast/call_statement.h" #include "src/ast/continue_statement.h" #include "src/ast/if_statement.h" -#include "src/ast/intrinsic_texture_helper_test.h" #include "src/ast/loop_statement.h" #include "src/ast/return_statement.h" #include "src/ast/stage_attribute.h" @@ -44,12 +44,12 @@ namespace tint { namespace resolver { namespace { -using IntrinsicType = sem::IntrinsicType; +using BuiltinType = sem::BuiltinType; -using ResolverIntrinsicTest = ResolverTest; +using ResolverBuiltinTest = ResolverTest; -using ResolverIntrinsicDerivativeTest = ResolverTestWithParam; -TEST_P(ResolverIntrinsicDerivativeTest, Scalar) { +using ResolverBuiltinDerivativeTest = ResolverTestWithParam; +TEST_P(ResolverBuiltinDerivativeTest, Scalar) { auto name = GetParam(); Global("ident", ty.f32(), ast::StorageClass::kPrivate); @@ -64,7 +64,7 @@ TEST_P(ResolverIntrinsicDerivativeTest, Scalar) { ASSERT_TRUE(TypeOf(expr)->Is()); } -TEST_P(ResolverIntrinsicDerivativeTest, Vector) { +TEST_P(ResolverBuiltinDerivativeTest, Vector) { auto name = GetParam(); Global("ident", ty.vec4(), ast::StorageClass::kPrivate); @@ -80,7 +80,7 @@ TEST_P(ResolverIntrinsicDerivativeTest, Vector) { EXPECT_EQ(TypeOf(expr)->As()->Width(), 4u); } -TEST_P(ResolverIntrinsicDerivativeTest, MissingParam) { +TEST_P(ResolverBuiltinDerivativeTest, MissingParam) { auto name = GetParam(); auto* expr = Call(name); @@ -96,7 +96,7 @@ TEST_P(ResolverIntrinsicDerivativeTest, MissingParam) { } INSTANTIATE_TEST_SUITE_P(ResolverTest, - ResolverIntrinsicDerivativeTest, + ResolverBuiltinDerivativeTest, testing::Values("dpdx", "dpdxCoarse", "dpdxFine", @@ -107,8 +107,8 @@ INSTANTIATE_TEST_SUITE_P(ResolverTest, "fwidthCoarse", "fwidthFine")); -using ResolverIntrinsicTest_BoolMethod = ResolverTestWithParam; -TEST_P(ResolverIntrinsicTest_BoolMethod, Scalar) { +using ResolverBuiltinTest_BoolMethod = ResolverTestWithParam; +TEST_P(ResolverBuiltinTest_BoolMethod, Scalar) { auto name = GetParam(); Global("my_var", ty.bool_(), ast::StorageClass::kPrivate); @@ -121,7 +121,7 @@ TEST_P(ResolverIntrinsicTest_BoolMethod, Scalar) { ASSERT_NE(TypeOf(expr), nullptr); EXPECT_TRUE(TypeOf(expr)->Is()); } -TEST_P(ResolverIntrinsicTest_BoolMethod, Vector) { +TEST_P(ResolverBuiltinTest_BoolMethod, Vector) { auto name = GetParam(); Global("my_var", ty.vec3(), ast::StorageClass::kPrivate); @@ -135,11 +135,11 @@ TEST_P(ResolverIntrinsicTest_BoolMethod, Vector) { EXPECT_TRUE(TypeOf(expr)->Is()); } INSTANTIATE_TEST_SUITE_P(ResolverTest, - ResolverIntrinsicTest_BoolMethod, + ResolverBuiltinTest_BoolMethod, testing::Values("any", "all")); -using ResolverIntrinsicTest_FloatMethod = ResolverTestWithParam; -TEST_P(ResolverIntrinsicTest_FloatMethod, Vector) { +using ResolverBuiltinTest_FloatMethod = ResolverTestWithParam; +TEST_P(ResolverBuiltinTest_FloatMethod, Vector) { auto name = GetParam(); Global("my_var", ty.vec3(), ast::StorageClass::kPrivate); @@ -155,7 +155,7 @@ TEST_P(ResolverIntrinsicTest_FloatMethod, Vector) { EXPECT_EQ(TypeOf(expr)->As()->Width(), 3u); } -TEST_P(ResolverIntrinsicTest_FloatMethod, Scalar) { +TEST_P(ResolverBuiltinTest_FloatMethod, Scalar) { auto name = GetParam(); Global("my_var", ty.f32(), ast::StorageClass::kPrivate); @@ -169,7 +169,7 @@ TEST_P(ResolverIntrinsicTest_FloatMethod, Scalar) { EXPECT_TRUE(TypeOf(expr)->Is()); } -TEST_P(ResolverIntrinsicTest_FloatMethod, MissingParam) { +TEST_P(ResolverBuiltinTest_FloatMethod, MissingParam) { auto name = GetParam(); Global("my_var", ty.f32(), ast::StorageClass::kPrivate); @@ -186,7 +186,7 @@ TEST_P(ResolverIntrinsicTest_FloatMethod, MissingParam) { "(vecN) -> vecN\n"); } -TEST_P(ResolverIntrinsicTest_FloatMethod, TooManyParams) { +TEST_P(ResolverBuiltinTest_FloatMethod, TooManyParams) { auto name = GetParam(); Global("my_var", ty.f32(), ast::StorageClass::kPrivate); @@ -204,7 +204,7 @@ TEST_P(ResolverIntrinsicTest_FloatMethod, TooManyParams) { } INSTANTIATE_TEST_SUITE_P( ResolverTest, - ResolverIntrinsicTest_FloatMethod, + ResolverBuiltinTest_FloatMethod, testing::Values("isInf", "isNan", "isFinite", "isNormal")); enum class Texture { kF32, kI32, kU32 }; @@ -229,7 +229,7 @@ inline std::ostream& operator<<(std::ostream& out, TextureTestParams data) { return out; } -class ResolverIntrinsicTest_TextureOperation +class ResolverBuiltinTest_TextureOperation : public ResolverTestWithParam { public: /// Gets an appropriate type for the coords parameter depending the the @@ -282,9 +282,9 @@ class ResolverIntrinsicTest_TextureOperation } }; -using ResolverIntrinsicTest_SampledTextureOperation = - ResolverIntrinsicTest_TextureOperation; -TEST_P(ResolverIntrinsicTest_SampledTextureOperation, TextureLoadSampled) { +using ResolverBuiltinTest_SampledTextureOperation = + ResolverBuiltinTest_TextureOperation; +TEST_P(ResolverBuiltinTest_SampledTextureOperation, TextureLoadSampled) { auto dim = GetParam().dim; auto type = GetParam().type; @@ -320,13 +320,13 @@ TEST_P(ResolverIntrinsicTest_SampledTextureOperation, TextureLoadSampled) { INSTANTIATE_TEST_SUITE_P( ResolverTest, - ResolverIntrinsicTest_SampledTextureOperation, + ResolverBuiltinTest_SampledTextureOperation, testing::Values(TextureTestParams{ast::TextureDimension::k1d}, TextureTestParams{ast::TextureDimension::k2d}, TextureTestParams{ast::TextureDimension::k2dArray}, TextureTestParams{ast::TextureDimension::k3d})); -TEST_F(ResolverIntrinsicTest, Dot_Vec2) { +TEST_F(ResolverBuiltinTest, Dot_Vec2) { Global("my_var", ty.vec2(), ast::StorageClass::kPrivate); auto* expr = Call("dot", "my_var", "my_var"); @@ -338,7 +338,7 @@ TEST_F(ResolverIntrinsicTest, Dot_Vec2) { EXPECT_TRUE(TypeOf(expr)->Is()); } -TEST_F(ResolverIntrinsicTest, Dot_Vec3) { +TEST_F(ResolverBuiltinTest, Dot_Vec3) { Global("my_var", ty.vec3(), ast::StorageClass::kPrivate); auto* expr = Call("dot", "my_var", "my_var"); @@ -350,7 +350,7 @@ TEST_F(ResolverIntrinsicTest, Dot_Vec3) { EXPECT_TRUE(TypeOf(expr)->Is()); } -TEST_F(ResolverIntrinsicTest, Dot_Vec4) { +TEST_F(ResolverBuiltinTest, Dot_Vec4) { Global("my_var", ty.vec4(), ast::StorageClass::kPrivate); auto* expr = Call("dot", "my_var", "my_var"); @@ -362,7 +362,7 @@ TEST_F(ResolverIntrinsicTest, Dot_Vec4) { EXPECT_TRUE(TypeOf(expr)->Is()); } -TEST_F(ResolverIntrinsicTest, Dot_Error_Scalar) { +TEST_F(ResolverBuiltinTest, Dot_Error_Scalar) { auto* expr = Call("dot", 1.0f, 1.0f); WrapInFunction(expr); @@ -376,7 +376,7 @@ TEST_F(ResolverIntrinsicTest, Dot_Error_Scalar) { )"); } -TEST_F(ResolverIntrinsicTest, Select) { +TEST_F(ResolverBuiltinTest, Select) { Global("my_var", ty.vec3(), ast::StorageClass::kPrivate); Global("bool_var", ty.vec3(), ast::StorageClass::kPrivate); @@ -392,7 +392,7 @@ TEST_F(ResolverIntrinsicTest, Select) { EXPECT_TRUE(TypeOf(expr)->As()->type()->Is()); } -TEST_F(ResolverIntrinsicTest, Select_Error_NoParams) { +TEST_F(ResolverBuiltinTest, Select_Error_NoParams) { auto* expr = Call("select"); WrapInFunction(expr); @@ -408,7 +408,7 @@ TEST_F(ResolverIntrinsicTest, Select_Error_NoParams) { )"); } -TEST_F(ResolverIntrinsicTest, Select_Error_SelectorInt) { +TEST_F(ResolverBuiltinTest, Select_Error_SelectorInt) { auto* expr = Call("select", 1, 1, 1); WrapInFunction(expr); @@ -424,7 +424,7 @@ TEST_F(ResolverIntrinsicTest, Select_Error_SelectorInt) { )"); } -TEST_F(ResolverIntrinsicTest, Select_Error_Matrix) { +TEST_F(ResolverBuiltinTest, Select_Error_Matrix) { auto* expr = Call( "select", mat2x2(vec2(1.0f, 1.0f), vec2(1.0f, 1.0f)), mat2x2(vec2(1.0f, 1.0f), vec2(1.0f, 1.0f)), Expr(true)); @@ -442,7 +442,7 @@ TEST_F(ResolverIntrinsicTest, Select_Error_Matrix) { )"); } -TEST_F(ResolverIntrinsicTest, Select_Error_MismatchTypes) { +TEST_F(ResolverBuiltinTest, Select_Error_MismatchTypes) { auto* expr = Call("select", 1.0f, vec2(2.0f, 3.0f), Expr(true)); WrapInFunction(expr); @@ -458,7 +458,7 @@ TEST_F(ResolverIntrinsicTest, Select_Error_MismatchTypes) { )"); } -TEST_F(ResolverIntrinsicTest, Select_Error_MismatchVectorSize) { +TEST_F(ResolverBuiltinTest, Select_Error_MismatchVectorSize) { auto* expr = Call("select", vec2(1.0f, 2.0f), vec3(3.0f, 4.0f, 5.0f), Expr(true)); WrapInFunction(expr); @@ -475,18 +475,18 @@ TEST_F(ResolverIntrinsicTest, Select_Error_MismatchVectorSize) { )"); } -struct IntrinsicData { +struct BuiltinData { const char* name; - IntrinsicType intrinsic; + BuiltinType builtin; }; -inline std::ostream& operator<<(std::ostream& out, IntrinsicData data) { +inline std::ostream& operator<<(std::ostream& out, BuiltinData data) { out << data.name; return out; } -using ResolverIntrinsicTest_Barrier = ResolverTestWithParam; -TEST_P(ResolverIntrinsicTest_Barrier, InferType) { +using ResolverBuiltinTest_Barrier = ResolverTestWithParam; +TEST_P(ResolverBuiltinTest_Barrier, InferType) { auto param = GetParam(); auto* call = Call(param.name); @@ -497,7 +497,7 @@ TEST_P(ResolverIntrinsicTest_Barrier, InferType) { EXPECT_TRUE(TypeOf(call)->Is()); } -TEST_P(ResolverIntrinsicTest_Barrier, Error_TooManyParams) { +TEST_P(ResolverBuiltinTest_Barrier, Error_TooManyParams) { auto param = GetParam(); auto* call = Call(param.name, vec4(1.f, 2.f, 3.f, 4.f), 1.0f); @@ -511,17 +511,17 @@ TEST_P(ResolverIntrinsicTest_Barrier, Error_TooManyParams) { INSTANTIATE_TEST_SUITE_P( ResolverTest, - ResolverIntrinsicTest_Barrier, - testing::Values( - IntrinsicData{"storageBarrier", IntrinsicType::kStorageBarrier}, - IntrinsicData{"workgroupBarrier", IntrinsicType::kWorkgroupBarrier})); + ResolverBuiltinTest_Barrier, + testing::Values(BuiltinData{"storageBarrier", BuiltinType::kStorageBarrier}, + BuiltinData{"workgroupBarrier", + BuiltinType::kWorkgroupBarrier})); -using ResolverIntrinsicTest_DataPacking = ResolverTestWithParam; -TEST_P(ResolverIntrinsicTest_DataPacking, InferType) { +using ResolverBuiltinTest_DataPacking = ResolverTestWithParam; +TEST_P(ResolverBuiltinTest_DataPacking, InferType) { auto param = GetParam(); - bool pack4 = param.intrinsic == IntrinsicType::kPack4x8snorm || - param.intrinsic == IntrinsicType::kPack4x8unorm; + bool pack4 = param.builtin == BuiltinType::kPack4x8snorm || + param.builtin == BuiltinType::kPack4x8unorm; auto* call = pack4 ? Call(param.name, vec4(1.f, 2.f, 3.f, 4.f)) : Call(param.name, vec2(1.f, 2.f)); @@ -532,11 +532,11 @@ TEST_P(ResolverIntrinsicTest_DataPacking, InferType) { EXPECT_TRUE(TypeOf(call)->Is()); } -TEST_P(ResolverIntrinsicTest_DataPacking, Error_IncorrectParamType) { +TEST_P(ResolverBuiltinTest_DataPacking, Error_IncorrectParamType) { auto param = GetParam(); - bool pack4 = param.intrinsic == IntrinsicType::kPack4x8snorm || - param.intrinsic == IntrinsicType::kPack4x8unorm; + bool pack4 = param.builtin == BuiltinType::kPack4x8snorm || + param.builtin == BuiltinType::kPack4x8unorm; auto* call = pack4 ? Call(param.name, vec4(1, 2, 3, 4)) : Call(param.name, vec2(1, 2)); @@ -548,7 +548,7 @@ TEST_P(ResolverIntrinsicTest_DataPacking, Error_IncorrectParamType) { std::string(param.name))); } -TEST_P(ResolverIntrinsicTest_DataPacking, Error_NoParams) { +TEST_P(ResolverBuiltinTest_DataPacking, Error_NoParams) { auto param = GetParam(); auto* call = Call(param.name); @@ -560,11 +560,11 @@ TEST_P(ResolverIntrinsicTest_DataPacking, Error_NoParams) { std::string(param.name))); } -TEST_P(ResolverIntrinsicTest_DataPacking, Error_TooManyParams) { +TEST_P(ResolverBuiltinTest_DataPacking, Error_TooManyParams) { auto param = GetParam(); - bool pack4 = param.intrinsic == IntrinsicType::kPack4x8snorm || - param.intrinsic == IntrinsicType::kPack4x8unorm; + bool pack4 = param.builtin == BuiltinType::kPack4x8snorm || + param.builtin == BuiltinType::kPack4x8unorm; auto* call = pack4 ? Call(param.name, vec4(1.f, 2.f, 3.f, 4.f), 1.0f) : Call(param.name, vec2(1.f, 2.f), 1.0f); @@ -578,21 +578,19 @@ TEST_P(ResolverIntrinsicTest_DataPacking, Error_TooManyParams) { INSTANTIATE_TEST_SUITE_P( ResolverTest, - ResolverIntrinsicTest_DataPacking, - testing::Values( - IntrinsicData{"pack4x8snorm", IntrinsicType::kPack4x8snorm}, - IntrinsicData{"pack4x8unorm", IntrinsicType::kPack4x8unorm}, - IntrinsicData{"pack2x16snorm", IntrinsicType::kPack2x16snorm}, - IntrinsicData{"pack2x16unorm", IntrinsicType::kPack2x16unorm}, - IntrinsicData{"pack2x16float", IntrinsicType::kPack2x16float})); + ResolverBuiltinTest_DataPacking, + testing::Values(BuiltinData{"pack4x8snorm", BuiltinType::kPack4x8snorm}, + BuiltinData{"pack4x8unorm", BuiltinType::kPack4x8unorm}, + BuiltinData{"pack2x16snorm", BuiltinType::kPack2x16snorm}, + BuiltinData{"pack2x16unorm", BuiltinType::kPack2x16unorm}, + BuiltinData{"pack2x16float", BuiltinType::kPack2x16float})); -using ResolverIntrinsicTest_DataUnpacking = - ResolverTestWithParam; -TEST_P(ResolverIntrinsicTest_DataUnpacking, InferType) { +using ResolverBuiltinTest_DataUnpacking = ResolverTestWithParam; +TEST_P(ResolverBuiltinTest_DataUnpacking, InferType) { auto param = GetParam(); - bool pack4 = param.intrinsic == IntrinsicType::kUnpack4x8snorm || - param.intrinsic == IntrinsicType::kUnpack4x8unorm; + bool pack4 = param.builtin == BuiltinType::kUnpack4x8snorm || + param.builtin == BuiltinType::kUnpack4x8unorm; auto* call = Call(param.name, 1u); WrapInFunction(call); @@ -609,16 +607,16 @@ TEST_P(ResolverIntrinsicTest_DataUnpacking, InferType) { INSTANTIATE_TEST_SUITE_P( ResolverTest, - ResolverIntrinsicTest_DataUnpacking, + ResolverBuiltinTest_DataUnpacking, testing::Values( - IntrinsicData{"unpack4x8snorm", IntrinsicType::kUnpack4x8snorm}, - IntrinsicData{"unpack4x8unorm", IntrinsicType::kUnpack4x8unorm}, - IntrinsicData{"unpack2x16snorm", IntrinsicType::kUnpack2x16snorm}, - IntrinsicData{"unpack2x16unorm", IntrinsicType::kUnpack2x16unorm}, - IntrinsicData{"unpack2x16float", IntrinsicType::kUnpack2x16float})); + BuiltinData{"unpack4x8snorm", BuiltinType::kUnpack4x8snorm}, + BuiltinData{"unpack4x8unorm", BuiltinType::kUnpack4x8unorm}, + BuiltinData{"unpack2x16snorm", BuiltinType::kUnpack2x16snorm}, + BuiltinData{"unpack2x16unorm", BuiltinType::kUnpack2x16unorm}, + BuiltinData{"unpack2x16float", BuiltinType::kUnpack2x16float})); -using ResolverIntrinsicTest_SingleParam = ResolverTestWithParam; -TEST_P(ResolverIntrinsicTest_SingleParam, Scalar) { +using ResolverBuiltinTest_SingleParam = ResolverTestWithParam; +TEST_P(ResolverBuiltinTest_SingleParam, Scalar) { auto param = GetParam(); auto* call = Call(param.name, 1.f); @@ -630,7 +628,7 @@ TEST_P(ResolverIntrinsicTest_SingleParam, Scalar) { EXPECT_TRUE(TypeOf(call)->is_float_scalar()); } -TEST_P(ResolverIntrinsicTest_SingleParam, Vector) { +TEST_P(ResolverBuiltinTest_SingleParam, Vector) { auto param = GetParam(); auto* call = Call(param.name, vec3(1.0f, 1.0f, 3.0f)); @@ -643,7 +641,7 @@ TEST_P(ResolverIntrinsicTest_SingleParam, Vector) { EXPECT_EQ(TypeOf(call)->As()->Width(), 3u); } -TEST_P(ResolverIntrinsicTest_SingleParam, Error_NoParams) { +TEST_P(ResolverBuiltinTest_SingleParam, Error_NoParams) { auto param = GetParam(); auto* call = Call(param.name); @@ -659,7 +657,7 @@ TEST_P(ResolverIntrinsicTest_SingleParam, Error_NoParams) { std::string(param.name) + "(vecN) -> vecN\n"); } -TEST_P(ResolverIntrinsicTest_SingleParam, Error_TooManyParams) { +TEST_P(ResolverBuiltinTest_SingleParam, Error_TooManyParams) { auto param = GetParam(); auto* call = Call(param.name, 1, 2, 3); @@ -677,32 +675,32 @@ TEST_P(ResolverIntrinsicTest_SingleParam, Error_TooManyParams) { INSTANTIATE_TEST_SUITE_P( ResolverTest, - ResolverIntrinsicTest_SingleParam, - testing::Values(IntrinsicData{"acos", IntrinsicType::kAcos}, - IntrinsicData{"asin", IntrinsicType::kAsin}, - IntrinsicData{"atan", IntrinsicType::kAtan}, - IntrinsicData{"ceil", IntrinsicType::kCeil}, - IntrinsicData{"cos", IntrinsicType::kCos}, - IntrinsicData{"cosh", IntrinsicType::kCosh}, - IntrinsicData{"exp", IntrinsicType::kExp}, - IntrinsicData{"exp2", IntrinsicType::kExp2}, - IntrinsicData{"floor", IntrinsicType::kFloor}, - IntrinsicData{"fract", IntrinsicType::kFract}, - IntrinsicData{"inverseSqrt", IntrinsicType::kInverseSqrt}, - IntrinsicData{"log", IntrinsicType::kLog}, - IntrinsicData{"log2", IntrinsicType::kLog2}, - IntrinsicData{"round", IntrinsicType::kRound}, - IntrinsicData{"sign", IntrinsicType::kSign}, - IntrinsicData{"sin", IntrinsicType::kSin}, - IntrinsicData{"sinh", IntrinsicType::kSinh}, - IntrinsicData{"sqrt", IntrinsicType::kSqrt}, - IntrinsicData{"tan", IntrinsicType::kTan}, - IntrinsicData{"tanh", IntrinsicType::kTanh}, - IntrinsicData{"trunc", IntrinsicType::kTrunc})); + ResolverBuiltinTest_SingleParam, + testing::Values(BuiltinData{"acos", BuiltinType::kAcos}, + BuiltinData{"asin", BuiltinType::kAsin}, + BuiltinData{"atan", BuiltinType::kAtan}, + BuiltinData{"ceil", BuiltinType::kCeil}, + BuiltinData{"cos", BuiltinType::kCos}, + BuiltinData{"cosh", BuiltinType::kCosh}, + BuiltinData{"exp", BuiltinType::kExp}, + BuiltinData{"exp2", BuiltinType::kExp2}, + BuiltinData{"floor", BuiltinType::kFloor}, + BuiltinData{"fract", BuiltinType::kFract}, + BuiltinData{"inverseSqrt", BuiltinType::kInverseSqrt}, + BuiltinData{"log", BuiltinType::kLog}, + BuiltinData{"log2", BuiltinType::kLog2}, + BuiltinData{"round", BuiltinType::kRound}, + BuiltinData{"sign", BuiltinType::kSign}, + BuiltinData{"sin", BuiltinType::kSin}, + BuiltinData{"sinh", BuiltinType::kSinh}, + BuiltinData{"sqrt", BuiltinType::kSqrt}, + BuiltinData{"tan", BuiltinType::kTan}, + BuiltinData{"tanh", BuiltinType::kTanh}, + BuiltinData{"trunc", BuiltinType::kTrunc})); -using ResolverIntrinsicDataTest = ResolverTest; +using ResolverBuiltinDataTest = ResolverTest; -TEST_F(ResolverIntrinsicDataTest, ArrayLength_Vector) { +TEST_F(ResolverBuiltinDataTest, ArrayLength_Vector) { auto* ary = ty.array(); auto* str = Structure("S", {Member("x", ary)}, {create()}); @@ -721,7 +719,7 @@ TEST_F(ResolverIntrinsicDataTest, ArrayLength_Vector) { EXPECT_TRUE(TypeOf(call)->Is()); } -TEST_F(ResolverIntrinsicDataTest, ArrayLength_Error_ArraySized) { +TEST_F(ResolverBuiltinDataTest, ArrayLength_Error_ArraySized) { Global("arr", ty.array(), ast::StorageClass::kPrivate); auto* call = Call("arrayLength", AddressOf("arr")); WrapInFunction(call); @@ -737,7 +735,7 @@ TEST_F(ResolverIntrinsicDataTest, ArrayLength_Error_ArraySized) { )"); } -TEST_F(ResolverIntrinsicDataTest, Normalize_Vector) { +TEST_F(ResolverBuiltinDataTest, Normalize_Vector) { auto* call = Call("normalize", vec3(1.0f, 1.0f, 3.0f)); WrapInFunction(call); @@ -748,7 +746,7 @@ TEST_F(ResolverIntrinsicDataTest, Normalize_Vector) { EXPECT_EQ(TypeOf(call)->As()->Width(), 3u); } -TEST_F(ResolverIntrinsicDataTest, Normalize_Error_NoParams) { +TEST_F(ResolverBuiltinDataTest, Normalize_Error_NoParams) { auto* call = Call("normalize"); WrapInFunction(call); @@ -761,7 +759,7 @@ TEST_F(ResolverIntrinsicDataTest, Normalize_Error_NoParams) { )"); } -TEST_F(ResolverIntrinsicDataTest, FrexpScalar) { +TEST_F(ResolverBuiltinDataTest, FrexpScalar) { auto* call = Call("frexp", 1.0f); WrapInFunction(call); @@ -790,7 +788,7 @@ TEST_F(ResolverIntrinsicDataTest, FrexpScalar) { EXPECT_EQ(ty->SizeNoPadding(), 8u); } -TEST_F(ResolverIntrinsicDataTest, FrexpVector) { +TEST_F(ResolverBuiltinDataTest, FrexpVector) { auto* call = Call("frexp", vec3()); WrapInFunction(call); @@ -823,7 +821,7 @@ TEST_F(ResolverIntrinsicDataTest, FrexpVector) { EXPECT_EQ(ty->SizeNoPadding(), 28u); } -TEST_F(ResolverIntrinsicDataTest, Frexp_Error_FirstParamInt) { +TEST_F(ResolverBuiltinDataTest, Frexp_Error_FirstParamInt) { Global("v", ty.i32(), ast::StorageClass::kWorkgroup); auto* call = Call("frexp", 1, AddressOf("v")); WrapInFunction(call); @@ -840,7 +838,7 @@ TEST_F(ResolverIntrinsicDataTest, Frexp_Error_FirstParamInt) { )"); } -TEST_F(ResolverIntrinsicDataTest, Frexp_Error_SecondParamFloatPtr) { +TEST_F(ResolverBuiltinDataTest, Frexp_Error_SecondParamFloatPtr) { Global("v", ty.f32(), ast::StorageClass::kWorkgroup); auto* call = Call("frexp", 1.0f, AddressOf("v")); WrapInFunction(call); @@ -857,7 +855,7 @@ TEST_F(ResolverIntrinsicDataTest, Frexp_Error_SecondParamFloatPtr) { )"); } -TEST_F(ResolverIntrinsicDataTest, Frexp_Error_SecondParamNotAPointer) { +TEST_F(ResolverBuiltinDataTest, Frexp_Error_SecondParamNotAPointer) { auto* call = Call("frexp", 1.0f, 1); WrapInFunction(call); @@ -871,7 +869,7 @@ TEST_F(ResolverIntrinsicDataTest, Frexp_Error_SecondParamNotAPointer) { )"); } -TEST_F(ResolverIntrinsicDataTest, Frexp_Error_VectorSizesDontMatch) { +TEST_F(ResolverBuiltinDataTest, Frexp_Error_VectorSizesDontMatch) { Global("v", ty.vec4(), ast::StorageClass::kWorkgroup); auto* call = Call("frexp", vec2(1.0f, 2.0f), AddressOf("v")); WrapInFunction(call); @@ -888,7 +886,7 @@ TEST_F(ResolverIntrinsicDataTest, Frexp_Error_VectorSizesDontMatch) { )"); } -TEST_F(ResolverIntrinsicDataTest, ModfScalar) { +TEST_F(ResolverBuiltinDataTest, ModfScalar) { auto* call = Call("modf", 1.0f); WrapInFunction(call); @@ -917,7 +915,7 @@ TEST_F(ResolverIntrinsicDataTest, ModfScalar) { EXPECT_EQ(ty->SizeNoPadding(), 8u); } -TEST_F(ResolverIntrinsicDataTest, ModfVector) { +TEST_F(ResolverBuiltinDataTest, ModfVector) { auto* call = Call("modf", vec3()); WrapInFunction(call); @@ -950,7 +948,7 @@ TEST_F(ResolverIntrinsicDataTest, ModfVector) { EXPECT_EQ(ty->SizeNoPadding(), 28u); } -TEST_F(ResolverIntrinsicDataTest, Modf_Error_FirstParamInt) { +TEST_F(ResolverBuiltinDataTest, Modf_Error_FirstParamInt) { Global("whole", ty.f32(), ast::StorageClass::kWorkgroup); auto* call = Call("modf", 1, AddressOf("whole")); WrapInFunction(call); @@ -967,7 +965,7 @@ TEST_F(ResolverIntrinsicDataTest, Modf_Error_FirstParamInt) { )"); } -TEST_F(ResolverIntrinsicDataTest, Modf_Error_SecondParamIntPtr) { +TEST_F(ResolverBuiltinDataTest, Modf_Error_SecondParamIntPtr) { Global("whole", ty.i32(), ast::StorageClass::kWorkgroup); auto* call = Call("modf", 1.0f, AddressOf("whole")); WrapInFunction(call); @@ -984,7 +982,7 @@ TEST_F(ResolverIntrinsicDataTest, Modf_Error_SecondParamIntPtr) { )"); } -TEST_F(ResolverIntrinsicDataTest, Modf_Error_SecondParamNotAPointer) { +TEST_F(ResolverBuiltinDataTest, Modf_Error_SecondParamNotAPointer) { auto* call = Call("modf", 1.0f, 1.0f); WrapInFunction(call); @@ -998,7 +996,7 @@ TEST_F(ResolverIntrinsicDataTest, Modf_Error_SecondParamNotAPointer) { )"); } -TEST_F(ResolverIntrinsicDataTest, Modf_Error_VectorSizesDontMatch) { +TEST_F(ResolverBuiltinDataTest, Modf_Error_VectorSizesDontMatch) { Global("whole", ty.vec4(), ast::StorageClass::kWorkgroup); auto* call = Call("modf", vec2(1.0f, 2.0f), AddressOf("whole")); WrapInFunction(call); @@ -1015,9 +1013,9 @@ TEST_F(ResolverIntrinsicDataTest, Modf_Error_VectorSizesDontMatch) { )"); } -using ResolverIntrinsicTest_SingleParam_FloatOrInt = - ResolverTestWithParam; -TEST_P(ResolverIntrinsicTest_SingleParam_FloatOrInt, Float_Scalar) { +using ResolverBuiltinTest_SingleParam_FloatOrInt = + ResolverTestWithParam; +TEST_P(ResolverBuiltinTest_SingleParam_FloatOrInt, Float_Scalar) { auto param = GetParam(); auto* call = Call(param.name, 1.f); @@ -1029,7 +1027,7 @@ TEST_P(ResolverIntrinsicTest_SingleParam_FloatOrInt, Float_Scalar) { EXPECT_TRUE(TypeOf(call)->is_float_scalar()); } -TEST_P(ResolverIntrinsicTest_SingleParam_FloatOrInt, Float_Vector) { +TEST_P(ResolverBuiltinTest_SingleParam_FloatOrInt, Float_Vector) { auto param = GetParam(); auto* call = Call(param.name, vec3(1.0f, 1.0f, 3.0f)); @@ -1042,7 +1040,7 @@ TEST_P(ResolverIntrinsicTest_SingleParam_FloatOrInt, Float_Vector) { EXPECT_EQ(TypeOf(call)->As()->Width(), 3u); } -TEST_P(ResolverIntrinsicTest_SingleParam_FloatOrInt, Sint_Scalar) { +TEST_P(ResolverBuiltinTest_SingleParam_FloatOrInt, Sint_Scalar) { auto param = GetParam(); auto* call = Call(param.name, -1); @@ -1054,7 +1052,7 @@ TEST_P(ResolverIntrinsicTest_SingleParam_FloatOrInt, Sint_Scalar) { EXPECT_TRUE(TypeOf(call)->Is()); } -TEST_P(ResolverIntrinsicTest_SingleParam_FloatOrInt, Sint_Vector) { +TEST_P(ResolverBuiltinTest_SingleParam_FloatOrInt, Sint_Vector) { auto param = GetParam(); auto* call = Call(param.name, vec3(1, 1, 3)); @@ -1067,7 +1065,7 @@ TEST_P(ResolverIntrinsicTest_SingleParam_FloatOrInt, Sint_Vector) { EXPECT_EQ(TypeOf(call)->As()->Width(), 3u); } -TEST_P(ResolverIntrinsicTest_SingleParam_FloatOrInt, Uint_Scalar) { +TEST_P(ResolverBuiltinTest_SingleParam_FloatOrInt, Uint_Scalar) { auto param = GetParam(); auto* call = Call(param.name, 1u); @@ -1079,7 +1077,7 @@ TEST_P(ResolverIntrinsicTest_SingleParam_FloatOrInt, Uint_Scalar) { EXPECT_TRUE(TypeOf(call)->Is()); } -TEST_P(ResolverIntrinsicTest_SingleParam_FloatOrInt, Uint_Vector) { +TEST_P(ResolverBuiltinTest_SingleParam_FloatOrInt, Uint_Vector) { auto param = GetParam(); auto* call = Call(param.name, vec3(1u, 1u, 3u)); @@ -1092,7 +1090,7 @@ TEST_P(ResolverIntrinsicTest_SingleParam_FloatOrInt, Uint_Vector) { EXPECT_EQ(TypeOf(call)->As()->Width(), 3u); } -TEST_P(ResolverIntrinsicTest_SingleParam_FloatOrInt, Error_NoParams) { +TEST_P(ResolverBuiltinTest_SingleParam_FloatOrInt, Error_NoParams) { auto param = GetParam(); auto* call = Call(param.name); @@ -1111,11 +1109,11 @@ TEST_P(ResolverIntrinsicTest_SingleParam_FloatOrInt, Error_NoParams) { } INSTANTIATE_TEST_SUITE_P(ResolverTest, - ResolverIntrinsicTest_SingleParam_FloatOrInt, - testing::Values(IntrinsicData{"abs", - IntrinsicType::kAbs})); + ResolverBuiltinTest_SingleParam_FloatOrInt, + testing::Values(BuiltinData{"abs", + BuiltinType::kAbs})); -TEST_F(ResolverIntrinsicTest, Length_Scalar) { +TEST_F(ResolverBuiltinTest, Length_Scalar) { auto* call = Call("length", 1.f); WrapInFunction(call); @@ -1125,7 +1123,7 @@ TEST_F(ResolverIntrinsicTest, Length_Scalar) { EXPECT_TRUE(TypeOf(call)->is_float_scalar()); } -TEST_F(ResolverIntrinsicTest, Length_FloatVector) { +TEST_F(ResolverBuiltinTest, Length_FloatVector) { auto* call = Call("length", vec3(1.0f, 1.0f, 3.0f)); WrapInFunction(call); @@ -1135,8 +1133,8 @@ TEST_F(ResolverIntrinsicTest, Length_FloatVector) { EXPECT_TRUE(TypeOf(call)->is_float_scalar()); } -using ResolverIntrinsicTest_TwoParam = ResolverTestWithParam; -TEST_P(ResolverIntrinsicTest_TwoParam, Scalar) { +using ResolverBuiltinTest_TwoParam = ResolverTestWithParam; +TEST_P(ResolverBuiltinTest_TwoParam, Scalar) { auto param = GetParam(); auto* call = Call(param.name, 1.f, 1.f); @@ -1148,7 +1146,7 @@ TEST_P(ResolverIntrinsicTest_TwoParam, Scalar) { EXPECT_TRUE(TypeOf(call)->is_float_scalar()); } -TEST_P(ResolverIntrinsicTest_TwoParam, Vector) { +TEST_P(ResolverBuiltinTest_TwoParam, Vector) { auto param = GetParam(); auto* call = Call(param.name, vec3(1.0f, 1.0f, 3.0f), @@ -1162,7 +1160,7 @@ TEST_P(ResolverIntrinsicTest_TwoParam, Vector) { EXPECT_EQ(TypeOf(call)->As()->Width(), 3u); } -TEST_P(ResolverIntrinsicTest_TwoParam, Error_NoTooManyParams) { +TEST_P(ResolverBuiltinTest_TwoParam, Error_NoTooManyParams) { auto param = GetParam(); auto* call = Call(param.name, 1, 2, 3); @@ -1179,7 +1177,7 @@ TEST_P(ResolverIntrinsicTest_TwoParam, Error_NoTooManyParams) { "(vecN, vecN) -> vecN\n"); } -TEST_P(ResolverIntrinsicTest_TwoParam, Error_NoParams) { +TEST_P(ResolverBuiltinTest_TwoParam, Error_NoParams) { auto param = GetParam(); auto* call = Call(param.name); @@ -1198,12 +1196,12 @@ TEST_P(ResolverIntrinsicTest_TwoParam, Error_NoParams) { INSTANTIATE_TEST_SUITE_P( ResolverTest, - ResolverIntrinsicTest_TwoParam, - testing::Values(IntrinsicData{"atan2", IntrinsicType::kAtan2}, - IntrinsicData{"pow", IntrinsicType::kPow}, - IntrinsicData{"step", IntrinsicType::kStep})); + ResolverBuiltinTest_TwoParam, + testing::Values(BuiltinData{"atan2", BuiltinType::kAtan2}, + BuiltinData{"pow", BuiltinType::kPow}, + BuiltinData{"step", BuiltinType::kStep})); -TEST_F(ResolverIntrinsicTest, Distance_Scalar) { +TEST_F(ResolverBuiltinTest, Distance_Scalar) { auto* call = Call("distance", 1.f, 1.f); WrapInFunction(call); @@ -1213,7 +1211,7 @@ TEST_F(ResolverIntrinsicTest, Distance_Scalar) { EXPECT_TRUE(TypeOf(call)->is_float_scalar()); } -TEST_F(ResolverIntrinsicTest, Distance_Vector) { +TEST_F(ResolverBuiltinTest, Distance_Vector) { auto* call = Call("distance", vec3(1.0f, 1.0f, 3.0f), vec3(1.0f, 1.0f, 3.0f)); WrapInFunction(call); @@ -1224,7 +1222,7 @@ TEST_F(ResolverIntrinsicTest, Distance_Vector) { EXPECT_TRUE(TypeOf(call)->Is()); } -TEST_F(ResolverIntrinsicTest, Cross) { +TEST_F(ResolverBuiltinTest, Cross) { auto* call = Call("cross", vec3(1.0f, 2.0f, 3.0f), vec3(1.0f, 2.0f, 3.0f)); WrapInFunction(call); @@ -1236,7 +1234,7 @@ TEST_F(ResolverIntrinsicTest, Cross) { EXPECT_EQ(TypeOf(call)->As()->Width(), 3u); } -TEST_F(ResolverIntrinsicTest, Cross_Error_NoArgs) { +TEST_F(ResolverBuiltinTest, Cross_Error_NoArgs) { auto* call = Call("cross"); WrapInFunction(call); @@ -1249,7 +1247,7 @@ TEST_F(ResolverIntrinsicTest, Cross_Error_NoArgs) { )"); } -TEST_F(ResolverIntrinsicTest, Cross_Error_Scalar) { +TEST_F(ResolverBuiltinTest, Cross_Error_Scalar) { auto* call = Call("cross", 1.0f, 1.0f); WrapInFunction(call); @@ -1262,7 +1260,7 @@ TEST_F(ResolverIntrinsicTest, Cross_Error_Scalar) { )"); } -TEST_F(ResolverIntrinsicTest, Cross_Error_Vec3Int) { +TEST_F(ResolverBuiltinTest, Cross_Error_Vec3Int) { auto* call = Call("cross", vec3(1, 2, 3), vec3(1, 2, 3)); WrapInFunction(call); @@ -1276,7 +1274,7 @@ TEST_F(ResolverIntrinsicTest, Cross_Error_Vec3Int) { )"); } -TEST_F(ResolverIntrinsicTest, Cross_Error_Vec4) { +TEST_F(ResolverBuiltinTest, Cross_Error_Vec4) { auto* call = Call("cross", vec4(1.0f, 2.0f, 3.0f, 4.0f), vec4(1.0f, 2.0f, 3.0f, 4.0f)); @@ -1292,7 +1290,7 @@ TEST_F(ResolverIntrinsicTest, Cross_Error_Vec4) { )"); } -TEST_F(ResolverIntrinsicTest, Cross_Error_TooManyParams) { +TEST_F(ResolverBuiltinTest, Cross_Error_TooManyParams) { auto* call = Call("cross", vec3(1.0f, 2.0f, 3.0f), vec3(1.0f, 2.0f, 3.0f), vec3(1.0f, 2.0f, 3.0f)); @@ -1307,7 +1305,7 @@ TEST_F(ResolverIntrinsicTest, Cross_Error_TooManyParams) { cross(vec3, vec3) -> vec3 )"); } -TEST_F(ResolverIntrinsicTest, Normalize) { +TEST_F(ResolverBuiltinTest, Normalize) { auto* call = Call("normalize", vec3(1.0f, 1.0f, 3.0f)); WrapInFunction(call); @@ -1318,7 +1316,7 @@ TEST_F(ResolverIntrinsicTest, Normalize) { EXPECT_EQ(TypeOf(call)->As()->Width(), 3u); } -TEST_F(ResolverIntrinsicTest, Normalize_NoArgs) { +TEST_F(ResolverBuiltinTest, Normalize_NoArgs) { auto* call = Call("normalize"); WrapInFunction(call); @@ -1331,8 +1329,8 @@ TEST_F(ResolverIntrinsicTest, Normalize_NoArgs) { )"); } -using ResolverIntrinsicTest_ThreeParam = ResolverTestWithParam; -TEST_P(ResolverIntrinsicTest_ThreeParam, Scalar) { +using ResolverBuiltinTest_ThreeParam = ResolverTestWithParam; +TEST_P(ResolverBuiltinTest_ThreeParam, Scalar) { auto param = GetParam(); auto* call = Call(param.name, 1.f, 1.f, 1.f); @@ -1344,7 +1342,7 @@ TEST_P(ResolverIntrinsicTest_ThreeParam, Scalar) { EXPECT_TRUE(TypeOf(call)->is_float_scalar()); } -TEST_P(ResolverIntrinsicTest_ThreeParam, Vector) { +TEST_P(ResolverBuiltinTest_ThreeParam, Vector) { auto param = GetParam(); auto* call = Call(param.name, vec3(1.0f, 1.0f, 3.0f), @@ -1357,7 +1355,7 @@ TEST_P(ResolverIntrinsicTest_ThreeParam, Vector) { EXPECT_TRUE(TypeOf(call)->is_float_vector()); EXPECT_EQ(TypeOf(call)->As()->Width(), 3u); } -TEST_P(ResolverIntrinsicTest_ThreeParam, Error_NoParams) { +TEST_P(ResolverBuiltinTest_ThreeParam, Error_NoParams) { auto param = GetParam(); auto* call = Call(param.name); @@ -1371,14 +1369,14 @@ TEST_P(ResolverIntrinsicTest_ThreeParam, Error_NoParams) { INSTANTIATE_TEST_SUITE_P( ResolverTest, - ResolverIntrinsicTest_ThreeParam, - testing::Values(IntrinsicData{"mix", IntrinsicType::kMix}, - IntrinsicData{"smoothStep", IntrinsicType::kSmoothStep}, - IntrinsicData{"fma", IntrinsicType::kFma})); + ResolverBuiltinTest_ThreeParam, + testing::Values(BuiltinData{"mix", BuiltinType::kMix}, + BuiltinData{"smoothStep", BuiltinType::kSmoothStep}, + BuiltinData{"fma", BuiltinType::kFma})); -using ResolverIntrinsicTest_ThreeParam_FloatOrInt = - ResolverTestWithParam; -TEST_P(ResolverIntrinsicTest_ThreeParam_FloatOrInt, Float_Scalar) { +using ResolverBuiltinTest_ThreeParam_FloatOrInt = + ResolverTestWithParam; +TEST_P(ResolverBuiltinTest_ThreeParam_FloatOrInt, Float_Scalar) { auto param = GetParam(); auto* call = Call(param.name, 1.f, 1.f, 1.f); @@ -1390,7 +1388,7 @@ TEST_P(ResolverIntrinsicTest_ThreeParam_FloatOrInt, Float_Scalar) { EXPECT_TRUE(TypeOf(call)->is_float_scalar()); } -TEST_P(ResolverIntrinsicTest_ThreeParam_FloatOrInt, Float_Vector) { +TEST_P(ResolverBuiltinTest_ThreeParam_FloatOrInt, Float_Vector) { auto param = GetParam(); auto* call = Call(param.name, vec3(1.0f, 1.0f, 3.0f), @@ -1404,7 +1402,7 @@ TEST_P(ResolverIntrinsicTest_ThreeParam_FloatOrInt, Float_Vector) { EXPECT_EQ(TypeOf(call)->As()->Width(), 3u); } -TEST_P(ResolverIntrinsicTest_ThreeParam_FloatOrInt, Sint_Scalar) { +TEST_P(ResolverBuiltinTest_ThreeParam_FloatOrInt, Sint_Scalar) { auto param = GetParam(); auto* call = Call(param.name, 1, 1, 1); @@ -1416,7 +1414,7 @@ TEST_P(ResolverIntrinsicTest_ThreeParam_FloatOrInt, Sint_Scalar) { EXPECT_TRUE(TypeOf(call)->Is()); } -TEST_P(ResolverIntrinsicTest_ThreeParam_FloatOrInt, Sint_Vector) { +TEST_P(ResolverBuiltinTest_ThreeParam_FloatOrInt, Sint_Vector) { auto param = GetParam(); auto* call = Call(param.name, vec3(1, 1, 3), vec3(1, 1, 3), @@ -1430,7 +1428,7 @@ TEST_P(ResolverIntrinsicTest_ThreeParam_FloatOrInt, Sint_Vector) { EXPECT_EQ(TypeOf(call)->As()->Width(), 3u); } -TEST_P(ResolverIntrinsicTest_ThreeParam_FloatOrInt, Uint_Scalar) { +TEST_P(ResolverBuiltinTest_ThreeParam_FloatOrInt, Uint_Scalar) { auto param = GetParam(); auto* call = Call(param.name, 1u, 1u, 1u); @@ -1442,7 +1440,7 @@ TEST_P(ResolverIntrinsicTest_ThreeParam_FloatOrInt, Uint_Scalar) { EXPECT_TRUE(TypeOf(call)->Is()); } -TEST_P(ResolverIntrinsicTest_ThreeParam_FloatOrInt, Uint_Vector) { +TEST_P(ResolverBuiltinTest_ThreeParam_FloatOrInt, Uint_Vector) { auto param = GetParam(); auto* call = Call(param.name, vec3(1u, 1u, 3u), vec3(1u, 1u, 3u), @@ -1456,7 +1454,7 @@ TEST_P(ResolverIntrinsicTest_ThreeParam_FloatOrInt, Uint_Vector) { EXPECT_EQ(TypeOf(call)->As()->Width(), 3u); } -TEST_P(ResolverIntrinsicTest_ThreeParam_FloatOrInt, Error_NoParams) { +TEST_P(ResolverBuiltinTest_ThreeParam_FloatOrInt, Error_NoParams) { auto param = GetParam(); auto* call = Call(param.name); @@ -1476,13 +1474,12 @@ TEST_P(ResolverIntrinsicTest_ThreeParam_FloatOrInt, Error_NoParams) { } INSTANTIATE_TEST_SUITE_P(ResolverTest, - ResolverIntrinsicTest_ThreeParam_FloatOrInt, - testing::Values(IntrinsicData{"clamp", - IntrinsicType::kClamp})); + ResolverBuiltinTest_ThreeParam_FloatOrInt, + testing::Values(BuiltinData{"clamp", + BuiltinType::kClamp})); -using ResolverIntrinsicTest_Int_SingleParam = - ResolverTestWithParam; -TEST_P(ResolverIntrinsicTest_Int_SingleParam, Scalar) { +using ResolverBuiltinTest_Int_SingleParam = ResolverTestWithParam; +TEST_P(ResolverBuiltinTest_Int_SingleParam, Scalar) { auto param = GetParam(); auto* call = Call(param.name, 1); @@ -1494,7 +1491,7 @@ TEST_P(ResolverIntrinsicTest_Int_SingleParam, Scalar) { EXPECT_TRUE(TypeOf(call)->is_integer_scalar()); } -TEST_P(ResolverIntrinsicTest_Int_SingleParam, Vector) { +TEST_P(ResolverBuiltinTest_Int_SingleParam, Vector) { auto param = GetParam(); auto* call = Call(param.name, vec3(1, 1, 3)); @@ -1507,7 +1504,7 @@ TEST_P(ResolverIntrinsicTest_Int_SingleParam, Vector) { EXPECT_EQ(TypeOf(call)->As()->Width(), 3u); } -TEST_P(ResolverIntrinsicTest_Int_SingleParam, Error_NoParams) { +TEST_P(ResolverBuiltinTest_Int_SingleParam, Error_NoParams) { auto param = GetParam(); auto* call = Call(param.name); @@ -1527,13 +1524,13 @@ TEST_P(ResolverIntrinsicTest_Int_SingleParam, Error_NoParams) { INSTANTIATE_TEST_SUITE_P( ResolverTest, - ResolverIntrinsicTest_Int_SingleParam, - testing::Values(IntrinsicData{"countOneBits", IntrinsicType::kCountOneBits}, - IntrinsicData{"reverseBits", IntrinsicType::kReverseBits})); + ResolverBuiltinTest_Int_SingleParam, + testing::Values(BuiltinData{"countOneBits", BuiltinType::kCountOneBits}, + BuiltinData{"reverseBits", BuiltinType::kReverseBits})); -using ResolverIntrinsicTest_FloatOrInt_TwoParam = - ResolverTestWithParam; -TEST_P(ResolverIntrinsicTest_FloatOrInt_TwoParam, Scalar_Signed) { +using ResolverBuiltinTest_FloatOrInt_TwoParam = + ResolverTestWithParam; +TEST_P(ResolverBuiltinTest_FloatOrInt_TwoParam, Scalar_Signed) { auto param = GetParam(); auto* call = Call(param.name, 1, 1); @@ -1545,7 +1542,7 @@ TEST_P(ResolverIntrinsicTest_FloatOrInt_TwoParam, Scalar_Signed) { EXPECT_TRUE(TypeOf(call)->Is()); } -TEST_P(ResolverIntrinsicTest_FloatOrInt_TwoParam, Scalar_Unsigned) { +TEST_P(ResolverBuiltinTest_FloatOrInt_TwoParam, Scalar_Unsigned) { auto param = GetParam(); auto* call = Call(param.name, 1u, 1u); @@ -1557,7 +1554,7 @@ TEST_P(ResolverIntrinsicTest_FloatOrInt_TwoParam, Scalar_Unsigned) { EXPECT_TRUE(TypeOf(call)->Is()); } -TEST_P(ResolverIntrinsicTest_FloatOrInt_TwoParam, Scalar_Float) { +TEST_P(ResolverBuiltinTest_FloatOrInt_TwoParam, Scalar_Float) { auto param = GetParam(); auto* call = Call(param.name, 1.0f, 1.0f); @@ -1569,7 +1566,7 @@ TEST_P(ResolverIntrinsicTest_FloatOrInt_TwoParam, Scalar_Float) { EXPECT_TRUE(TypeOf(call)->Is()); } -TEST_P(ResolverIntrinsicTest_FloatOrInt_TwoParam, Vector_Signed) { +TEST_P(ResolverBuiltinTest_FloatOrInt_TwoParam, Vector_Signed) { auto param = GetParam(); auto* call = Call(param.name, vec3(1, 1, 3), vec3(1, 1, 3)); @@ -1582,7 +1579,7 @@ TEST_P(ResolverIntrinsicTest_FloatOrInt_TwoParam, Vector_Signed) { EXPECT_EQ(TypeOf(call)->As()->Width(), 3u); } -TEST_P(ResolverIntrinsicTest_FloatOrInt_TwoParam, Vector_Unsigned) { +TEST_P(ResolverBuiltinTest_FloatOrInt_TwoParam, Vector_Unsigned) { auto param = GetParam(); auto* call = Call(param.name, vec3(1u, 1u, 3u), vec3(1u, 1u, 3u)); @@ -1595,7 +1592,7 @@ TEST_P(ResolverIntrinsicTest_FloatOrInt_TwoParam, Vector_Unsigned) { EXPECT_EQ(TypeOf(call)->As()->Width(), 3u); } -TEST_P(ResolverIntrinsicTest_FloatOrInt_TwoParam, Vector_Float) { +TEST_P(ResolverBuiltinTest_FloatOrInt_TwoParam, Vector_Float) { auto param = GetParam(); auto* call = @@ -1609,7 +1606,7 @@ TEST_P(ResolverIntrinsicTest_FloatOrInt_TwoParam, Vector_Float) { EXPECT_EQ(TypeOf(call)->As()->Width(), 3u); } -TEST_P(ResolverIntrinsicTest_FloatOrInt_TwoParam, Error_NoParams) { +TEST_P(ResolverBuiltinTest_FloatOrInt_TwoParam, Error_NoParams) { auto param = GetParam(); auto* call = Call(param.name); @@ -1627,13 +1624,13 @@ TEST_P(ResolverIntrinsicTest_FloatOrInt_TwoParam, Error_NoParams) { "(vecN, vecN) -> vecN where: T is f32, i32 or u32\n"); } -INSTANTIATE_TEST_SUITE_P( - ResolverTest, - ResolverIntrinsicTest_FloatOrInt_TwoParam, - testing::Values(IntrinsicData{"min", IntrinsicType::kMin}, - IntrinsicData{"max", IntrinsicType::kMax})); +INSTANTIATE_TEST_SUITE_P(ResolverTest, + ResolverBuiltinTest_FloatOrInt_TwoParam, + testing::Values(BuiltinData{"min", BuiltinType::kMin}, + BuiltinData{"max", + BuiltinType::kMax})); -TEST_F(ResolverIntrinsicTest, Determinant_2x2) { +TEST_F(ResolverBuiltinTest, Determinant_2x2) { Global("var", ty.mat2x2(), ast::StorageClass::kPrivate); auto* call = Call("determinant", "var"); @@ -1645,7 +1642,7 @@ TEST_F(ResolverIntrinsicTest, Determinant_2x2) { EXPECT_TRUE(TypeOf(call)->Is()); } -TEST_F(ResolverIntrinsicTest, Determinant_3x3) { +TEST_F(ResolverBuiltinTest, Determinant_3x3) { Global("var", ty.mat3x3(), ast::StorageClass::kPrivate); auto* call = Call("determinant", "var"); @@ -1657,7 +1654,7 @@ TEST_F(ResolverIntrinsicTest, Determinant_3x3) { EXPECT_TRUE(TypeOf(call)->Is()); } -TEST_F(ResolverIntrinsicTest, Determinant_4x4) { +TEST_F(ResolverBuiltinTest, Determinant_4x4) { Global("var", ty.mat4x4(), ast::StorageClass::kPrivate); auto* call = Call("determinant", "var"); @@ -1669,7 +1666,7 @@ TEST_F(ResolverIntrinsicTest, Determinant_4x4) { EXPECT_TRUE(TypeOf(call)->Is()); } -TEST_F(ResolverIntrinsicTest, Determinant_NotSquare) { +TEST_F(ResolverBuiltinTest, Determinant_NotSquare) { Global("var", ty.mat2x3(), ast::StorageClass::kPrivate); auto* call = Call("determinant", "var"); @@ -1684,7 +1681,7 @@ TEST_F(ResolverIntrinsicTest, Determinant_NotSquare) { )"); } -TEST_F(ResolverIntrinsicTest, Determinant_NotMatrix) { +TEST_F(ResolverBuiltinTest, Determinant_NotMatrix) { Global("var", ty.f32(), ast::StorageClass::kPrivate); auto* call = Call("determinant", "var"); @@ -1699,13 +1696,13 @@ TEST_F(ResolverIntrinsicTest, Determinant_NotMatrix) { )"); } -using ResolverIntrinsicTest_Texture = - ResolverTestWithParam; +using ResolverBuiltinTest_Texture = + ResolverTestWithParam; INSTANTIATE_TEST_SUITE_P( ResolverTest, - ResolverIntrinsicTest_Texture, - testing::ValuesIn(ast::intrinsic::test::TextureOverloadCase::ValidCases())); + ResolverBuiltinTest_Texture, + testing::ValuesIn(ast::builtin::test::TextureOverloadCase::ValidCases())); std::string to_str(const std::string& function, const sem::ParameterList& params) { @@ -1724,8 +1721,8 @@ std::string to_str(const std::string& function, } const char* expected_texture_overload( - ast::intrinsic::test::ValidTextureOverload overload) { - using ValidTextureOverload = ast::intrinsic::test::ValidTextureOverload; + ast::builtin::test::ValidTextureOverload overload) { + using ValidTextureOverload = ast::builtin::test::ValidTextureOverload; switch (overload) { case ValidTextureOverload::kDimensions1d: case ValidTextureOverload::kDimensions2d: @@ -1956,7 +1953,7 @@ const char* expected_texture_overload( return ""; } -TEST_P(ResolverIntrinsicTest_Texture, Call) { +TEST_P(ResolverBuiltinTest_Texture, Call) { auto param = GetParam(); param.BuildTextureVariable(this); @@ -2006,13 +2003,13 @@ TEST_P(ResolverIntrinsicTest_Texture, Call) { ASSERT_NE(vec, nullptr); EXPECT_EQ(vec->Width(), 4u); switch (param.texture_data_type) { - case ast::intrinsic::test::TextureDataType::kF32: + case ast::builtin::test::TextureDataType::kF32: EXPECT_TRUE(vec->type()->Is()); break; - case ast::intrinsic::test::TextureDataType::kU32: + case ast::builtin::test::TextureDataType::kU32: EXPECT_TRUE(vec->type()->Is()); break; - case ast::intrinsic::test::TextureDataType::kI32: + case ast::builtin::test::TextureDataType::kI32: EXPECT_TRUE(vec->type()->Is()); break; } @@ -2023,26 +2020,26 @@ TEST_P(ResolverIntrinsicTest_Texture, Call) { EXPECT_TRUE(vec->type()->Is()); } else { switch (param.texture_kind) { - case ast::intrinsic::test::TextureKind::kRegular: - case ast::intrinsic::test::TextureKind::kMultisampled: - case ast::intrinsic::test::TextureKind::kStorage: { + case ast::builtin::test::TextureKind::kRegular: + case ast::builtin::test::TextureKind::kMultisampled: + case ast::builtin::test::TextureKind::kStorage: { auto* vec = TypeOf(call)->As(); ASSERT_NE(vec, nullptr); switch (param.texture_data_type) { - case ast::intrinsic::test::TextureDataType::kF32: + case ast::builtin::test::TextureDataType::kF32: EXPECT_TRUE(vec->type()->Is()); break; - case ast::intrinsic::test::TextureDataType::kU32: + case ast::builtin::test::TextureDataType::kU32: EXPECT_TRUE(vec->type()->Is()); break; - case ast::intrinsic::test::TextureDataType::kI32: + case ast::builtin::test::TextureDataType::kI32: EXPECT_TRUE(vec->type()->Is()); break; } break; } - case ast::intrinsic::test::TextureKind::kDepth: - case ast::intrinsic::test::TextureKind::kDepthMultisampled: { + case ast::builtin::test::TextureKind::kDepth: + case ast::builtin::test::TextureKind::kDepthMultisampled: { EXPECT_TRUE(TypeOf(call)->Is()); break; } diff --git a/src/resolver/intrinsic_validation_test.cc b/src/resolver/builtin_validation_test.cc similarity index 90% rename from src/resolver/intrinsic_validation_test.cc rename to src/resolver/builtin_validation_test.cc index 80a3dc9c44..70c776b58f 100644 --- a/src/resolver/intrinsic_validation_test.cc +++ b/src/resolver/builtin_validation_test.cc @@ -12,16 +12,16 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "src/ast/intrinsic_texture_helper_test.h" +#include "src/ast/builtin_texture_helper_test.h" #include "src/resolver/resolver_test_helper.h" namespace tint { namespace resolver { namespace { -using ResolverIntrinsicValidationTest = ResolverTest; +using ResolverBuiltinValidationTest = ResolverTest; -TEST_F(ResolverIntrinsicValidationTest, +TEST_F(ResolverBuiltinValidationTest, FunctionTypeMustMatchReturnStatementType_void_fail) { // fn func { return workgroupBarrier(); } Func("func", {}, ty.void_(), @@ -30,12 +30,11 @@ TEST_F(ResolverIntrinsicValidationTest, }); EXPECT_FALSE(r()->Resolve()); - EXPECT_EQ( - r()->error(), - "12:34 error: intrinsic 'workgroupBarrier' does not return a value"); + EXPECT_EQ(r()->error(), + "12:34 error: builtin 'workgroupBarrier' does not return a value"); } -TEST_F(ResolverIntrinsicValidationTest, InvalidPipelineStageDirect) { +TEST_F(ResolverBuiltinValidationTest, InvalidPipelineStageDirect) { // @stage(compute) @workgroup_size(1) fn func { return dpdx(1.0); } auto* dpdx = create(Source{{3, 4}}, Expr("dpdx"), @@ -49,7 +48,7 @@ TEST_F(ResolverIntrinsicValidationTest, InvalidPipelineStageDirect) { "3:4 error: built-in cannot be used by compute pipeline stage"); } -TEST_F(ResolverIntrinsicValidationTest, InvalidPipelineStageIndirect) { +TEST_F(ResolverBuiltinValidationTest, InvalidPipelineStageIndirect) { // fn f0 { return dpdx(1.0); } // fn f1 { f0(); } // fn f2 { f1(); } @@ -75,7 +74,7 @@ TEST_F(ResolverIntrinsicValidationTest, InvalidPipelineStageIndirect) { 7:8 note: called by entry point 'main')"); } -TEST_F(ResolverIntrinsicValidationTest, IntrinsicRedeclaredAsFunction) { +TEST_F(ResolverBuiltinValidationTest, BuiltinRedeclaredAsFunction) { Func(Source{{12, 34}}, "mix", {}, ty.i32(), {}); EXPECT_FALSE(r()->Resolve()); @@ -84,7 +83,7 @@ TEST_F(ResolverIntrinsicValidationTest, IntrinsicRedeclaredAsFunction) { R"(12:34 error: 'mix' is a builtin and cannot be redeclared as a function)"); } -TEST_F(ResolverIntrinsicValidationTest, IntrinsicRedeclaredAsGlobalLet) { +TEST_F(ResolverBuiltinValidationTest, BuiltinRedeclaredAsGlobalLet) { GlobalConst(Source{{12, 34}}, "mix", ty.i32(), Expr(1)); EXPECT_FALSE(r()->Resolve()); @@ -93,7 +92,7 @@ TEST_F(ResolverIntrinsicValidationTest, IntrinsicRedeclaredAsGlobalLet) { R"(12:34 error: 'mix' is a builtin and cannot be redeclared as a module-scope let)"); } -TEST_F(ResolverIntrinsicValidationTest, IntrinsicRedeclaredAsGlobalVar) { +TEST_F(ResolverBuiltinValidationTest, BuiltinRedeclaredAsGlobalVar) { Global(Source{{12, 34}}, "mix", ty.i32(), Expr(1), ast::StorageClass::kPrivate); @@ -103,7 +102,7 @@ TEST_F(ResolverIntrinsicValidationTest, IntrinsicRedeclaredAsGlobalVar) { R"(12:34 error: 'mix' is a builtin and cannot be redeclared as a module-scope var)"); } -TEST_F(ResolverIntrinsicValidationTest, IntrinsicRedeclaredAsAlias) { +TEST_F(ResolverBuiltinValidationTest, BuiltinRedeclaredAsAlias) { Alias(Source{{12, 34}}, "mix", ty.i32()); EXPECT_FALSE(r()->Resolve()); @@ -112,7 +111,7 @@ TEST_F(ResolverIntrinsicValidationTest, IntrinsicRedeclaredAsAlias) { R"(12:34 error: 'mix' is a builtin and cannot be redeclared as an alias)"); } -TEST_F(ResolverIntrinsicValidationTest, IntrinsicRedeclaredAsStruct) { +TEST_F(ResolverBuiltinValidationTest, BuiltinRedeclaredAsStruct) { Structure(Source{{12, 34}}, "mix", {Member("m", ty.i32())}); EXPECT_FALSE(r()->Resolve()); @@ -123,10 +122,10 @@ TEST_F(ResolverIntrinsicValidationTest, IntrinsicRedeclaredAsStruct) { namespace texture_constexpr_args { -using TextureOverloadCase = ast::intrinsic::test::TextureOverloadCase; -using ValidTextureOverload = ast::intrinsic::test::ValidTextureOverload; -using TextureKind = ast::intrinsic::test::TextureKind; -using TextureDataType = ast::intrinsic::test::TextureDataType; +using TextureOverloadCase = ast::builtin::test::TextureOverloadCase; +using ValidTextureOverload = ast::builtin::test::ValidTextureOverload; +using TextureKind = ast::builtin::test::TextureKind; +using TextureDataType = ast::builtin::test::TextureDataType; using u32 = ProgramBuilder::u32; using i32 = ProgramBuilder::i32; using f32 = ProgramBuilder::f32; @@ -229,10 +228,10 @@ static std::ostream& operator<<(std::ostream& out, Constexpr expr) { return out; } -using IntrinsicTextureConstExprArgValidationTest = ResolverTestWithParam< +using BuiltinTextureConstExprArgValidationTest = ResolverTestWithParam< std::tuple>; -TEST_P(IntrinsicTextureConstExprArgValidationTest, Immediate) { +TEST_P(BuiltinTextureConstExprArgValidationTest, Immediate) { auto& p = GetParam(); auto overload = std::get<0>(p); auto param = std::get<1>(p); @@ -255,7 +254,7 @@ TEST_P(IntrinsicTextureConstExprArgValidationTest, Immediate) { arg_to_replace = expr(Source{{12, 34}}, *this); - // Call the intrinsic with the constexpr argument replaced + // Call the builtin with the constexpr argument replaced Func("func", {}, ty.void_(), {CallStmt(Call(overload.function, args))}, {Stage(ast::PipelineStage::kFragment)}); @@ -279,7 +278,7 @@ TEST_P(IntrinsicTextureConstExprArgValidationTest, Immediate) { } } -TEST_P(IntrinsicTextureConstExprArgValidationTest, GlobalConst) { +TEST_P(BuiltinTextureConstExprArgValidationTest, GlobalConst) { auto& p = GetParam(); auto overload = std::get<0>(p); auto param = std::get<1>(p); @@ -302,7 +301,7 @@ TEST_P(IntrinsicTextureConstExprArgValidationTest, GlobalConst) { arg_to_replace = Expr(Source{{12, 34}}, "G"); - // Call the intrinsic with the constexpr argument replaced + // Call the builtin with the constexpr argument replaced Func("func", {}, ty.void_(), {CallStmt(Call(overload.function, args))}, {Stage(ast::PipelineStage::kFragment)}); @@ -315,7 +314,7 @@ TEST_P(IntrinsicTextureConstExprArgValidationTest, GlobalConst) { INSTANTIATE_TEST_SUITE_P( Offset2D, - IntrinsicTextureConstExprArgValidationTest, + BuiltinTextureConstExprArgValidationTest, testing::Combine( testing::ValuesIn(TextureCases({ ValidTextureOverload::kSample2dOffsetF32, @@ -349,7 +348,7 @@ INSTANTIATE_TEST_SUITE_P( INSTANTIATE_TEST_SUITE_P( Offset3D, - IntrinsicTextureConstExprArgValidationTest, + BuiltinTextureConstExprArgValidationTest, testing::Combine( testing::ValuesIn(TextureCases({ ValidTextureOverload::kSample3dOffsetF32, @@ -377,7 +376,7 @@ INSTANTIATE_TEST_SUITE_P( INSTANTIATE_TEST_SUITE_P( Component, - IntrinsicTextureConstExprArgValidationTest, + BuiltinTextureConstExprArgValidationTest, testing::Combine( testing::ValuesIn( TextureCases({ValidTextureOverload::kGather2dF32, diff --git a/src/resolver/dependency_graph.cc b/src/resolver/dependency_graph.cc index 981dfb1246..d520cd7361 100644 --- a/src/resolver/dependency_graph.cc +++ b/src/resolver/dependency_graph.cc @@ -24,7 +24,7 @@ #include "src/ast/fallthrough_statement.h" #include "src/ast/traverse_expressions.h" #include "src/scope_stack.h" -#include "src/sem/intrinsic.h" +#include "src/sem/builtin.h" #include "src/utils/defer.h" #include "src/utils/map.h" #include "src/utils/scoped_assignment.h" @@ -297,7 +297,7 @@ class DependencyScanner { if (auto* ident = expr->As()) { auto* node = scope_stack_.Get(ident->symbol); if (node == nullptr) { - if (!IsIntrinsic(ident->symbol)) { + if (!IsBuiltin(ident->symbol)) { UnknownSymbol(ident->symbol, ident->source, "identifier"); } return ast::TraverseAction::Descend; @@ -313,7 +313,7 @@ class DependencyScanner { } if (auto* call = expr->As()) { if (call->target.name) { - if (!IsIntrinsic(call->target.name->symbol)) { + if (!IsBuiltin(call->target.name->symbol)) { AddGlobalDependency(call->target.name, call->target.name->symbol, "function", "calls"); @@ -436,10 +436,10 @@ class DependencyScanner { } } - /// @returns true if `name` is the name of an intrinsic function - bool IsIntrinsic(Symbol name) const { - return sem::ParseIntrinsicType(symbols_.NameFor(name)) != - sem::IntrinsicType::kNone; + /// @returns true if `name` is the name of a builtin function + bool IsBuiltin(Symbol name) const { + return sem::ParseBuiltinType(symbols_.NameFor(name)) != + sem::BuiltinType::kNone; } /// Appends an error to the diagnostics that the given symbol cannot be diff --git a/src/resolver/resolver.cc b/src/resolver/resolver.cc index 934d602aa6..6ab3630cad 100644 --- a/src/resolver/resolver.cc +++ b/src/resolver/resolver.cc @@ -84,7 +84,7 @@ namespace resolver { Resolver::Resolver(ProgramBuilder* builder) : builder_(builder), diagnostics_(builder->Diagnostics()), - intrinsic_table_(IntrinsicTable::Create(*builder)) {} + builtin_table_(BuiltinTable::Create(*builder)) {} Resolver::~Resolver() = default; @@ -1354,10 +1354,9 @@ sem::Call* Resolver::Call(const ast::CallExpression* expr) { } auto name = builder_->Symbols().NameFor(ident->symbol); - auto intrinsic_type = sem::ParseIntrinsicType(name); - if (intrinsic_type != sem::IntrinsicType::kNone) { - return IntrinsicCall(expr, intrinsic_type, std::move(args), - std::move(arg_tys)); + auto builtin_type = sem::ParseBuiltinType(name); + if (builtin_type != sem::BuiltinType::kNone) { + return BuiltinCall(expr, builtin_type, std::move(args), std::move(arg_tys)); } TINT_ICE(Resolver, diagnostics_) @@ -1368,36 +1367,35 @@ sem::Call* Resolver::Call(const ast::CallExpression* expr) { return nullptr; } -sem::Call* Resolver::IntrinsicCall( - const ast::CallExpression* expr, - sem::IntrinsicType intrinsic_type, - const std::vector args, - const std::vector arg_tys) { - auto* intrinsic = intrinsic_table_->Lookup(intrinsic_type, std::move(arg_tys), - expr->source); - if (!intrinsic) { +sem::Call* Resolver::BuiltinCall(const ast::CallExpression* expr, + sem::BuiltinType builtin_type, + const std::vector args, + const std::vector arg_tys) { + auto* builtin = + builtin_table_->Lookup(builtin_type, std::move(arg_tys), expr->source); + if (!builtin) { return nullptr; } - if (intrinsic->IsDeprecated()) { - AddWarning("use of deprecated intrinsic", expr->source); + if (builtin->IsDeprecated()) { + AddWarning("use of deprecated builtin", expr->source); } - auto* call = builder_->create(expr, intrinsic, std::move(args), + auto* call = builder_->create(expr, builtin, std::move(args), current_statement_, sem::Constant{}); - current_function_->AddDirectlyCalledIntrinsic(intrinsic); + current_function_->AddDirectlyCalledBuiltin(builtin); - if (IsTextureIntrinsic(intrinsic_type)) { - if (!ValidateTextureIntrinsicFunction(call)) { + if (IsTextureBuiltin(builtin_type)) { + if (!ValidateTextureBuiltinFunction(call)) { return nullptr; } - // Collect a texture/sampler pair for this intrinsic. - const auto& signature = intrinsic->Signature(); + // Collect a texture/sampler pair for this builtin. + const auto& signature = builtin->Signature(); int texture_index = signature.IndexOf(sem::ParameterUsage::kTexture); if (texture_index == -1) { TINT_ICE(Resolver, diagnostics_) - << "texture intrinsic without texture parameter"; + << "texture builtin without texture parameter"; } auto* texture = args[texture_index]->As()->Variable(); @@ -1409,7 +1407,7 @@ sem::Call* Resolver::IntrinsicCall( current_function_->AddTextureSamplerPair(texture, sampler); } - if (!ValidateIntrinsicCall(call)) { + if (!ValidateBuiltinCall(call)) { return nullptr; } @@ -1662,8 +1660,8 @@ sem::Expression* Resolver::Identifier(const ast::IdentifierExpression* expr) { return nullptr; } - if (IsIntrinsic(symbol)) { - AddError("missing '(' for intrinsic call", expr->source.End()); + if (IsBuiltin(symbol)) { + AddError("missing '(' for builtin call", expr->source.End()); return nullptr; } @@ -2786,9 +2784,9 @@ bool Resolver::IsHostShareable(const sem::Type* type) const { return false; } -bool Resolver::IsIntrinsic(Symbol symbol) const { +bool Resolver::IsBuiltin(Symbol symbol) const { std::string name = builder_->Symbols().NameFor(symbol); - return sem::ParseIntrinsicType(name) != sem::IntrinsicType::kNone; + return sem::ParseBuiltinType(name) != sem::BuiltinType::kNone; } bool Resolver::IsCallStatement(const ast::Expression* expr) const { diff --git a/src/resolver/resolver.h b/src/resolver/resolver.h index eaf1dcad56..33d945dcee 100644 --- a/src/resolver/resolver.h +++ b/src/resolver/resolver.h @@ -23,7 +23,7 @@ #include #include -#include "src/intrinsic_table.h" +#include "src/builtin_table.h" #include "src/program_builder.h" #include "src/resolver/dependency_graph.h" #include "src/scope_stack.h" @@ -59,11 +59,11 @@ namespace sem { class Array; class Atomic; class BlockStatement; +class Builtin; class CaseStatement; class ElseStatement; class ForLoopStatement; class IfStatement; -class Intrinsic; class LoopStatement; class Statement; class SwitchStatement; @@ -191,10 +191,10 @@ class Resolver { const std::vector args, sem::Behaviors arg_behaviors); sem::Expression* Identifier(const ast::IdentifierExpression*); - sem::Call* IntrinsicCall(const ast::CallExpression*, - sem::IntrinsicType, - const std::vector args, - const std::vector arg_tys); + sem::Call* BuiltinCall(const ast::CallExpression*, + sem::BuiltinType, + const std::vector args, + const std::vector arg_tys); sem::Expression* Literal(const ast::LiteralExpression*); sem::Expression* MemberAccessor(const ast::MemberAccessorExpression*); sem::Call* TypeConversion(const ast::CallExpression* expr, @@ -258,7 +258,7 @@ class Resolver { bool ValidateIfStatement(const sem::IfStatement* stmt); bool ValidateInterpolateAttribute(const ast::InterpolateAttribute* attr, const sem::Type* storage_type); - bool ValidateIntrinsicCall(const sem::Call* call); + bool ValidateBuiltinCall(const sem::Call* call); bool ValidateLocationAttribute(const ast::LocationAttribute* location, const sem::Type* type, std::unordered_set& locations, @@ -290,7 +290,7 @@ class Resolver { const sem::Type* type); bool ValidateArrayConstructorOrCast(const ast::CallExpression* ctor, const sem::Array* arr_type); - bool ValidateTextureIntrinsicFunction(const sem::Call* call); + bool ValidateTextureBuiltinFunction(const sem::Call* call); bool ValidateNoDuplicateAttributes(const ast::AttributeList& attributes); bool ValidateStorageClassLayout(const sem::Type* type, ast::StorageClass sc, @@ -462,9 +462,8 @@ class Resolver { return const_cast(As(sem)); } - /// @returns true if the symbol is the name of an intrinsic (builtin) - /// function. - bool IsIntrinsic(Symbol) const; + /// @returns true if the symbol is the name of a builtin function. + bool IsBuiltin(Symbol) const; /// @returns true if `expr` is the current CallStatement's CallExpression bool IsCallStatement(const ast::Expression* expr) const; @@ -520,7 +519,7 @@ class Resolver { ProgramBuilder* const builder_; diag::List& diagnostics_; - std::unique_ptr const intrinsic_table_; + std::unique_ptr const builtin_table_; DependencyGraph dependencies_; std::vector entry_points_; std::unordered_map atomic_composite_info_; diff --git a/src/resolver/resolver_test.cc b/src/resolver/resolver_test.cc index 14e177bed0..239a77a663 100644 --- a/src/resolver/resolver_test.cc +++ b/src/resolver/resolver_test.cc @@ -21,11 +21,11 @@ #include "src/ast/assignment_statement.h" #include "src/ast/bitcast_expression.h" #include "src/ast/break_statement.h" +#include "src/ast/builtin_texture_helper_test.h" #include "src/ast/call_statement.h" #include "src/ast/continue_statement.h" #include "src/ast/float_literal_expression.h" #include "src/ast/if_statement.h" -#include "src/ast/intrinsic_texture_helper_test.h" #include "src/ast/loop_statement.h" #include "src/ast/override_attribute.h" #include "src/ast/return_statement.h" @@ -535,7 +535,7 @@ TEST_F(ResolverTest, Expr_Call_WithParams) { EXPECT_TRUE(TypeOf(param)->Is()); } -TEST_F(ResolverTest, Expr_Call_Intrinsic) { +TEST_F(ResolverTest, Expr_Call_Builtin) { auto* call = Call("round", 2.4f); WrapInFunction(call); diff --git a/src/resolver/resolver_validation.cc b/src/resolver/resolver_validation.cc index acd9c76503..0668bd97e1 100644 --- a/src/resolver/resolver_validation.cc +++ b/src/resolver/resolver_validation.cc @@ -560,7 +560,7 @@ bool Resolver::ValidateVariable(const sem::Variable* var) { if (var->Is()) { auto name = builder_->Symbols().NameFor(decl->symbol); - if (sem::ParseIntrinsicType(name) != sem::IntrinsicType::kNone) { + if (sem::ParseBuiltinType(name) != sem::BuiltinType::kNone) { auto* kind = var->Declaration()->is_const ? "let" : "var"; AddError( "'" + name + @@ -840,7 +840,7 @@ bool Resolver::ValidateFunction(const sem::Function* func) { auto* decl = func->Declaration(); auto name = builder_->Symbols().NameFor(decl->symbol); - if (sem::ParseIntrinsicType(name) != sem::IntrinsicType::kNone) { + if (sem::ParseBuiltinType(name) != sem::BuiltinType::kNone) { AddError( "'" + name + "' is a builtin and cannot be redeclared as a function", decl->source); @@ -1369,7 +1369,7 @@ bool Resolver::ValidateIfStatement(const sem::IfStatement* stmt) { return true; } -bool Resolver::ValidateIntrinsicCall(const sem::Call* call) { +bool Resolver::ValidateBuiltinCall(const sem::Call* call) { if (call->Type()->Is()) { bool is_call_statement = false; if (auto* call_stmt = As(call->Stmt()->Declaration())) { @@ -1383,7 +1383,7 @@ bool Resolver::ValidateIntrinsicCall(const sem::Call* call) { // statement should be used instead. auto* ident = call->Declaration()->target.name; auto name = builder_->Symbols().NameFor(ident->symbol); - AddError("intrinsic '" + name + "' does not return a value", + AddError("builtin '" + name + "' does not return a value", call->Declaration()->source); return false; } @@ -1392,14 +1392,14 @@ bool Resolver::ValidateIntrinsicCall(const sem::Call* call) { return true; } -bool Resolver::ValidateTextureIntrinsicFunction(const sem::Call* call) { - auto* intrinsic = call->Target()->As(); - if (!intrinsic) { +bool Resolver::ValidateTextureBuiltinFunction(const sem::Call* call) { + auto* builtin = call->Target()->As(); + if (!builtin) { return false; } - std::string func_name = intrinsic->str(); - auto& signature = intrinsic->Signature(); + std::string func_name = builtin->str(); + auto& signature = builtin->Signature(); auto check_arg_is_constexpr = [&](sem::ParameterUsage usage, int min, int max) { @@ -1431,7 +1431,7 @@ bool Resolver::ValidateTextureIntrinsicFunction(const sem::Call* call) { return ast::TraverseAction::Stop; }); if (is_const_expr) { - auto vector = intrinsic->Parameters()[index]->Type()->Is(); + auto vector = builtin->Parameters()[index]->Type()->Is(); for (size_t i = 0; i < values.Elements().size(); i++) { auto value = values.Elements()[i].i32; if (value < min || value > max) { @@ -1895,12 +1895,12 @@ bool Resolver::ValidatePipelineStages() { } } - auto check_intrinsic_calls = [&](const sem::Function* func, - const sem::Function* entry_point) { + auto check_builtin_calls = [&](const sem::Function* func, + const sem::Function* entry_point) { auto stage = entry_point->Declaration()->PipelineStage(); - for (auto* intrinsic : func->DirectlyCalledIntrinsics()) { - if (!intrinsic->SupportedStages().Contains(stage)) { - auto* call = func->FindDirectCallTo(intrinsic); + for (auto* builtin : func->DirectlyCalledBuiltins()) { + if (!builtin->SupportedStages().Contains(stage)) { + auto* call = func->FindDirectCallTo(builtin); std::stringstream err; err << "built-in cannot be used by " << stage << " pipeline stage"; AddError(err.str(), call ? call->Declaration()->source @@ -1927,11 +1927,11 @@ bool Resolver::ValidatePipelineStages() { }; for (auto* entry_point : entry_points_) { - if (!check_intrinsic_calls(entry_point, entry_point)) { + if (!check_builtin_calls(entry_point, entry_point)) { return false; } for (auto* func : entry_point->TransitivelyCalledFunctions()) { - if (!check_intrinsic_calls(func, entry_point)) { + if (!check_builtin_calls(func, entry_point)) { return false; } } @@ -1974,7 +1974,7 @@ bool Resolver::ValidateArrayStrideAttribute(const ast::StrideAttribute* attr, bool Resolver::ValidateAlias(const ast::Alias* alias) { auto name = builder_->Symbols().NameFor(alias->name); - if (sem::ParseIntrinsicType(name) != sem::IntrinsicType::kNone) { + if (sem::ParseBuiltinType(name) != sem::BuiltinType::kNone) { AddError("'" + name + "' is a builtin and cannot be redeclared as an alias", alias->source); return false; @@ -1985,7 +1985,7 @@ bool Resolver::ValidateAlias(const ast::Alias* alias) { bool Resolver::ValidateStructure(const sem::Struct* str) { auto name = builder_->Symbols().NameFor(str->Declaration()->name); - if (sem::ParseIntrinsicType(name) != sem::IntrinsicType::kNone) { + if (sem::ParseBuiltinType(name) != sem::BuiltinType::kNone) { AddError("'" + name + "' is a builtin and cannot be redeclared as a struct", str->Declaration()->source); return false; diff --git a/src/resolver/validation_test.cc b/src/resolver/validation_test.cc index 89a5151064..65b910867f 100644 --- a/src/resolver/validation_test.cc +++ b/src/resolver/validation_test.cc @@ -19,11 +19,11 @@ #include "src/ast/assignment_statement.h" #include "src/ast/bitcast_expression.h" #include "src/ast/break_statement.h" +#include "src/ast/builtin_texture_helper_test.h" #include "src/ast/call_statement.h" #include "src/ast/continue_statement.h" #include "src/ast/discard_statement.h" #include "src/ast/if_statement.h" -#include "src/ast/intrinsic_texture_helper_test.h" #include "src/ast/loop_statement.h" #include "src/ast/return_statement.h" #include "src/ast/stage_attribute.h" @@ -156,11 +156,11 @@ TEST_F(ResolverValidationTest, Expr_DontCall_Function) { EXPECT_EQ(r()->error(), "3:8 error: missing '(' for function call"); } -TEST_F(ResolverValidationTest, Expr_DontCall_Intrinsic) { +TEST_F(ResolverValidationTest, Expr_DontCall_Builtin) { WrapInFunction(Expr(Source{{{3, 3}, {3, 8}}}, "round")); EXPECT_FALSE(r()->Resolve()); - EXPECT_EQ(r()->error(), "3:8 error: missing '(' for intrinsic call"); + EXPECT_EQ(r()->error(), "3:8 error: missing '(' for builtin call"); } TEST_F(ResolverValidationTest, Expr_DontCall_Type) { @@ -172,8 +172,7 @@ TEST_F(ResolverValidationTest, Expr_DontCall_Type) { "3:8 error: missing '(' for type constructor or cast"); } -TEST_F(ResolverValidationTest, - AssignmentStmt_InvalidLHS_IntrinsicFunctionName) { +TEST_F(ResolverValidationTest, AssignmentStmt_InvalidLHS_BuiltinFunctionName) { // normalize = 2; auto* lhs = Expr(Source{{12, 34}}, "normalize"); @@ -182,7 +181,7 @@ TEST_F(ResolverValidationTest, WrapInFunction(assign); EXPECT_FALSE(r()->Resolve()); - EXPECT_EQ(r()->error(), "12:34 error: missing '(' for intrinsic call"); + EXPECT_EQ(r()->error(), "12:34 error: missing '(' for builtin call"); } TEST_F(ResolverValidationTest, UsingUndefinedVariable_Fail) { diff --git a/src/sem/builtin.cc b/src/sem/builtin.cc new file mode 100644 index 0000000000..917fee9ec7 --- /dev/null +++ b/src/sem/builtin.cc @@ -0,0 +1,166 @@ +// Copyright 2020 The Tint Authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Doxygen seems to trip over this file for some unknown reason. Disable. +//! @cond Doxygen_Suppress + +#include "src/sem/builtin.h" + +#include + +#include "src/utils/to_const_ptr_vec.h" + +TINT_INSTANTIATE_TYPEINFO(tint::sem::Builtin); + +namespace tint { +namespace sem { + +const char* Builtin::str() const { + return sem::str(type_); +} + +bool IsCoarseDerivativeBuiltin(BuiltinType i) { + return i == BuiltinType::kDpdxCoarse || i == BuiltinType::kDpdyCoarse || + i == BuiltinType::kFwidthCoarse; +} + +bool IsFineDerivativeBuiltin(BuiltinType i) { + return i == BuiltinType::kDpdxFine || i == BuiltinType::kDpdyFine || + i == BuiltinType::kFwidthFine; +} + +bool IsDerivativeBuiltin(BuiltinType i) { + return i == BuiltinType::kDpdx || i == BuiltinType::kDpdy || + i == BuiltinType::kFwidth || IsCoarseDerivativeBuiltin(i) || + IsFineDerivativeBuiltin(i); +} + +bool IsFloatClassificationBuiltin(BuiltinType i) { + return i == BuiltinType::kIsFinite || i == BuiltinType::kIsInf || + i == BuiltinType::kIsNan || i == BuiltinType::kIsNormal; +} + +bool IsTextureBuiltin(BuiltinType i) { + return IsImageQueryBuiltin(i) || i == BuiltinType::kTextureLoad || + i == BuiltinType::kTextureGather || + i == BuiltinType::kTextureGatherCompare || + i == BuiltinType::kTextureSample || + i == BuiltinType::kTextureSampleLevel || + i == BuiltinType::kTextureSampleBias || + i == BuiltinType::kTextureSampleCompare || + i == BuiltinType::kTextureSampleCompareLevel || + i == BuiltinType::kTextureSampleGrad || + i == BuiltinType::kTextureStore; +} + +bool IsImageQueryBuiltin(BuiltinType i) { + return i == BuiltinType::kTextureDimensions || + i == BuiltinType::kTextureNumLayers || + i == BuiltinType::kTextureNumLevels || + i == BuiltinType::kTextureNumSamples; +} + +bool IsDataPackingBuiltin(BuiltinType i) { + return i == BuiltinType::kPack4x8snorm || i == BuiltinType::kPack4x8unorm || + i == BuiltinType::kPack2x16snorm || i == BuiltinType::kPack2x16unorm || + i == BuiltinType::kPack2x16float; +} + +bool IsDataUnpackingBuiltin(BuiltinType i) { + return i == BuiltinType::kUnpack4x8snorm || + i == BuiltinType::kUnpack4x8unorm || + i == BuiltinType::kUnpack2x16snorm || + i == BuiltinType::kUnpack2x16unorm || + i == BuiltinType::kUnpack2x16float; +} + +bool IsBarrierBuiltin(BuiltinType i) { + return i == BuiltinType::kWorkgroupBarrier || + i == BuiltinType::kStorageBarrier; +} + +bool IsAtomicBuiltin(BuiltinType i) { + return i == sem::BuiltinType::kAtomicLoad || + i == sem::BuiltinType::kAtomicStore || + i == sem::BuiltinType::kAtomicAdd || + i == sem::BuiltinType::kAtomicSub || + i == sem::BuiltinType::kAtomicMax || + i == sem::BuiltinType::kAtomicMin || + i == sem::BuiltinType::kAtomicAnd || + i == sem::BuiltinType::kAtomicOr || + i == sem::BuiltinType::kAtomicXor || + i == sem::BuiltinType::kAtomicExchange || + i == sem::BuiltinType::kAtomicCompareExchangeWeak; +} + +Builtin::Builtin(BuiltinType type, + const sem::Type* return_type, + std::vector parameters, + PipelineStageSet supported_stages, + bool is_deprecated) + : Base(return_type, utils::ToConstPtrVec(parameters)), + type_(type), + supported_stages_(supported_stages), + is_deprecated_(is_deprecated) { + for (auto* parameter : parameters) { + parameter->SetOwner(this); + } +} + +Builtin::~Builtin() = default; + +bool Builtin::IsCoarseDerivative() const { + return IsCoarseDerivativeBuiltin(type_); +} + +bool Builtin::IsFineDerivative() const { + return IsFineDerivativeBuiltin(type_); +} + +bool Builtin::IsDerivative() const { + return IsDerivativeBuiltin(type_); +} + +bool Builtin::IsFloatClassification() const { + return IsFloatClassificationBuiltin(type_); +} + +bool Builtin::IsTexture() const { + return IsTextureBuiltin(type_); +} + +bool Builtin::IsImageQuery() const { + return IsImageQueryBuiltin(type_); +} + +bool Builtin::IsDataPacking() const { + return IsDataPackingBuiltin(type_); +} + +bool Builtin::IsDataUnpacking() const { + return IsDataUnpackingBuiltin(type_); +} + +bool Builtin::IsBarrier() const { + return IsBarrierBuiltin(type_); +} + +bool Builtin::IsAtomic() const { + return IsAtomicBuiltin(type_); +} + +} // namespace sem +} // namespace tint + +//! @endcond diff --git a/src/sem/builtin.h b/src/sem/builtin.h new file mode 100644 index 0000000000..cb5dc30cfa --- /dev/null +++ b/src/sem/builtin.h @@ -0,0 +1,173 @@ +// Copyright 2020 The Tint Authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#ifndef SRC_SEM_BUILTIN_H_ +#define SRC_SEM_BUILTIN_H_ + +#include +#include + +#include "src/sem/builtin_type.h" +#include "src/sem/call_target.h" +#include "src/sem/pipeline_stage_set.h" +#include "src/utils/hash.h" + +namespace tint { +namespace sem { + +/// Determines if the given `i` is a coarse derivative +/// @param i the builtin type +/// @returns true if the given derivative is coarse. +bool IsCoarseDerivativeBuiltin(BuiltinType i); + +/// Determines if the given `i` is a fine derivative +/// @param i the builtin type +/// @returns true if the given derivative is fine. +bool IsFineDerivativeBuiltin(BuiltinType i); + +/// Determine if the given `i` is a derivative builtin +/// @param i the builtin type +/// @returns true if the given `i` is a derivative builtin +bool IsDerivativeBuiltin(BuiltinType i); + +/// Determines if the given `i` is a float classification builtin +/// @param i the builtin type +/// @returns true if the given `i` is a float builtin +bool IsFloatClassificationBuiltin(BuiltinType i); + +/// Determines if the given `i` is a texture operation builtin +/// @param i the builtin type +/// @returns true if the given `i` is a texture operation builtin +bool IsTextureBuiltin(BuiltinType i); + +/// Determines if the given `i` is a image query builtin +/// @param i the builtin type +/// @returns true if the given `i` is a image query builtin +bool IsImageQueryBuiltin(BuiltinType i); + +/// Determines if the given `i` is a data packing builtin +/// @param i the builtin +/// @returns true if the given `i` is a data packing builtin +bool IsDataPackingBuiltin(BuiltinType i); + +/// Determines if the given `i` is a data unpacking builtin +/// @param i the builtin +/// @returns true if the given `i` is a data unpacking builtin +bool IsDataUnpackingBuiltin(BuiltinType i); + +/// Determines if the given `i` is a barrier builtin +/// @param i the builtin +/// @returns true if the given `i` is a barrier builtin +bool IsBarrierBuiltin(BuiltinType i); + +/// Determines if the given `i` is a atomic builtin +/// @param i the builtin +/// @returns true if the given `i` is a atomic builtin +bool IsAtomicBuiltin(BuiltinType i); + +/// Builtin holds the semantic information for a builtin function. +class Builtin : public Castable { + public: + /// Constructor + /// @param type the builtin type + /// @param return_type the return type for the builtin call + /// @param parameters the parameters for the builtin overload + /// @param supported_stages the pipeline stages that this builtin can be + /// used in + /// @param is_deprecated true if the particular overload is considered + /// deprecated + Builtin(BuiltinType type, + const sem::Type* return_type, + std::vector parameters, + PipelineStageSet supported_stages, + bool is_deprecated); + + /// Destructor + ~Builtin() override; + + /// @return the type of the builtin + BuiltinType Type() const { return type_; } + + /// @return the pipeline stages that this builtin can be used in + PipelineStageSet SupportedStages() const { return supported_stages_; } + + /// @return true if the builtin overload is considered deprecated + bool IsDeprecated() const { return is_deprecated_; } + + /// @returns the name of the builtin function type. The spelling, including + /// case, matches the name in the WGSL spec. + const char* str() const; + + /// @returns true if builtin is a coarse derivative builtin + bool IsCoarseDerivative() const; + + /// @returns true if builtin is a fine a derivative builtin + bool IsFineDerivative() const; + + /// @returns true if builtin is a derivative builtin + bool IsDerivative() const; + + /// @returns true if builtin is a float builtin + bool IsFloatClassification() const; + + /// @returns true if builtin is a texture operation builtin + bool IsTexture() const; + + /// @returns true if builtin is a image query builtin + bool IsImageQuery() const; + + /// @returns true if builtin is a data packing builtin + bool IsDataPacking() const; + + /// @returns true if builtin is a data unpacking builtin + bool IsDataUnpacking() const; + + /// @returns true if builtin is a barrier builtin + bool IsBarrier() const; + + /// @returns true if builtin is a atomic builtin + bool IsAtomic() const; + + private: + const BuiltinType type_; + const PipelineStageSet supported_stages_; + const bool is_deprecated_; +}; + +/// Constant value used by the degrees() builtin +static constexpr double kRadToDeg = 57.295779513082322865; + +/// Constant value used by the radians() builtin +static constexpr double kDegToRad = 0.017453292519943295474; + +} // namespace sem +} // namespace tint + +namespace std { + +/// Custom std::hash specialization for tint::sem::Builtin +template <> +class hash { + public: + /// @param i the Builtin to create a hash for + /// @return the hash value + inline std::size_t operator()(const tint::sem::Builtin& i) const { + return tint::utils::Hash(i.Type(), i.SupportedStages(), i.ReturnType(), + i.Parameters(), i.IsDeprecated()); + } +}; + +} // namespace std + +#endif // SRC_SEM_BUILTIN_H_ diff --git a/src/sem/builtin_test.cc b/src/sem/builtin_test.cc new file mode 100644 index 0000000000..e646404467 --- /dev/null +++ b/src/sem/builtin_test.cc @@ -0,0 +1,131 @@ +// Copyright 2021 The Tint Authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "src/sem/builtin.h" + +#include "gtest/gtest.h" + +namespace tint { +namespace sem { +namespace { + +struct BuiltinData { + const char* name; + BuiltinType builtin; +}; + +inline std::ostream& operator<<(std::ostream& out, BuiltinData data) { + out << data.name; + return out; +} + +using BuiltinTypeTest = testing::TestWithParam; + +TEST_P(BuiltinTypeTest, Parse) { + auto param = GetParam(); + EXPECT_EQ(ParseBuiltinType(param.name), param.builtin); +} + +INSTANTIATE_TEST_SUITE_P( + BuiltinTypeTest, + BuiltinTypeTest, + testing::Values( + BuiltinData{"abs", BuiltinType::kAbs}, + BuiltinData{"acos", BuiltinType::kAcos}, + BuiltinData{"all", BuiltinType::kAll}, + BuiltinData{"any", BuiltinType::kAny}, + BuiltinData{"arrayLength", BuiltinType::kArrayLength}, + BuiltinData{"asin", BuiltinType::kAsin}, + BuiltinData{"atan", BuiltinType::kAtan}, + BuiltinData{"atan2", BuiltinType::kAtan2}, + BuiltinData{"ceil", BuiltinType::kCeil}, + BuiltinData{"clamp", BuiltinType::kClamp}, + BuiltinData{"cos", BuiltinType::kCos}, + BuiltinData{"cosh", BuiltinType::kCosh}, + BuiltinData{"countOneBits", BuiltinType::kCountOneBits}, + BuiltinData{"cross", BuiltinType::kCross}, + BuiltinData{"determinant", BuiltinType::kDeterminant}, + BuiltinData{"distance", BuiltinType::kDistance}, + BuiltinData{"dot", BuiltinType::kDot}, + BuiltinData{"dpdx", BuiltinType::kDpdx}, + BuiltinData{"dpdxCoarse", BuiltinType::kDpdxCoarse}, + BuiltinData{"dpdxFine", BuiltinType::kDpdxFine}, + BuiltinData{"dpdy", BuiltinType::kDpdy}, + BuiltinData{"dpdyCoarse", BuiltinType::kDpdyCoarse}, + BuiltinData{"dpdyFine", BuiltinType::kDpdyFine}, + BuiltinData{"exp", BuiltinType::kExp}, + BuiltinData{"exp2", BuiltinType::kExp2}, + BuiltinData{"faceForward", BuiltinType::kFaceForward}, + BuiltinData{"floor", BuiltinType::kFloor}, + BuiltinData{"fma", BuiltinType::kFma}, + BuiltinData{"fract", BuiltinType::kFract}, + BuiltinData{"frexp", BuiltinType::kFrexp}, + BuiltinData{"fwidth", BuiltinType::kFwidth}, + BuiltinData{"fwidthCoarse", BuiltinType::kFwidthCoarse}, + BuiltinData{"fwidthFine", BuiltinType::kFwidthFine}, + BuiltinData{"inverseSqrt", BuiltinType::kInverseSqrt}, + BuiltinData{"isFinite", BuiltinType::kIsFinite}, + BuiltinData{"isInf", BuiltinType::kIsInf}, + BuiltinData{"isNan", BuiltinType::kIsNan}, + BuiltinData{"isNormal", BuiltinType::kIsNormal}, + BuiltinData{"ldexp", BuiltinType::kLdexp}, + BuiltinData{"length", BuiltinType::kLength}, + BuiltinData{"log", BuiltinType::kLog}, + BuiltinData{"log2", BuiltinType::kLog2}, + BuiltinData{"max", BuiltinType::kMax}, + BuiltinData{"min", BuiltinType::kMin}, + BuiltinData{"mix", BuiltinType::kMix}, + BuiltinData{"modf", BuiltinType::kModf}, + BuiltinData{"normalize", BuiltinType::kNormalize}, + BuiltinData{"pow", BuiltinType::kPow}, + BuiltinData{"reflect", BuiltinType::kReflect}, + BuiltinData{"reverseBits", BuiltinType::kReverseBits}, + BuiltinData{"round", BuiltinType::kRound}, + BuiltinData{"select", BuiltinType::kSelect}, + BuiltinData{"sign", BuiltinType::kSign}, + BuiltinData{"sin", BuiltinType::kSin}, + BuiltinData{"sinh", BuiltinType::kSinh}, + BuiltinData{"smoothStep", BuiltinType::kSmoothStep}, + BuiltinData{"sqrt", BuiltinType::kSqrt}, + BuiltinData{"step", BuiltinType::kStep}, + BuiltinData{"storageBarrier", BuiltinType::kStorageBarrier}, + BuiltinData{"tan", BuiltinType::kTan}, + BuiltinData{"tanh", BuiltinType::kTanh}, + BuiltinData{"textureDimensions", BuiltinType::kTextureDimensions}, + BuiltinData{"textureLoad", BuiltinType::kTextureLoad}, + BuiltinData{"textureNumLayers", BuiltinType::kTextureNumLayers}, + BuiltinData{"textureNumLevels", BuiltinType::kTextureNumLevels}, + BuiltinData{"textureNumSamples", BuiltinType::kTextureNumSamples}, + BuiltinData{"textureSample", BuiltinType::kTextureSample}, + BuiltinData{"textureSampleBias", BuiltinType::kTextureSampleBias}, + BuiltinData{"textureSampleCompare", BuiltinType::kTextureSampleCompare}, + BuiltinData{"textureSampleCompareLevel", + BuiltinType::kTextureSampleCompareLevel}, + BuiltinData{"textureSampleGrad", BuiltinType::kTextureSampleGrad}, + BuiltinData{"textureSampleLevel", BuiltinType::kTextureSampleLevel}, + BuiltinData{"trunc", BuiltinType::kTrunc}, + BuiltinData{"unpack2x16float", BuiltinType::kUnpack2x16float}, + BuiltinData{"unpack2x16snorm", BuiltinType::kUnpack2x16snorm}, + BuiltinData{"unpack2x16unorm", BuiltinType::kUnpack2x16unorm}, + BuiltinData{"unpack4x8snorm", BuiltinType::kUnpack4x8snorm}, + BuiltinData{"unpack4x8unorm", BuiltinType::kUnpack4x8unorm}, + BuiltinData{"workgroupBarrier", BuiltinType::kWorkgroupBarrier})); + +TEST_F(BuiltinTypeTest, ParseNoMatch) { + EXPECT_EQ(ParseBuiltinType("not_builtin"), BuiltinType::kNone); +} + +} // namespace +} // namespace sem +} // namespace tint diff --git a/src/sem/builtin_type.cc b/src/sem/builtin_type.cc new file mode 100644 index 0000000000..3145f0af82 --- /dev/null +++ b/src/sem/builtin_type.cc @@ -0,0 +1,560 @@ +// Copyright 2021 The Tint Authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//////////////////////////////////////////////////////////////////////////////// +// File generated by tools/builtin-gen +// using the template: +// src/sem/builtin_type.cc.tmpl +// and the builtin defintion file: +// src/builtins.def +// +// Do not modify this file directly +//////////////////////////////////////////////////////////////////////////////// + +#include "src/sem/builtin_type.h" + +#include + +namespace tint { +namespace sem { + +BuiltinType ParseBuiltinType(const std::string& name) { + if (name == "abs") { + return BuiltinType::kAbs; + } + if (name == "acos") { + return BuiltinType::kAcos; + } + if (name == "all") { + return BuiltinType::kAll; + } + if (name == "any") { + return BuiltinType::kAny; + } + if (name == "arrayLength") { + return BuiltinType::kArrayLength; + } + if (name == "asin") { + return BuiltinType::kAsin; + } + if (name == "atan") { + return BuiltinType::kAtan; + } + if (name == "atan2") { + return BuiltinType::kAtan2; + } + if (name == "ceil") { + return BuiltinType::kCeil; + } + if (name == "clamp") { + return BuiltinType::kClamp; + } + if (name == "cos") { + return BuiltinType::kCos; + } + if (name == "cosh") { + return BuiltinType::kCosh; + } + if (name == "countOneBits") { + return BuiltinType::kCountOneBits; + } + if (name == "cross") { + return BuiltinType::kCross; + } + if (name == "degrees") { + return BuiltinType::kDegrees; + } + if (name == "determinant") { + return BuiltinType::kDeterminant; + } + if (name == "distance") { + return BuiltinType::kDistance; + } + if (name == "dot") { + return BuiltinType::kDot; + } + if (name == "dpdx") { + return BuiltinType::kDpdx; + } + if (name == "dpdxCoarse") { + return BuiltinType::kDpdxCoarse; + } + if (name == "dpdxFine") { + return BuiltinType::kDpdxFine; + } + if (name == "dpdy") { + return BuiltinType::kDpdy; + } + if (name == "dpdyCoarse") { + return BuiltinType::kDpdyCoarse; + } + if (name == "dpdyFine") { + return BuiltinType::kDpdyFine; + } + if (name == "exp") { + return BuiltinType::kExp; + } + if (name == "exp2") { + return BuiltinType::kExp2; + } + if (name == "faceForward") { + return BuiltinType::kFaceForward; + } + if (name == "floor") { + return BuiltinType::kFloor; + } + if (name == "fma") { + return BuiltinType::kFma; + } + if (name == "fract") { + return BuiltinType::kFract; + } + if (name == "frexp") { + return BuiltinType::kFrexp; + } + if (name == "fwidth") { + return BuiltinType::kFwidth; + } + if (name == "fwidthCoarse") { + return BuiltinType::kFwidthCoarse; + } + if (name == "fwidthFine") { + return BuiltinType::kFwidthFine; + } + if (name == "inverseSqrt") { + return BuiltinType::kInverseSqrt; + } + if (name == "isFinite") { + return BuiltinType::kIsFinite; + } + if (name == "isInf") { + return BuiltinType::kIsInf; + } + if (name == "isNan") { + return BuiltinType::kIsNan; + } + if (name == "isNormal") { + return BuiltinType::kIsNormal; + } + if (name == "ldexp") { + return BuiltinType::kLdexp; + } + if (name == "length") { + return BuiltinType::kLength; + } + if (name == "log") { + return BuiltinType::kLog; + } + if (name == "log2") { + return BuiltinType::kLog2; + } + if (name == "max") { + return BuiltinType::kMax; + } + if (name == "min") { + return BuiltinType::kMin; + } + if (name == "mix") { + return BuiltinType::kMix; + } + if (name == "modf") { + return BuiltinType::kModf; + } + if (name == "normalize") { + return BuiltinType::kNormalize; + } + if (name == "pack2x16float") { + return BuiltinType::kPack2x16float; + } + if (name == "pack2x16snorm") { + return BuiltinType::kPack2x16snorm; + } + if (name == "pack2x16unorm") { + return BuiltinType::kPack2x16unorm; + } + if (name == "pack4x8snorm") { + return BuiltinType::kPack4x8snorm; + } + if (name == "pack4x8unorm") { + return BuiltinType::kPack4x8unorm; + } + if (name == "pow") { + return BuiltinType::kPow; + } + if (name == "radians") { + return BuiltinType::kRadians; + } + if (name == "reflect") { + return BuiltinType::kReflect; + } + if (name == "refract") { + return BuiltinType::kRefract; + } + if (name == "reverseBits") { + return BuiltinType::kReverseBits; + } + if (name == "round") { + return BuiltinType::kRound; + } + if (name == "select") { + return BuiltinType::kSelect; + } + if (name == "sign") { + return BuiltinType::kSign; + } + if (name == "sin") { + return BuiltinType::kSin; + } + if (name == "sinh") { + return BuiltinType::kSinh; + } + if (name == "smoothStep") { + return BuiltinType::kSmoothStep; + } + if (name == "sqrt") { + return BuiltinType::kSqrt; + } + if (name == "step") { + return BuiltinType::kStep; + } + if (name == "storageBarrier") { + return BuiltinType::kStorageBarrier; + } + if (name == "tan") { + return BuiltinType::kTan; + } + if (name == "tanh") { + return BuiltinType::kTanh; + } + if (name == "transpose") { + return BuiltinType::kTranspose; + } + if (name == "trunc") { + return BuiltinType::kTrunc; + } + if (name == "unpack2x16float") { + return BuiltinType::kUnpack2x16float; + } + if (name == "unpack2x16snorm") { + return BuiltinType::kUnpack2x16snorm; + } + if (name == "unpack2x16unorm") { + return BuiltinType::kUnpack2x16unorm; + } + if (name == "unpack4x8snorm") { + return BuiltinType::kUnpack4x8snorm; + } + if (name == "unpack4x8unorm") { + return BuiltinType::kUnpack4x8unorm; + } + if (name == "workgroupBarrier") { + return BuiltinType::kWorkgroupBarrier; + } + if (name == "textureDimensions") { + return BuiltinType::kTextureDimensions; + } + if (name == "textureGather") { + return BuiltinType::kTextureGather; + } + if (name == "textureGatherCompare") { + return BuiltinType::kTextureGatherCompare; + } + if (name == "textureNumLayers") { + return BuiltinType::kTextureNumLayers; + } + if (name == "textureNumLevels") { + return BuiltinType::kTextureNumLevels; + } + if (name == "textureNumSamples") { + return BuiltinType::kTextureNumSamples; + } + if (name == "textureSample") { + return BuiltinType::kTextureSample; + } + if (name == "textureSampleBias") { + return BuiltinType::kTextureSampleBias; + } + if (name == "textureSampleCompare") { + return BuiltinType::kTextureSampleCompare; + } + if (name == "textureSampleCompareLevel") { + return BuiltinType::kTextureSampleCompareLevel; + } + if (name == "textureSampleGrad") { + return BuiltinType::kTextureSampleGrad; + } + if (name == "textureSampleLevel") { + return BuiltinType::kTextureSampleLevel; + } + if (name == "textureStore") { + return BuiltinType::kTextureStore; + } + if (name == "textureLoad") { + return BuiltinType::kTextureLoad; + } + if (name == "atomicLoad") { + return BuiltinType::kAtomicLoad; + } + if (name == "atomicStore") { + return BuiltinType::kAtomicStore; + } + if (name == "atomicAdd") { + return BuiltinType::kAtomicAdd; + } + if (name == "atomicSub") { + return BuiltinType::kAtomicSub; + } + if (name == "atomicMax") { + return BuiltinType::kAtomicMax; + } + if (name == "atomicMin") { + return BuiltinType::kAtomicMin; + } + if (name == "atomicAnd") { + return BuiltinType::kAtomicAnd; + } + if (name == "atomicOr") { + return BuiltinType::kAtomicOr; + } + if (name == "atomicXor") { + return BuiltinType::kAtomicXor; + } + if (name == "atomicExchange") { + return BuiltinType::kAtomicExchange; + } + if (name == "atomicCompareExchangeWeak") { + return BuiltinType::kAtomicCompareExchangeWeak; + } + return BuiltinType::kNone; +} + +const char* str(BuiltinType i) { + switch (i) { + case BuiltinType::kNone: + return ""; + case BuiltinType::kAbs: + return "abs"; + case BuiltinType::kAcos: + return "acos"; + case BuiltinType::kAll: + return "all"; + case BuiltinType::kAny: + return "any"; + case BuiltinType::kArrayLength: + return "arrayLength"; + case BuiltinType::kAsin: + return "asin"; + case BuiltinType::kAtan: + return "atan"; + case BuiltinType::kAtan2: + return "atan2"; + case BuiltinType::kCeil: + return "ceil"; + case BuiltinType::kClamp: + return "clamp"; + case BuiltinType::kCos: + return "cos"; + case BuiltinType::kCosh: + return "cosh"; + case BuiltinType::kCountOneBits: + return "countOneBits"; + case BuiltinType::kCross: + return "cross"; + case BuiltinType::kDegrees: + return "degrees"; + case BuiltinType::kDeterminant: + return "determinant"; + case BuiltinType::kDistance: + return "distance"; + case BuiltinType::kDot: + return "dot"; + case BuiltinType::kDpdx: + return "dpdx"; + case BuiltinType::kDpdxCoarse: + return "dpdxCoarse"; + case BuiltinType::kDpdxFine: + return "dpdxFine"; + case BuiltinType::kDpdy: + return "dpdy"; + case BuiltinType::kDpdyCoarse: + return "dpdyCoarse"; + case BuiltinType::kDpdyFine: + return "dpdyFine"; + case BuiltinType::kExp: + return "exp"; + case BuiltinType::kExp2: + return "exp2"; + case BuiltinType::kFaceForward: + return "faceForward"; + case BuiltinType::kFloor: + return "floor"; + case BuiltinType::kFma: + return "fma"; + case BuiltinType::kFract: + return "fract"; + case BuiltinType::kFrexp: + return "frexp"; + case BuiltinType::kFwidth: + return "fwidth"; + case BuiltinType::kFwidthCoarse: + return "fwidthCoarse"; + case BuiltinType::kFwidthFine: + return "fwidthFine"; + case BuiltinType::kInverseSqrt: + return "inverseSqrt"; + case BuiltinType::kIsFinite: + return "isFinite"; + case BuiltinType::kIsInf: + return "isInf"; + case BuiltinType::kIsNan: + return "isNan"; + case BuiltinType::kIsNormal: + return "isNormal"; + case BuiltinType::kLdexp: + return "ldexp"; + case BuiltinType::kLength: + return "length"; + case BuiltinType::kLog: + return "log"; + case BuiltinType::kLog2: + return "log2"; + case BuiltinType::kMax: + return "max"; + case BuiltinType::kMin: + return "min"; + case BuiltinType::kMix: + return "mix"; + case BuiltinType::kModf: + return "modf"; + case BuiltinType::kNormalize: + return "normalize"; + case BuiltinType::kPack2x16float: + return "pack2x16float"; + case BuiltinType::kPack2x16snorm: + return "pack2x16snorm"; + case BuiltinType::kPack2x16unorm: + return "pack2x16unorm"; + case BuiltinType::kPack4x8snorm: + return "pack4x8snorm"; + case BuiltinType::kPack4x8unorm: + return "pack4x8unorm"; + case BuiltinType::kPow: + return "pow"; + case BuiltinType::kRadians: + return "radians"; + case BuiltinType::kReflect: + return "reflect"; + case BuiltinType::kRefract: + return "refract"; + case BuiltinType::kReverseBits: + return "reverseBits"; + case BuiltinType::kRound: + return "round"; + case BuiltinType::kSelect: + return "select"; + case BuiltinType::kSign: + return "sign"; + case BuiltinType::kSin: + return "sin"; + case BuiltinType::kSinh: + return "sinh"; + case BuiltinType::kSmoothStep: + return "smoothStep"; + case BuiltinType::kSqrt: + return "sqrt"; + case BuiltinType::kStep: + return "step"; + case BuiltinType::kStorageBarrier: + return "storageBarrier"; + case BuiltinType::kTan: + return "tan"; + case BuiltinType::kTanh: + return "tanh"; + case BuiltinType::kTranspose: + return "transpose"; + case BuiltinType::kTrunc: + return "trunc"; + case BuiltinType::kUnpack2x16float: + return "unpack2x16float"; + case BuiltinType::kUnpack2x16snorm: + return "unpack2x16snorm"; + case BuiltinType::kUnpack2x16unorm: + return "unpack2x16unorm"; + case BuiltinType::kUnpack4x8snorm: + return "unpack4x8snorm"; + case BuiltinType::kUnpack4x8unorm: + return "unpack4x8unorm"; + case BuiltinType::kWorkgroupBarrier: + return "workgroupBarrier"; + case BuiltinType::kTextureDimensions: + return "textureDimensions"; + case BuiltinType::kTextureGather: + return "textureGather"; + case BuiltinType::kTextureGatherCompare: + return "textureGatherCompare"; + case BuiltinType::kTextureNumLayers: + return "textureNumLayers"; + case BuiltinType::kTextureNumLevels: + return "textureNumLevels"; + case BuiltinType::kTextureNumSamples: + return "textureNumSamples"; + case BuiltinType::kTextureSample: + return "textureSample"; + case BuiltinType::kTextureSampleBias: + return "textureSampleBias"; + case BuiltinType::kTextureSampleCompare: + return "textureSampleCompare"; + case BuiltinType::kTextureSampleCompareLevel: + return "textureSampleCompareLevel"; + case BuiltinType::kTextureSampleGrad: + return "textureSampleGrad"; + case BuiltinType::kTextureSampleLevel: + return "textureSampleLevel"; + case BuiltinType::kTextureStore: + return "textureStore"; + case BuiltinType::kTextureLoad: + return "textureLoad"; + case BuiltinType::kAtomicLoad: + return "atomicLoad"; + case BuiltinType::kAtomicStore: + return "atomicStore"; + case BuiltinType::kAtomicAdd: + return "atomicAdd"; + case BuiltinType::kAtomicSub: + return "atomicSub"; + case BuiltinType::kAtomicMax: + return "atomicMax"; + case BuiltinType::kAtomicMin: + return "atomicMin"; + case BuiltinType::kAtomicAnd: + return "atomicAnd"; + case BuiltinType::kAtomicOr: + return "atomicOr"; + case BuiltinType::kAtomicXor: + return "atomicXor"; + case BuiltinType::kAtomicExchange: + return "atomicExchange"; + case BuiltinType::kAtomicCompareExchangeWeak: + return "atomicCompareExchangeWeak"; + } + return ""; +} + +std::ostream& operator<<(std::ostream& out, BuiltinType i) { + out << str(i); + return out; +} + +} // namespace sem +} // namespace tint diff --git a/src/sem/intrinsic_type.cc.tmpl b/src/sem/builtin_type.cc.tmpl similarity index 55% rename from src/sem/intrinsic_type.cc.tmpl rename to src/sem/builtin_type.cc.tmpl index f02c13f076..aca86fa862 100644 --- a/src/sem/intrinsic_type.cc.tmpl +++ b/src/sem/builtin_type.cc.tmpl @@ -1,42 +1,42 @@ {{- /* -------------------------------------------------------------------------------- -Template file for use with tools/intrinsic-gen to generate intrinsic_type.cc +Template file for use with tools/builtin-gen to generate builtin_type.cc See: -* tools/cmd/intrinsic-gen/gen for structures used by this template +* tools/cmd/builtin-gen/gen for structures used by this template * https://golang.org/pkg/text/template/ for documentation on the template syntax -------------------------------------------------------------------------------- */ -}} -#include "src/sem/intrinsic_type.h" +#include "src/sem/builtin_type.h" #include namespace tint { namespace sem { -IntrinsicType ParseIntrinsicType(const std::string& name) { +BuiltinType ParseBuiltinType(const std::string& name) { {{- range .Sem.Functions }} if (name == "{{.Name}}") { - return IntrinsicType::k{{Title .Name}}; + return BuiltinType::k{{Title .Name}}; } {{- end }} - return IntrinsicType::kNone; + return BuiltinType::kNone; } -const char* str(IntrinsicType i) { +const char* str(BuiltinType i) { switch (i) { - case IntrinsicType::kNone: + case BuiltinType::kNone: return ""; {{- range .Sem.Functions }} - case IntrinsicType::k{{Title .Name}}: + case BuiltinType::k{{Title .Name}}: return "{{.Name}}"; {{- end }} } return ""; } -std::ostream& operator<<(std::ostream& out, IntrinsicType i) { +std::ostream& operator<<(std::ostream& out, BuiltinType i) { out << str(i); return out; } diff --git a/src/sem/intrinsic_type.h b/src/sem/builtin_type.h similarity index 75% rename from src/sem/intrinsic_type.h rename to src/sem/builtin_type.h index 64df9a4c13..3055fb75ba 100644 --- a/src/sem/intrinsic_type.h +++ b/src/sem/builtin_type.h @@ -13,17 +13,17 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// src/sem/intrinsic_type.h.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// src/sem/builtin_type.h.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// -#ifndef SRC_SEM_INTRINSIC_TYPE_H_ -#define SRC_SEM_INTRINSIC_TYPE_H_ +#ifndef SRC_SEM_BUILTIN_TYPE_H_ +#define SRC_SEM_BUILTIN_TYPE_H_ #include #include @@ -31,8 +31,8 @@ namespace tint { namespace sem { -/// Enumerator of all intrinsic functions -enum class IntrinsicType { +/// Enumerator of all builtin functions +enum class BuiltinType { kNone = -1, kAbs, kAcos, @@ -138,21 +138,21 @@ enum class IntrinsicType { kAtomicCompareExchangeWeak, }; -/// Matches the IntrinsicType by name -/// @param name the intrinsic name to parse -/// @returns the parsed IntrinsicType, or IntrinsicType::kNone if `name` did not -/// match any intrinsic. -IntrinsicType ParseIntrinsicType(const std::string& name); +/// Matches the BuiltinType by name +/// @param name the builtin name to parse +/// @returns the parsed BuiltinType, or BuiltinType::kNone if `name` did not +/// match any builtin. +BuiltinType ParseBuiltinType(const std::string& name); -/// @returns the name of the intrinsic function type. The spelling, including +/// @returns the name of the builtin function type. The spelling, including /// case, matches the name in the WGSL spec. -const char* str(IntrinsicType i); +const char* str(BuiltinType i); -/// Emits the name of the intrinsic function type. The spelling, including case, +/// Emits the name of the builtin function type. The spelling, including case, /// matches the name in the WGSL spec. -std::ostream& operator<<(std::ostream& out, IntrinsicType i); +std::ostream& operator<<(std::ostream& out, BuiltinType i); } // namespace sem } // namespace tint -#endif // SRC_SEM_INTRINSIC_TYPE_H_ +#endif // SRC_SEM_BUILTIN_TYPE_H_ diff --git a/src/sem/builtin_type.h.tmpl b/src/sem/builtin_type.h.tmpl new file mode 100644 index 0000000000..5610be35a0 --- /dev/null +++ b/src/sem/builtin_type.h.tmpl @@ -0,0 +1,45 @@ +{{- /* +-------------------------------------------------------------------------------- +Template file for use with tools/builtin-gen to generate builtin_type.h + +See: +* tools/cmd/builtin-gen/gen for structures used by this template +* https://golang.org/pkg/text/template/ for documentation on the template syntax +-------------------------------------------------------------------------------- +*/ -}} + +#ifndef SRC_SEM_BUILTIN_TYPE_H_ +#define SRC_SEM_BUILTIN_TYPE_H_ + +#include +#include + +namespace tint { +namespace sem { + +/// Enumerator of all builtin functions +enum class BuiltinType { + kNone = -1, +{{- range .Sem.Functions }} + k{{Title .Name}}, +{{- end }} +}; + +/// Matches the BuiltinType by name +/// @param name the builtin name to parse +/// @returns the parsed BuiltinType, or BuiltinType::kNone if `name` did not +/// match any builtin. +BuiltinType ParseBuiltinType(const std::string& name); + +/// @returns the name of the builtin function type. The spelling, including +/// case, matches the name in the WGSL spec. +const char* str(BuiltinType i); + +/// Emits the name of the builtin function type. The spelling, including case, +/// matches the name in the WGSL spec. +std::ostream& operator<<(std::ostream& out, BuiltinType i); + +} // namespace sem +} // namespace tint + +#endif // SRC_SEM_BUILTIN_TYPE_H_ diff --git a/src/sem/call.h b/src/sem/call.h index adae212712..bcf8689bbe 100644 --- a/src/sem/call.h +++ b/src/sem/call.h @@ -17,8 +17,8 @@ #include +#include "src/sem/builtin.h" #include "src/sem/expression.h" -#include "src/sem/intrinsic.h" namespace tint { namespace sem { diff --git a/src/sem/call_target.h b/src/sem/call_target.h index 0281d5a16d..ea8bdcbb10 100644 --- a/src/sem/call_target.h +++ b/src/sem/call_target.h @@ -56,7 +56,7 @@ struct CallTargetSignature { int IndexOf(ParameterUsage usage) const; }; -/// CallTarget is the base for callable functions, intrinsics, type constructors +/// CallTarget is the base for callable functions, builtins, type constructors /// and type casts. class CallTarget : public Castable { public: diff --git a/src/sem/function.h b/src/sem/function.h index 022f2fe2b6..62a591b997 100644 --- a/src/sem/function.h +++ b/src/sem/function.h @@ -35,7 +35,7 @@ class ReturnStatement; namespace sem { -class Intrinsic; +class Builtin; class Variable; /// WorkgroupDimension describes the size of a single dimension of an entry @@ -120,16 +120,15 @@ class Function : public Castable { transitively_called_functions_.add(function); } - /// @returns the list of intrinsics that this function directly calls. - const utils::UniqueVector& DirectlyCalledIntrinsics() - const { - return directly_called_intrinsics_; + /// @returns the list of builtins that this function directly calls. + const utils::UniqueVector& DirectlyCalledBuiltins() const { + return directly_called_builtins_; } - /// Records that this function transitively calls `intrinsic`. - /// @param intrinsic the intrinsic this function directly calls - void AddDirectlyCalledIntrinsic(const Intrinsic* intrinsic) { - directly_called_intrinsics_.add(intrinsic); + /// Records that this function transitively calls `builtin`. + /// @param builtin the builtin this function directly calls + void AddDirectlyCalledBuiltin(const Builtin* builtin) { + directly_called_builtins_.add(builtin); } /// Adds the given texture/sampler pair to the list of unique pairs @@ -149,13 +148,13 @@ class Function : public Castable { return texture_sampler_pairs_; } - /// @returns the list of direct calls to functions / intrinsics made by this + /// @returns the list of direct calls to functions / builtins made by this /// function std::vector DirectCallStatements() const { return direct_calls_; } - /// Adds a record of the direct function / intrinsic calls made by this + /// Adds a record of the direct function / builtin calls made by this /// function /// @param call the call void AddDirectCall(const Call* call) { direct_calls_.emplace_back(call); } @@ -275,7 +274,7 @@ class Function : public Castable { utils::UniqueVector directly_referenced_globals_; utils::UniqueVector transitively_referenced_globals_; utils::UniqueVector transitively_called_functions_; - utils::UniqueVector directly_called_intrinsics_; + utils::UniqueVector directly_called_builtins_; utils::UniqueVector texture_sampler_pairs_; std::vector direct_calls_; std::vector callsites_; diff --git a/src/sem/intrinsic.cc b/src/sem/intrinsic.cc deleted file mode 100644 index bc90549ab5..0000000000 --- a/src/sem/intrinsic.cc +++ /dev/null @@ -1,163 +0,0 @@ -// Copyright 2020 The Tint Authors. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#include "src/sem/intrinsic.h" - -#include - -#include "src/utils/to_const_ptr_vec.h" - -TINT_INSTANTIATE_TYPEINFO(tint::sem::Intrinsic); - -namespace tint { -namespace sem { - -const char* Intrinsic::str() const { - return sem::str(type_); -} - -bool IsCoarseDerivativeIntrinsic(IntrinsicType i) { - return i == IntrinsicType::kDpdxCoarse || i == IntrinsicType::kDpdyCoarse || - i == IntrinsicType::kFwidthCoarse; -} - -bool IsFineDerivativeIntrinsic(IntrinsicType i) { - return i == IntrinsicType::kDpdxFine || i == IntrinsicType::kDpdyFine || - i == IntrinsicType::kFwidthFine; -} - -bool IsDerivativeIntrinsic(IntrinsicType i) { - return i == IntrinsicType::kDpdx || i == IntrinsicType::kDpdy || - i == IntrinsicType::kFwidth || IsCoarseDerivativeIntrinsic(i) || - IsFineDerivativeIntrinsic(i); -} - -bool IsFloatClassificationIntrinsic(IntrinsicType i) { - return i == IntrinsicType::kIsFinite || i == IntrinsicType::kIsInf || - i == IntrinsicType::kIsNan || i == IntrinsicType::kIsNormal; -} - -bool IsTextureIntrinsic(IntrinsicType i) { - return IsImageQueryIntrinsic(i) || i == IntrinsicType::kTextureLoad || - i == IntrinsicType::kTextureGather || - i == IntrinsicType::kTextureGatherCompare || - i == IntrinsicType::kTextureSample || - i == IntrinsicType::kTextureSampleLevel || - i == IntrinsicType::kTextureSampleBias || - i == IntrinsicType::kTextureSampleCompare || - i == IntrinsicType::kTextureSampleCompareLevel || - i == IntrinsicType::kTextureSampleGrad || - i == IntrinsicType::kTextureStore; -} - -bool IsImageQueryIntrinsic(IntrinsicType i) { - return i == IntrinsicType::kTextureDimensions || - i == IntrinsicType::kTextureNumLayers || - i == IntrinsicType::kTextureNumLevels || - i == IntrinsicType::kTextureNumSamples; -} - -bool IsDataPackingIntrinsic(IntrinsicType i) { - return i == IntrinsicType::kPack4x8snorm || - i == IntrinsicType::kPack4x8unorm || - i == IntrinsicType::kPack2x16snorm || - i == IntrinsicType::kPack2x16unorm || - i == IntrinsicType::kPack2x16float; -} - -bool IsDataUnpackingIntrinsic(IntrinsicType i) { - return i == IntrinsicType::kUnpack4x8snorm || - i == IntrinsicType::kUnpack4x8unorm || - i == IntrinsicType::kUnpack2x16snorm || - i == IntrinsicType::kUnpack2x16unorm || - i == IntrinsicType::kUnpack2x16float; -} - -bool IsBarrierIntrinsic(IntrinsicType i) { - return i == IntrinsicType::kWorkgroupBarrier || - i == IntrinsicType::kStorageBarrier; -} - -bool IsAtomicIntrinsic(IntrinsicType i) { - return i == sem::IntrinsicType::kAtomicLoad || - i == sem::IntrinsicType::kAtomicStore || - i == sem::IntrinsicType::kAtomicAdd || - i == sem::IntrinsicType::kAtomicSub || - i == sem::IntrinsicType::kAtomicMax || - i == sem::IntrinsicType::kAtomicMin || - i == sem::IntrinsicType::kAtomicAnd || - i == sem::IntrinsicType::kAtomicOr || - i == sem::IntrinsicType::kAtomicXor || - i == sem::IntrinsicType::kAtomicExchange || - i == sem::IntrinsicType::kAtomicCompareExchangeWeak; -} - -Intrinsic::Intrinsic(IntrinsicType type, - const sem::Type* return_type, - std::vector parameters, - PipelineStageSet supported_stages, - bool is_deprecated) - : Base(return_type, utils::ToConstPtrVec(parameters)), - type_(type), - supported_stages_(supported_stages), - is_deprecated_(is_deprecated) { - for (auto* parameter : parameters) { - parameter->SetOwner(this); - } -} - -Intrinsic::~Intrinsic() = default; - -bool Intrinsic::IsCoarseDerivative() const { - return IsCoarseDerivativeIntrinsic(type_); -} - -bool Intrinsic::IsFineDerivative() const { - return IsFineDerivativeIntrinsic(type_); -} - -bool Intrinsic::IsDerivative() const { - return IsDerivativeIntrinsic(type_); -} - -bool Intrinsic::IsFloatClassification() const { - return IsFloatClassificationIntrinsic(type_); -} - -bool Intrinsic::IsTexture() const { - return IsTextureIntrinsic(type_); -} - -bool Intrinsic::IsImageQuery() const { - return IsImageQueryIntrinsic(type_); -} - -bool Intrinsic::IsDataPacking() const { - return IsDataPackingIntrinsic(type_); -} - -bool Intrinsic::IsDataUnpacking() const { - return IsDataUnpackingIntrinsic(type_); -} - -bool Intrinsic::IsBarrier() const { - return IsBarrierIntrinsic(type_); -} - -bool Intrinsic::IsAtomic() const { - return IsAtomicIntrinsic(type_); -} - -} // namespace sem -} // namespace tint diff --git a/src/sem/intrinsic.h b/src/sem/intrinsic.h deleted file mode 100644 index dc19243d8e..0000000000 --- a/src/sem/intrinsic.h +++ /dev/null @@ -1,173 +0,0 @@ -// Copyright 2020 The Tint Authors. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef SRC_SEM_INTRINSIC_H_ -#define SRC_SEM_INTRINSIC_H_ - -#include -#include - -#include "src/sem/call_target.h" -#include "src/sem/intrinsic_type.h" -#include "src/sem/pipeline_stage_set.h" -#include "src/utils/hash.h" - -namespace tint { -namespace sem { - -/// Determines if the given `i` is a coarse derivative -/// @param i the intrinsic type -/// @returns true if the given derivative is coarse. -bool IsCoarseDerivativeIntrinsic(IntrinsicType i); - -/// Determines if the given `i` is a fine derivative -/// @param i the intrinsic type -/// @returns true if the given derivative is fine. -bool IsFineDerivativeIntrinsic(IntrinsicType i); - -/// Determine if the given `i` is a derivative intrinsic -/// @param i the intrinsic type -/// @returns true if the given `i` is a derivative intrinsic -bool IsDerivativeIntrinsic(IntrinsicType i); - -/// Determines if the given `i` is a float classification intrinsic -/// @param i the intrinsic type -/// @returns true if the given `i` is a float intrinsic -bool IsFloatClassificationIntrinsic(IntrinsicType i); - -/// Determines if the given `i` is a texture operation intrinsic -/// @param i the intrinsic type -/// @returns true if the given `i` is a texture operation intrinsic -bool IsTextureIntrinsic(IntrinsicType i); - -/// Determines if the given `i` is a image query intrinsic -/// @param i the intrinsic type -/// @returns true if the given `i` is a image query intrinsic -bool IsImageQueryIntrinsic(IntrinsicType i); - -/// Determines if the given `i` is a data packing intrinsic -/// @param i the intrinsic -/// @returns true if the given `i` is a data packing intrinsic -bool IsDataPackingIntrinsic(IntrinsicType i); - -/// Determines if the given `i` is a data unpacking intrinsic -/// @param i the intrinsic -/// @returns true if the given `i` is a data unpacking intrinsic -bool IsDataUnpackingIntrinsic(IntrinsicType i); - -/// Determines if the given `i` is a barrier intrinsic -/// @param i the intrinsic -/// @returns true if the given `i` is a barrier intrinsic -bool IsBarrierIntrinsic(IntrinsicType i); - -/// Determines if the given `i` is a atomic intrinsic -/// @param i the intrinsic -/// @returns true if the given `i` is a atomic intrinsic -bool IsAtomicIntrinsic(IntrinsicType i); - -/// Intrinsic holds the semantic information for an intrinsic function. -class Intrinsic : public Castable { - public: - /// Constructor - /// @param type the intrinsic type - /// @param return_type the return type for the intrinsic call - /// @param parameters the parameters for the intrinsic overload - /// @param supported_stages the pipeline stages that this intrinsic can be - /// used in - /// @param is_deprecated true if the particular overload is considered - /// deprecated - Intrinsic(IntrinsicType type, - const sem::Type* return_type, - std::vector parameters, - PipelineStageSet supported_stages, - bool is_deprecated); - - /// Destructor - ~Intrinsic() override; - - /// @return the type of the intrinsic - IntrinsicType Type() const { return type_; } - - /// @return the pipeline stages that this intrinsic can be used in - PipelineStageSet SupportedStages() const { return supported_stages_; } - - /// @return true if the intrinsic overload is considered deprecated - bool IsDeprecated() const { return is_deprecated_; } - - /// @returns the name of the intrinsic function type. The spelling, including - /// case, matches the name in the WGSL spec. - const char* str() const; - - /// @returns true if intrinsic is a coarse derivative intrinsic - bool IsCoarseDerivative() const; - - /// @returns true if intrinsic is a fine a derivative intrinsic - bool IsFineDerivative() const; - - /// @returns true if intrinsic is a derivative intrinsic - bool IsDerivative() const; - - /// @returns true if intrinsic is a float intrinsic - bool IsFloatClassification() const; - - /// @returns true if intrinsic is a texture operation intrinsic - bool IsTexture() const; - - /// @returns true if intrinsic is a image query intrinsic - bool IsImageQuery() const; - - /// @returns true if intrinsic is a data packing intrinsic - bool IsDataPacking() const; - - /// @returns true if intrinsic is a data unpacking intrinsic - bool IsDataUnpacking() const; - - /// @returns true if intrinsic is a barrier intrinsic - bool IsBarrier() const; - - /// @returns true if intrinsic is a atomic intrinsic - bool IsAtomic() const; - - private: - const IntrinsicType type_; - const PipelineStageSet supported_stages_; - const bool is_deprecated_; -}; - -/// Constant value used by the degrees() intrinsic -static constexpr double kRadToDeg = 57.295779513082322865; - -/// Constant value used by the radians() intrinsic -static constexpr double kDegToRad = 0.017453292519943295474; - -} // namespace sem -} // namespace tint - -namespace std { - -/// Custom std::hash specialization for tint::sem::Intrinsic -template <> -class hash { - public: - /// @param i the Intrinsic to create a hash for - /// @return the hash value - inline std::size_t operator()(const tint::sem::Intrinsic& i) const { - return tint::utils::Hash(i.Type(), i.SupportedStages(), i.ReturnType(), - i.Parameters(), i.IsDeprecated()); - } -}; - -} // namespace std - -#endif // SRC_SEM_INTRINSIC_H_ diff --git a/src/sem/intrinsic_test.cc b/src/sem/intrinsic_test.cc deleted file mode 100644 index 3c70087748..0000000000 --- a/src/sem/intrinsic_test.cc +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright 2021 The Tint Authors. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#include "src/sem/intrinsic.h" - -#include "gtest/gtest.h" - -namespace tint { -namespace sem { -namespace { - -struct IntrinsicData { - const char* name; - IntrinsicType intrinsic; -}; - -inline std::ostream& operator<<(std::ostream& out, IntrinsicData data) { - out << data.name; - return out; -} - -using IntrinsicTypeTest = testing::TestWithParam; - -TEST_P(IntrinsicTypeTest, Parse) { - auto param = GetParam(); - EXPECT_EQ(ParseIntrinsicType(param.name), param.intrinsic); -} - -INSTANTIATE_TEST_SUITE_P( - IntrinsicTypeTest, - IntrinsicTypeTest, - testing::Values( - IntrinsicData{"abs", IntrinsicType::kAbs}, - IntrinsicData{"acos", IntrinsicType::kAcos}, - IntrinsicData{"all", IntrinsicType::kAll}, - IntrinsicData{"any", IntrinsicType::kAny}, - IntrinsicData{"arrayLength", IntrinsicType::kArrayLength}, - IntrinsicData{"asin", IntrinsicType::kAsin}, - IntrinsicData{"atan", IntrinsicType::kAtan}, - IntrinsicData{"atan2", IntrinsicType::kAtan2}, - IntrinsicData{"ceil", IntrinsicType::kCeil}, - IntrinsicData{"clamp", IntrinsicType::kClamp}, - IntrinsicData{"cos", IntrinsicType::kCos}, - IntrinsicData{"cosh", IntrinsicType::kCosh}, - IntrinsicData{"countOneBits", IntrinsicType::kCountOneBits}, - IntrinsicData{"cross", IntrinsicType::kCross}, - IntrinsicData{"determinant", IntrinsicType::kDeterminant}, - IntrinsicData{"distance", IntrinsicType::kDistance}, - IntrinsicData{"dot", IntrinsicType::kDot}, - IntrinsicData{"dpdx", IntrinsicType::kDpdx}, - IntrinsicData{"dpdxCoarse", IntrinsicType::kDpdxCoarse}, - IntrinsicData{"dpdxFine", IntrinsicType::kDpdxFine}, - IntrinsicData{"dpdy", IntrinsicType::kDpdy}, - IntrinsicData{"dpdyCoarse", IntrinsicType::kDpdyCoarse}, - IntrinsicData{"dpdyFine", IntrinsicType::kDpdyFine}, - IntrinsicData{"exp", IntrinsicType::kExp}, - IntrinsicData{"exp2", IntrinsicType::kExp2}, - IntrinsicData{"faceForward", IntrinsicType::kFaceForward}, - IntrinsicData{"floor", IntrinsicType::kFloor}, - IntrinsicData{"fma", IntrinsicType::kFma}, - IntrinsicData{"fract", IntrinsicType::kFract}, - IntrinsicData{"frexp", IntrinsicType::kFrexp}, - IntrinsicData{"fwidth", IntrinsicType::kFwidth}, - IntrinsicData{"fwidthCoarse", IntrinsicType::kFwidthCoarse}, - IntrinsicData{"fwidthFine", IntrinsicType::kFwidthFine}, - IntrinsicData{"inverseSqrt", IntrinsicType::kInverseSqrt}, - IntrinsicData{"isFinite", IntrinsicType::kIsFinite}, - IntrinsicData{"isInf", IntrinsicType::kIsInf}, - IntrinsicData{"isNan", IntrinsicType::kIsNan}, - IntrinsicData{"isNormal", IntrinsicType::kIsNormal}, - IntrinsicData{"ldexp", IntrinsicType::kLdexp}, - IntrinsicData{"length", IntrinsicType::kLength}, - IntrinsicData{"log", IntrinsicType::kLog}, - IntrinsicData{"log2", IntrinsicType::kLog2}, - IntrinsicData{"max", IntrinsicType::kMax}, - IntrinsicData{"min", IntrinsicType::kMin}, - IntrinsicData{"mix", IntrinsicType::kMix}, - IntrinsicData{"modf", IntrinsicType::kModf}, - IntrinsicData{"normalize", IntrinsicType::kNormalize}, - IntrinsicData{"pow", IntrinsicType::kPow}, - IntrinsicData{"reflect", IntrinsicType::kReflect}, - IntrinsicData{"reverseBits", IntrinsicType::kReverseBits}, - IntrinsicData{"round", IntrinsicType::kRound}, - IntrinsicData{"select", IntrinsicType::kSelect}, - IntrinsicData{"sign", IntrinsicType::kSign}, - IntrinsicData{"sin", IntrinsicType::kSin}, - IntrinsicData{"sinh", IntrinsicType::kSinh}, - IntrinsicData{"smoothStep", IntrinsicType::kSmoothStep}, - IntrinsicData{"sqrt", IntrinsicType::kSqrt}, - IntrinsicData{"step", IntrinsicType::kStep}, - IntrinsicData{"storageBarrier", IntrinsicType::kStorageBarrier}, - IntrinsicData{"tan", IntrinsicType::kTan}, - IntrinsicData{"tanh", IntrinsicType::kTanh}, - IntrinsicData{"textureDimensions", IntrinsicType::kTextureDimensions}, - IntrinsicData{"textureLoad", IntrinsicType::kTextureLoad}, - IntrinsicData{"textureNumLayers", IntrinsicType::kTextureNumLayers}, - IntrinsicData{"textureNumLevels", IntrinsicType::kTextureNumLevels}, - IntrinsicData{"textureNumSamples", IntrinsicType::kTextureNumSamples}, - IntrinsicData{"textureSample", IntrinsicType::kTextureSample}, - IntrinsicData{"textureSampleBias", IntrinsicType::kTextureSampleBias}, - IntrinsicData{"textureSampleCompare", - IntrinsicType::kTextureSampleCompare}, - IntrinsicData{"textureSampleCompareLevel", - IntrinsicType::kTextureSampleCompareLevel}, - IntrinsicData{"textureSampleGrad", IntrinsicType::kTextureSampleGrad}, - IntrinsicData{"textureSampleLevel", IntrinsicType::kTextureSampleLevel}, - IntrinsicData{"trunc", IntrinsicType::kTrunc}, - IntrinsicData{"unpack2x16float", IntrinsicType::kUnpack2x16float}, - IntrinsicData{"unpack2x16snorm", IntrinsicType::kUnpack2x16snorm}, - IntrinsicData{"unpack2x16unorm", IntrinsicType::kUnpack2x16unorm}, - IntrinsicData{"unpack4x8snorm", IntrinsicType::kUnpack4x8snorm}, - IntrinsicData{"unpack4x8unorm", IntrinsicType::kUnpack4x8unorm}, - IntrinsicData{"workgroupBarrier", IntrinsicType::kWorkgroupBarrier})); - -TEST_F(IntrinsicTypeTest, ParseNoMatch) { - EXPECT_EQ(ParseIntrinsicType("not_intrinsic"), IntrinsicType::kNone); -} - -} // namespace -} // namespace sem -} // namespace tint diff --git a/src/sem/intrinsic_type.cc b/src/sem/intrinsic_type.cc deleted file mode 100644 index 8e4b5354f2..0000000000 --- a/src/sem/intrinsic_type.cc +++ /dev/null @@ -1,560 +0,0 @@ -// Copyright 2021 The Tint Authors. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -//////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen -// using the template: -// src/sem/intrinsic_type.cc.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def -// -// Do not modify this file directly -//////////////////////////////////////////////////////////////////////////////// - -#include "src/sem/intrinsic_type.h" - -#include - -namespace tint { -namespace sem { - -IntrinsicType ParseIntrinsicType(const std::string& name) { - if (name == "abs") { - return IntrinsicType::kAbs; - } - if (name == "acos") { - return IntrinsicType::kAcos; - } - if (name == "all") { - return IntrinsicType::kAll; - } - if (name == "any") { - return IntrinsicType::kAny; - } - if (name == "arrayLength") { - return IntrinsicType::kArrayLength; - } - if (name == "asin") { - return IntrinsicType::kAsin; - } - if (name == "atan") { - return IntrinsicType::kAtan; - } - if (name == "atan2") { - return IntrinsicType::kAtan2; - } - if (name == "ceil") { - return IntrinsicType::kCeil; - } - if (name == "clamp") { - return IntrinsicType::kClamp; - } - if (name == "cos") { - return IntrinsicType::kCos; - } - if (name == "cosh") { - return IntrinsicType::kCosh; - } - if (name == "countOneBits") { - return IntrinsicType::kCountOneBits; - } - if (name == "cross") { - return IntrinsicType::kCross; - } - if (name == "degrees") { - return IntrinsicType::kDegrees; - } - if (name == "determinant") { - return IntrinsicType::kDeterminant; - } - if (name == "distance") { - return IntrinsicType::kDistance; - } - if (name == "dot") { - return IntrinsicType::kDot; - } - if (name == "dpdx") { - return IntrinsicType::kDpdx; - } - if (name == "dpdxCoarse") { - return IntrinsicType::kDpdxCoarse; - } - if (name == "dpdxFine") { - return IntrinsicType::kDpdxFine; - } - if (name == "dpdy") { - return IntrinsicType::kDpdy; - } - if (name == "dpdyCoarse") { - return IntrinsicType::kDpdyCoarse; - } - if (name == "dpdyFine") { - return IntrinsicType::kDpdyFine; - } - if (name == "exp") { - return IntrinsicType::kExp; - } - if (name == "exp2") { - return IntrinsicType::kExp2; - } - if (name == "faceForward") { - return IntrinsicType::kFaceForward; - } - if (name == "floor") { - return IntrinsicType::kFloor; - } - if (name == "fma") { - return IntrinsicType::kFma; - } - if (name == "fract") { - return IntrinsicType::kFract; - } - if (name == "frexp") { - return IntrinsicType::kFrexp; - } - if (name == "fwidth") { - return IntrinsicType::kFwidth; - } - if (name == "fwidthCoarse") { - return IntrinsicType::kFwidthCoarse; - } - if (name == "fwidthFine") { - return IntrinsicType::kFwidthFine; - } - if (name == "inverseSqrt") { - return IntrinsicType::kInverseSqrt; - } - if (name == "isFinite") { - return IntrinsicType::kIsFinite; - } - if (name == "isInf") { - return IntrinsicType::kIsInf; - } - if (name == "isNan") { - return IntrinsicType::kIsNan; - } - if (name == "isNormal") { - return IntrinsicType::kIsNormal; - } - if (name == "ldexp") { - return IntrinsicType::kLdexp; - } - if (name == "length") { - return IntrinsicType::kLength; - } - if (name == "log") { - return IntrinsicType::kLog; - } - if (name == "log2") { - return IntrinsicType::kLog2; - } - if (name == "max") { - return IntrinsicType::kMax; - } - if (name == "min") { - return IntrinsicType::kMin; - } - if (name == "mix") { - return IntrinsicType::kMix; - } - if (name == "modf") { - return IntrinsicType::kModf; - } - if (name == "normalize") { - return IntrinsicType::kNormalize; - } - if (name == "pack2x16float") { - return IntrinsicType::kPack2x16float; - } - if (name == "pack2x16snorm") { - return IntrinsicType::kPack2x16snorm; - } - if (name == "pack2x16unorm") { - return IntrinsicType::kPack2x16unorm; - } - if (name == "pack4x8snorm") { - return IntrinsicType::kPack4x8snorm; - } - if (name == "pack4x8unorm") { - return IntrinsicType::kPack4x8unorm; - } - if (name == "pow") { - return IntrinsicType::kPow; - } - if (name == "radians") { - return IntrinsicType::kRadians; - } - if (name == "reflect") { - return IntrinsicType::kReflect; - } - if (name == "refract") { - return IntrinsicType::kRefract; - } - if (name == "reverseBits") { - return IntrinsicType::kReverseBits; - } - if (name == "round") { - return IntrinsicType::kRound; - } - if (name == "select") { - return IntrinsicType::kSelect; - } - if (name == "sign") { - return IntrinsicType::kSign; - } - if (name == "sin") { - return IntrinsicType::kSin; - } - if (name == "sinh") { - return IntrinsicType::kSinh; - } - if (name == "smoothStep") { - return IntrinsicType::kSmoothStep; - } - if (name == "sqrt") { - return IntrinsicType::kSqrt; - } - if (name == "step") { - return IntrinsicType::kStep; - } - if (name == "storageBarrier") { - return IntrinsicType::kStorageBarrier; - } - if (name == "tan") { - return IntrinsicType::kTan; - } - if (name == "tanh") { - return IntrinsicType::kTanh; - } - if (name == "transpose") { - return IntrinsicType::kTranspose; - } - if (name == "trunc") { - return IntrinsicType::kTrunc; - } - if (name == "unpack2x16float") { - return IntrinsicType::kUnpack2x16float; - } - if (name == "unpack2x16snorm") { - return IntrinsicType::kUnpack2x16snorm; - } - if (name == "unpack2x16unorm") { - return IntrinsicType::kUnpack2x16unorm; - } - if (name == "unpack4x8snorm") { - return IntrinsicType::kUnpack4x8snorm; - } - if (name == "unpack4x8unorm") { - return IntrinsicType::kUnpack4x8unorm; - } - if (name == "workgroupBarrier") { - return IntrinsicType::kWorkgroupBarrier; - } - if (name == "textureDimensions") { - return IntrinsicType::kTextureDimensions; - } - if (name == "textureGather") { - return IntrinsicType::kTextureGather; - } - if (name == "textureGatherCompare") { - return IntrinsicType::kTextureGatherCompare; - } - if (name == "textureNumLayers") { - return IntrinsicType::kTextureNumLayers; - } - if (name == "textureNumLevels") { - return IntrinsicType::kTextureNumLevels; - } - if (name == "textureNumSamples") { - return IntrinsicType::kTextureNumSamples; - } - if (name == "textureSample") { - return IntrinsicType::kTextureSample; - } - if (name == "textureSampleBias") { - return IntrinsicType::kTextureSampleBias; - } - if (name == "textureSampleCompare") { - return IntrinsicType::kTextureSampleCompare; - } - if (name == "textureSampleCompareLevel") { - return IntrinsicType::kTextureSampleCompareLevel; - } - if (name == "textureSampleGrad") { - return IntrinsicType::kTextureSampleGrad; - } - if (name == "textureSampleLevel") { - return IntrinsicType::kTextureSampleLevel; - } - if (name == "textureStore") { - return IntrinsicType::kTextureStore; - } - if (name == "textureLoad") { - return IntrinsicType::kTextureLoad; - } - if (name == "atomicLoad") { - return IntrinsicType::kAtomicLoad; - } - if (name == "atomicStore") { - return IntrinsicType::kAtomicStore; - } - if (name == "atomicAdd") { - return IntrinsicType::kAtomicAdd; - } - if (name == "atomicSub") { - return IntrinsicType::kAtomicSub; - } - if (name == "atomicMax") { - return IntrinsicType::kAtomicMax; - } - if (name == "atomicMin") { - return IntrinsicType::kAtomicMin; - } - if (name == "atomicAnd") { - return IntrinsicType::kAtomicAnd; - } - if (name == "atomicOr") { - return IntrinsicType::kAtomicOr; - } - if (name == "atomicXor") { - return IntrinsicType::kAtomicXor; - } - if (name == "atomicExchange") { - return IntrinsicType::kAtomicExchange; - } - if (name == "atomicCompareExchangeWeak") { - return IntrinsicType::kAtomicCompareExchangeWeak; - } - return IntrinsicType::kNone; -} - -const char* str(IntrinsicType i) { - switch (i) { - case IntrinsicType::kNone: - return ""; - case IntrinsicType::kAbs: - return "abs"; - case IntrinsicType::kAcos: - return "acos"; - case IntrinsicType::kAll: - return "all"; - case IntrinsicType::kAny: - return "any"; - case IntrinsicType::kArrayLength: - return "arrayLength"; - case IntrinsicType::kAsin: - return "asin"; - case IntrinsicType::kAtan: - return "atan"; - case IntrinsicType::kAtan2: - return "atan2"; - case IntrinsicType::kCeil: - return "ceil"; - case IntrinsicType::kClamp: - return "clamp"; - case IntrinsicType::kCos: - return "cos"; - case IntrinsicType::kCosh: - return "cosh"; - case IntrinsicType::kCountOneBits: - return "countOneBits"; - case IntrinsicType::kCross: - return "cross"; - case IntrinsicType::kDegrees: - return "degrees"; - case IntrinsicType::kDeterminant: - return "determinant"; - case IntrinsicType::kDistance: - return "distance"; - case IntrinsicType::kDot: - return "dot"; - case IntrinsicType::kDpdx: - return "dpdx"; - case IntrinsicType::kDpdxCoarse: - return "dpdxCoarse"; - case IntrinsicType::kDpdxFine: - return "dpdxFine"; - case IntrinsicType::kDpdy: - return "dpdy"; - case IntrinsicType::kDpdyCoarse: - return "dpdyCoarse"; - case IntrinsicType::kDpdyFine: - return "dpdyFine"; - case IntrinsicType::kExp: - return "exp"; - case IntrinsicType::kExp2: - return "exp2"; - case IntrinsicType::kFaceForward: - return "faceForward"; - case IntrinsicType::kFloor: - return "floor"; - case IntrinsicType::kFma: - return "fma"; - case IntrinsicType::kFract: - return "fract"; - case IntrinsicType::kFrexp: - return "frexp"; - case IntrinsicType::kFwidth: - return "fwidth"; - case IntrinsicType::kFwidthCoarse: - return "fwidthCoarse"; - case IntrinsicType::kFwidthFine: - return "fwidthFine"; - case IntrinsicType::kInverseSqrt: - return "inverseSqrt"; - case IntrinsicType::kIsFinite: - return "isFinite"; - case IntrinsicType::kIsInf: - return "isInf"; - case IntrinsicType::kIsNan: - return "isNan"; - case IntrinsicType::kIsNormal: - return "isNormal"; - case IntrinsicType::kLdexp: - return "ldexp"; - case IntrinsicType::kLength: - return "length"; - case IntrinsicType::kLog: - return "log"; - case IntrinsicType::kLog2: - return "log2"; - case IntrinsicType::kMax: - return "max"; - case IntrinsicType::kMin: - return "min"; - case IntrinsicType::kMix: - return "mix"; - case IntrinsicType::kModf: - return "modf"; - case IntrinsicType::kNormalize: - return "normalize"; - case IntrinsicType::kPack2x16float: - return "pack2x16float"; - case IntrinsicType::kPack2x16snorm: - return "pack2x16snorm"; - case IntrinsicType::kPack2x16unorm: - return "pack2x16unorm"; - case IntrinsicType::kPack4x8snorm: - return "pack4x8snorm"; - case IntrinsicType::kPack4x8unorm: - return "pack4x8unorm"; - case IntrinsicType::kPow: - return "pow"; - case IntrinsicType::kRadians: - return "radians"; - case IntrinsicType::kReflect: - return "reflect"; - case IntrinsicType::kRefract: - return "refract"; - case IntrinsicType::kReverseBits: - return "reverseBits"; - case IntrinsicType::kRound: - return "round"; - case IntrinsicType::kSelect: - return "select"; - case IntrinsicType::kSign: - return "sign"; - case IntrinsicType::kSin: - return "sin"; - case IntrinsicType::kSinh: - return "sinh"; - case IntrinsicType::kSmoothStep: - return "smoothStep"; - case IntrinsicType::kSqrt: - return "sqrt"; - case IntrinsicType::kStep: - return "step"; - case IntrinsicType::kStorageBarrier: - return "storageBarrier"; - case IntrinsicType::kTan: - return "tan"; - case IntrinsicType::kTanh: - return "tanh"; - case IntrinsicType::kTranspose: - return "transpose"; - case IntrinsicType::kTrunc: - return "trunc"; - case IntrinsicType::kUnpack2x16float: - return "unpack2x16float"; - case IntrinsicType::kUnpack2x16snorm: - return "unpack2x16snorm"; - case IntrinsicType::kUnpack2x16unorm: - return "unpack2x16unorm"; - case IntrinsicType::kUnpack4x8snorm: - return "unpack4x8snorm"; - case IntrinsicType::kUnpack4x8unorm: - return "unpack4x8unorm"; - case IntrinsicType::kWorkgroupBarrier: - return "workgroupBarrier"; - case IntrinsicType::kTextureDimensions: - return "textureDimensions"; - case IntrinsicType::kTextureGather: - return "textureGather"; - case IntrinsicType::kTextureGatherCompare: - return "textureGatherCompare"; - case IntrinsicType::kTextureNumLayers: - return "textureNumLayers"; - case IntrinsicType::kTextureNumLevels: - return "textureNumLevels"; - case IntrinsicType::kTextureNumSamples: - return "textureNumSamples"; - case IntrinsicType::kTextureSample: - return "textureSample"; - case IntrinsicType::kTextureSampleBias: - return "textureSampleBias"; - case IntrinsicType::kTextureSampleCompare: - return "textureSampleCompare"; - case IntrinsicType::kTextureSampleCompareLevel: - return "textureSampleCompareLevel"; - case IntrinsicType::kTextureSampleGrad: - return "textureSampleGrad"; - case IntrinsicType::kTextureSampleLevel: - return "textureSampleLevel"; - case IntrinsicType::kTextureStore: - return "textureStore"; - case IntrinsicType::kTextureLoad: - return "textureLoad"; - case IntrinsicType::kAtomicLoad: - return "atomicLoad"; - case IntrinsicType::kAtomicStore: - return "atomicStore"; - case IntrinsicType::kAtomicAdd: - return "atomicAdd"; - case IntrinsicType::kAtomicSub: - return "atomicSub"; - case IntrinsicType::kAtomicMax: - return "atomicMax"; - case IntrinsicType::kAtomicMin: - return "atomicMin"; - case IntrinsicType::kAtomicAnd: - return "atomicAnd"; - case IntrinsicType::kAtomicOr: - return "atomicOr"; - case IntrinsicType::kAtomicXor: - return "atomicXor"; - case IntrinsicType::kAtomicExchange: - return "atomicExchange"; - case IntrinsicType::kAtomicCompareExchangeWeak: - return "atomicCompareExchangeWeak"; - } - return ""; -} - -std::ostream& operator<<(std::ostream& out, IntrinsicType i) { - out << str(i); - return out; -} - -} // namespace sem -} // namespace tint diff --git a/src/sem/intrinsic_type.h.tmpl b/src/sem/intrinsic_type.h.tmpl deleted file mode 100644 index 2833e208c1..0000000000 --- a/src/sem/intrinsic_type.h.tmpl +++ /dev/null @@ -1,45 +0,0 @@ -{{- /* --------------------------------------------------------------------------------- -Template file for use with tools/intrinsic-gen to generate intrinsic_type.h - -See: -* tools/cmd/intrinsic-gen/gen for structures used by this template -* https://golang.org/pkg/text/template/ for documentation on the template syntax --------------------------------------------------------------------------------- -*/ -}} - -#ifndef SRC_SEM_INTRINSIC_TYPE_H_ -#define SRC_SEM_INTRINSIC_TYPE_H_ - -#include -#include - -namespace tint { -namespace sem { - -/// Enumerator of all intrinsic functions -enum class IntrinsicType { - kNone = -1, -{{- range .Sem.Functions }} - k{{Title .Name}}, -{{- end }} -}; - -/// Matches the IntrinsicType by name -/// @param name the intrinsic name to parse -/// @returns the parsed IntrinsicType, or IntrinsicType::kNone if `name` did not -/// match any intrinsic. -IntrinsicType ParseIntrinsicType(const std::string& name); - -/// @returns the name of the intrinsic function type. The spelling, including -/// case, matches the name in the WGSL spec. -const char* str(IntrinsicType i); - -/// Emits the name of the intrinsic function type. The spelling, including case, -/// matches the name in the WGSL spec. -std::ostream& operator<<(std::ostream& out, IntrinsicType i); - -} // namespace sem -} // namespace tint - -#endif // SRC_SEM_INTRINSIC_TYPE_H_ diff --git a/src/sem/parameter_usage.cc b/src/sem/parameter_usage.cc index 753283b75e..6f0e07155a 100644 --- a/src/sem/parameter_usage.cc +++ b/src/sem/parameter_usage.cc @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: // src/sem/parameter_usage.cc.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/src/sem/parameter_usage.cc.tmpl b/src/sem/parameter_usage.cc.tmpl index 7650226192..b8125e7423 100644 --- a/src/sem/parameter_usage.cc.tmpl +++ b/src/sem/parameter_usage.cc.tmpl @@ -1,9 +1,9 @@ {{- /* -------------------------------------------------------------------------------- -Template file for use with tools/intrinsic-gen to generate parameter_usage.cc +Template file for use with tools/builtin-gen to generate parameter_usage.cc See: -* tools/cmd/intrinsic-gen/gen for structures used by this template +* tools/cmd/builtin-gen/gen for structures used by this template * https://golang.org/pkg/text/template/ for documentation on the template syntax -------------------------------------------------------------------------------- */ -}} diff --git a/src/sem/parameter_usage.h b/src/sem/parameter_usage.h index c6dbf390f7..adcd41b76c 100644 --- a/src/sem/parameter_usage.h +++ b/src/sem/parameter_usage.h @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: // src/sem/parameter_usage.h.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/src/sem/parameter_usage.h.tmpl b/src/sem/parameter_usage.h.tmpl index 3110b20a0e..ef51d17485 100644 --- a/src/sem/parameter_usage.h.tmpl +++ b/src/sem/parameter_usage.h.tmpl @@ -1,9 +1,9 @@ {{- /* -------------------------------------------------------------------------------- -Template file for use with tools/intrinsic-gen to generate parameter_usage.h +Template file for use with tools/builtin-gen to generate parameter_usage.h See: -* tools/cmd/intrinsic-gen/gen for structures used by this template +* tools/cmd/builtin-gen/gen for structures used by this template * https://golang.org/pkg/text/template/ for documentation on the template syntax -------------------------------------------------------------------------------- */ -}} diff --git a/src/transform/array_length_from_uniform.cc b/src/transform/array_length_from_uniform.cc index 5ab30a7cc8..9270fd99fb 100644 --- a/src/transform/array_length_from_uniform.cc +++ b/src/transform/array_length_from_uniform.cc @@ -34,7 +34,7 @@ namespace transform { ArrayLengthFromUniform::ArrayLengthFromUniform() = default; ArrayLengthFromUniform::~ArrayLengthFromUniform() = default; -/// Iterate over all arrayLength() intrinsics that operate on +/// Iterate over all arrayLength() builtins that operate on /// storage buffer variables. /// @param ctx the CloneContext. /// @param functor of type void(const ast::CallExpression*, const @@ -46,7 +46,7 @@ template static void IterateArrayLengthOnStorageVar(CloneContext& ctx, F&& functor) { auto& sem = ctx.src->Sem(); - // Find all calls to the arrayLength() intrinsic. + // Find all calls to the arrayLength() builtin. for (auto* node : ctx.src->ASTNodes().Objects()) { auto* call_expr = node->As(); if (!call_expr) { @@ -54,8 +54,8 @@ static void IterateArrayLengthOnStorageVar(CloneContext& ctx, F&& functor) { } auto* call = sem.Get(call_expr); - auto* intrinsic = call->Target()->As(); - if (!intrinsic || intrinsic->Type() != sem::IntrinsicType::kArrayLength) { + auto* builtin = call->Target()->As(); + if (!builtin || builtin->Type() != sem::BuiltinType::kArrayLength) { continue; } @@ -98,8 +98,8 @@ bool ArrayLengthFromUniform::ShouldRun(const Program* program, const DataMap&) const { for (auto* fn : program->AST().Functions()) { if (auto* sem_fn = program->Sem().Get(fn)) { - for (auto* intrinsic : sem_fn->DirectlyCalledIntrinsics()) { - if (intrinsic->Type() == sem::IntrinsicType::kArrayLength) { + for (auto* builtin : sem_fn->DirectlyCalledBuiltins()) { + if (builtin->Type() == sem::BuiltinType::kArrayLength) { return true; } } diff --git a/src/transform/array_length_from_uniform.h b/src/transform/array_length_from_uniform.h index 6947350c63..305e47ce9d 100644 --- a/src/transform/array_length_from_uniform.h +++ b/src/transform/array_length_from_uniform.h @@ -84,7 +84,7 @@ class ArrayLengthFromUniform }; /// Information produced about what the transform did. - /// If there were no calls to the arrayLength() intrinsic, then no Result will + /// If there were no calls to the arrayLength() builtin, then no Result will /// be emitted. struct Result : public Castable { /// Constructor diff --git a/src/transform/calculate_array_length.cc b/src/transform/calculate_array_length.cc index 92604a1b12..ac57650ed0 100644 --- a/src/transform/calculate_array_length.cc +++ b/src/transform/calculate_array_length.cc @@ -76,8 +76,8 @@ bool CalculateArrayLength::ShouldRun(const Program* program, const DataMap&) const { for (auto* fn : program->AST().Functions()) { if (auto* sem_fn = program->Sem().Get(fn)) { - for (auto* intrinsic : sem_fn->DirectlyCalledIntrinsics()) { - if (intrinsic->Type() == sem::IntrinsicType::kArrayLength) { + for (auto* builtin : sem_fn->DirectlyCalledBuiltins()) { + if (builtin->Type() == sem::BuiltinType::kArrayLength) { return true; } } @@ -143,8 +143,8 @@ void CalculateArrayLength::Run(CloneContext& ctx, for (auto* node : ctx.src->ASTNodes().Objects()) { if (auto* call_expr = node->As()) { auto* call = sem.Get(call_expr); - if (auto* intrinsic = call->Target()->As()) { - if (intrinsic->Type() == sem::IntrinsicType::kArrayLength) { + if (auto* builtin = call->Target()->As()) { + if (builtin->Type() == sem::BuiltinType::kArrayLength) { // We're dealing with an arrayLength() call // A runtime-sized array can only appear as the store type of a diff --git a/src/transform/combine_samplers.cc b/src/transform/combine_samplers.cc index 6d202f6619..cff99d8e21 100644 --- a/src/transform/combine_samplers.cc +++ b/src/transform/combine_samplers.cc @@ -71,7 +71,7 @@ struct CombineSamplers::State { /// Placeholder global samplers used when a function contains texture-only /// references (one comparison sampler, one regular). These are also used as - /// temporary sampler parameters to the texture intrinsics to satsify the WGSL + /// temporary sampler parameters to the texture builtins to satisfy the WGSL /// resolver, but are then ignored and removed by the GLSL writer. const ast::Variable* placeholder_samplers_[2] = {}; @@ -210,9 +210,9 @@ struct CombineSamplers::State { -> const ast::Expression* { if (auto* call = sem.Get(expr)) { ast::ExpressionList args; - // Replace all texture intrinsic calls. - if (auto* intrinsic = call->Target()->As()) { - const auto& signature = intrinsic->Signature(); + // Replace all texture builtin calls. + if (auto* builtin = call->Target()->As()) { + const auto& signature = builtin->Signature(); int sampler_index = signature.IndexOf(sem::ParameterUsage::kSampler); int texture_index = signature.IndexOf(sem::ParameterUsage::kTexture); if (texture_index == -1) { diff --git a/src/transform/combine_samplers.h b/src/transform/combine_samplers.h index 2108ccb89e..588fe16267 100644 --- a/src/transform/combine_samplers.h +++ b/src/transform/combine_samplers.h @@ -38,9 +38,9 @@ namespace transform { /// parameter. In this case, a new parameter is added to the function /// signature. All separate texture/sampler parameters are removed. /// -/// All texture intrinsic callsites are modified to pass the combined +/// All texture builtin callsites are modified to pass the combined /// texture/sampler as the first argument, and separate texture/sampler -/// arugments are removed. +/// arguments are removed. /// /// Note that the sampler may be null, indicating that only a texture /// reference was required (e.g., textureLoad). In this case, a diff --git a/src/transform/decompose_memory_access.cc b/src/transform/decompose_memory_access.cc index 21eb28bcfb..bc62b86695 100644 --- a/src/transform/decompose_memory_access.cc +++ b/src/transform/decompose_memory_access.cc @@ -115,7 +115,7 @@ struct LoadStoreKey { struct AtomicKey { sem::Type const* buf_ty = nullptr; // buffer type sem::Type const* el_ty = nullptr; // element type - sem::IntrinsicType const op; // atomic op + sem::BuiltinType const op; // atomic op bool operator==(const AtomicKey& rhs) const { return buf_ty == rhs.buf_ty && el_ty == rhs.el_ty && op == rhs.op; } @@ -224,41 +224,41 @@ DecomposeMemoryAccess::Intrinsic* IntrinsicStoreFor( /// @returns a DecomposeMemoryAccess::Intrinsic attribute that can be applied /// to a stub function for the atomic op and the type `ty`. DecomposeMemoryAccess::Intrinsic* IntrinsicAtomicFor(ProgramBuilder* builder, - sem::IntrinsicType ity, + sem::BuiltinType ity, const sem::Type* ty) { auto op = DecomposeMemoryAccess::Intrinsic::Op::kAtomicLoad; switch (ity) { - case sem::IntrinsicType::kAtomicLoad: + case sem::BuiltinType::kAtomicLoad: op = DecomposeMemoryAccess::Intrinsic::Op::kAtomicLoad; break; - case sem::IntrinsicType::kAtomicStore: + case sem::BuiltinType::kAtomicStore: op = DecomposeMemoryAccess::Intrinsic::Op::kAtomicStore; break; - case sem::IntrinsicType::kAtomicAdd: + case sem::BuiltinType::kAtomicAdd: op = DecomposeMemoryAccess::Intrinsic::Op::kAtomicAdd; break; - case sem::IntrinsicType::kAtomicSub: + case sem::BuiltinType::kAtomicSub: op = DecomposeMemoryAccess::Intrinsic::Op::kAtomicSub; break; - case sem::IntrinsicType::kAtomicMax: + case sem::BuiltinType::kAtomicMax: op = DecomposeMemoryAccess::Intrinsic::Op::kAtomicMax; break; - case sem::IntrinsicType::kAtomicMin: + case sem::BuiltinType::kAtomicMin: op = DecomposeMemoryAccess::Intrinsic::Op::kAtomicMin; break; - case sem::IntrinsicType::kAtomicAnd: + case sem::BuiltinType::kAtomicAnd: op = DecomposeMemoryAccess::Intrinsic::Op::kAtomicAnd; break; - case sem::IntrinsicType::kAtomicOr: + case sem::BuiltinType::kAtomicOr: op = DecomposeMemoryAccess::Intrinsic::Op::kAtomicOr; break; - case sem::IntrinsicType::kAtomicXor: + case sem::BuiltinType::kAtomicXor: op = DecomposeMemoryAccess::Intrinsic::Op::kAtomicXor; break; - case sem::IntrinsicType::kAtomicExchange: + case sem::BuiltinType::kAtomicExchange: op = DecomposeMemoryAccess::Intrinsic::Op::kAtomicExchange; break; - case sem::IntrinsicType::kAtomicCompareExchangeWeak: + case sem::BuiltinType::kAtomicCompareExchangeWeak: op = DecomposeMemoryAccess::Intrinsic::Op::kAtomicCompareExchangeWeak; break; default: @@ -641,7 +641,7 @@ struct DecomposeMemoryAccess::State { /// @return the name of the function that performs the load Symbol AtomicFunc(const sem::Type* buf_ty, const sem::Type* el_ty, - const sem::Intrinsic* intrinsic, + const sem::Builtin* intrinsic, const sem::VariableUser* var_user) { auto op = intrinsic->Type(); return utils::GetOrCreate(atomic_funcs, AtomicKey{buf_ty, el_ty, op}, [&] { @@ -921,15 +921,15 @@ void DecomposeMemoryAccess::Run(CloneContext& ctx, if (auto* call_expr = node->As()) { auto* call = sem.Get(call_expr); - if (auto* intrinsic = call->Target()->As()) { - if (intrinsic->Type() == sem::IntrinsicType::kArrayLength) { + if (auto* builtin = call->Target()->As()) { + if (builtin->Type() == sem::BuiltinType::kArrayLength) { // arrayLength(X) - // Don't convert X into a load, this intrinsic actually requires the + // Don't convert X into a load, this builtin actually requires the // real pointer. state.TakeAccess(call_expr->args[0]); continue; } - if (intrinsic->IsAtomic()) { + if (builtin->IsAtomic()) { if (auto access = state.TakeAccess(call_expr->args[0])) { // atomic___(X) ctx.Replace(call_expr, [=, &ctx, &state] { @@ -937,9 +937,8 @@ void DecomposeMemoryAccess::Run(CloneContext& ctx, auto* offset = access.offset->Build(ctx); auto* buf_ty = access.var->Type()->UnwrapRef(); auto* el_ty = access.type->UnwrapRef()->As()->Type(); - Symbol func = - state.AtomicFunc(buf_ty, el_ty, intrinsic, - access.var->As()); + Symbol func = state.AtomicFunc( + buf_ty, el_ty, builtin, access.var->As()); ast::ExpressionList args{ctx.Clone(buf), offset}; for (size_t i = 1; i < call_expr->args.size(); i++) { diff --git a/src/transform/external_texture_transform.cc b/src/transform/external_texture_transform.cc index d24149ef9c..45323f0f2f 100644 --- a/src/transform/external_texture_transform.cc +++ b/src/transform/external_texture_transform.cc @@ -46,10 +46,9 @@ void ExternalTextureTransform::Run(CloneContext& ctx, // Scan the AST nodes for calls to textureLoad or textureSampleLevel. for (auto* node : ctx.src->ASTNodes().Objects()) { if (auto* call_expr = node->As()) { - if (auto* intrinsic = - sem.Get(call_expr)->Target()->As()) { - if (intrinsic->Type() == sem::IntrinsicType::kTextureLoad || - intrinsic->Type() == sem::IntrinsicType::kTextureSampleLevel) { + if (auto* builtin = sem.Get(call_expr)->Target()->As()) { + if (builtin->Type() == sem::BuiltinType::kTextureLoad || + builtin->Type() == sem::BuiltinType::kTextureSampleLevel) { // When a textureLoad or textureSampleLevel has been identified, check // if the first parameter is an external texture. if (auto* var = @@ -58,7 +57,7 @@ void ExternalTextureTransform::Run(CloneContext& ctx, ->Type() ->UnwrapRef() ->Is()) { - if (intrinsic->Type() == sem::IntrinsicType::kTextureLoad && + if (builtin->Type() == sem::BuiltinType::kTextureLoad && call_expr->args.size() != 2) { TINT_ICE(Transform, ctx.dst->Diagnostics()) << "expected textureLoad call with a texture_external to " @@ -66,8 +65,7 @@ void ExternalTextureTransform::Run(CloneContext& ctx, << call_expr->args.size() << " parameters"; } - if (intrinsic->Type() == - sem::IntrinsicType::kTextureSampleLevel && + if (builtin->Type() == sem::BuiltinType::kTextureSampleLevel && call_expr->args.size() != 3) { TINT_ICE(Transform, ctx.dst->Diagnostics()) << "expected textureSampleLevel call with a " @@ -82,12 +80,12 @@ void ExternalTextureTransform::Run(CloneContext& ctx, auto* externalTextureParam = ctx.Clone(call_expr->args[0]); ast::ExpressionList params; - if (intrinsic->Type() == sem::IntrinsicType::kTextureLoad) { + if (builtin->Type() == sem::BuiltinType::kTextureLoad) { auto* coordsParam = ctx.Clone(call_expr->args[1]); auto* levelParam = ctx.dst->Expr(0); params = {externalTextureParam, coordsParam, levelParam}; - } else if (intrinsic->Type() == - sem::IntrinsicType::kTextureSampleLevel) { + } else if (builtin->Type() == + sem::BuiltinType::kTextureSampleLevel) { auto* samplerParam = ctx.Clone(call_expr->args[1]); auto* coordsParam = ctx.Clone(call_expr->args[2]); auto* levelParam = ctx.dst->Expr(0.0f); diff --git a/src/transform/multiplanar_external_texture.cc b/src/transform/multiplanar_external_texture.cc index a4d2deb17c..18ded92d8c 100644 --- a/src/transform/multiplanar_external_texture.cc +++ b/src/transform/multiplanar_external_texture.cc @@ -148,11 +148,11 @@ struct MultiplanarExternalTexture::State { // textureLoadExternal and textureSampleExternal calls. ctx.ReplaceAll( [&](const ast::CallExpression* expr) -> const ast::CallExpression* { - auto* intrinsic = sem.Get(expr)->Target()->As(); + auto* builtin = sem.Get(expr)->Target()->As(); - if (intrinsic && !intrinsic->Parameters().empty() && - intrinsic->Parameters()[0]->Type()->Is() && - intrinsic->Type() != sem::IntrinsicType::kTextureDimensions) { + if (builtin && !builtin->Parameters().empty() && + builtin->Parameters()[0]->Type()->Is() && + builtin->Type() != sem::BuiltinType::kTextureDimensions) { auto it = new_binding_symbols.find( expr->args[0]->As()->symbol); if (it == new_binding_symbols.end()) { @@ -164,11 +164,11 @@ struct MultiplanarExternalTexture::State { } auto& syms = it->second; - if (intrinsic->Type() == sem::IntrinsicType::kTextureLoad) { + if (builtin->Type() == sem::BuiltinType::kTextureLoad) { return createTexLdExt(expr, syms); } - if (intrinsic->Type() == sem::IntrinsicType::kTextureSampleLevel) { + if (builtin->Type() == sem::BuiltinType::kTextureSampleLevel) { return createTexSmpExt(expr, syms); } @@ -248,12 +248,12 @@ struct MultiplanarExternalTexture::State { /// bodies of the textureSampleExternal and textureLoadExternal functions. /// @param call_type determines which function body to generate /// @returns a statement list that makes of the body of the chosen function - ast::StatementList createTexFnExtStatementList(sem::IntrinsicType call_type) { + ast::StatementList createTexFnExtStatementList(sem::BuiltinType call_type) { using f32 = ProgramBuilder::f32; const ast::CallExpression* single_plane_call = nullptr; const ast::CallExpression* plane_0_call = nullptr; const ast::CallExpression* plane_1_call = nullptr; - if (call_type == sem::IntrinsicType::kTextureSampleLevel) { + if (call_type == sem::BuiltinType::kTextureSampleLevel) { // textureSampleLevel(plane0, smp, coord.xy, 0.0); single_plane_call = b.Call("textureSampleLevel", "plane0", "smp", "coord", 0.0f); @@ -263,7 +263,7 @@ struct MultiplanarExternalTexture::State { // textureSampleLevel(plane1, smp, coord.xy, 0.0); plane_1_call = b.Call("textureSampleLevel", "plane1", "smp", "coord", 0.0f); - } else if (call_type == sem::IntrinsicType::kTextureLoad) { + } else if (call_type == sem::BuiltinType::kTextureLoad) { // textureLoad(plane0, coords.xy, 0); single_plane_call = b.Call("textureLoad", "plane0", "coord", 0); // textureLoad(plane0, coords.xy, 0); @@ -272,7 +272,7 @@ struct MultiplanarExternalTexture::State { plane_1_call = b.Call("textureLoad", "plane1", "coord", 0); } else { TINT_ICE(Transform, b.Diagnostics()) - << "unhandled intrinsic: " << call_type; + << "unhandled builtin: " << call_type; } return { @@ -343,7 +343,7 @@ struct MultiplanarExternalTexture::State { b.Param("params", b.ty.type_name(params_struct_sym))}; ast::StatementList statementList = - createTexFnExtStatementList(sem::IntrinsicType::kTextureSampleLevel); + createTexFnExtStatementList(sem::BuiltinType::kTextureSampleLevel); b.Func(texture_sample_external_sym, varList, b.ty.vec4(b.ty.f32()), statementList, {}); @@ -386,7 +386,7 @@ struct MultiplanarExternalTexture::State { b.Param("params", b.ty.type_name(params_struct_sym))}; ast::StatementList statement_list = - createTexFnExtStatementList(sem::IntrinsicType::kTextureLoad); + createTexFnExtStatementList(sem::BuiltinType::kTextureLoad); b.Func(texture_load_external_sym, var_list, b.ty.vec4(b.ty.f32()), statement_list, {}); diff --git a/src/transform/multiplanar_external_texture.h b/src/transform/multiplanar_external_texture.h index ecbad6510c..caf55e8432 100644 --- a/src/transform/multiplanar_external_texture.h +++ b/src/transform/multiplanar_external_texture.h @@ -20,7 +20,7 @@ #include "src/ast/struct_member.h" #include "src/sem/binding_point.h" -#include "src/sem/intrinsic_type.h" +#include "src/sem/builtin_type.h" #include "src/transform/transform.h" namespace tint { diff --git a/src/transform/remove_phonies.cc b/src/transform/remove_phonies.cc index 06966b2278..9555f0a96e 100644 --- a/src/transform/remove_phonies.cc +++ b/src/transform/remove_phonies.cc @@ -89,12 +89,12 @@ void RemovePhonies::Run(CloneContext& ctx, const DataMap&, DataMap&) const { if (!ast::TraverseExpressions( stmt->rhs, ctx.dst->Diagnostics(), [&](const ast::CallExpression* call) { - // ast::CallExpression may map to a function or intrinsic call + // ast::CallExpression may map to a function or builtin call // (both may have side-effects), or a type constructor or // type conversion (both do not have side effects). if (sem.Get(call) ->Target() - ->IsAnyOf()) { + ->IsAnyOf()) { side_effects.push_back(call); return ast::TraverseAction::Skip; } diff --git a/src/transform/renamer.cc b/src/transform/renamer.cc index c793f8651f..0b49e6e7be 100644 --- a/src/transform/renamer.cc +++ b/src/transform/renamer.cc @@ -1257,7 +1257,7 @@ Output Renamer::Run(const Program* in, const DataMap& inputs) const { // Disable auto-cloning of symbols, since we want to rename them. CloneContext ctx(&out, in, false); - // Swizzles, intrinsic calls and builtin structure members need to keep their + // Swizzles, builtin calls and builtin structure members need to keep their // symbols preserved. std::unordered_set preserve; for (auto* node : in->ASTNodes().Objects()) { @@ -1284,7 +1284,7 @@ Output Renamer::Run(const Program* in, const DataMap& inputs) const { << "CallExpression has no semantic info"; continue; } - if (sem->Target()->Is()) { + if (sem->Target()->Is()) { preserve.emplace(call->target.name); } } diff --git a/src/transform/renamer_test.cc b/src/transform/renamer_test.cc index 21982fbb6d..328605efee 100644 --- a/src/transform/renamer_test.cc +++ b/src/transform/renamer_test.cc @@ -118,7 +118,7 @@ fn tint_symbol() -> @builtin(position) vec4 { EXPECT_THAT(data->remappings, ContainerEq(expected_remappings)); } -TEST_F(RenamerTest, PreserveIntrinsics) { +TEST_F(RenamerTest, PreserveBuiltins) { auto* src = R"( @stage(vertex) fn entry() -> @builtin(position) vec4 { @@ -666,20 +666,20 @@ INSTANTIATE_TEST_SUITE_P(RenamerTestHlsl, "VPOS", "VertexShader", "abort", - // "abs", // WGSL intrinsic - // "acos", // WGSL intrinsic - // "all", // WGSL intrinsic + // "abs", // WGSL builtin + // "acos", // WGSL builtin + // "all", // WGSL builtin "allow_uav_condition", - // "any", // WGSL intrinsic + // "any", // WGSL builtin "asdouble", "asfloat", - // "asin", // WGSL intrinsic + // "asin", // WGSL builtin "asint", // "asm", // WGSL keyword "asm_fragment", "asuint", - // "atan", // WGSL intrinsic - // "atan2", // WGSL intrinsic + // "atan", // WGSL builtin + // "atan2", // WGSL builtin "auto", // "bool", // WGSL keyword "bool1", @@ -704,14 +704,14 @@ INSTANTIATE_TEST_SUITE_P(RenamerTestHlsl, "bool4x4", "branch", // "break", // WGSL keyword - // "call", // WGSL intrinsic + // "call", // WGSL builtin // "case", // WGSL keyword "catch", "cbuffer", - // "ceil", // WGSL intrinsic + // "ceil", // WGSL builtin "centroid", "char", - // "clamp", // WGSL intrinsic + // "clamp", // WGSL builtin "class", "clip", "column_major", @@ -720,10 +720,10 @@ INSTANTIATE_TEST_SUITE_P(RenamerTestHlsl, // "const", // WGSL keyword "const_cast", // "continue", // WGSL keyword - // "cos", // WGSL intrinsic - // "cosh", // WGSL intrinsic + // "cos", // WGSL builtin + // "cosh", // WGSL builtin "countbits", - // "cross", // WGSL intrinsic + // "cross", // WGSL builtin "ddx", "ddx_coarse", "ddx_fine", @@ -733,11 +733,11 @@ INSTANTIATE_TEST_SUITE_P(RenamerTestHlsl, // "default", // WGSL keyword "degrees", "delete", - // "determinant", // WGSL intrinsic + // "determinant", // WGSL builtin // "discard", // WGSL keyword - // "distance", // WGSL intrinsic + // "distance", // WGSL builtin // "do", // WGSL keyword - // "dot", // WGSL intrinsic + // "dot", // WGSL builtin "double", "double1", "double1x1", @@ -785,14 +785,14 @@ INSTANTIATE_TEST_SUITE_P(RenamerTestHlsl, // "else", // WGSL keyword // "enum", // WGSL keyword "errorf", - // "exp", // WGSL intrinsic - // "exp2", // WGSL intrinsic + // "exp", // WGSL builtin + // "exp2", // WGSL builtin "explicit", "export", "extern", "f16to32", "f32tof16", - // "faceforward", // WGSL intrinsic + // "faceforward", // WGSL builtin // "false", // WGSL keyword "fastopt", "firstbithigh", @@ -819,15 +819,15 @@ INSTANTIATE_TEST_SUITE_P(RenamerTestHlsl, "float4x2", "float4x3", "float4x4", - // "floor", // WGSL intrinsic - // "fma", // WGSL intrinsic + // "floor", // WGSL builtin + // "fma", // WGSL builtin "fmod", // "for", // WGSL keyword "forcecase", "frac", - // "frexp", // WGSL intrinsic + // "frexp", // WGSL builtin "friend", - // "fwidth", // WGSL intrinsic + // "fwidth", // WGSL builtin "fxgroup", "goto", "groupshared", @@ -881,22 +881,22 @@ INSTANTIATE_TEST_SUITE_P(RenamerTestHlsl, "isfinite", "isinf", "isnan", - // "ldexp", // WGSL intrinsic - // "length", // WGSL intrinsic + // "ldexp", // WGSL builtin + // "length", // WGSL builtin "lerp", "line", "lineadj", "linear", "lit", - // "log", // WGSL intrinsic + // "log", // WGSL builtin "log10", - // "log2", // WGSL intrinsic + // "log2", // WGSL builtin "long", // "loop", // WGSL keyword "mad", "matrix", - // "max", // WGSL intrinsic - // "min", // WGSL intrinsic + // "max", // WGSL builtin + // "min", // WGSL builtin "min10float", "min10float1", "min10float1x1", @@ -1002,7 +1002,7 @@ INSTANTIATE_TEST_SUITE_P(RenamerTestHlsl, "min16uint4x2", "min16uint4x3", "min16uint4x4", - // "modf", // WGSL intrinsic + // "modf", // WGSL builtin "msad4", "mul", "mutable", @@ -1011,7 +1011,7 @@ INSTANTIATE_TEST_SUITE_P(RenamerTestHlsl, "nointerpolation", "noise", "noperspective", - // "normalize", // WGSL intrinsic + // "normalize", // WGSL builtin "numthreads", "operator", // "out", // WGSL keyword @@ -1020,7 +1020,7 @@ INSTANTIATE_TEST_SUITE_P(RenamerTestHlsl, "pixelfragment", "pixelshader", "point", - // "pow", // WGSL intrinsic + // "pow", // WGSL builtin "precise", "printf", // "private", // WGSL keyword @@ -1028,13 +1028,13 @@ INSTANTIATE_TEST_SUITE_P(RenamerTestHlsl, "public", "radians", "rcp", - // "reflect", // WGSL intrinsic + // "reflect", // WGSL builtin "refract", "register", "reinterpret_cast", // "return", // WGSL keyword - // "reversebits", // WGSL intrinsic - // "round", // WGSL intrinsic + // "reversebits", // WGSL builtin + // "round", // WGSL builtin "row_major", "rsqrt", "sample", @@ -1046,25 +1046,25 @@ INSTANTIATE_TEST_SUITE_P(RenamerTestHlsl, "saturate", "shared", "short", - // "sign", // WGSL intrinsic + // "sign", // WGSL builtin "signed", - // "sin", // WGSL intrinsic + // "sin", // WGSL builtin "sincos", - // "sinh", // WGSL intrinsic + // "sinh", // WGSL builtin "sizeof", - // "smoothstep", // WGSL intrinsic + // "smoothstep", // WGSL builtin "snorm", - // "sqrt", // WGSL intrinsic + // "sqrt", // WGSL builtin "stateblock", "stateblock_state", "static", "static_cast", - // "step", // WGSL intrinsic + // "step", // WGSL builtin "string", // "struct", // WGSL keyword // "switch", // WGSL keyword - // "tan", // WGSL intrinsic - // "tanh", // WGSL intrinsic + // "tan", // WGSL builtin + // "tanh", // WGSL builtin "tbuffer", "technique", "technique10", @@ -1106,7 +1106,7 @@ INSTANTIATE_TEST_SUITE_P(RenamerTestHlsl, "triangle", "triangleadj", // "true", // WGSL keyword - // "trunc", // WGSL intrinsic + // "trunc", // WGSL builtin "try", // "typedef", // WGSL keyword "typename", diff --git a/src/transform/robustness.cc b/src/transform/robustness.cc index ae0184594b..577e88ed21 100644 --- a/src/transform/robustness.cc +++ b/src/transform/robustness.cc @@ -200,24 +200,24 @@ struct Robustness::State { return b.IndexAccessor(src, obj, idx.expr); } - /// @param type intrinsic type - /// @returns true if the given intrinsic is a texture function that requires + /// @param type builtin type + /// @returns true if the given builtin is a texture function that requires /// argument clamping, - bool TextureIntrinsicNeedsClamping(sem::IntrinsicType type) { - return type == sem::IntrinsicType::kTextureLoad || - type == sem::IntrinsicType::kTextureStore; + bool TextureBuiltinNeedsClamping(sem::BuiltinType type) { + return type == sem::BuiltinType::kTextureLoad || + type == sem::BuiltinType::kTextureStore; } /// Apply bounds clamping to the coordinates, array index and level arguments - /// of the `textureLoad()` and `textureStore()` intrinsics. - /// @param expr the intrinsic call expression + /// of the `textureLoad()` and `textureStore()` builtins. + /// @param expr the builtin call expression /// @return the clamped replacement call expression, or nullptr if `expr` /// should be cloned without changes. const ast::CallExpression* Transform(const ast::CallExpression* expr) { auto* call = ctx.src->Sem().Get(expr); auto* call_target = call->Target(); - auto* intrinsic = call_target->As(); - if (!intrinsic || !TextureIntrinsicNeedsClamping(intrinsic->Type())) { + auto* builtin = call_target->As(); + if (!builtin || !TextureBuiltinNeedsClamping(builtin->Type())) { return nullptr; // No transform, just clone. } @@ -225,7 +225,7 @@ struct Robustness::State { // Indices of the mandatory texture and coords parameters, and the optional // array and level parameters. - auto& signature = intrinsic->Signature(); + auto& signature = builtin->Signature(); auto texture_idx = signature.IndexOf(sem::ParameterUsage::kTexture); auto coords_idx = signature.IndexOf(sem::ParameterUsage::kCoords); auto array_idx = signature.IndexOf(sem::ParameterUsage::kArrayIndex); @@ -233,7 +233,7 @@ struct Robustness::State { auto* texture_arg = expr->args[texture_idx]; auto* coords_arg = expr->args[coords_idx]; - auto* coords_ty = intrinsic->Parameters()[coords_idx]->Type(); + auto* coords_ty = builtin->Parameters()[coords_idx]->Type(); // If the level is provided, then we need to clamp this. As the level is // used by textureDimensions() and the texture[Load|Store]() calls, we need diff --git a/src/writer/glsl/generator_impl.cc b/src/writer/glsl/generator_impl.cc index ab5cc4aed1..a5e8941e76 100644 --- a/src/writer/glsl/generator_impl.cc +++ b/src/writer/glsl/generator_impl.cc @@ -444,8 +444,8 @@ bool GeneratorImpl::EmitCall(std::ostream& out, if (auto* func = target->As()) { return EmitFunctionCall(out, call, func); } - if (auto* intrinsic = target->As()) { - return EmitIntrinsicCall(out, call, intrinsic); + if (auto* builtin = target->As()) { + return EmitBuiltinCall(out, call, builtin); } if (auto* cast = target->As()) { return EmitTypeConversion(out, call, cast); @@ -501,47 +501,47 @@ bool GeneratorImpl::EmitFunctionCall(std::ostream& out, return true; } -bool GeneratorImpl::EmitIntrinsicCall(std::ostream& out, - const sem::Call* call, - const sem::Intrinsic* intrinsic) { +bool GeneratorImpl::EmitBuiltinCall(std::ostream& out, + const sem::Call* call, + const sem::Builtin* builtin) { auto* expr = call->Declaration(); - if (intrinsic->IsTexture()) { - return EmitTextureCall(out, call, intrinsic); + if (builtin->IsTexture()) { + return EmitTextureCall(out, call, builtin); } - if (intrinsic->Type() == sem::IntrinsicType::kSelect) { + if (builtin->Type() == sem::BuiltinType::kSelect) { return EmitSelectCall(out, expr); } - if (intrinsic->Type() == sem::IntrinsicType::kDot) { - return EmitDotCall(out, expr, intrinsic); + if (builtin->Type() == sem::BuiltinType::kDot) { + return EmitDotCall(out, expr, builtin); } - if (intrinsic->Type() == sem::IntrinsicType::kModf) { - return EmitModfCall(out, expr, intrinsic); + if (builtin->Type() == sem::BuiltinType::kModf) { + return EmitModfCall(out, expr, builtin); } - if (intrinsic->Type() == sem::IntrinsicType::kFrexp) { - return EmitFrexpCall(out, expr, intrinsic); + if (builtin->Type() == sem::BuiltinType::kFrexp) { + return EmitFrexpCall(out, expr, builtin); } - if (intrinsic->Type() == sem::IntrinsicType::kIsNormal) { - return EmitIsNormalCall(out, expr, intrinsic); + if (builtin->Type() == sem::BuiltinType::kIsNormal) { + return EmitIsNormalCall(out, expr, builtin); } - if (intrinsic->Type() == sem::IntrinsicType::kDegrees) { - return EmitDegreesCall(out, expr, intrinsic); + if (builtin->Type() == sem::BuiltinType::kDegrees) { + return EmitDegreesCall(out, expr, builtin); } - if (intrinsic->Type() == sem::IntrinsicType::kRadians) { - return EmitRadiansCall(out, expr, intrinsic); + if (builtin->Type() == sem::BuiltinType::kRadians) { + return EmitRadiansCall(out, expr, builtin); } - if (intrinsic->IsDataPacking()) { - return EmitDataPackingCall(out, expr, intrinsic); + if (builtin->IsDataPacking()) { + return EmitDataPackingCall(out, expr, builtin); } - if (intrinsic->IsDataUnpacking()) { - return EmitDataUnpackingCall(out, expr, intrinsic); + if (builtin->IsDataUnpacking()) { + return EmitDataUnpackingCall(out, expr, builtin); } - if (intrinsic->IsBarrier()) { - return EmitBarrierCall(out, intrinsic); + if (builtin->IsBarrier()) { + return EmitBarrierCall(out, builtin); } - if (intrinsic->IsAtomic()) { - return EmitWorkgroupAtomicCall(out, expr, intrinsic); + if (builtin->IsAtomic()) { + return EmitWorkgroupAtomicCall(out, expr, builtin); } - auto name = generate_builtin_name(intrinsic); + auto name = generate_builtin_name(builtin); if (name.empty()) { return false; } @@ -621,7 +621,7 @@ bool GeneratorImpl::EmitTypeConstructor(std::ostream& out, bool GeneratorImpl::EmitWorkgroupAtomicCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { + const sem::Builtin* builtin) { auto call = [&](const char* name) { out << name; { @@ -639,8 +639,8 @@ bool GeneratorImpl::EmitWorkgroupAtomicCall(std::ostream& out, return true; }; - switch (intrinsic->Type()) { - case sem::IntrinsicType::kAtomicLoad: { + switch (builtin->Type()) { + case sem::BuiltinType::kAtomicLoad: { // GLSL does not have an atomicLoad, so we emulate it with // atomicOr using 0 as the OR value out << "atomicOr"; @@ -650,19 +650,19 @@ bool GeneratorImpl::EmitWorkgroupAtomicCall(std::ostream& out, return false; } out << ", 0"; - if (intrinsic->ReturnType()->Is()) { + if (builtin->ReturnType()->Is()) { out << "u"; } } return true; } - case sem::IntrinsicType::kAtomicCompareExchangeWeak: { - return CallIntrinsicHelper( - out, expr, intrinsic, + case sem::BuiltinType::kAtomicCompareExchangeWeak: { + return CallBuiltinHelper( + out, expr, builtin, [&](TextBuffer* b, const std::vector& params) { { auto pre = line(b); - if (!EmitTypeAndName(pre, intrinsic->ReturnType(), + if (!EmitTypeAndName(pre, builtin->ReturnType(), ast::StorageClass::kNone, ast::Access::kUndefined, "result")) { return false; @@ -694,27 +694,27 @@ bool GeneratorImpl::EmitWorkgroupAtomicCall(std::ostream& out, }); } - case sem::IntrinsicType::kAtomicAdd: - case sem::IntrinsicType::kAtomicSub: + case sem::BuiltinType::kAtomicAdd: + case sem::BuiltinType::kAtomicSub: return call("atomicAdd"); - case sem::IntrinsicType::kAtomicMax: + case sem::BuiltinType::kAtomicMax: return call("atomicMax"); - case sem::IntrinsicType::kAtomicMin: + case sem::BuiltinType::kAtomicMin: return call("atomicMin"); - case sem::IntrinsicType::kAtomicAnd: + case sem::BuiltinType::kAtomicAnd: return call("atomicAnd"); - case sem::IntrinsicType::kAtomicOr: + case sem::BuiltinType::kAtomicOr: return call("atomicOr"); - case sem::IntrinsicType::kAtomicXor: + case sem::BuiltinType::kAtomicXor: return call("atomicXor"); - case sem::IntrinsicType::kAtomicExchange: - case sem::IntrinsicType::kAtomicStore: + case sem::BuiltinType::kAtomicExchange: + case sem::BuiltinType::kAtomicStore: // GLSL does not have an atomicStore, so we emulate it with // atomicExchange. return call("atomicExchange"); @@ -724,7 +724,7 @@ bool GeneratorImpl::EmitWorkgroupAtomicCall(std::ostream& out, } TINT_UNREACHABLE(Writer, diagnostics_) - << "unsupported atomic intrinsic: " << intrinsic->Type(); + << "unsupported atomic builtin: " << builtin->Type(); return false; } @@ -755,8 +755,8 @@ bool GeneratorImpl::EmitSelectCall(std::ostream& out, bool GeneratorImpl::EmitDotCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { - auto* vec_ty = intrinsic->Parameters()[0]->Type()->As(); + const sem::Builtin* builtin) { + auto* vec_ty = builtin->Parameters()[0]->Type()->As(); std::string fn = "dot"; if (vec_ty->type()->is_integer_scalar()) { // GLSL does not have a builtin for dot() with integer vector types. @@ -827,12 +827,12 @@ bool GeneratorImpl::EmitDotCall(std::ostream& out, bool GeneratorImpl::EmitModfCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { + const sem::Builtin* builtin) { if (expr->args.size() == 1) { - return CallIntrinsicHelper( - out, expr, intrinsic, + return CallBuiltinHelper( + out, expr, builtin, [&](TextBuffer* b, const std::vector& params) { - auto* ty = intrinsic->Parameters()[0]->Type(); + auto* ty = builtin->Parameters()[0]->Type(); auto in = params[0]; std::string width; @@ -843,7 +843,7 @@ bool GeneratorImpl::EmitModfCall(std::ostream& out, // Emit the builtin return type unique to this overload. This does not // exist in the AST, so it will not be generated in Generate(). if (!EmitStructType(&helpers_, - intrinsic->ReturnType()->As())) { + builtin->ReturnType()->As())) { return false; } @@ -851,7 +851,7 @@ bool GeneratorImpl::EmitModfCall(std::ostream& out, line(b) << "float" << width << " fract = modf(" << in << ", whole);"; { auto l = line(b); - if (!EmitType(l, intrinsic->ReturnType(), ast::StorageClass::kNone, + if (!EmitType(l, builtin->ReturnType(), ast::StorageClass::kNone, ast::Access::kUndefined, "")) { return false; } @@ -877,12 +877,12 @@ bool GeneratorImpl::EmitModfCall(std::ostream& out, bool GeneratorImpl::EmitFrexpCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { + const sem::Builtin* builtin) { if (expr->args.size() == 1) { - return CallIntrinsicHelper( - out, expr, intrinsic, + return CallBuiltinHelper( + out, expr, builtin, [&](TextBuffer* b, const std::vector& params) { - auto* ty = intrinsic->Parameters()[0]->Type(); + auto* ty = builtin->Parameters()[0]->Type(); auto in = params[0]; std::string width; @@ -893,7 +893,7 @@ bool GeneratorImpl::EmitFrexpCall(std::ostream& out, // Emit the builtin return type unique to this overload. This does not // exist in the AST, so it will not be generated in Generate(). if (!EmitStructType(&helpers_, - intrinsic->ReturnType()->As())) { + builtin->ReturnType()->As())) { return false; } @@ -901,7 +901,7 @@ bool GeneratorImpl::EmitFrexpCall(std::ostream& out, line(b) << "float" << width << " sig = frexp(" << in << ", exp);"; { auto l = line(b); - if (!EmitType(l, intrinsic->ReturnType(), ast::StorageClass::kNone, + if (!EmitType(l, builtin->ReturnType(), ast::StorageClass::kNone, ast::Access::kUndefined, "")) { return false; } @@ -914,12 +914,12 @@ bool GeneratorImpl::EmitFrexpCall(std::ostream& out, // DEPRECATED // Exponent is an integer in WGSL, but HLSL wants a float. // We need to make the call with a temporary float, and then cast. - return CallIntrinsicHelper( - out, expr, intrinsic, + return CallBuiltinHelper( + out, expr, builtin, [&](TextBuffer* b, const std::vector& params) { - auto* significand_ty = intrinsic->Parameters()[0]->Type(); + auto* significand_ty = builtin->Parameters()[0]->Type(); auto significand = params[0]; - auto* exponent_ty = intrinsic->Parameters()[1]->Type(); + auto* exponent_ty = builtin->Parameters()[1]->Type(); auto exponent = params[1]; std::string width; @@ -948,12 +948,12 @@ bool GeneratorImpl::EmitFrexpCall(std::ostream& out, bool GeneratorImpl::EmitIsNormalCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { - // GLSL doesn't have a isNormal intrinsic, we need to emulate - return CallIntrinsicHelper( - out, expr, intrinsic, + const sem::Builtin* builtin) { + // GLSL doesn't have a isNormal builtin, we need to emulate + return CallBuiltinHelper( + out, expr, builtin, [&](TextBuffer* b, const std::vector& params) { - auto* input_ty = intrinsic->Parameters()[0]->Type(); + auto* input_ty = builtin->Parameters()[0]->Type(); std::string width; if (auto* vec = input_ty->As()) { @@ -976,9 +976,9 @@ bool GeneratorImpl::EmitIsNormalCall(std::ostream& out, bool GeneratorImpl::EmitDegreesCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { - return CallIntrinsicHelper( - out, expr, intrinsic, + const sem::Builtin* builtin) { + return CallBuiltinHelper( + out, expr, builtin, [&](TextBuffer* b, const std::vector& params) { line(b) << "return " << params[0] << " * " << std::setprecision(20) << sem::kRadToDeg << ";"; @@ -988,9 +988,9 @@ bool GeneratorImpl::EmitDegreesCall(std::ostream& out, bool GeneratorImpl::EmitRadiansCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { - return CallIntrinsicHelper( - out, expr, intrinsic, + const sem::Builtin* builtin) { + return CallBuiltinHelper( + out, expr, builtin, [&](TextBuffer* b, const std::vector& params) { line(b) << "return " << params[0] << " * " << std::setprecision(20) << sem::kDegToRad << ";"; @@ -1000,28 +1000,28 @@ bool GeneratorImpl::EmitRadiansCall(std::ostream& out, bool GeneratorImpl::EmitDataPackingCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { - return CallIntrinsicHelper( - out, expr, intrinsic, + const sem::Builtin* builtin) { + return CallBuiltinHelper( + out, expr, builtin, [&](TextBuffer* b, const std::vector& params) { uint32_t dims = 2; bool is_signed = false; uint32_t scale = 65535; - if (intrinsic->Type() == sem::IntrinsicType::kPack4x8snorm || - intrinsic->Type() == sem::IntrinsicType::kPack4x8unorm) { + if (builtin->Type() == sem::BuiltinType::kPack4x8snorm || + builtin->Type() == sem::BuiltinType::kPack4x8unorm) { dims = 4; scale = 255; } - if (intrinsic->Type() == sem::IntrinsicType::kPack4x8snorm || - intrinsic->Type() == sem::IntrinsicType::kPack2x16snorm) { + if (builtin->Type() == sem::BuiltinType::kPack4x8snorm || + builtin->Type() == sem::BuiltinType::kPack2x16snorm) { is_signed = true; scale = (scale - 1) / 2; } - switch (intrinsic->Type()) { - case sem::IntrinsicType::kPack4x8snorm: - case sem::IntrinsicType::kPack4x8unorm: - case sem::IntrinsicType::kPack2x16snorm: - case sem::IntrinsicType::kPack2x16unorm: { + switch (builtin->Type()) { + case sem::BuiltinType::kPack4x8snorm: + case sem::BuiltinType::kPack4x8unorm: + case sem::BuiltinType::kPack2x16snorm: + case sem::BuiltinType::kPack2x16unorm: { { auto l = line(b); l << (is_signed ? "" : "u") << "int" << dims @@ -1048,7 +1048,7 @@ bool GeneratorImpl::EmitDataPackingCall(std::ostream& out, } break; } - case sem::IntrinsicType::kPack2x16float: { + case sem::BuiltinType::kPack2x16float: { line(b) << "uint2 i = f32tof16(" << params[0] << ");"; line(b) << "return i.x | (i.y << 16);"; break; @@ -1056,7 +1056,7 @@ bool GeneratorImpl::EmitDataPackingCall(std::ostream& out, default: diagnostics_.add_error( diag::System::Writer, - "Internal error: unhandled data packing intrinsic"); + "Internal error: unhandled data packing builtin"); return false; } @@ -1066,26 +1066,26 @@ bool GeneratorImpl::EmitDataPackingCall(std::ostream& out, bool GeneratorImpl::EmitDataUnpackingCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { - return CallIntrinsicHelper( - out, expr, intrinsic, + const sem::Builtin* builtin) { + return CallBuiltinHelper( + out, expr, builtin, [&](TextBuffer* b, const std::vector& params) { uint32_t dims = 2; bool is_signed = false; uint32_t scale = 65535; - if (intrinsic->Type() == sem::IntrinsicType::kUnpack4x8snorm || - intrinsic->Type() == sem::IntrinsicType::kUnpack4x8unorm) { + if (builtin->Type() == sem::BuiltinType::kUnpack4x8snorm || + builtin->Type() == sem::BuiltinType::kUnpack4x8unorm) { dims = 4; scale = 255; } - if (intrinsic->Type() == sem::IntrinsicType::kUnpack4x8snorm || - intrinsic->Type() == sem::IntrinsicType::kUnpack2x16snorm) { + if (builtin->Type() == sem::BuiltinType::kUnpack4x8snorm || + builtin->Type() == sem::BuiltinType::kUnpack2x16snorm) { is_signed = true; scale = (scale - 1) / 2; } - switch (intrinsic->Type()) { - case sem::IntrinsicType::kUnpack4x8snorm: - case sem::IntrinsicType::kUnpack2x16snorm: { + switch (builtin->Type()) { + case sem::BuiltinType::kUnpack4x8snorm: + case sem::BuiltinType::kUnpack2x16snorm: { line(b) << "int j = int(" << params[0] << ");"; { // Perform sign extension on the converted values. auto l = line(b); @@ -1101,8 +1101,8 @@ bool GeneratorImpl::EmitDataUnpackingCall(std::ostream& out, << ".0, " << (is_signed ? "-1.0" : "0.0") << ", 1.0);"; break; } - case sem::IntrinsicType::kUnpack4x8unorm: - case sem::IntrinsicType::kUnpack2x16unorm: { + case sem::BuiltinType::kUnpack4x8unorm: + case sem::BuiltinType::kUnpack2x16unorm: { line(b) << "uint j = " << params[0] << ";"; { auto l = line(b); @@ -1119,14 +1119,14 @@ bool GeneratorImpl::EmitDataUnpackingCall(std::ostream& out, line(b) << "return float" << dims << "(i) / " << scale << ".0;"; break; } - case sem::IntrinsicType::kUnpack2x16float: + case sem::BuiltinType::kUnpack2x16float: line(b) << "uint i = " << params[0] << ";"; line(b) << "return f16tof32(uint2(i & 0xffff, i >> 16));"; break; default: diagnostics_.add_error( diag::System::Writer, - "Internal error: unhandled data packing intrinsic"); + "Internal error: unhandled data packing builtin"); return false; } @@ -1135,16 +1135,16 @@ bool GeneratorImpl::EmitDataUnpackingCall(std::ostream& out, } bool GeneratorImpl::EmitBarrierCall(std::ostream& out, - const sem::Intrinsic* intrinsic) { + const sem::Builtin* builtin) { // TODO(crbug.com/tint/661): Combine sequential barriers to a single // instruction. - if (intrinsic->Type() == sem::IntrinsicType::kWorkgroupBarrier) { + if (builtin->Type() == sem::BuiltinType::kWorkgroupBarrier) { out << "memoryBarrierShared()"; - } else if (intrinsic->Type() == sem::IntrinsicType::kStorageBarrier) { + } else if (builtin->Type() == sem::BuiltinType::kStorageBarrier) { out << "memoryBarrierBuffer()"; } else { TINT_UNREACHABLE(Writer, diagnostics_) - << "unexpected barrier intrinsic type " << sem::str(intrinsic->Type()); + << "unexpected barrier builtin type " << sem::str(builtin->Type()); return false; } return true; @@ -1152,10 +1152,10 @@ bool GeneratorImpl::EmitBarrierCall(std::ostream& out, bool GeneratorImpl::EmitTextureCall(std::ostream& out, const sem::Call* call, - const sem::Intrinsic* intrinsic) { + const sem::Builtin* builtin) { using Usage = sem::ParameterUsage; - auto& signature = intrinsic->Signature(); + auto& signature = builtin->Signature(); auto* expr = call->Declaration(); auto arguments = expr->args; @@ -1173,8 +1173,8 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, auto* texture_type = TypeOf(texture)->UnwrapRef()->As(); - switch (intrinsic->Type()) { - case sem::IntrinsicType::kTextureDimensions: { + switch (builtin->Type()) { + case sem::BuiltinType::kTextureDimensions: { if (texture_type->Is()) { out << "imageSize("; } else { @@ -1207,8 +1207,8 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, return true; } // TODO(senorblanco): determine if this works for array textures - case sem::IntrinsicType::kTextureNumLayers: - case sem::IntrinsicType::kTextureNumLevels: { + case sem::BuiltinType::kTextureNumLayers: + case sem::BuiltinType::kTextureNumLevels: { out << "textureQueryLevels("; if (!EmitExpression(out, texture)) { return false; @@ -1216,7 +1216,7 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, out << ");"; return true; } - case sem::IntrinsicType::kTextureNumSamples: { + case sem::BuiltinType::kTextureNumSamples: { out << "textureSamples("; if (!EmitExpression(out, texture)) { return false; @@ -1231,44 +1231,44 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, uint32_t glsl_ret_width = 4u; bool is_depth = texture_type->Is(); - switch (intrinsic->Type()) { - case sem::IntrinsicType::kTextureSample: - case sem::IntrinsicType::kTextureSampleBias: + switch (builtin->Type()) { + case sem::BuiltinType::kTextureSample: + case sem::BuiltinType::kTextureSampleBias: out << "texture"; if (is_depth) { glsl_ret_width = 1u; } break; - case sem::IntrinsicType::kTextureSampleLevel: + case sem::BuiltinType::kTextureSampleLevel: out << "textureLod"; break; - case sem::IntrinsicType::kTextureGather: - case sem::IntrinsicType::kTextureGatherCompare: + case sem::BuiltinType::kTextureGather: + case sem::BuiltinType::kTextureGatherCompare: out << "textureGather"; break; - case sem::IntrinsicType::kTextureSampleGrad: + case sem::BuiltinType::kTextureSampleGrad: out << "textureGrad"; break; - case sem::IntrinsicType::kTextureSampleCompare: - case sem::IntrinsicType::kTextureSampleCompareLevel: + case sem::BuiltinType::kTextureSampleCompare: + case sem::BuiltinType::kTextureSampleCompareLevel: out << "texture"; glsl_ret_width = 1; break; - case sem::IntrinsicType::kTextureLoad: + case sem::BuiltinType::kTextureLoad: out << "texelFetch"; break; - case sem::IntrinsicType::kTextureStore: + case sem::BuiltinType::kTextureStore: out << "imageStore"; break; default: diagnostics_.add_error( diag::System::Writer, - "Internal compiler error: Unhandled texture intrinsic '" + - std::string(intrinsic->str()) + "'"); + "Internal compiler error: Unhandled texture builtin '" + + std::string(builtin->str()) + "'"); return false; } - if (intrinsic->Signature().IndexOf(sem::ParameterUsage::kOffset) >= 0) { + if (builtin->Signature().IndexOf(sem::ParameterUsage::kOffset) >= 0) { out << "Offset"; } @@ -1299,7 +1299,7 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, if (auto* depth_ref = arg(Usage::kDepthRef)) { param_coords = AppendVector(&builder_, param_coords, depth_ref)->Declaration(); - } else if (intrinsic->Type() == sem::IntrinsicType::kTextureSample) { + } else if (builtin->Type() == sem::BuiltinType::kTextureSample) { // Sampling a depth texture in GLSL always requires a depth reference, so // append zero here. auto* f32 = builder_.create(); @@ -1327,7 +1327,7 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, } // GLSL's textureGather always requires a refZ parameter. - if (is_depth && intrinsic->Type() == sem::IntrinsicType::kTextureGather) { + if (is_depth && builtin->Type() == sem::BuiltinType::kTextureGather) { out << ", 0.0"; } @@ -1347,21 +1347,21 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, if (!EmitExpression(out, e)) { return false; } - } else if (intrinsic->Type() == sem::IntrinsicType::kTextureSample) { + } else if (builtin->Type() == sem::BuiltinType::kTextureSample) { out << ", 0.0f"; } } out << ")"; - if (intrinsic->ReturnType()->Is()) { + if (builtin->ReturnType()->Is()) { return true; } - // If the intrinsic return type does not match the number of elements of the - // GLSL intrinsic, we need to swizzle the expression to generate the correct + // If the builtin return type does not match the number of elements of the + // GLSL builtin, we need to swizzle the expression to generate the correct // number of components. uint32_t wgsl_ret_width = 1; - if (auto* vec = intrinsic->ReturnType()->As()) { + if (auto* vec = builtin->ReturnType()->As()) { wgsl_ret_width = vec->Width(); } if (wgsl_ret_width < glsl_ret_width) { @@ -1374,100 +1374,99 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, TINT_ICE(Writer, diagnostics_) << "WGSL return width (" << wgsl_ret_width << ") is wider than GLSL return width (" << glsl_ret_width << ") for " - << intrinsic->Type(); + << builtin->Type(); return false; } return true; } -std::string GeneratorImpl::generate_builtin_name( - const sem::Intrinsic* intrinsic) { - switch (intrinsic->Type()) { - case sem::IntrinsicType::kAbs: - case sem::IntrinsicType::kAcos: - case sem::IntrinsicType::kAll: - case sem::IntrinsicType::kAny: - case sem::IntrinsicType::kAsin: - case sem::IntrinsicType::kAtan: - case sem::IntrinsicType::kCeil: - case sem::IntrinsicType::kClamp: - case sem::IntrinsicType::kCos: - case sem::IntrinsicType::kCosh: - case sem::IntrinsicType::kCross: - case sem::IntrinsicType::kDeterminant: - case sem::IntrinsicType::kDistance: - case sem::IntrinsicType::kDot: - case sem::IntrinsicType::kExp: - case sem::IntrinsicType::kExp2: - case sem::IntrinsicType::kFloor: - case sem::IntrinsicType::kFrexp: - case sem::IntrinsicType::kLdexp: - case sem::IntrinsicType::kLength: - case sem::IntrinsicType::kLog: - case sem::IntrinsicType::kLog2: - case sem::IntrinsicType::kMax: - case sem::IntrinsicType::kMin: - case sem::IntrinsicType::kModf: - case sem::IntrinsicType::kNormalize: - case sem::IntrinsicType::kPow: - case sem::IntrinsicType::kReflect: - case sem::IntrinsicType::kRefract: - case sem::IntrinsicType::kRound: - case sem::IntrinsicType::kSign: - case sem::IntrinsicType::kSin: - case sem::IntrinsicType::kSinh: - case sem::IntrinsicType::kSqrt: - case sem::IntrinsicType::kStep: - case sem::IntrinsicType::kTan: - case sem::IntrinsicType::kTanh: - case sem::IntrinsicType::kTranspose: - case sem::IntrinsicType::kTrunc: - return intrinsic->str(); - case sem::IntrinsicType::kAtan2: +std::string GeneratorImpl::generate_builtin_name(const sem::Builtin* builtin) { + switch (builtin->Type()) { + case sem::BuiltinType::kAbs: + case sem::BuiltinType::kAcos: + case sem::BuiltinType::kAll: + case sem::BuiltinType::kAny: + case sem::BuiltinType::kAsin: + case sem::BuiltinType::kAtan: + case sem::BuiltinType::kCeil: + case sem::BuiltinType::kClamp: + case sem::BuiltinType::kCos: + case sem::BuiltinType::kCosh: + case sem::BuiltinType::kCross: + case sem::BuiltinType::kDeterminant: + case sem::BuiltinType::kDistance: + case sem::BuiltinType::kDot: + case sem::BuiltinType::kExp: + case sem::BuiltinType::kExp2: + case sem::BuiltinType::kFloor: + case sem::BuiltinType::kFrexp: + case sem::BuiltinType::kLdexp: + case sem::BuiltinType::kLength: + case sem::BuiltinType::kLog: + case sem::BuiltinType::kLog2: + case sem::BuiltinType::kMax: + case sem::BuiltinType::kMin: + case sem::BuiltinType::kModf: + case sem::BuiltinType::kNormalize: + case sem::BuiltinType::kPow: + case sem::BuiltinType::kReflect: + case sem::BuiltinType::kRefract: + case sem::BuiltinType::kRound: + case sem::BuiltinType::kSign: + case sem::BuiltinType::kSin: + case sem::BuiltinType::kSinh: + case sem::BuiltinType::kSqrt: + case sem::BuiltinType::kStep: + case sem::BuiltinType::kTan: + case sem::BuiltinType::kTanh: + case sem::BuiltinType::kTranspose: + case sem::BuiltinType::kTrunc: + return builtin->str(); + case sem::BuiltinType::kAtan2: return "atan"; - case sem::IntrinsicType::kCountOneBits: + case sem::BuiltinType::kCountOneBits: return "countbits"; - case sem::IntrinsicType::kDpdx: + case sem::BuiltinType::kDpdx: return "ddx"; - case sem::IntrinsicType::kDpdxCoarse: + case sem::BuiltinType::kDpdxCoarse: return "ddx_coarse"; - case sem::IntrinsicType::kDpdxFine: + case sem::BuiltinType::kDpdxFine: return "ddx_fine"; - case sem::IntrinsicType::kDpdy: + case sem::BuiltinType::kDpdy: return "ddy"; - case sem::IntrinsicType::kDpdyCoarse: + case sem::BuiltinType::kDpdyCoarse: return "ddy_coarse"; - case sem::IntrinsicType::kDpdyFine: + case sem::BuiltinType::kDpdyFine: return "ddy_fine"; - case sem::IntrinsicType::kFaceForward: + case sem::BuiltinType::kFaceForward: return "faceforward"; - case sem::IntrinsicType::kFract: + case sem::BuiltinType::kFract: return "frac"; - case sem::IntrinsicType::kFma: + case sem::BuiltinType::kFma: return "mad"; - case sem::IntrinsicType::kFwidth: - case sem::IntrinsicType::kFwidthCoarse: - case sem::IntrinsicType::kFwidthFine: + case sem::BuiltinType::kFwidth: + case sem::BuiltinType::kFwidthCoarse: + case sem::BuiltinType::kFwidthFine: return "fwidth"; - case sem::IntrinsicType::kInverseSqrt: + case sem::BuiltinType::kInverseSqrt: return "rsqrt"; - case sem::IntrinsicType::kIsFinite: + case sem::BuiltinType::kIsFinite: return "isfinite"; - case sem::IntrinsicType::kIsInf: + case sem::BuiltinType::kIsInf: return "isinf"; - case sem::IntrinsicType::kIsNan: + case sem::BuiltinType::kIsNan: return "isnan"; - case sem::IntrinsicType::kMix: + case sem::BuiltinType::kMix: return "mix"; - case sem::IntrinsicType::kReverseBits: + case sem::BuiltinType::kReverseBits: return "reversebits"; - case sem::IntrinsicType::kSmoothStep: + case sem::BuiltinType::kSmoothStep: return "smoothstep"; default: diagnostics_.add_error( diag::System::Writer, - "Unknown builtin method: " + std::string(intrinsic->str())); + "Unknown builtin method: " + std::string(builtin->str())); } return ""; @@ -2624,28 +2623,28 @@ bool GeneratorImpl::EmitProgramConstVariable(const ast::Variable* var) { } template -bool GeneratorImpl::CallIntrinsicHelper(std::ostream& out, - const ast::CallExpression* call, - const sem::Intrinsic* intrinsic, - F&& build) { +bool GeneratorImpl::CallBuiltinHelper(std::ostream& out, + const ast::CallExpression* call, + const sem::Builtin* builtin, + F&& build) { // Generate the helper function if it hasn't been created already - auto fn = utils::GetOrCreate(intrinsics_, intrinsic, [&]() -> std::string { + auto fn = utils::GetOrCreate(builtins_, builtin, [&]() -> std::string { TextBuffer b; TINT_DEFER(helpers_.Append(b)); auto fn_name = - UniqueIdentifier(std::string("tint_") + sem::str(intrinsic->Type())); + UniqueIdentifier(std::string("tint_") + sem::str(builtin->Type())); std::vector parameter_names; { auto decl = line(&b); - if (!EmitTypeAndName(decl, intrinsic->ReturnType(), + if (!EmitTypeAndName(decl, builtin->ReturnType(), ast::StorageClass::kNone, ast::Access::kUndefined, fn_name)) { return ""; } { ScopedParen sp(decl); - for (auto* param : intrinsic->Parameters()) { + for (auto* param : builtin->Parameters()) { if (!parameter_names.empty()) { decl << ", "; } diff --git a/src/writer/glsl/generator_impl.h b/src/writer/glsl/generator_impl.h index f48b5d627e..9bdba66669 100644 --- a/src/writer/glsl/generator_impl.h +++ b/src/writer/glsl/generator_impl.h @@ -42,7 +42,7 @@ namespace tint { // Forward declarations namespace sem { class Call; -class Intrinsic; +class Builtin; class TypeConstructor; class TypeConversion; } // namespace sem @@ -116,14 +116,14 @@ class GeneratorImpl : public TextGenerator { bool EmitFunctionCall(std::ostream& out, const sem::Call* call, const sem::Function* function); - /// Handles generating an intrinsic call expression + /// Handles generating a builtin call expression /// @param out the output of the expression stream /// @param call the call expression - /// @param intrinsic the intrinsic being called + /// @param builtin the builtin being called /// @returns true if the expression is emitted - bool EmitIntrinsicCall(std::ostream& out, - const sem::Call* call, - const sem::Intrinsic* intrinsic); + bool EmitBuiltinCall(std::ostream& out, + const sem::Call* call, + const sem::Builtin* builtin); /// Handles generating a type conversion expression /// @param out the output of the expression stream /// @param call the call expression @@ -140,11 +140,11 @@ class GeneratorImpl : public TextGenerator { bool EmitTypeConstructor(std::ostream& out, const sem::Call* call, const sem::TypeConstructor* ctor); - /// Handles generating a barrier intrinsic call + /// Handles generating a barrier builtin call /// @param out the output of the expression stream - /// @param intrinsic the semantic information for the barrier intrinsic + /// @param builtin the semantic information for the barrier builtin /// @returns true if the call expression is emitted - bool EmitBarrierCall(std::ostream& out, const sem::Intrinsic* intrinsic); + bool EmitBarrierCall(std::ostream& out, const sem::Builtin* builtin); /// Handles generating an atomic intrinsic call for a storage buffer variable /// @param out the output of the expression stream /// @param expr the call expression @@ -154,92 +154,92 @@ class GeneratorImpl : public TextGenerator { std::ostream& out, const ast::CallExpression* expr, const transform::DecomposeMemoryAccess::Intrinsic* intrinsic); - /// Handles generating an atomic intrinsic call for a workgroup variable + /// Handles generating an atomic builtin call for a workgroup variable /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the atomic intrinsic + /// @param builtin the semantic information for the atomic builtin /// @returns true if the call expression is emitted bool EmitWorkgroupAtomicCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); + const sem::Builtin* builtin); /// Handles generating a call to a texture function (`textureSample`, /// `textureSampleGrad`, etc) /// @param out the output of the expression stream /// @param call the call expression - /// @param intrinsic the semantic information for the texture intrinsic + /// @param builtin the semantic information for the texture builtin /// @returns true if the call expression is emitted bool EmitTextureCall(std::ostream& out, const sem::Call* call, - const sem::Intrinsic* intrinsic); - /// Handles generating a call to the `select()` intrinsic + const sem::Builtin* builtin); + /// Handles generating a call to the `select()` builtin /// @param out the output of the expression stream /// @param expr the call expression /// @returns true if the call expression is emitted bool EmitSelectCall(std::ostream& out, const ast::CallExpression* expr); - /// Handles generating a call to the `dot()` intrinsic + /// Handles generating a call to the `dot()` builtin /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the intrinsic + /// @param builtin the semantic information for the builtin /// @returns true if the call expression is emitted bool EmitDotCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); - /// Handles generating a call to the `modf()` intrinsic + const sem::Builtin* builtin); + /// Handles generating a call to the `modf()` builtin /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the intrinsic + /// @param builtin the semantic information for the builtin /// @returns true if the call expression is emitted bool EmitModfCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); - /// Handles generating a call to the `frexp()` intrinsic + const sem::Builtin* builtin); + /// Handles generating a call to the `frexp()` builtin /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the intrinsic + /// @param builtin the semantic information for the builtin /// @returns true if the call expression is emitted bool EmitFrexpCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); - /// Handles generating a call to the `isNormal()` intrinsic + const sem::Builtin* builtin); + /// Handles generating a call to the `isNormal()` builtin /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the intrinsic + /// @param builtin the semantic information for the builtin /// @returns true if the call expression is emitted bool EmitIsNormalCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); - /// Handles generating a call to the `degrees()` intrinsic + const sem::Builtin* builtin); + /// Handles generating a call to the `degrees()` builtin /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the intrinsic + /// @param builtin the semantic information for the builtin /// @returns true if the call expression is emitted bool EmitDegreesCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); - /// Handles generating a call to the `radians()` intrinsic + const sem::Builtin* builtin); + /// Handles generating a call to the `radians()` builtin /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the intrinsic + /// @param builtin the semantic information for the builtin /// @returns true if the call expression is emitted bool EmitRadiansCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); - /// Handles generating a call to data packing intrinsic + const sem::Builtin* builtin); + /// Handles generating a call to data packing builtin /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the texture intrinsic + /// @param builtin the semantic information for the texture builtin /// @returns true if the call expression is emitted bool EmitDataPackingCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); - /// Handles generating a call to data unpacking intrinsic + const sem::Builtin* builtin); + /// Handles generating a call to data unpacking builtin /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the texture intrinsic + /// @param builtin the semantic information for the texture builtin /// @returns true if the call expression is emitted bool EmitDataUnpackingCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); + const sem::Builtin* builtin); /// Handles a case statement /// @param stmt the statement /// @returns true if the statement was emitted successfully @@ -407,9 +407,9 @@ class GeneratorImpl : public TextGenerator { /// @returns true if the variable was emitted bool EmitProgramConstVariable(const ast::Variable* var); /// Handles generating a builtin method name - /// @param intrinsic the semantic info for the intrinsic + /// @param builtin the semantic info for the builtin /// @returns the name or "" if not valid - std::string generate_builtin_name(const sem::Intrinsic* intrinsic); + std::string generate_builtin_name(const sem::Builtin* builtin); /// Converts a builtin to a gl_ string /// @param builtin the builtin to convert /// @param stage pipeline stage in which this builtin is used @@ -444,13 +444,13 @@ class GeneratorImpl : public TextGenerator { }; }; - /// CallIntrinsicHelper will call the intrinsic helper function, creating it - /// if it hasn't been built already. If the intrinsic needs to be built then - /// CallIntrinsicHelper will generate the function signature and will call + /// CallBuiltinHelper will call the builtin helper function, creating it + /// if it hasn't been built already. If the builtin needs to be built then + /// CallBuiltinHelper will generate the function signature and will call /// `build` to emit the body of the function. /// @param out the output of the expression stream /// @param call the call expression - /// @param intrinsic the semantic information for the intrinsic + /// @param builtin the semantic information for the builtin /// @param build a function with the signature: /// `bool(TextBuffer* buffer, const std::vector& params)` /// Where: @@ -458,16 +458,16 @@ class GeneratorImpl : public TextGenerator { /// `params` is the name of all the generated function parameters /// @returns true if the call expression is emitted template - bool CallIntrinsicHelper(std::ostream& out, - const ast::CallExpression* call, - const sem::Intrinsic* intrinsic, - F&& build); + bool CallBuiltinHelper(std::ostream& out, + const ast::CallExpression* call, + const sem::Builtin* builtin, + F&& build); TextBuffer helpers_; // Helper functions emitted at the top of the output std::function emit_continuing_; std::unordered_map dma_intrinsics_; - std::unordered_map intrinsics_; + std::unordered_map builtins_; std::unordered_map structure_builders_; std::unordered_map dynamic_vector_write_; std::unordered_map int_dot_funcs_; diff --git a/src/writer/glsl/generator_impl_intrinsic_test.cc b/src/writer/glsl/generator_impl_builtin_test.cc similarity index 64% rename from src/writer/glsl/generator_impl_intrinsic_test.cc rename to src/writer/glsl/generator_impl_builtin_test.cc index e57a2928b7..d88d38ad67 100644 --- a/src/writer/glsl/generator_impl_intrinsic_test.cc +++ b/src/writer/glsl/generator_impl_builtin_test.cc @@ -23,11 +23,11 @@ namespace writer { namespace glsl { namespace { -using IntrinsicType = sem::IntrinsicType; +using BuiltinType = sem::BuiltinType; using ::testing::HasSubstr; -using GlslGeneratorImplTest_Intrinsic = TestHelper; +using GlslGeneratorImplTest_Builtin = TestHelper; enum class ParamType { kF32, @@ -35,12 +35,12 @@ enum class ParamType { kBool, }; -struct IntrinsicData { - IntrinsicType intrinsic; +struct BuiltinData { + BuiltinType builtin; ParamType type; const char* glsl_name; }; -inline std::ostream& operator<<(std::ostream& out, IntrinsicData data) { +inline std::ostream& operator<<(std::ostream& out, BuiltinData data) { out << data.glsl_name; switch (data.type) { case ParamType::kF32: @@ -57,104 +57,104 @@ inline std::ostream& operator<<(std::ostream& out, IntrinsicData data) { return out; } -const ast::CallExpression* GenerateCall(IntrinsicType intrinsic, +const ast::CallExpression* GenerateCall(BuiltinType builtin, ParamType type, ProgramBuilder* builder) { std::string name; std::ostringstream str(name); - str << intrinsic; - switch (intrinsic) { - case IntrinsicType::kAcos: - case IntrinsicType::kAsin: - case IntrinsicType::kAtan: - case IntrinsicType::kCeil: - case IntrinsicType::kCos: - case IntrinsicType::kCosh: - case IntrinsicType::kDpdx: - case IntrinsicType::kDpdxCoarse: - case IntrinsicType::kDpdxFine: - case IntrinsicType::kDpdy: - case IntrinsicType::kDpdyCoarse: - case IntrinsicType::kDpdyFine: - case IntrinsicType::kExp: - case IntrinsicType::kExp2: - case IntrinsicType::kFloor: - case IntrinsicType::kFract: - case IntrinsicType::kFwidth: - case IntrinsicType::kFwidthCoarse: - case IntrinsicType::kFwidthFine: - case IntrinsicType::kInverseSqrt: - case IntrinsicType::kIsFinite: - case IntrinsicType::kIsInf: - case IntrinsicType::kIsNan: - case IntrinsicType::kIsNormal: - case IntrinsicType::kLength: - case IntrinsicType::kLog: - case IntrinsicType::kLog2: - case IntrinsicType::kNormalize: - case IntrinsicType::kRound: - case IntrinsicType::kSin: - case IntrinsicType::kSinh: - case IntrinsicType::kSqrt: - case IntrinsicType::kTan: - case IntrinsicType::kTanh: - case IntrinsicType::kTrunc: - case IntrinsicType::kSign: + str << builtin; + switch (builtin) { + case BuiltinType::kAcos: + case BuiltinType::kAsin: + case BuiltinType::kAtan: + case BuiltinType::kCeil: + case BuiltinType::kCos: + case BuiltinType::kCosh: + case BuiltinType::kDpdx: + case BuiltinType::kDpdxCoarse: + case BuiltinType::kDpdxFine: + case BuiltinType::kDpdy: + case BuiltinType::kDpdyCoarse: + case BuiltinType::kDpdyFine: + case BuiltinType::kExp: + case BuiltinType::kExp2: + case BuiltinType::kFloor: + case BuiltinType::kFract: + case BuiltinType::kFwidth: + case BuiltinType::kFwidthCoarse: + case BuiltinType::kFwidthFine: + case BuiltinType::kInverseSqrt: + case BuiltinType::kIsFinite: + case BuiltinType::kIsInf: + case BuiltinType::kIsNan: + case BuiltinType::kIsNormal: + case BuiltinType::kLength: + case BuiltinType::kLog: + case BuiltinType::kLog2: + case BuiltinType::kNormalize: + case BuiltinType::kRound: + case BuiltinType::kSin: + case BuiltinType::kSinh: + case BuiltinType::kSqrt: + case BuiltinType::kTan: + case BuiltinType::kTanh: + case BuiltinType::kTrunc: + case BuiltinType::kSign: return builder->Call(str.str(), "f2"); - case IntrinsicType::kLdexp: + case BuiltinType::kLdexp: return builder->Call(str.str(), "f2", "i2"); - case IntrinsicType::kAtan2: - case IntrinsicType::kDot: - case IntrinsicType::kDistance: - case IntrinsicType::kPow: - case IntrinsicType::kReflect: - case IntrinsicType::kStep: + case BuiltinType::kAtan2: + case BuiltinType::kDot: + case BuiltinType::kDistance: + case BuiltinType::kPow: + case BuiltinType::kReflect: + case BuiltinType::kStep: return builder->Call(str.str(), "f2", "f2"); - case IntrinsicType::kCross: + case BuiltinType::kCross: return builder->Call(str.str(), "f3", "f3"); - case IntrinsicType::kFma: - case IntrinsicType::kMix: - case IntrinsicType::kFaceForward: - case IntrinsicType::kSmoothStep: + case BuiltinType::kFma: + case BuiltinType::kMix: + case BuiltinType::kFaceForward: + case BuiltinType::kSmoothStep: return builder->Call(str.str(), "f2", "f2", "f2"); - case IntrinsicType::kAll: - case IntrinsicType::kAny: + case BuiltinType::kAll: + case BuiltinType::kAny: return builder->Call(str.str(), "b2"); - case IntrinsicType::kAbs: + case BuiltinType::kAbs: if (type == ParamType::kF32) { return builder->Call(str.str(), "f2"); } else { return builder->Call(str.str(), "u2"); } - case IntrinsicType::kCountOneBits: - case IntrinsicType::kReverseBits: + case BuiltinType::kCountOneBits: + case BuiltinType::kReverseBits: return builder->Call(str.str(), "u2"); - case IntrinsicType::kMax: - case IntrinsicType::kMin: + case BuiltinType::kMax: + case BuiltinType::kMin: if (type == ParamType::kF32) { return builder->Call(str.str(), "f2", "f2"); } else { return builder->Call(str.str(), "u2", "u2"); } - case IntrinsicType::kClamp: + case BuiltinType::kClamp: if (type == ParamType::kF32) { return builder->Call(str.str(), "f2", "f2", "f2"); } else { return builder->Call(str.str(), "u2", "u2", "u2"); } - case IntrinsicType::kSelect: + case BuiltinType::kSelect: return builder->Call(str.str(), "f2", "f2", "b2"); - case IntrinsicType::kDeterminant: + case BuiltinType::kDeterminant: return builder->Call(str.str(), "m2x2"); - case IntrinsicType::kTranspose: + case BuiltinType::kTranspose: return builder->Call(str.str(), "m3x2"); default: break; } return nullptr; } -using GlslIntrinsicTest = TestParamHelper; -TEST_P(GlslIntrinsicTest, Emit) { +using GlslBuiltinTest = TestParamHelper; +TEST_P(GlslBuiltinTest, Emit) { auto param = GetParam(); Global("f2", ty.vec2(), ast::StorageClass::kPrivate); @@ -165,8 +165,8 @@ TEST_P(GlslIntrinsicTest, Emit) { Global("m2x2", ty.mat2x2(), ast::StorageClass::kPrivate); Global("m3x2", ty.mat3x2(), ast::StorageClass::kPrivate); - auto* call = GenerateCall(param.intrinsic, param.type, this); - ASSERT_NE(nullptr, call) << "Unhandled intrinsic"; + auto* call = GenerateCall(param.builtin, param.type, this); + ASSERT_NE(nullptr, call) << "Unhandled builtin"; Func("func", {}, ty.void_(), {CallStmt(call)}, {create(ast::PipelineStage::kFragment)}); @@ -176,89 +176,82 @@ TEST_P(GlslIntrinsicTest, Emit) { ASSERT_NE(sem, nullptr); auto* target = sem->Target(); ASSERT_NE(target, nullptr); - auto* intrinsic = target->As(); - ASSERT_NE(intrinsic, nullptr); + auto* builtin = target->As(); + ASSERT_NE(builtin, nullptr); - EXPECT_EQ(gen.generate_builtin_name(intrinsic), param.glsl_name); + EXPECT_EQ(gen.generate_builtin_name(builtin), param.glsl_name); } INSTANTIATE_TEST_SUITE_P( - GlslGeneratorImplTest_Intrinsic, - GlslIntrinsicTest, + GlslGeneratorImplTest_Builtin, + GlslBuiltinTest, testing::Values( - IntrinsicData{IntrinsicType::kAbs, ParamType::kF32, "abs"}, - IntrinsicData{IntrinsicType::kAbs, ParamType::kU32, "abs"}, - IntrinsicData{IntrinsicType::kAcos, ParamType::kF32, "acos"}, - IntrinsicData{IntrinsicType::kAll, ParamType::kBool, "all"}, - IntrinsicData{IntrinsicType::kAny, ParamType::kBool, "any"}, - IntrinsicData{IntrinsicType::kAsin, ParamType::kF32, "asin"}, - IntrinsicData{IntrinsicType::kAtan, ParamType::kF32, "atan"}, - IntrinsicData{IntrinsicType::kAtan2, ParamType::kF32, "atan"}, - IntrinsicData{IntrinsicType::kCeil, ParamType::kF32, "ceil"}, - IntrinsicData{IntrinsicType::kClamp, ParamType::kF32, "clamp"}, - IntrinsicData{IntrinsicType::kClamp, ParamType::kU32, "clamp"}, - IntrinsicData{IntrinsicType::kCos, ParamType::kF32, "cos"}, - IntrinsicData{IntrinsicType::kCosh, ParamType::kF32, "cosh"}, - IntrinsicData{IntrinsicType::kCountOneBits, ParamType::kU32, - "countbits"}, - IntrinsicData{IntrinsicType::kCross, ParamType::kF32, "cross"}, - IntrinsicData{IntrinsicType::kDeterminant, ParamType::kF32, - "determinant"}, - IntrinsicData{IntrinsicType::kDistance, ParamType::kF32, "distance"}, - IntrinsicData{IntrinsicType::kDot, ParamType::kF32, "dot"}, - IntrinsicData{IntrinsicType::kDpdx, ParamType::kF32, "ddx"}, - IntrinsicData{IntrinsicType::kDpdxCoarse, ParamType::kF32, - "ddx_coarse"}, - IntrinsicData{IntrinsicType::kDpdxFine, ParamType::kF32, "ddx_fine"}, - IntrinsicData{IntrinsicType::kDpdy, ParamType::kF32, "ddy"}, - IntrinsicData{IntrinsicType::kDpdyCoarse, ParamType::kF32, - "ddy_coarse"}, - IntrinsicData{IntrinsicType::kDpdyFine, ParamType::kF32, "ddy_fine"}, - IntrinsicData{IntrinsicType::kExp, ParamType::kF32, "exp"}, - IntrinsicData{IntrinsicType::kExp2, ParamType::kF32, "exp2"}, - IntrinsicData{IntrinsicType::kFaceForward, ParamType::kF32, - "faceforward"}, - IntrinsicData{IntrinsicType::kFloor, ParamType::kF32, "floor"}, - IntrinsicData{IntrinsicType::kFma, ParamType::kF32, "mad"}, - IntrinsicData{IntrinsicType::kFract, ParamType::kF32, "frac"}, - IntrinsicData{IntrinsicType::kFwidth, ParamType::kF32, "fwidth"}, - IntrinsicData{IntrinsicType::kFwidthCoarse, ParamType::kF32, "fwidth"}, - IntrinsicData{IntrinsicType::kFwidthFine, ParamType::kF32, "fwidth"}, - IntrinsicData{IntrinsicType::kInverseSqrt, ParamType::kF32, "rsqrt"}, - IntrinsicData{IntrinsicType::kIsFinite, ParamType::kF32, "isfinite"}, - IntrinsicData{IntrinsicType::kIsInf, ParamType::kF32, "isinf"}, - IntrinsicData{IntrinsicType::kIsNan, ParamType::kF32, "isnan"}, - IntrinsicData{IntrinsicType::kLdexp, ParamType::kF32, "ldexp"}, - IntrinsicData{IntrinsicType::kLength, ParamType::kF32, "length"}, - IntrinsicData{IntrinsicType::kLog, ParamType::kF32, "log"}, - IntrinsicData{IntrinsicType::kLog2, ParamType::kF32, "log2"}, - IntrinsicData{IntrinsicType::kMax, ParamType::kF32, "max"}, - IntrinsicData{IntrinsicType::kMax, ParamType::kU32, "max"}, - IntrinsicData{IntrinsicType::kMin, ParamType::kF32, "min"}, - IntrinsicData{IntrinsicType::kMin, ParamType::kU32, "min"}, - IntrinsicData{IntrinsicType::kMix, ParamType::kF32, "mix"}, - IntrinsicData{IntrinsicType::kNormalize, ParamType::kF32, "normalize"}, - IntrinsicData{IntrinsicType::kPow, ParamType::kF32, "pow"}, - IntrinsicData{IntrinsicType::kReflect, ParamType::kF32, "reflect"}, - IntrinsicData{IntrinsicType::kReverseBits, ParamType::kU32, - "reversebits"}, - IntrinsicData{IntrinsicType::kRound, ParamType::kU32, "round"}, - IntrinsicData{IntrinsicType::kSign, ParamType::kF32, "sign"}, - IntrinsicData{IntrinsicType::kSin, ParamType::kF32, "sin"}, - IntrinsicData{IntrinsicType::kSinh, ParamType::kF32, "sinh"}, - IntrinsicData{IntrinsicType::kSmoothStep, ParamType::kF32, - "smoothstep"}, - IntrinsicData{IntrinsicType::kSqrt, ParamType::kF32, "sqrt"}, - IntrinsicData{IntrinsicType::kStep, ParamType::kF32, "step"}, - IntrinsicData{IntrinsicType::kTan, ParamType::kF32, "tan"}, - IntrinsicData{IntrinsicType::kTanh, ParamType::kF32, "tanh"}, - IntrinsicData{IntrinsicType::kTranspose, ParamType::kF32, "transpose"}, - IntrinsicData{IntrinsicType::kTrunc, ParamType::kF32, "trunc"})); + BuiltinData{BuiltinType::kAbs, ParamType::kF32, "abs"}, + BuiltinData{BuiltinType::kAbs, ParamType::kU32, "abs"}, + BuiltinData{BuiltinType::kAcos, ParamType::kF32, "acos"}, + BuiltinData{BuiltinType::kAll, ParamType::kBool, "all"}, + BuiltinData{BuiltinType::kAny, ParamType::kBool, "any"}, + BuiltinData{BuiltinType::kAsin, ParamType::kF32, "asin"}, + BuiltinData{BuiltinType::kAtan, ParamType::kF32, "atan"}, + BuiltinData{BuiltinType::kAtan2, ParamType::kF32, "atan"}, + BuiltinData{BuiltinType::kCeil, ParamType::kF32, "ceil"}, + BuiltinData{BuiltinType::kClamp, ParamType::kF32, "clamp"}, + BuiltinData{BuiltinType::kClamp, ParamType::kU32, "clamp"}, + BuiltinData{BuiltinType::kCos, ParamType::kF32, "cos"}, + BuiltinData{BuiltinType::kCosh, ParamType::kF32, "cosh"}, + BuiltinData{BuiltinType::kCountOneBits, ParamType::kU32, "countbits"}, + BuiltinData{BuiltinType::kCross, ParamType::kF32, "cross"}, + BuiltinData{BuiltinType::kDeterminant, ParamType::kF32, "determinant"}, + BuiltinData{BuiltinType::kDistance, ParamType::kF32, "distance"}, + BuiltinData{BuiltinType::kDot, ParamType::kF32, "dot"}, + BuiltinData{BuiltinType::kDpdx, ParamType::kF32, "ddx"}, + BuiltinData{BuiltinType::kDpdxCoarse, ParamType::kF32, "ddx_coarse"}, + BuiltinData{BuiltinType::kDpdxFine, ParamType::kF32, "ddx_fine"}, + BuiltinData{BuiltinType::kDpdy, ParamType::kF32, "ddy"}, + BuiltinData{BuiltinType::kDpdyCoarse, ParamType::kF32, "ddy_coarse"}, + BuiltinData{BuiltinType::kDpdyFine, ParamType::kF32, "ddy_fine"}, + BuiltinData{BuiltinType::kExp, ParamType::kF32, "exp"}, + BuiltinData{BuiltinType::kExp2, ParamType::kF32, "exp2"}, + BuiltinData{BuiltinType::kFaceForward, ParamType::kF32, "faceforward"}, + BuiltinData{BuiltinType::kFloor, ParamType::kF32, "floor"}, + BuiltinData{BuiltinType::kFma, ParamType::kF32, "mad"}, + BuiltinData{BuiltinType::kFract, ParamType::kF32, "frac"}, + BuiltinData{BuiltinType::kFwidth, ParamType::kF32, "fwidth"}, + BuiltinData{BuiltinType::kFwidthCoarse, ParamType::kF32, "fwidth"}, + BuiltinData{BuiltinType::kFwidthFine, ParamType::kF32, "fwidth"}, + BuiltinData{BuiltinType::kInverseSqrt, ParamType::kF32, "rsqrt"}, + BuiltinData{BuiltinType::kIsFinite, ParamType::kF32, "isfinite"}, + BuiltinData{BuiltinType::kIsInf, ParamType::kF32, "isinf"}, + BuiltinData{BuiltinType::kIsNan, ParamType::kF32, "isnan"}, + BuiltinData{BuiltinType::kLdexp, ParamType::kF32, "ldexp"}, + BuiltinData{BuiltinType::kLength, ParamType::kF32, "length"}, + BuiltinData{BuiltinType::kLog, ParamType::kF32, "log"}, + BuiltinData{BuiltinType::kLog2, ParamType::kF32, "log2"}, + BuiltinData{BuiltinType::kMax, ParamType::kF32, "max"}, + BuiltinData{BuiltinType::kMax, ParamType::kU32, "max"}, + BuiltinData{BuiltinType::kMin, ParamType::kF32, "min"}, + BuiltinData{BuiltinType::kMin, ParamType::kU32, "min"}, + BuiltinData{BuiltinType::kMix, ParamType::kF32, "mix"}, + BuiltinData{BuiltinType::kNormalize, ParamType::kF32, "normalize"}, + BuiltinData{BuiltinType::kPow, ParamType::kF32, "pow"}, + BuiltinData{BuiltinType::kReflect, ParamType::kF32, "reflect"}, + BuiltinData{BuiltinType::kReverseBits, ParamType::kU32, "reversebits"}, + BuiltinData{BuiltinType::kRound, ParamType::kU32, "round"}, + BuiltinData{BuiltinType::kSign, ParamType::kF32, "sign"}, + BuiltinData{BuiltinType::kSin, ParamType::kF32, "sin"}, + BuiltinData{BuiltinType::kSinh, ParamType::kF32, "sinh"}, + BuiltinData{BuiltinType::kSmoothStep, ParamType::kF32, "smoothstep"}, + BuiltinData{BuiltinType::kSqrt, ParamType::kF32, "sqrt"}, + BuiltinData{BuiltinType::kStep, ParamType::kF32, "step"}, + BuiltinData{BuiltinType::kTan, ParamType::kF32, "tan"}, + BuiltinData{BuiltinType::kTanh, ParamType::kF32, "tanh"}, + BuiltinData{BuiltinType::kTranspose, ParamType::kF32, "transpose"}, + BuiltinData{BuiltinType::kTrunc, ParamType::kF32, "trunc"})); -TEST_F(GlslGeneratorImplTest_Intrinsic, DISABLED_Intrinsic_IsNormal) { +TEST_F(GlslGeneratorImplTest_Builtin, DISABLED_Builtin_IsNormal) { FAIL(); } -TEST_F(GlslGeneratorImplTest_Intrinsic, Intrinsic_Call) { +TEST_F(GlslGeneratorImplTest_Builtin, Builtin_Call) { auto* call = Call("dot", "param1", "param2"); Global("param1", ty.vec3(), ast::StorageClass::kPrivate); @@ -274,7 +267,7 @@ TEST_F(GlslGeneratorImplTest_Intrinsic, Intrinsic_Call) { EXPECT_EQ(out.str(), "dot(param1, param2)"); } -TEST_F(GlslGeneratorImplTest_Intrinsic, Select_Scalar) { +TEST_F(GlslGeneratorImplTest_Builtin, Select_Scalar) { auto* call = Call("select", 1.0f, 2.0f, true); WrapInFunction(CallStmt(call)); GeneratorImpl& gen = Build(); @@ -285,7 +278,7 @@ TEST_F(GlslGeneratorImplTest_Intrinsic, Select_Scalar) { EXPECT_EQ(out.str(), "(true ? 2.0f : 1.0f)"); } -TEST_F(GlslGeneratorImplTest_Intrinsic, Select_Vector) { +TEST_F(GlslGeneratorImplTest_Builtin, Select_Vector) { auto* call = Call("select", vec2(1, 2), vec2(3, 4), vec2(true, false)); WrapInFunction(CallStmt(call)); @@ -298,7 +291,7 @@ TEST_F(GlslGeneratorImplTest_Intrinsic, Select_Vector) { } #if 0 -TEST_F(GlslGeneratorImplTest_Intrinsic, Modf_Scalar) { +TEST_F(GlslGeneratorImplTest_Builtin, Modf_Scalar) { auto* res = Var("res", ty.f32()); auto* call = Call("modf", 1.0f, AddressOf(res)); WrapInFunction(res, call); @@ -309,7 +302,7 @@ TEST_F(GlslGeneratorImplTest_Intrinsic, Modf_Scalar) { EXPECT_THAT(gen.result(), HasSubstr("modf(1.0f, res)")); } -TEST_F(GlslGeneratorImplTest_Intrinsic, Modf_Vector) { +TEST_F(GlslGeneratorImplTest_Builtin, Modf_Vector) { auto* res = Var("res", ty.vec3()); auto* call = Call("modf", vec3(), AddressOf(res)); WrapInFunction(res, call); @@ -320,7 +313,7 @@ TEST_F(GlslGeneratorImplTest_Intrinsic, Modf_Vector) { EXPECT_THAT(gen.result(), HasSubstr("modf(vec3(0.0f, 0.0f, 0.0f), res)")); } -TEST_F(GlslGeneratorImplTest_Intrinsic, Frexp_Scalar_i32) { +TEST_F(GlslGeneratorImplTest_Builtin, Frexp_Scalar_i32) { auto* exp = Var("exp", ty.i32()); auto* call = Call("frexp", 1.0f, AddressOf(exp)); WrapInFunction(exp, call); @@ -336,7 +329,7 @@ TEST_F(GlslGeneratorImplTest_Intrinsic, Frexp_Scalar_i32) { )")); } -TEST_F(GlslGeneratorImplTest_Intrinsic, Frexp_Vector_i32) { +TEST_F(GlslGeneratorImplTest_Builtin, Frexp_Vector_i32) { auto* res = Var("res", ty.vec3()); auto* call = Call("frexp", vec3(), AddressOf(res)); WrapInFunction(res, call); @@ -352,7 +345,7 @@ TEST_F(GlslGeneratorImplTest_Intrinsic, Frexp_Vector_i32) { )")); } -TEST_F(GlslGeneratorImplTest_Intrinsic, IsNormal_Scalar) { +TEST_F(GlslGeneratorImplTest_Builtin, IsNormal_Scalar) { auto* val = Var("val", ty.f32()); auto* call = Call("isNormal", val); WrapInFunction(val, call); @@ -367,7 +360,7 @@ TEST_F(GlslGeneratorImplTest_Intrinsic, IsNormal_Scalar) { )")); } -TEST_F(GlslGeneratorImplTest_Intrinsic, IsNormal_Vector) { +TEST_F(GlslGeneratorImplTest_Builtin, IsNormal_Vector) { auto* val = Var("val", ty.vec3()); auto* call = Call("isNormal", val); WrapInFunction(val, call); @@ -383,7 +376,7 @@ TEST_F(GlslGeneratorImplTest_Intrinsic, IsNormal_Vector) { } #endif -TEST_F(GlslGeneratorImplTest_Intrinsic, Degrees_Scalar) { +TEST_F(GlslGeneratorImplTest_Builtin, Degrees_Scalar) { auto* val = Var("val", ty.f32()); auto* call = Call("degrees", val); WrapInFunction(val, call); @@ -412,7 +405,7 @@ void main() { )"); } -TEST_F(GlslGeneratorImplTest_Intrinsic, Degrees_Vector) { +TEST_F(GlslGeneratorImplTest_Builtin, Degrees_Vector) { auto* val = Var("val", ty.vec3()); auto* call = Call("degrees", val); WrapInFunction(val, call); @@ -441,7 +434,7 @@ void main() { )"); } -TEST_F(GlslGeneratorImplTest_Intrinsic, Radians_Scalar) { +TEST_F(GlslGeneratorImplTest_Builtin, Radians_Scalar) { auto* val = Var("val", ty.f32()); auto* call = Call("radians", val); WrapInFunction(val, call); @@ -470,7 +463,7 @@ void main() { )"); } -TEST_F(GlslGeneratorImplTest_Intrinsic, Radians_Vector) { +TEST_F(GlslGeneratorImplTest_Builtin, Radians_Vector) { auto* val = Var("val", ty.vec3()); auto* call = Call("radians", val); WrapInFunction(val, call); @@ -500,7 +493,7 @@ void main() { } #if 0 -TEST_F(GlslGeneratorImplTest_Intrinsic, Pack4x8Snorm) { +TEST_F(GlslGeneratorImplTest_Builtin, Pack4x8Snorm) { auto* call = Call("pack4x8snorm", "p1"); Global("p1", ty.vec4(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(call)); @@ -515,7 +508,7 @@ TEST_F(GlslGeneratorImplTest_Intrinsic, Pack4x8Snorm) { "tint_tmp.z << 16 | tint_tmp.w << 24)")); } -TEST_F(GlslGeneratorImplTest_Intrinsic, Pack4x8Unorm) { +TEST_F(GlslGeneratorImplTest_Builtin, Pack4x8Unorm) { auto* call = Call("pack4x8unorm", "p1"); Global("p1", ty.vec4(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(call)); @@ -530,7 +523,7 @@ TEST_F(GlslGeneratorImplTest_Intrinsic, Pack4x8Unorm) { "tint_tmp.z << 16 | tint_tmp.w << 24)")); } -TEST_F(GlslGeneratorImplTest_Intrinsic, Pack2x16Snorm) { +TEST_F(GlslGeneratorImplTest_Builtin, Pack2x16Snorm) { auto* call = Call("pack2x16snorm", "p1"); Global("p1", ty.vec2(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(call)); @@ -544,7 +537,7 @@ TEST_F(GlslGeneratorImplTest_Intrinsic, Pack2x16Snorm) { EXPECT_THAT(out.str(), HasSubstr("asuint(tint_tmp.x | tint_tmp.y << 16)")); } -TEST_F(GlslGeneratorImplTest_Intrinsic, Pack2x16Unorm) { +TEST_F(GlslGeneratorImplTest_Builtin, Pack2x16Unorm) { auto* call = Call("pack2x16unorm", "p1"); Global("p1", ty.vec2(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(call)); @@ -558,7 +551,7 @@ TEST_F(GlslGeneratorImplTest_Intrinsic, Pack2x16Unorm) { EXPECT_THAT(out.str(), HasSubstr("(tint_tmp.x | tint_tmp.y << 16)")); } -TEST_F(GlslGeneratorImplTest_Intrinsic, Pack2x16Float) { +TEST_F(GlslGeneratorImplTest_Builtin, Pack2x16Float) { auto* call = Call("pack2x16float", "p1"); Global("p1", ty.vec2(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(call)); @@ -571,7 +564,7 @@ TEST_F(GlslGeneratorImplTest_Intrinsic, Pack2x16Float) { EXPECT_THAT(out.str(), HasSubstr("(tint_tmp.x | tint_tmp.y << 16)")); } -TEST_F(GlslGeneratorImplTest_Intrinsic, Unpack4x8Snorm) { +TEST_F(GlslGeneratorImplTest_Builtin, Unpack4x8Snorm) { auto* call = Call("unpack4x8snorm", "p1"); Global("p1", ty.u32(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(call)); @@ -588,7 +581,7 @@ TEST_F(GlslGeneratorImplTest_Intrinsic, Unpack4x8Snorm) { HasSubstr("clamp(float4(tint_tmp) / 127.0, -1.0, 1.0)")); } -TEST_F(GlslGeneratorImplTest_Intrinsic, Unpack4x8Unorm) { +TEST_F(GlslGeneratorImplTest_Builtin, Unpack4x8Unorm) { auto* call = Call("unpack4x8unorm", "p1"); Global("p1", ty.u32(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(call)); @@ -605,7 +598,7 @@ TEST_F(GlslGeneratorImplTest_Intrinsic, Unpack4x8Unorm) { EXPECT_THAT(out.str(), HasSubstr("float4(tint_tmp) / 255.0")); } -TEST_F(GlslGeneratorImplTest_Intrinsic, Unpack2x16Snorm) { +TEST_F(GlslGeneratorImplTest_Builtin, Unpack2x16Snorm) { auto* call = Call("unpack2x16snorm", "p1"); Global("p1", ty.u32(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(call)); @@ -622,7 +615,7 @@ TEST_F(GlslGeneratorImplTest_Intrinsic, Unpack2x16Snorm) { HasSubstr("clamp(float2(tint_tmp) / 32767.0, -1.0, 1.0)")); } -TEST_F(GlslGeneratorImplTest_Intrinsic, Unpack2x16Unorm) { +TEST_F(GlslGeneratorImplTest_Builtin, Unpack2x16Unorm) { auto* call = Call("unpack2x16unorm", "p1"); Global("p1", ty.u32(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(call)); @@ -638,7 +631,7 @@ TEST_F(GlslGeneratorImplTest_Intrinsic, Unpack2x16Unorm) { EXPECT_THAT(out.str(), HasSubstr("float2(tint_tmp) / 65535.0")); } -TEST_F(GlslGeneratorImplTest_Intrinsic, Unpack2x16Float) { +TEST_F(GlslGeneratorImplTest_Builtin, Unpack2x16Float) { auto* call = Call("unpack2x16float", "p1"); Global("p1", ty.u32(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(call)); @@ -652,7 +645,7 @@ TEST_F(GlslGeneratorImplTest_Intrinsic, Unpack2x16Float) { HasSubstr("f16tof32(uint2(tint_tmp & 0xffff, tint_tmp >> 16))")); } -TEST_F(GlslGeneratorImplTest_Intrinsic, StorageBarrier) { +TEST_F(GlslGeneratorImplTest_Builtin, StorageBarrier) { Func("main", {}, ty.void_(), {CallStmt(Call("storageBarrier"))}, { @@ -671,7 +664,7 @@ void main() { )"); } -TEST_F(GlslGeneratorImplTest_Intrinsic, WorkgroupBarrier) { +TEST_F(GlslGeneratorImplTest_Builtin, WorkgroupBarrier) { Func("main", {}, ty.void_(), {CallStmt(Call("workgroupBarrier"))}, { @@ -692,7 +685,7 @@ void main() { #endif -TEST_F(GlslGeneratorImplTest_Intrinsic, DotI32) { +TEST_F(GlslGeneratorImplTest_Builtin, DotI32) { Global("v", ty.vec3(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(Call("dot", "v", "v"))); @@ -719,7 +712,7 @@ void main() { )"); } -TEST_F(GlslGeneratorImplTest_Intrinsic, DotU32) { +TEST_F(GlslGeneratorImplTest_Builtin, DotU32) { Global("v", ty.vec3(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(Call("dot", "v", "v"))); diff --git a/src/writer/glsl/generator_impl_intrinsic_texture_test.cc b/src/writer/glsl/generator_impl_builtin_texture_test.cc similarity index 97% rename from src/writer/glsl/generator_impl_intrinsic_texture_test.cc rename to src/writer/glsl/generator_impl_builtin_texture_test.cc index 128aec2956..bd6a6a8b5c 100644 --- a/src/writer/glsl/generator_impl_intrinsic_texture_test.cc +++ b/src/writer/glsl/generator_impl_builtin_texture_test.cc @@ -13,8 +13,8 @@ // limitations under the License. #include "gmock/gmock.h" +#include "src/ast/builtin_texture_helper_test.h" #include "src/ast/call_statement.h" -#include "src/ast/intrinsic_texture_helper_test.h" #include "src/ast/stage_attribute.h" #include "src/writer/glsl/test_helper.h" @@ -33,8 +33,8 @@ struct ExpectedResult { }; ExpectedResult expected_texture_overload( - ast::intrinsic::test::ValidTextureOverload overload) { - using ValidTextureOverload = ast::intrinsic::test::ValidTextureOverload; + ast::builtin::test::ValidTextureOverload overload) { + using ValidTextureOverload = ast::builtin::test::ValidTextureOverload; switch (overload) { case ValidTextureOverload::kDimensions1d: case ValidTextureOverload::kDimensions2d: @@ -267,10 +267,10 @@ ExpectedResult expected_texture_overload( return ""; } // NOLINT - Ignore the length of this function -class GlslGeneratorIntrinsicTextureTest - : public TestParamHelper {}; +class GlslGeneratorBuiltinTextureTest + : public TestParamHelper {}; -TEST_P(GlslGeneratorIntrinsicTextureTest, Call) { +TEST_P(GlslGeneratorBuiltinTextureTest, Call) { auto param = GetParam(); param.BuildTextureVariable(this); @@ -292,9 +292,9 @@ TEST_P(GlslGeneratorIntrinsicTextureTest, Call) { } INSTANTIATE_TEST_SUITE_P( - GlslGeneratorIntrinsicTextureTest, - GlslGeneratorIntrinsicTextureTest, - testing::ValuesIn(ast::intrinsic::test::TextureOverloadCase::ValidCases())); + GlslGeneratorBuiltinTextureTest, + GlslGeneratorBuiltinTextureTest, + testing::ValuesIn(ast::builtin::test::TextureOverloadCase::ValidCases())); } // namespace } // namespace glsl diff --git a/src/writer/hlsl/generator_impl.cc b/src/writer/hlsl/generator_impl.cc index 1e8feee302..6d20aceaa8 100644 --- a/src/writer/hlsl/generator_impl.cc +++ b/src/writer/hlsl/generator_impl.cc @@ -933,8 +933,8 @@ bool GeneratorImpl::EmitCall(std::ostream& out, if (auto* func = target->As()) { return EmitFunctionCall(out, call, func); } - if (auto* intrinsic = target->As()) { - return EmitIntrinsicCall(out, call, intrinsic); + if (auto* builtin = target->As()) { + return EmitBuiltinCall(out, call, builtin); } if (auto* conv = target->As()) { return EmitTypeConversion(out, call, conv); @@ -1001,44 +1001,44 @@ bool GeneratorImpl::EmitFunctionCall(std::ostream& out, return true; } -bool GeneratorImpl::EmitIntrinsicCall(std::ostream& out, - const sem::Call* call, - const sem::Intrinsic* intrinsic) { +bool GeneratorImpl::EmitBuiltinCall(std::ostream& out, + const sem::Call* call, + const sem::Builtin* builtin) { auto* expr = call->Declaration(); - if (intrinsic->IsTexture()) { - return EmitTextureCall(out, call, intrinsic); + if (builtin->IsTexture()) { + return EmitTextureCall(out, call, builtin); } - if (intrinsic->Type() == sem::IntrinsicType::kSelect) { + if (builtin->Type() == sem::BuiltinType::kSelect) { return EmitSelectCall(out, expr); } - if (intrinsic->Type() == sem::IntrinsicType::kModf) { - return EmitModfCall(out, expr, intrinsic); + if (builtin->Type() == sem::BuiltinType::kModf) { + return EmitModfCall(out, expr, builtin); } - if (intrinsic->Type() == sem::IntrinsicType::kFrexp) { - return EmitFrexpCall(out, expr, intrinsic); + if (builtin->Type() == sem::BuiltinType::kFrexp) { + return EmitFrexpCall(out, expr, builtin); } - if (intrinsic->Type() == sem::IntrinsicType::kIsNormal) { - return EmitIsNormalCall(out, expr, intrinsic); + if (builtin->Type() == sem::BuiltinType::kIsNormal) { + return EmitIsNormalCall(out, expr, builtin); } - if (intrinsic->Type() == sem::IntrinsicType::kDegrees) { - return EmitDegreesCall(out, expr, intrinsic); + if (builtin->Type() == sem::BuiltinType::kDegrees) { + return EmitDegreesCall(out, expr, builtin); } - if (intrinsic->Type() == sem::IntrinsicType::kRadians) { - return EmitRadiansCall(out, expr, intrinsic); + if (builtin->Type() == sem::BuiltinType::kRadians) { + return EmitRadiansCall(out, expr, builtin); } - if (intrinsic->IsDataPacking()) { - return EmitDataPackingCall(out, expr, intrinsic); + if (builtin->IsDataPacking()) { + return EmitDataPackingCall(out, expr, builtin); } - if (intrinsic->IsDataUnpacking()) { - return EmitDataUnpackingCall(out, expr, intrinsic); + if (builtin->IsDataUnpacking()) { + return EmitDataUnpackingCall(out, expr, builtin); } - if (intrinsic->IsBarrier()) { - return EmitBarrierCall(out, intrinsic); + if (builtin->IsBarrier()) { + return EmitBarrierCall(out, builtin); } - if (intrinsic->IsAtomic()) { - return EmitWorkgroupAtomicCall(out, expr, intrinsic); + if (builtin->IsAtomic()) { + return EmitWorkgroupAtomicCall(out, expr, builtin); } - auto name = generate_builtin_name(intrinsic); + auto name = generate_builtin_name(builtin); if (name.empty()) { return false; } @@ -1637,17 +1637,17 @@ bool GeneratorImpl::EmitStorageAtomicCall( bool GeneratorImpl::EmitWorkgroupAtomicCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { + const sem::Builtin* builtin) { std::string result = UniqueIdentifier("atomic_result"); - if (!intrinsic->ReturnType()->Is()) { + if (!builtin->ReturnType()->Is()) { auto pre = line(); - if (!EmitTypeAndName(pre, intrinsic->ReturnType(), ast::StorageClass::kNone, + if (!EmitTypeAndName(pre, builtin->ReturnType(), ast::StorageClass::kNone, ast::Access::kUndefined, result)) { return false; } pre << " = "; - if (!EmitZeroValue(pre, intrinsic->ReturnType())) { + if (!EmitZeroValue(pre, builtin->ReturnType())) { return false; } pre << ";"; @@ -1664,7 +1664,7 @@ bool GeneratorImpl::EmitWorkgroupAtomicCall(std::ostream& out, if (i > 0) { pre << ", "; } - if (i == 1 && intrinsic->Type() == sem::IntrinsicType::kAtomicSub) { + if (i == 1 && builtin->Type() == sem::BuiltinType::kAtomicSub) { // Sub uses InterlockedAdd with the operand negated. pre << "-"; } @@ -1682,8 +1682,8 @@ bool GeneratorImpl::EmitWorkgroupAtomicCall(std::ostream& out, return true; }; - switch (intrinsic->Type()) { - case sem::IntrinsicType::kAtomicLoad: { + switch (builtin->Type()) { + case sem::BuiltinType::kAtomicLoad: { // HLSL does not have an InterlockedLoad, so we emulate it with // InterlockedOr using 0 as the OR value auto pre = line(); @@ -1700,12 +1700,12 @@ bool GeneratorImpl::EmitWorkgroupAtomicCall(std::ostream& out, out << result; return true; } - case sem::IntrinsicType::kAtomicStore: { + case sem::BuiltinType::kAtomicStore: { // HLSL does not have an InterlockedStore, so we emulate it with // InterlockedExchange and discard the returned value { // T result = 0; auto pre = line(); - auto* value_ty = intrinsic->Parameters()[1]->Type()->UnwrapRef(); + auto* value_ty = builtin->Parameters()[1]->Type()->UnwrapRef(); if (!EmitTypeAndName(pre, value_ty, ast::StorageClass::kNone, ast::Access::kUndefined, result)) { return false; @@ -1731,7 +1731,7 @@ bool GeneratorImpl::EmitWorkgroupAtomicCall(std::ostream& out, } return true; } - case sem::IntrinsicType::kAtomicCompareExchangeWeak: { + case sem::BuiltinType::kAtomicCompareExchangeWeak: { auto* dest = expr->args[0]; auto* compare_value = expr->args[1]; auto* value = expr->args[2]; @@ -1777,26 +1777,26 @@ bool GeneratorImpl::EmitWorkgroupAtomicCall(std::ostream& out, return true; } - case sem::IntrinsicType::kAtomicAdd: - case sem::IntrinsicType::kAtomicSub: + case sem::BuiltinType::kAtomicAdd: + case sem::BuiltinType::kAtomicSub: return call("InterlockedAdd"); - case sem::IntrinsicType::kAtomicMax: + case sem::BuiltinType::kAtomicMax: return call("InterlockedMax"); - case sem::IntrinsicType::kAtomicMin: + case sem::BuiltinType::kAtomicMin: return call("InterlockedMin"); - case sem::IntrinsicType::kAtomicAnd: + case sem::BuiltinType::kAtomicAnd: return call("InterlockedAnd"); - case sem::IntrinsicType::kAtomicOr: + case sem::BuiltinType::kAtomicOr: return call("InterlockedOr"); - case sem::IntrinsicType::kAtomicXor: + case sem::BuiltinType::kAtomicXor: return call("InterlockedXor"); - case sem::IntrinsicType::kAtomicExchange: + case sem::BuiltinType::kAtomicExchange: return call("InterlockedExchange"); default: @@ -1804,7 +1804,7 @@ bool GeneratorImpl::EmitWorkgroupAtomicCall(std::ostream& out, } TINT_UNREACHABLE(Writer, diagnostics_) - << "unsupported atomic intrinsic: " << intrinsic->Type(); + << "unsupported atomic builtin: " << builtin->Type(); return false; } @@ -1835,11 +1835,11 @@ bool GeneratorImpl::EmitSelectCall(std::ostream& out, bool GeneratorImpl::EmitModfCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { - return CallIntrinsicHelper( - out, expr, intrinsic, + const sem::Builtin* builtin) { + return CallBuiltinHelper( + out, expr, builtin, [&](TextBuffer* b, const std::vector& params) { - auto* ty = intrinsic->Parameters()[0]->Type(); + auto* ty = builtin->Parameters()[0]->Type(); auto in = params[0]; std::string width; @@ -1850,7 +1850,7 @@ bool GeneratorImpl::EmitModfCall(std::ostream& out, // Emit the builtin return type unique to this overload. This does not // exist in the AST, so it will not be generated in Generate(). if (!EmitStructType(&helpers_, - intrinsic->ReturnType()->As())) { + builtin->ReturnType()->As())) { return false; } @@ -1858,7 +1858,7 @@ bool GeneratorImpl::EmitModfCall(std::ostream& out, line(b) << "float" << width << " fract = modf(" << in << ", whole);"; { auto l = line(b); - if (!EmitType(l, intrinsic->ReturnType(), ast::StorageClass::kNone, + if (!EmitType(l, builtin->ReturnType(), ast::StorageClass::kNone, ast::Access::kUndefined, "")) { return false; } @@ -1871,11 +1871,11 @@ bool GeneratorImpl::EmitModfCall(std::ostream& out, bool GeneratorImpl::EmitFrexpCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { - return CallIntrinsicHelper( - out, expr, intrinsic, + const sem::Builtin* builtin) { + return CallBuiltinHelper( + out, expr, builtin, [&](TextBuffer* b, const std::vector& params) { - auto* ty = intrinsic->Parameters()[0]->Type(); + auto* ty = builtin->Parameters()[0]->Type(); auto in = params[0]; std::string width; @@ -1886,7 +1886,7 @@ bool GeneratorImpl::EmitFrexpCall(std::ostream& out, // Emit the builtin return type unique to this overload. This does not // exist in the AST, so it will not be generated in Generate(). if (!EmitStructType(&helpers_, - intrinsic->ReturnType()->As())) { + builtin->ReturnType()->As())) { return false; } @@ -1894,7 +1894,7 @@ bool GeneratorImpl::EmitFrexpCall(std::ostream& out, line(b) << "float" << width << " sig = frexp(" << in << ", exp);"; { auto l = line(b); - if (!EmitType(l, intrinsic->ReturnType(), ast::StorageClass::kNone, + if (!EmitType(l, builtin->ReturnType(), ast::StorageClass::kNone, ast::Access::kUndefined, "")) { return false; } @@ -1907,12 +1907,12 @@ bool GeneratorImpl::EmitFrexpCall(std::ostream& out, bool GeneratorImpl::EmitIsNormalCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { - // HLSL doesn't have a isNormal intrinsic, we need to emulate - return CallIntrinsicHelper( - out, expr, intrinsic, + const sem::Builtin* builtin) { + // HLSL doesn't have a isNormal builtin, we need to emulate + return CallBuiltinHelper( + out, expr, builtin, [&](TextBuffer* b, const std::vector& params) { - auto* input_ty = intrinsic->Parameters()[0]->Type(); + auto* input_ty = builtin->Parameters()[0]->Type(); std::string width; if (auto* vec = input_ty->As()) { @@ -1935,9 +1935,9 @@ bool GeneratorImpl::EmitIsNormalCall(std::ostream& out, bool GeneratorImpl::EmitDegreesCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { - return CallIntrinsicHelper( - out, expr, intrinsic, + const sem::Builtin* builtin) { + return CallBuiltinHelper( + out, expr, builtin, [&](TextBuffer* b, const std::vector& params) { line(b) << "return " << params[0] << " * " << std::setprecision(20) << sem::kRadToDeg << ";"; @@ -1947,9 +1947,9 @@ bool GeneratorImpl::EmitDegreesCall(std::ostream& out, bool GeneratorImpl::EmitRadiansCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { - return CallIntrinsicHelper( - out, expr, intrinsic, + const sem::Builtin* builtin) { + return CallBuiltinHelper( + out, expr, builtin, [&](TextBuffer* b, const std::vector& params) { line(b) << "return " << params[0] << " * " << std::setprecision(20) << sem::kDegToRad << ";"; @@ -1959,28 +1959,28 @@ bool GeneratorImpl::EmitRadiansCall(std::ostream& out, bool GeneratorImpl::EmitDataPackingCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { - return CallIntrinsicHelper( - out, expr, intrinsic, + const sem::Builtin* builtin) { + return CallBuiltinHelper( + out, expr, builtin, [&](TextBuffer* b, const std::vector& params) { uint32_t dims = 2; bool is_signed = false; uint32_t scale = 65535; - if (intrinsic->Type() == sem::IntrinsicType::kPack4x8snorm || - intrinsic->Type() == sem::IntrinsicType::kPack4x8unorm) { + if (builtin->Type() == sem::BuiltinType::kPack4x8snorm || + builtin->Type() == sem::BuiltinType::kPack4x8unorm) { dims = 4; scale = 255; } - if (intrinsic->Type() == sem::IntrinsicType::kPack4x8snorm || - intrinsic->Type() == sem::IntrinsicType::kPack2x16snorm) { + if (builtin->Type() == sem::BuiltinType::kPack4x8snorm || + builtin->Type() == sem::BuiltinType::kPack2x16snorm) { is_signed = true; scale = (scale - 1) / 2; } - switch (intrinsic->Type()) { - case sem::IntrinsicType::kPack4x8snorm: - case sem::IntrinsicType::kPack4x8unorm: - case sem::IntrinsicType::kPack2x16snorm: - case sem::IntrinsicType::kPack2x16unorm: { + switch (builtin->Type()) { + case sem::BuiltinType::kPack4x8snorm: + case sem::BuiltinType::kPack4x8unorm: + case sem::BuiltinType::kPack2x16snorm: + case sem::BuiltinType::kPack2x16unorm: { { auto l = line(b); l << (is_signed ? "" : "u") << "int" << dims @@ -2007,7 +2007,7 @@ bool GeneratorImpl::EmitDataPackingCall(std::ostream& out, } break; } - case sem::IntrinsicType::kPack2x16float: { + case sem::BuiltinType::kPack2x16float: { line(b) << "uint2 i = f32tof16(" << params[0] << ");"; line(b) << "return i.x | (i.y << 16);"; break; @@ -2015,7 +2015,7 @@ bool GeneratorImpl::EmitDataPackingCall(std::ostream& out, default: diagnostics_.add_error( diag::System::Writer, - "Internal error: unhandled data packing intrinsic"); + "Internal error: unhandled data packing builtin"); return false; } @@ -2025,26 +2025,26 @@ bool GeneratorImpl::EmitDataPackingCall(std::ostream& out, bool GeneratorImpl::EmitDataUnpackingCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { - return CallIntrinsicHelper( - out, expr, intrinsic, + const sem::Builtin* builtin) { + return CallBuiltinHelper( + out, expr, builtin, [&](TextBuffer* b, const std::vector& params) { uint32_t dims = 2; bool is_signed = false; uint32_t scale = 65535; - if (intrinsic->Type() == sem::IntrinsicType::kUnpack4x8snorm || - intrinsic->Type() == sem::IntrinsicType::kUnpack4x8unorm) { + if (builtin->Type() == sem::BuiltinType::kUnpack4x8snorm || + builtin->Type() == sem::BuiltinType::kUnpack4x8unorm) { dims = 4; scale = 255; } - if (intrinsic->Type() == sem::IntrinsicType::kUnpack4x8snorm || - intrinsic->Type() == sem::IntrinsicType::kUnpack2x16snorm) { + if (builtin->Type() == sem::BuiltinType::kUnpack4x8snorm || + builtin->Type() == sem::BuiltinType::kUnpack2x16snorm) { is_signed = true; scale = (scale - 1) / 2; } - switch (intrinsic->Type()) { - case sem::IntrinsicType::kUnpack4x8snorm: - case sem::IntrinsicType::kUnpack2x16snorm: { + switch (builtin->Type()) { + case sem::BuiltinType::kUnpack4x8snorm: + case sem::BuiltinType::kUnpack2x16snorm: { line(b) << "int j = int(" << params[0] << ");"; { // Perform sign extension on the converted values. auto l = line(b); @@ -2060,8 +2060,8 @@ bool GeneratorImpl::EmitDataUnpackingCall(std::ostream& out, << ".0, " << (is_signed ? "-1.0" : "0.0") << ", 1.0);"; break; } - case sem::IntrinsicType::kUnpack4x8unorm: - case sem::IntrinsicType::kUnpack2x16unorm: { + case sem::BuiltinType::kUnpack4x8unorm: + case sem::BuiltinType::kUnpack2x16unorm: { line(b) << "uint j = " << params[0] << ";"; { auto l = line(b); @@ -2078,14 +2078,14 @@ bool GeneratorImpl::EmitDataUnpackingCall(std::ostream& out, line(b) << "return float" << dims << "(i) / " << scale << ".0;"; break; } - case sem::IntrinsicType::kUnpack2x16float: + case sem::BuiltinType::kUnpack2x16float: line(b) << "uint i = " << params[0] << ";"; line(b) << "return f16tof32(uint2(i & 0xffff, i >> 16));"; break; default: diagnostics_.add_error( diag::System::Writer, - "Internal error: unhandled data packing intrinsic"); + "Internal error: unhandled data packing builtin"); return false; } @@ -2094,16 +2094,16 @@ bool GeneratorImpl::EmitDataUnpackingCall(std::ostream& out, } bool GeneratorImpl::EmitBarrierCall(std::ostream& out, - const sem::Intrinsic* intrinsic) { + const sem::Builtin* builtin) { // TODO(crbug.com/tint/661): Combine sequential barriers to a single // instruction. - if (intrinsic->Type() == sem::IntrinsicType::kWorkgroupBarrier) { + if (builtin->Type() == sem::BuiltinType::kWorkgroupBarrier) { out << "GroupMemoryBarrierWithGroupSync()"; - } else if (intrinsic->Type() == sem::IntrinsicType::kStorageBarrier) { + } else if (builtin->Type() == sem::BuiltinType::kStorageBarrier) { out << "DeviceMemoryBarrierWithGroupSync()"; } else { TINT_UNREACHABLE(Writer, diagnostics_) - << "unexpected barrier intrinsic type " << sem::str(intrinsic->Type()); + << "unexpected barrier builtin type " << sem::str(builtin->Type()); return false; } return true; @@ -2111,10 +2111,10 @@ bool GeneratorImpl::EmitBarrierCall(std::ostream& out, bool GeneratorImpl::EmitTextureCall(std::ostream& out, const sem::Call* call, - const sem::Intrinsic* intrinsic) { + const sem::Builtin* builtin) { using Usage = sem::ParameterUsage; - auto& signature = intrinsic->Signature(); + auto& signature = builtin->Signature(); auto* expr = call->Declaration(); auto arguments = expr->args; @@ -2132,19 +2132,19 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, auto* texture_type = TypeOf(texture)->UnwrapRef()->As(); - switch (intrinsic->Type()) { - case sem::IntrinsicType::kTextureDimensions: - case sem::IntrinsicType::kTextureNumLayers: - case sem::IntrinsicType::kTextureNumLevels: - case sem::IntrinsicType::kTextureNumSamples: { - // All of these intrinsics use the GetDimensions() method on the texture + switch (builtin->Type()) { + case sem::BuiltinType::kTextureDimensions: + case sem::BuiltinType::kTextureNumLayers: + case sem::BuiltinType::kTextureNumLevels: + case sem::BuiltinType::kTextureNumSamples: { + // All of these builtins use the GetDimensions() method on the texture bool is_ms = texture_type->IsAnyOf(); int num_dimensions = 0; std::string swizzle; - switch (intrinsic->Type()) { - case sem::IntrinsicType::kTextureDimensions: + switch (builtin->Type()) { + case sem::BuiltinType::kTextureDimensions: switch (texture_type->dim()) { case ast::TextureDimension::kNone: TINT_ICE(Writer, diagnostics_) << "texture dimension is kNone"; @@ -2172,7 +2172,7 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, break; } break; - case sem::IntrinsicType::kTextureNumLayers: + case sem::BuiltinType::kTextureNumLayers: switch (texture_type->dim()) { default: TINT_ICE(Writer, diagnostics_) @@ -2188,7 +2188,7 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, break; } break; - case sem::IntrinsicType::kTextureNumLevels: + case sem::BuiltinType::kTextureNumLevels: switch (texture_type->dim()) { default: TINT_ICE(Writer, diagnostics_) @@ -2211,7 +2211,7 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, break; } break; - case sem::IntrinsicType::kTextureNumSamples: + case sem::BuiltinType::kTextureNumSamples: switch (texture_type->dim()) { default: TINT_ICE(Writer, diagnostics_) @@ -2228,7 +2228,7 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, } break; default: - TINT_ICE(Writer, diagnostics_) << "unexpected intrinsic"; + TINT_ICE(Writer, diagnostics_) << "unexpected builtin"; return false; } @@ -2251,7 +2251,7 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, if (num_dimensions > 4) { TINT_ICE(Writer, diagnostics_) - << "Texture query intrinsic temporary vector has " << num_dimensions + << "Texture query builtin temporary vector has " << num_dimensions << " dimensions"; return false; } @@ -2276,7 +2276,7 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, return false; } pre << ", "; - } else if (intrinsic->Type() == sem::IntrinsicType::kTextureNumLevels) { + } else if (builtin->Type() == sem::BuiltinType::kTextureNumLevels) { pre << "0, "; } @@ -2314,44 +2314,44 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, return false; // If pack_level_in_coords is true, then the mip level will be appended as the - // last value of the coordinates argument. If the WGSL intrinsic overload does + // last value of the coordinates argument. If the WGSL builtin overload does // not have a level parameter and pack_level_in_coords is true, then a zero // mip level will be inserted. bool pack_level_in_coords = false; uint32_t hlsl_ret_width = 4u; - switch (intrinsic->Type()) { - case sem::IntrinsicType::kTextureSample: + switch (builtin->Type()) { + case sem::BuiltinType::kTextureSample: out << ".Sample("; break; - case sem::IntrinsicType::kTextureSampleBias: + case sem::BuiltinType::kTextureSampleBias: out << ".SampleBias("; break; - case sem::IntrinsicType::kTextureSampleLevel: + case sem::BuiltinType::kTextureSampleLevel: out << ".SampleLevel("; break; - case sem::IntrinsicType::kTextureSampleGrad: + case sem::BuiltinType::kTextureSampleGrad: out << ".SampleGrad("; break; - case sem::IntrinsicType::kTextureSampleCompare: + case sem::BuiltinType::kTextureSampleCompare: out << ".SampleCmp("; hlsl_ret_width = 1; break; - case sem::IntrinsicType::kTextureSampleCompareLevel: + case sem::BuiltinType::kTextureSampleCompareLevel: out << ".SampleCmpLevelZero("; hlsl_ret_width = 1; break; - case sem::IntrinsicType::kTextureLoad: + case sem::BuiltinType::kTextureLoad: out << ".Load("; // Multisampled textures do not support mip-levels. if (!texture_type->Is()) { pack_level_in_coords = true; } break; - case sem::IntrinsicType::kTextureGather: + case sem::BuiltinType::kTextureGather: out << ".Gather"; - if (intrinsic->Parameters()[0]->Usage() == + if (builtin->Parameters()[0]->Usage() == sem::ParameterUsage::kComponent) { switch (call->Arguments()[0]->ConstantValue().Elements()[0].i32) { case 0: @@ -2370,17 +2370,17 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, } out << "("; break; - case sem::IntrinsicType::kTextureGatherCompare: + case sem::BuiltinType::kTextureGatherCompare: out << ".GatherCmp("; break; - case sem::IntrinsicType::kTextureStore: + case sem::BuiltinType::kTextureStore: out << "["; break; default: diagnostics_.add_error( diag::System::Writer, - "Internal compiler error: Unhandled texture intrinsic '" + - std::string(intrinsic->str()) + "'"); + "Internal compiler error: Unhandled texture builtin '" + + std::string(builtin->str()) + "'"); return false; } @@ -2451,7 +2451,7 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, } } - if (intrinsic->Type() == sem::IntrinsicType::kTextureStore) { + if (builtin->Type() == sem::BuiltinType::kTextureStore) { out << "] = "; if (!EmitExpression(out, arg(Usage::kValue))) { return false; @@ -2459,11 +2459,11 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, } else { out << ")"; - // If the intrinsic return type does not match the number of elements of the - // HLSL intrinsic, we need to swizzle the expression to generate the correct + // If the builtin return type does not match the number of elements of the + // HLSL builtin, we need to swizzle the expression to generate the correct // number of components. uint32_t wgsl_ret_width = 1; - if (auto* vec = intrinsic->ReturnType()->As()) { + if (auto* vec = builtin->ReturnType()->As()) { wgsl_ret_width = vec->Width(); } if (wgsl_ret_width < hlsl_ret_width) { @@ -2476,7 +2476,7 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, TINT_ICE(Writer, diagnostics_) << "WGSL return width (" << wgsl_ret_width << ") is wider than HLSL return width (" << hlsl_ret_width << ") for " - << intrinsic->Type(); + << builtin->Type(); return false; } } @@ -2484,92 +2484,91 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, return true; } -std::string GeneratorImpl::generate_builtin_name( - const sem::Intrinsic* intrinsic) { - switch (intrinsic->Type()) { - case sem::IntrinsicType::kAbs: - case sem::IntrinsicType::kAcos: - case sem::IntrinsicType::kAll: - case sem::IntrinsicType::kAny: - case sem::IntrinsicType::kAsin: - case sem::IntrinsicType::kAtan: - case sem::IntrinsicType::kAtan2: - case sem::IntrinsicType::kCeil: - case sem::IntrinsicType::kClamp: - case sem::IntrinsicType::kCos: - case sem::IntrinsicType::kCosh: - case sem::IntrinsicType::kCross: - case sem::IntrinsicType::kDeterminant: - case sem::IntrinsicType::kDistance: - case sem::IntrinsicType::kDot: - case sem::IntrinsicType::kExp: - case sem::IntrinsicType::kExp2: - case sem::IntrinsicType::kFloor: - case sem::IntrinsicType::kFrexp: - case sem::IntrinsicType::kLdexp: - case sem::IntrinsicType::kLength: - case sem::IntrinsicType::kLog: - case sem::IntrinsicType::kLog2: - case sem::IntrinsicType::kMax: - case sem::IntrinsicType::kMin: - case sem::IntrinsicType::kModf: - case sem::IntrinsicType::kNormalize: - case sem::IntrinsicType::kPow: - case sem::IntrinsicType::kReflect: - case sem::IntrinsicType::kRefract: - case sem::IntrinsicType::kRound: - case sem::IntrinsicType::kSign: - case sem::IntrinsicType::kSin: - case sem::IntrinsicType::kSinh: - case sem::IntrinsicType::kSqrt: - case sem::IntrinsicType::kStep: - case sem::IntrinsicType::kTan: - case sem::IntrinsicType::kTanh: - case sem::IntrinsicType::kTranspose: - case sem::IntrinsicType::kTrunc: - return intrinsic->str(); - case sem::IntrinsicType::kCountOneBits: +std::string GeneratorImpl::generate_builtin_name(const sem::Builtin* builtin) { + switch (builtin->Type()) { + case sem::BuiltinType::kAbs: + case sem::BuiltinType::kAcos: + case sem::BuiltinType::kAll: + case sem::BuiltinType::kAny: + case sem::BuiltinType::kAsin: + case sem::BuiltinType::kAtan: + case sem::BuiltinType::kAtan2: + case sem::BuiltinType::kCeil: + case sem::BuiltinType::kClamp: + case sem::BuiltinType::kCos: + case sem::BuiltinType::kCosh: + case sem::BuiltinType::kCross: + case sem::BuiltinType::kDeterminant: + case sem::BuiltinType::kDistance: + case sem::BuiltinType::kDot: + case sem::BuiltinType::kExp: + case sem::BuiltinType::kExp2: + case sem::BuiltinType::kFloor: + case sem::BuiltinType::kFrexp: + case sem::BuiltinType::kLdexp: + case sem::BuiltinType::kLength: + case sem::BuiltinType::kLog: + case sem::BuiltinType::kLog2: + case sem::BuiltinType::kMax: + case sem::BuiltinType::kMin: + case sem::BuiltinType::kModf: + case sem::BuiltinType::kNormalize: + case sem::BuiltinType::kPow: + case sem::BuiltinType::kReflect: + case sem::BuiltinType::kRefract: + case sem::BuiltinType::kRound: + case sem::BuiltinType::kSign: + case sem::BuiltinType::kSin: + case sem::BuiltinType::kSinh: + case sem::BuiltinType::kSqrt: + case sem::BuiltinType::kStep: + case sem::BuiltinType::kTan: + case sem::BuiltinType::kTanh: + case sem::BuiltinType::kTranspose: + case sem::BuiltinType::kTrunc: + return builtin->str(); + case sem::BuiltinType::kCountOneBits: return "countbits"; - case sem::IntrinsicType::kDpdx: + case sem::BuiltinType::kDpdx: return "ddx"; - case sem::IntrinsicType::kDpdxCoarse: + case sem::BuiltinType::kDpdxCoarse: return "ddx_coarse"; - case sem::IntrinsicType::kDpdxFine: + case sem::BuiltinType::kDpdxFine: return "ddx_fine"; - case sem::IntrinsicType::kDpdy: + case sem::BuiltinType::kDpdy: return "ddy"; - case sem::IntrinsicType::kDpdyCoarse: + case sem::BuiltinType::kDpdyCoarse: return "ddy_coarse"; - case sem::IntrinsicType::kDpdyFine: + case sem::BuiltinType::kDpdyFine: return "ddy_fine"; - case sem::IntrinsicType::kFaceForward: + case sem::BuiltinType::kFaceForward: return "faceforward"; - case sem::IntrinsicType::kFract: + case sem::BuiltinType::kFract: return "frac"; - case sem::IntrinsicType::kFma: + case sem::BuiltinType::kFma: return "mad"; - case sem::IntrinsicType::kFwidth: - case sem::IntrinsicType::kFwidthCoarse: - case sem::IntrinsicType::kFwidthFine: + case sem::BuiltinType::kFwidth: + case sem::BuiltinType::kFwidthCoarse: + case sem::BuiltinType::kFwidthFine: return "fwidth"; - case sem::IntrinsicType::kInverseSqrt: + case sem::BuiltinType::kInverseSqrt: return "rsqrt"; - case sem::IntrinsicType::kIsFinite: + case sem::BuiltinType::kIsFinite: return "isfinite"; - case sem::IntrinsicType::kIsInf: + case sem::BuiltinType::kIsInf: return "isinf"; - case sem::IntrinsicType::kIsNan: + case sem::BuiltinType::kIsNan: return "isnan"; - case sem::IntrinsicType::kMix: + case sem::BuiltinType::kMix: return "lerp"; - case sem::IntrinsicType::kReverseBits: + case sem::BuiltinType::kReverseBits: return "reversebits"; - case sem::IntrinsicType::kSmoothStep: + case sem::BuiltinType::kSmoothStep: return "smoothstep"; default: diagnostics_.add_error( diag::System::Writer, - "Unknown builtin method: " + std::string(intrinsic->str())); + "Unknown builtin method: " + std::string(builtin->str())); } return ""; @@ -3892,28 +3891,28 @@ bool GeneratorImpl::EmitProgramConstVariable(const ast::Variable* var) { } template -bool GeneratorImpl::CallIntrinsicHelper(std::ostream& out, - const ast::CallExpression* call, - const sem::Intrinsic* intrinsic, - F&& build) { +bool GeneratorImpl::CallBuiltinHelper(std::ostream& out, + const ast::CallExpression* call, + const sem::Builtin* builtin, + F&& build) { // Generate the helper function if it hasn't been created already - auto fn = utils::GetOrCreate(intrinsics_, intrinsic, [&]() -> std::string { + auto fn = utils::GetOrCreate(builtins_, builtin, [&]() -> std::string { TextBuffer b; TINT_DEFER(helpers_.Append(b)); auto fn_name = - UniqueIdentifier(std::string("tint_") + sem::str(intrinsic->Type())); + UniqueIdentifier(std::string("tint_") + sem::str(builtin->Type())); std::vector parameter_names; { auto decl = line(&b); - if (!EmitTypeAndName(decl, intrinsic->ReturnType(), + if (!EmitTypeAndName(decl, builtin->ReturnType(), ast::StorageClass::kNone, ast::Access::kUndefined, fn_name)) { return ""; } { ScopedParen sp(decl); - for (auto* param : intrinsic->Parameters()) { + for (auto* param : builtin->Parameters()) { if (!parameter_names.empty()) { decl << ", "; } diff --git a/src/writer/hlsl/generator_impl.h b/src/writer/hlsl/generator_impl.h index 716b581850..8685d3f507 100644 --- a/src/writer/hlsl/generator_impl.h +++ b/src/writer/hlsl/generator_impl.h @@ -44,7 +44,7 @@ namespace tint { // Forward declarations namespace sem { class Call; -class Intrinsic; +class Builtin; class TypeConstructor; class TypeConversion; } // namespace sem @@ -145,14 +145,14 @@ class GeneratorImpl : public TextGenerator { bool EmitFunctionCall(std::ostream& out, const sem::Call* call, const sem::Function* function); - /// Handles generating an intrinsic call expression + /// Handles generating a builtin call expression /// @param out the output of the expression stream /// @param call the call expression - /// @param intrinsic the intrinsic being called + /// @param builtin the builtin being called /// @returns true if the expression is emitted - bool EmitIntrinsicCall(std::ostream& out, - const sem::Call* call, - const sem::Intrinsic* intrinsic); + bool EmitBuiltinCall(std::ostream& out, + const sem::Call* call, + const sem::Builtin* builtin); /// Handles generating a type conversion expression /// @param out the output of the expression stream /// @param call the call expression @@ -191,9 +191,9 @@ class GeneratorImpl : public TextGenerator { const transform::DecomposeMemoryAccess::Intrinsic* intrinsic); /// Handles generating a barrier intrinsic call /// @param out the output of the expression stream - /// @param intrinsic the semantic information for the barrier intrinsic + /// @param builtin the semantic information for the barrier builtin /// @returns true if the call expression is emitted - bool EmitBarrierCall(std::ostream& out, const sem::Intrinsic* intrinsic); + bool EmitBarrierCall(std::ostream& out, const sem::Builtin* builtin); /// Handles generating an atomic intrinsic call for a storage buffer variable /// @param out the output of the expression stream /// @param expr the call expression @@ -206,81 +206,81 @@ class GeneratorImpl : public TextGenerator { /// Handles generating an atomic intrinsic call for a workgroup variable /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the atomic intrinsic + /// @param builtin the semantic information for the atomic builtin /// @returns true if the call expression is emitted bool EmitWorkgroupAtomicCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); + const sem::Builtin* builtin); /// Handles generating a call to a texture function (`textureSample`, /// `textureSampleGrad`, etc) /// @param out the output of the expression stream /// @param call the call expression - /// @param intrinsic the semantic information for the texture intrinsic + /// @param builtin the semantic information for the texture builtin /// @returns true if the call expression is emitted bool EmitTextureCall(std::ostream& out, const sem::Call* call, - const sem::Intrinsic* intrinsic); - /// Handles generating a call to the `select()` intrinsic + const sem::Builtin* builtin); + /// Handles generating a call to the `select()` builtin /// @param out the output of the expression stream /// @param expr the call expression /// @returns true if the call expression is emitted bool EmitSelectCall(std::ostream& out, const ast::CallExpression* expr); - /// Handles generating a call to the `modf()` intrinsic + /// Handles generating a call to the `modf()` builtin /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the intrinsic + /// @param builtin the semantic information for the builtin /// @returns true if the call expression is emitted bool EmitModfCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); - /// Handles generating a call to the `frexp()` intrinsic + const sem::Builtin* builtin); + /// Handles generating a call to the `frexp()` builtin /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the intrinsic + /// @param builtin the semantic information for the builtin /// @returns true if the call expression is emitted bool EmitFrexpCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); - /// Handles generating a call to the `isNormal()` intrinsic + const sem::Builtin* builtin); + /// Handles generating a call to the `isNormal()` builtin /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the intrinsic + /// @param builtin the semantic information for the builtin /// @returns true if the call expression is emitted bool EmitIsNormalCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); - /// Handles generating a call to the `degrees()` intrinsic + const sem::Builtin* builtin); + /// Handles generating a call to the `degrees()` builtin /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the intrinsic + /// @param builtin the semantic information for the builtin /// @returns true if the call expression is emitted bool EmitDegreesCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); - /// Handles generating a call to the `radians()` intrinsic + const sem::Builtin* builtin); + /// Handles generating a call to the `radians()` builtin /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the intrinsic + /// @param builtin the semantic information for the builtin /// @returns true if the call expression is emitted bool EmitRadiansCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); - /// Handles generating a call to data packing intrinsic + const sem::Builtin* builtin); + /// Handles generating a call to data packing builtin /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the texture intrinsic + /// @param builtin the semantic information for the texture builtin /// @returns true if the call expression is emitted bool EmitDataPackingCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); - /// Handles generating a call to data unpacking intrinsic + const sem::Builtin* builtin); + /// Handles generating a call to data unpacking builtin /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the texture intrinsic + /// @param builtin the semantic information for the texture builtin /// @returns true if the call expression is emitted bool EmitDataUnpackingCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); + const sem::Builtin* builtin); /// Handles a case statement /// @param s the switch statement /// @param case_idx the index of the switch case in the switch statement @@ -473,9 +473,9 @@ class GeneratorImpl : public TextGenerator { const sem::Matrix* mat); /// Handles generating a builtin method name - /// @param intrinsic the semantic info for the intrinsic + /// @param builtin the semantic info for the builtin /// @returns the name or "" if not valid - std::string generate_builtin_name(const sem::Intrinsic* intrinsic); + std::string generate_builtin_name(const sem::Builtin* builtin); /// Converts a builtin to an attribute name /// @param builtin the builtin to convert /// @returns the string name of the builtin or blank on error @@ -513,13 +513,13 @@ class GeneratorImpl : public TextGenerator { }; }; - /// CallIntrinsicHelper will call the intrinsic helper function, creating it - /// if it hasn't been built already. If the intrinsic needs to be built then - /// CallIntrinsicHelper will generate the function signature and will call + /// CallBuiltinHelper will call the builtin helper function, creating it + /// if it hasn't been built already. If the builtin needs to be built then + /// CallBuiltinHelper will generate the function signature and will call /// `build` to emit the body of the function. /// @param out the output of the expression stream /// @param call the call expression - /// @param intrinsic the semantic information for the intrinsic + /// @param builtin the semantic information for the builtin /// @param build a function with the signature: /// `bool(TextBuffer* buffer, const std::vector& params)` /// Where: @@ -527,16 +527,16 @@ class GeneratorImpl : public TextGenerator { /// `params` is the name of all the generated function parameters /// @returns true if the call expression is emitted template - bool CallIntrinsicHelper(std::ostream& out, - const ast::CallExpression* call, - const sem::Intrinsic* intrinsic, - F&& build); + bool CallBuiltinHelper(std::ostream& out, + const ast::CallExpression* call, + const sem::Builtin* builtin, + F&& build); TextBuffer helpers_; // Helper functions emitted at the top of the output std::function emit_continuing_; std::unordered_map dma_intrinsics_; - std::unordered_map intrinsics_; + std::unordered_map builtins_; std::unordered_map structure_builders_; std::unordered_map dynamic_vector_write_; std::unordered_map diff --git a/src/writer/hlsl/generator_impl_intrinsic_test.cc b/src/writer/hlsl/generator_impl_builtin_test.cc similarity index 63% rename from src/writer/hlsl/generator_impl_intrinsic_test.cc rename to src/writer/hlsl/generator_impl_builtin_test.cc index 47377caac8..5b38b36be2 100644 --- a/src/writer/hlsl/generator_impl_intrinsic_test.cc +++ b/src/writer/hlsl/generator_impl_builtin_test.cc @@ -23,11 +23,11 @@ namespace writer { namespace hlsl { namespace { -using IntrinsicType = sem::IntrinsicType; +using BuiltinType = sem::BuiltinType; using ::testing::HasSubstr; -using HlslGeneratorImplTest_Intrinsic = TestHelper; +using HlslGeneratorImplTest_Builtin = TestHelper; enum class ParamType { kF32, @@ -35,12 +35,12 @@ enum class ParamType { kBool, }; -struct IntrinsicData { - IntrinsicType intrinsic; +struct BuiltinData { + BuiltinType builtin; ParamType type; const char* hlsl_name; }; -inline std::ostream& operator<<(std::ostream& out, IntrinsicData data) { +inline std::ostream& operator<<(std::ostream& out, BuiltinData data) { out << data.hlsl_name; switch (data.type) { case ParamType::kF32: @@ -57,104 +57,104 @@ inline std::ostream& operator<<(std::ostream& out, IntrinsicData data) { return out; } -const ast::CallExpression* GenerateCall(IntrinsicType intrinsic, +const ast::CallExpression* GenerateCall(BuiltinType builtin, ParamType type, ProgramBuilder* builder) { std::string name; std::ostringstream str(name); - str << intrinsic; - switch (intrinsic) { - case IntrinsicType::kAcos: - case IntrinsicType::kAsin: - case IntrinsicType::kAtan: - case IntrinsicType::kCeil: - case IntrinsicType::kCos: - case IntrinsicType::kCosh: - case IntrinsicType::kDpdx: - case IntrinsicType::kDpdxCoarse: - case IntrinsicType::kDpdxFine: - case IntrinsicType::kDpdy: - case IntrinsicType::kDpdyCoarse: - case IntrinsicType::kDpdyFine: - case IntrinsicType::kExp: - case IntrinsicType::kExp2: - case IntrinsicType::kFloor: - case IntrinsicType::kFract: - case IntrinsicType::kFwidth: - case IntrinsicType::kFwidthCoarse: - case IntrinsicType::kFwidthFine: - case IntrinsicType::kInverseSqrt: - case IntrinsicType::kIsFinite: - case IntrinsicType::kIsInf: - case IntrinsicType::kIsNan: - case IntrinsicType::kIsNormal: - case IntrinsicType::kLength: - case IntrinsicType::kLog: - case IntrinsicType::kLog2: - case IntrinsicType::kNormalize: - case IntrinsicType::kRound: - case IntrinsicType::kSin: - case IntrinsicType::kSinh: - case IntrinsicType::kSqrt: - case IntrinsicType::kTan: - case IntrinsicType::kTanh: - case IntrinsicType::kTrunc: - case IntrinsicType::kSign: + str << builtin; + switch (builtin) { + case BuiltinType::kAcos: + case BuiltinType::kAsin: + case BuiltinType::kAtan: + case BuiltinType::kCeil: + case BuiltinType::kCos: + case BuiltinType::kCosh: + case BuiltinType::kDpdx: + case BuiltinType::kDpdxCoarse: + case BuiltinType::kDpdxFine: + case BuiltinType::kDpdy: + case BuiltinType::kDpdyCoarse: + case BuiltinType::kDpdyFine: + case BuiltinType::kExp: + case BuiltinType::kExp2: + case BuiltinType::kFloor: + case BuiltinType::kFract: + case BuiltinType::kFwidth: + case BuiltinType::kFwidthCoarse: + case BuiltinType::kFwidthFine: + case BuiltinType::kInverseSqrt: + case BuiltinType::kIsFinite: + case BuiltinType::kIsInf: + case BuiltinType::kIsNan: + case BuiltinType::kIsNormal: + case BuiltinType::kLength: + case BuiltinType::kLog: + case BuiltinType::kLog2: + case BuiltinType::kNormalize: + case BuiltinType::kRound: + case BuiltinType::kSin: + case BuiltinType::kSinh: + case BuiltinType::kSqrt: + case BuiltinType::kTan: + case BuiltinType::kTanh: + case BuiltinType::kTrunc: + case BuiltinType::kSign: return builder->Call(str.str(), "f2"); - case IntrinsicType::kLdexp: + case BuiltinType::kLdexp: return builder->Call(str.str(), "f2", "i2"); - case IntrinsicType::kAtan2: - case IntrinsicType::kDot: - case IntrinsicType::kDistance: - case IntrinsicType::kPow: - case IntrinsicType::kReflect: - case IntrinsicType::kStep: + case BuiltinType::kAtan2: + case BuiltinType::kDot: + case BuiltinType::kDistance: + case BuiltinType::kPow: + case BuiltinType::kReflect: + case BuiltinType::kStep: return builder->Call(str.str(), "f2", "f2"); - case IntrinsicType::kCross: + case BuiltinType::kCross: return builder->Call(str.str(), "f3", "f3"); - case IntrinsicType::kFma: - case IntrinsicType::kMix: - case IntrinsicType::kFaceForward: - case IntrinsicType::kSmoothStep: + case BuiltinType::kFma: + case BuiltinType::kMix: + case BuiltinType::kFaceForward: + case BuiltinType::kSmoothStep: return builder->Call(str.str(), "f2", "f2", "f2"); - case IntrinsicType::kAll: - case IntrinsicType::kAny: + case BuiltinType::kAll: + case BuiltinType::kAny: return builder->Call(str.str(), "b2"); - case IntrinsicType::kAbs: + case BuiltinType::kAbs: if (type == ParamType::kF32) { return builder->Call(str.str(), "f2"); } else { return builder->Call(str.str(), "u2"); } - case IntrinsicType::kCountOneBits: - case IntrinsicType::kReverseBits: + case BuiltinType::kCountOneBits: + case BuiltinType::kReverseBits: return builder->Call(str.str(), "u2"); - case IntrinsicType::kMax: - case IntrinsicType::kMin: + case BuiltinType::kMax: + case BuiltinType::kMin: if (type == ParamType::kF32) { return builder->Call(str.str(), "f2", "f2"); } else { return builder->Call(str.str(), "u2", "u2"); } - case IntrinsicType::kClamp: + case BuiltinType::kClamp: if (type == ParamType::kF32) { return builder->Call(str.str(), "f2", "f2", "f2"); } else { return builder->Call(str.str(), "u2", "u2", "u2"); } - case IntrinsicType::kSelect: + case BuiltinType::kSelect: return builder->Call(str.str(), "f2", "f2", "b2"); - case IntrinsicType::kDeterminant: + case BuiltinType::kDeterminant: return builder->Call(str.str(), "m2x2"); - case IntrinsicType::kTranspose: + case BuiltinType::kTranspose: return builder->Call(str.str(), "m3x2"); default: break; } return nullptr; } -using HlslIntrinsicTest = TestParamHelper; -TEST_P(HlslIntrinsicTest, Emit) { +using HlslBuiltinTest = TestParamHelper; +TEST_P(HlslBuiltinTest, Emit) { auto param = GetParam(); Global("f2", ty.vec2(), ast::StorageClass::kPrivate); @@ -165,8 +165,8 @@ TEST_P(HlslIntrinsicTest, Emit) { Global("m2x2", ty.mat2x2(), ast::StorageClass::kPrivate); Global("m3x2", ty.mat3x2(), ast::StorageClass::kPrivate); - auto* call = GenerateCall(param.intrinsic, param.type, this); - ASSERT_NE(nullptr, call) << "Unhandled intrinsic"; + auto* call = GenerateCall(param.builtin, param.type, this); + ASSERT_NE(nullptr, call) << "Unhandled builtin"; Func("func", {}, ty.void_(), {CallStmt(call)}, {create(ast::PipelineStage::kFragment)}); @@ -176,89 +176,82 @@ TEST_P(HlslIntrinsicTest, Emit) { ASSERT_NE(sem, nullptr); auto* target = sem->Target(); ASSERT_NE(target, nullptr); - auto* intrinsic = target->As(); - ASSERT_NE(intrinsic, nullptr); + auto* builtin = target->As(); + ASSERT_NE(builtin, nullptr); - EXPECT_EQ(gen.generate_builtin_name(intrinsic), param.hlsl_name); + EXPECT_EQ(gen.generate_builtin_name(builtin), param.hlsl_name); } INSTANTIATE_TEST_SUITE_P( - HlslGeneratorImplTest_Intrinsic, - HlslIntrinsicTest, + HlslGeneratorImplTest_Builtin, + HlslBuiltinTest, testing::Values( - IntrinsicData{IntrinsicType::kAbs, ParamType::kF32, "abs"}, - IntrinsicData{IntrinsicType::kAbs, ParamType::kU32, "abs"}, - IntrinsicData{IntrinsicType::kAcos, ParamType::kF32, "acos"}, - IntrinsicData{IntrinsicType::kAll, ParamType::kBool, "all"}, - IntrinsicData{IntrinsicType::kAny, ParamType::kBool, "any"}, - IntrinsicData{IntrinsicType::kAsin, ParamType::kF32, "asin"}, - IntrinsicData{IntrinsicType::kAtan, ParamType::kF32, "atan"}, - IntrinsicData{IntrinsicType::kAtan2, ParamType::kF32, "atan2"}, - IntrinsicData{IntrinsicType::kCeil, ParamType::kF32, "ceil"}, - IntrinsicData{IntrinsicType::kClamp, ParamType::kF32, "clamp"}, - IntrinsicData{IntrinsicType::kClamp, ParamType::kU32, "clamp"}, - IntrinsicData{IntrinsicType::kCos, ParamType::kF32, "cos"}, - IntrinsicData{IntrinsicType::kCosh, ParamType::kF32, "cosh"}, - IntrinsicData{IntrinsicType::kCountOneBits, ParamType::kU32, - "countbits"}, - IntrinsicData{IntrinsicType::kCross, ParamType::kF32, "cross"}, - IntrinsicData{IntrinsicType::kDeterminant, ParamType::kF32, - "determinant"}, - IntrinsicData{IntrinsicType::kDistance, ParamType::kF32, "distance"}, - IntrinsicData{IntrinsicType::kDot, ParamType::kF32, "dot"}, - IntrinsicData{IntrinsicType::kDpdx, ParamType::kF32, "ddx"}, - IntrinsicData{IntrinsicType::kDpdxCoarse, ParamType::kF32, - "ddx_coarse"}, - IntrinsicData{IntrinsicType::kDpdxFine, ParamType::kF32, "ddx_fine"}, - IntrinsicData{IntrinsicType::kDpdy, ParamType::kF32, "ddy"}, - IntrinsicData{IntrinsicType::kDpdyCoarse, ParamType::kF32, - "ddy_coarse"}, - IntrinsicData{IntrinsicType::kDpdyFine, ParamType::kF32, "ddy_fine"}, - IntrinsicData{IntrinsicType::kExp, ParamType::kF32, "exp"}, - IntrinsicData{IntrinsicType::kExp2, ParamType::kF32, "exp2"}, - IntrinsicData{IntrinsicType::kFaceForward, ParamType::kF32, - "faceforward"}, - IntrinsicData{IntrinsicType::kFloor, ParamType::kF32, "floor"}, - IntrinsicData{IntrinsicType::kFma, ParamType::kF32, "mad"}, - IntrinsicData{IntrinsicType::kFract, ParamType::kF32, "frac"}, - IntrinsicData{IntrinsicType::kFwidth, ParamType::kF32, "fwidth"}, - IntrinsicData{IntrinsicType::kFwidthCoarse, ParamType::kF32, "fwidth"}, - IntrinsicData{IntrinsicType::kFwidthFine, ParamType::kF32, "fwidth"}, - IntrinsicData{IntrinsicType::kInverseSqrt, ParamType::kF32, "rsqrt"}, - IntrinsicData{IntrinsicType::kIsFinite, ParamType::kF32, "isfinite"}, - IntrinsicData{IntrinsicType::kIsInf, ParamType::kF32, "isinf"}, - IntrinsicData{IntrinsicType::kIsNan, ParamType::kF32, "isnan"}, - IntrinsicData{IntrinsicType::kLdexp, ParamType::kF32, "ldexp"}, - IntrinsicData{IntrinsicType::kLength, ParamType::kF32, "length"}, - IntrinsicData{IntrinsicType::kLog, ParamType::kF32, "log"}, - IntrinsicData{IntrinsicType::kLog2, ParamType::kF32, "log2"}, - IntrinsicData{IntrinsicType::kMax, ParamType::kF32, "max"}, - IntrinsicData{IntrinsicType::kMax, ParamType::kU32, "max"}, - IntrinsicData{IntrinsicType::kMin, ParamType::kF32, "min"}, - IntrinsicData{IntrinsicType::kMin, ParamType::kU32, "min"}, - IntrinsicData{IntrinsicType::kMix, ParamType::kF32, "lerp"}, - IntrinsicData{IntrinsicType::kNormalize, ParamType::kF32, "normalize"}, - IntrinsicData{IntrinsicType::kPow, ParamType::kF32, "pow"}, - IntrinsicData{IntrinsicType::kReflect, ParamType::kF32, "reflect"}, - IntrinsicData{IntrinsicType::kReverseBits, ParamType::kU32, - "reversebits"}, - IntrinsicData{IntrinsicType::kRound, ParamType::kU32, "round"}, - IntrinsicData{IntrinsicType::kSign, ParamType::kF32, "sign"}, - IntrinsicData{IntrinsicType::kSin, ParamType::kF32, "sin"}, - IntrinsicData{IntrinsicType::kSinh, ParamType::kF32, "sinh"}, - IntrinsicData{IntrinsicType::kSmoothStep, ParamType::kF32, - "smoothstep"}, - IntrinsicData{IntrinsicType::kSqrt, ParamType::kF32, "sqrt"}, - IntrinsicData{IntrinsicType::kStep, ParamType::kF32, "step"}, - IntrinsicData{IntrinsicType::kTan, ParamType::kF32, "tan"}, - IntrinsicData{IntrinsicType::kTanh, ParamType::kF32, "tanh"}, - IntrinsicData{IntrinsicType::kTranspose, ParamType::kF32, "transpose"}, - IntrinsicData{IntrinsicType::kTrunc, ParamType::kF32, "trunc"})); + BuiltinData{BuiltinType::kAbs, ParamType::kF32, "abs"}, + BuiltinData{BuiltinType::kAbs, ParamType::kU32, "abs"}, + BuiltinData{BuiltinType::kAcos, ParamType::kF32, "acos"}, + BuiltinData{BuiltinType::kAll, ParamType::kBool, "all"}, + BuiltinData{BuiltinType::kAny, ParamType::kBool, "any"}, + BuiltinData{BuiltinType::kAsin, ParamType::kF32, "asin"}, + BuiltinData{BuiltinType::kAtan, ParamType::kF32, "atan"}, + BuiltinData{BuiltinType::kAtan2, ParamType::kF32, "atan2"}, + BuiltinData{BuiltinType::kCeil, ParamType::kF32, "ceil"}, + BuiltinData{BuiltinType::kClamp, ParamType::kF32, "clamp"}, + BuiltinData{BuiltinType::kClamp, ParamType::kU32, "clamp"}, + BuiltinData{BuiltinType::kCos, ParamType::kF32, "cos"}, + BuiltinData{BuiltinType::kCosh, ParamType::kF32, "cosh"}, + BuiltinData{BuiltinType::kCountOneBits, ParamType::kU32, "countbits"}, + BuiltinData{BuiltinType::kCross, ParamType::kF32, "cross"}, + BuiltinData{BuiltinType::kDeterminant, ParamType::kF32, "determinant"}, + BuiltinData{BuiltinType::kDistance, ParamType::kF32, "distance"}, + BuiltinData{BuiltinType::kDot, ParamType::kF32, "dot"}, + BuiltinData{BuiltinType::kDpdx, ParamType::kF32, "ddx"}, + BuiltinData{BuiltinType::kDpdxCoarse, ParamType::kF32, "ddx_coarse"}, + BuiltinData{BuiltinType::kDpdxFine, ParamType::kF32, "ddx_fine"}, + BuiltinData{BuiltinType::kDpdy, ParamType::kF32, "ddy"}, + BuiltinData{BuiltinType::kDpdyCoarse, ParamType::kF32, "ddy_coarse"}, + BuiltinData{BuiltinType::kDpdyFine, ParamType::kF32, "ddy_fine"}, + BuiltinData{BuiltinType::kExp, ParamType::kF32, "exp"}, + BuiltinData{BuiltinType::kExp2, ParamType::kF32, "exp2"}, + BuiltinData{BuiltinType::kFaceForward, ParamType::kF32, "faceforward"}, + BuiltinData{BuiltinType::kFloor, ParamType::kF32, "floor"}, + BuiltinData{BuiltinType::kFma, ParamType::kF32, "mad"}, + BuiltinData{BuiltinType::kFract, ParamType::kF32, "frac"}, + BuiltinData{BuiltinType::kFwidth, ParamType::kF32, "fwidth"}, + BuiltinData{BuiltinType::kFwidthCoarse, ParamType::kF32, "fwidth"}, + BuiltinData{BuiltinType::kFwidthFine, ParamType::kF32, "fwidth"}, + BuiltinData{BuiltinType::kInverseSqrt, ParamType::kF32, "rsqrt"}, + BuiltinData{BuiltinType::kIsFinite, ParamType::kF32, "isfinite"}, + BuiltinData{BuiltinType::kIsInf, ParamType::kF32, "isinf"}, + BuiltinData{BuiltinType::kIsNan, ParamType::kF32, "isnan"}, + BuiltinData{BuiltinType::kLdexp, ParamType::kF32, "ldexp"}, + BuiltinData{BuiltinType::kLength, ParamType::kF32, "length"}, + BuiltinData{BuiltinType::kLog, ParamType::kF32, "log"}, + BuiltinData{BuiltinType::kLog2, ParamType::kF32, "log2"}, + BuiltinData{BuiltinType::kMax, ParamType::kF32, "max"}, + BuiltinData{BuiltinType::kMax, ParamType::kU32, "max"}, + BuiltinData{BuiltinType::kMin, ParamType::kF32, "min"}, + BuiltinData{BuiltinType::kMin, ParamType::kU32, "min"}, + BuiltinData{BuiltinType::kMix, ParamType::kF32, "lerp"}, + BuiltinData{BuiltinType::kNormalize, ParamType::kF32, "normalize"}, + BuiltinData{BuiltinType::kPow, ParamType::kF32, "pow"}, + BuiltinData{BuiltinType::kReflect, ParamType::kF32, "reflect"}, + BuiltinData{BuiltinType::kReverseBits, ParamType::kU32, "reversebits"}, + BuiltinData{BuiltinType::kRound, ParamType::kU32, "round"}, + BuiltinData{BuiltinType::kSign, ParamType::kF32, "sign"}, + BuiltinData{BuiltinType::kSin, ParamType::kF32, "sin"}, + BuiltinData{BuiltinType::kSinh, ParamType::kF32, "sinh"}, + BuiltinData{BuiltinType::kSmoothStep, ParamType::kF32, "smoothstep"}, + BuiltinData{BuiltinType::kSqrt, ParamType::kF32, "sqrt"}, + BuiltinData{BuiltinType::kStep, ParamType::kF32, "step"}, + BuiltinData{BuiltinType::kTan, ParamType::kF32, "tan"}, + BuiltinData{BuiltinType::kTanh, ParamType::kF32, "tanh"}, + BuiltinData{BuiltinType::kTranspose, ParamType::kF32, "transpose"}, + BuiltinData{BuiltinType::kTrunc, ParamType::kF32, "trunc"})); -TEST_F(HlslGeneratorImplTest_Intrinsic, DISABLED_Intrinsic_IsNormal) { +TEST_F(HlslGeneratorImplTest_Builtin, DISABLED_Builtin_IsNormal) { FAIL(); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Intrinsic_Call) { +TEST_F(HlslGeneratorImplTest_Builtin, Builtin_Call) { auto* call = Call("dot", "param1", "param2"); Global("param1", ty.vec3(), ast::StorageClass::kPrivate); @@ -274,7 +267,7 @@ TEST_F(HlslGeneratorImplTest_Intrinsic, Intrinsic_Call) { EXPECT_EQ(out.str(), "dot(param1, param2)"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Select_Scalar) { +TEST_F(HlslGeneratorImplTest_Builtin, Select_Scalar) { auto* call = Call("select", 1.0f, 2.0f, true); WrapInFunction(CallStmt(call)); GeneratorImpl& gen = Build(); @@ -285,7 +278,7 @@ TEST_F(HlslGeneratorImplTest_Intrinsic, Select_Scalar) { EXPECT_EQ(out.str(), "(true ? 2.0f : 1.0f)"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Select_Vector) { +TEST_F(HlslGeneratorImplTest_Builtin, Select_Vector) { auto* call = Call("select", vec2(1, 2), vec2(3, 4), vec2(true, false)); WrapInFunction(CallStmt(call)); @@ -297,7 +290,7 @@ TEST_F(HlslGeneratorImplTest_Intrinsic, Select_Vector) { EXPECT_EQ(out.str(), "(bool2(true, false) ? int2(3, 4) : int2(1, 2))"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Modf_Scalar) { +TEST_F(HlslGeneratorImplTest_Builtin, Modf_Scalar) { auto* call = Call("modf", 1.0f); WrapInFunction(CallStmt(call)); @@ -323,7 +316,7 @@ void test_function() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Modf_Vector) { +TEST_F(HlslGeneratorImplTest_Builtin, Modf_Vector) { auto* call = Call("modf", vec3()); WrapInFunction(CallStmt(call)); @@ -349,7 +342,7 @@ void test_function() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Frexp_Scalar_i32) { +TEST_F(HlslGeneratorImplTest_Builtin, Frexp_Scalar_i32) { auto* call = Call("frexp", 1.0f); WrapInFunction(CallStmt(call)); @@ -375,7 +368,7 @@ void test_function() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Frexp_Vector_i32) { +TEST_F(HlslGeneratorImplTest_Builtin, Frexp_Vector_i32) { auto* call = Call("frexp", vec3()); WrapInFunction(CallStmt(call)); @@ -401,7 +394,7 @@ void test_function() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, IsNormal_Scalar) { +TEST_F(HlslGeneratorImplTest_Builtin, IsNormal_Scalar) { auto* val = Var("val", ty.f32()); auto* call = Call("isNormal", val); WrapInFunction(val, call); @@ -424,7 +417,7 @@ void test_function() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, IsNormal_Vector) { +TEST_F(HlslGeneratorImplTest_Builtin, IsNormal_Vector) { auto* val = Var("val", ty.vec3()); auto* call = Call("isNormal", val); WrapInFunction(val, call); @@ -447,7 +440,7 @@ void test_function() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Degrees_Scalar) { +TEST_F(HlslGeneratorImplTest_Builtin, Degrees_Scalar) { auto* val = Var("val", ty.f32()); auto* call = Call("degrees", val); WrapInFunction(val, call); @@ -468,7 +461,7 @@ void test_function() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Degrees_Vector) { +TEST_F(HlslGeneratorImplTest_Builtin, Degrees_Vector) { auto* val = Var("val", ty.vec3()); auto* call = Call("degrees", val); WrapInFunction(val, call); @@ -489,7 +482,7 @@ void test_function() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Radians_Scalar) { +TEST_F(HlslGeneratorImplTest_Builtin, Radians_Scalar) { auto* val = Var("val", ty.f32()); auto* call = Call("radians", val); WrapInFunction(val, call); @@ -510,7 +503,7 @@ void test_function() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Radians_Vector) { +TEST_F(HlslGeneratorImplTest_Builtin, Radians_Vector) { auto* val = Var("val", ty.vec3()); auto* call = Call("radians", val); WrapInFunction(val, call); @@ -531,7 +524,7 @@ void test_function() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Pack4x8Snorm) { +TEST_F(HlslGeneratorImplTest_Builtin, Pack4x8Snorm) { auto* call = Call("pack4x8snorm", "p1"); Global("p1", ty.vec4(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(call)); @@ -553,7 +546,7 @@ void test_function() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Pack4x8Unorm) { +TEST_F(HlslGeneratorImplTest_Builtin, Pack4x8Unorm) { auto* call = Call("pack4x8unorm", "p1"); Global("p1", ty.vec4(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(call)); @@ -575,7 +568,7 @@ void test_function() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Pack2x16Snorm) { +TEST_F(HlslGeneratorImplTest_Builtin, Pack2x16Snorm) { auto* call = Call("pack2x16snorm", "p1"); Global("p1", ty.vec2(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(call)); @@ -597,7 +590,7 @@ void test_function() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Pack2x16Unorm) { +TEST_F(HlslGeneratorImplTest_Builtin, Pack2x16Unorm) { auto* call = Call("pack2x16unorm", "p1"); Global("p1", ty.vec2(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(call)); @@ -619,7 +612,7 @@ void test_function() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Pack2x16Float) { +TEST_F(HlslGeneratorImplTest_Builtin, Pack2x16Float) { auto* call = Call("pack2x16float", "p1"); Global("p1", ty.vec2(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(call)); @@ -641,7 +634,7 @@ void test_function() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Unpack4x8Snorm) { +TEST_F(HlslGeneratorImplTest_Builtin, Unpack4x8Snorm) { auto* call = Call("unpack4x8snorm", "p1"); Global("p1", ty.u32(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(call)); @@ -664,7 +657,7 @@ void test_function() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Unpack4x8Unorm) { +TEST_F(HlslGeneratorImplTest_Builtin, Unpack4x8Unorm) { auto* call = Call("unpack4x8unorm", "p1"); Global("p1", ty.u32(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(call)); @@ -687,7 +680,7 @@ void test_function() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Unpack2x16Snorm) { +TEST_F(HlslGeneratorImplTest_Builtin, Unpack2x16Snorm) { auto* call = Call("unpack2x16snorm", "p1"); Global("p1", ty.u32(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(call)); @@ -710,7 +703,7 @@ void test_function() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Unpack2x16Unorm) { +TEST_F(HlslGeneratorImplTest_Builtin, Unpack2x16Unorm) { auto* call = Call("unpack2x16unorm", "p1"); Global("p1", ty.u32(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(call)); @@ -733,7 +726,7 @@ void test_function() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, Unpack2x16Float) { +TEST_F(HlslGeneratorImplTest_Builtin, Unpack2x16Float) { auto* call = Call("unpack2x16float", "p1"); Global("p1", ty.u32(), ast::StorageClass::kPrivate); WrapInFunction(CallStmt(call)); @@ -755,7 +748,7 @@ void test_function() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, StorageBarrier) { +TEST_F(HlslGeneratorImplTest_Builtin, StorageBarrier) { Func("main", {}, ty.void_(), {CallStmt(Call("storageBarrier"))}, { Stage(ast::PipelineStage::kCompute), @@ -773,7 +766,7 @@ void main() { )"); } -TEST_F(HlslGeneratorImplTest_Intrinsic, WorkgroupBarrier) { +TEST_F(HlslGeneratorImplTest_Builtin, WorkgroupBarrier) { Func("main", {}, ty.void_(), {CallStmt(Call("workgroupBarrier"))}, { Stage(ast::PipelineStage::kCompute), diff --git a/src/writer/hlsl/generator_impl_intrinsic_texture_test.cc b/src/writer/hlsl/generator_impl_builtin_texture_test.cc similarity index 97% rename from src/writer/hlsl/generator_impl_intrinsic_texture_test.cc rename to src/writer/hlsl/generator_impl_builtin_texture_test.cc index 8569ed56fc..332b4ad21a 100644 --- a/src/writer/hlsl/generator_impl_intrinsic_texture_test.cc +++ b/src/writer/hlsl/generator_impl_builtin_texture_test.cc @@ -13,8 +13,8 @@ // limitations under the License. #include "gmock/gmock.h" +#include "src/ast/builtin_texture_helper_test.h" #include "src/ast/call_statement.h" -#include "src/ast/intrinsic_texture_helper_test.h" #include "src/ast/stage_attribute.h" #include "src/writer/hlsl/test_helper.h" @@ -34,8 +34,8 @@ struct ExpectedResult { }; ExpectedResult expected_texture_overload( - ast::intrinsic::test::ValidTextureOverload overload) { - using ValidTextureOverload = ast::intrinsic::test::ValidTextureOverload; + ast::builtin::test::ValidTextureOverload overload) { + using ValidTextureOverload = ast::builtin::test::ValidTextureOverload; switch (overload) { case ValidTextureOverload::kDimensions1d: case ValidTextureOverload::kDimensionsStorageWO1d: @@ -361,10 +361,10 @@ ExpectedResult expected_texture_overload( return ""; } // NOLINT - Ignore the length of this function -class HlslGeneratorIntrinsicTextureTest - : public TestParamHelper {}; +class HlslGeneratorBuiltinTextureTest + : public TestParamHelper {}; -TEST_P(HlslGeneratorIntrinsicTextureTest, Call) { +TEST_P(HlslGeneratorBuiltinTextureTest, Call) { auto param = GetParam(); param.BuildTextureVariable(this); @@ -386,9 +386,9 @@ TEST_P(HlslGeneratorIntrinsicTextureTest, Call) { } INSTANTIATE_TEST_SUITE_P( - HlslGeneratorIntrinsicTextureTest, - HlslGeneratorIntrinsicTextureTest, - testing::ValuesIn(ast::intrinsic::test::TextureOverloadCase::ValidCases())); + HlslGeneratorBuiltinTextureTest, + HlslGeneratorBuiltinTextureTest, + testing::ValuesIn(ast::builtin::test::TextureOverloadCase::ValidCases())); } // namespace } // namespace hlsl diff --git a/src/writer/msl/generator_impl.cc b/src/writer/msl/generator_impl.cc index 92faffbb8b..ec2d748dbd 100644 --- a/src/writer/msl/generator_impl.cc +++ b/src/writer/msl/generator_impl.cc @@ -542,8 +542,8 @@ bool GeneratorImpl::EmitCall(std::ostream& out, if (auto* func = target->As()) { return EmitFunctionCall(out, call, func); } - if (auto* intrinsic = target->As()) { - return EmitIntrinsicCall(out, call, intrinsic); + if (auto* builtin = target->As()) { + return EmitBuiltinCall(out, call, builtin); } if (auto* conv = target->As()) { return EmitTypeConversion(out, call, conv); @@ -579,34 +579,34 @@ bool GeneratorImpl::EmitFunctionCall(std::ostream& out, return true; } -bool GeneratorImpl::EmitIntrinsicCall(std::ostream& out, - const sem::Call* call, - const sem::Intrinsic* intrinsic) { +bool GeneratorImpl::EmitBuiltinCall(std::ostream& out, + const sem::Call* call, + const sem::Builtin* builtin) { auto* expr = call->Declaration(); - if (intrinsic->IsAtomic()) { - return EmitAtomicCall(out, expr, intrinsic); + if (builtin->IsAtomic()) { + return EmitAtomicCall(out, expr, builtin); } - if (intrinsic->IsTexture()) { - return EmitTextureCall(out, call, intrinsic); + if (builtin->IsTexture()) { + return EmitTextureCall(out, call, builtin); } - auto name = generate_builtin_name(intrinsic); + auto name = generate_builtin_name(builtin); - switch (intrinsic->Type()) { - case sem::IntrinsicType::kDot: - return EmitDotCall(out, expr, intrinsic); - case sem::IntrinsicType::kModf: - return EmitModfCall(out, expr, intrinsic); - case sem::IntrinsicType::kFrexp: - return EmitFrexpCall(out, expr, intrinsic); - case sem::IntrinsicType::kDegrees: - return EmitDegreesCall(out, expr, intrinsic); - case sem::IntrinsicType::kRadians: - return EmitRadiansCall(out, expr, intrinsic); + switch (builtin->Type()) { + case sem::BuiltinType::kDot: + return EmitDotCall(out, expr, builtin); + case sem::BuiltinType::kModf: + return EmitModfCall(out, expr, builtin); + case sem::BuiltinType::kFrexp: + return EmitFrexpCall(out, expr, builtin); + case sem::BuiltinType::kDegrees: + return EmitDegreesCall(out, expr, builtin); + case sem::BuiltinType::kRadians: + return EmitRadiansCall(out, expr, builtin); - case sem::IntrinsicType::kPack2x16float: - case sem::IntrinsicType::kUnpack2x16float: { - if (intrinsic->Type() == sem::IntrinsicType::kPack2x16float) { + case sem::BuiltinType::kPack2x16float: + case sem::BuiltinType::kUnpack2x16float: { + if (builtin->Type() == sem::BuiltinType::kPack2x16float) { out << "as_type(half2("; } else { out << "float2(as_type("; @@ -619,16 +619,16 @@ bool GeneratorImpl::EmitIntrinsicCall(std::ostream& out, } // TODO(crbug.com/tint/661): Combine sequential barriers to a single // instruction. - case sem::IntrinsicType::kStorageBarrier: { + case sem::BuiltinType::kStorageBarrier: { out << "threadgroup_barrier(mem_flags::mem_device)"; return true; } - case sem::IntrinsicType::kWorkgroupBarrier: { + case sem::BuiltinType::kWorkgroupBarrier: { out << "threadgroup_barrier(mem_flags::mem_threadgroup)"; return true; } - case sem::IntrinsicType::kLength: { + case sem::BuiltinType::kLength: { auto* sem = builder_.Sem().Get(expr->args[0]); if (sem->Type()->UnwrapRef()->is_scalar()) { // Emulate scalar overload using fabs(x). @@ -637,7 +637,7 @@ bool GeneratorImpl::EmitIntrinsicCall(std::ostream& out, break; } - case sem::IntrinsicType::kDistance: { + case sem::BuiltinType::kDistance: { auto* sem = builder_.Sem().Get(expr->args[0]); if (sem->Type()->UnwrapRef()->is_scalar()) { // Emulate scalar overload using fabs(x - y); @@ -741,7 +741,7 @@ bool GeneratorImpl::EmitTypeConstructor(std::ostream& out, bool GeneratorImpl::EmitAtomicCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { + const sem::Builtin* builtin) { auto call = [&](const std::string& name, bool append_memory_order_relaxed) { out << name; { @@ -762,38 +762,38 @@ bool GeneratorImpl::EmitAtomicCall(std::ostream& out, return true; }; - switch (intrinsic->Type()) { - case sem::IntrinsicType::kAtomicLoad: + switch (builtin->Type()) { + case sem::BuiltinType::kAtomicLoad: return call("atomic_load_explicit", true); - case sem::IntrinsicType::kAtomicStore: + case sem::BuiltinType::kAtomicStore: return call("atomic_store_explicit", true); - case sem::IntrinsicType::kAtomicAdd: + case sem::BuiltinType::kAtomicAdd: return call("atomic_fetch_add_explicit", true); - case sem::IntrinsicType::kAtomicSub: + case sem::BuiltinType::kAtomicSub: return call("atomic_fetch_sub_explicit", true); - case sem::IntrinsicType::kAtomicMax: + case sem::BuiltinType::kAtomicMax: return call("atomic_fetch_max_explicit", true); - case sem::IntrinsicType::kAtomicMin: + case sem::BuiltinType::kAtomicMin: return call("atomic_fetch_min_explicit", true); - case sem::IntrinsicType::kAtomicAnd: + case sem::BuiltinType::kAtomicAnd: return call("atomic_fetch_and_explicit", true); - case sem::IntrinsicType::kAtomicOr: + case sem::BuiltinType::kAtomicOr: return call("atomic_fetch_or_explicit", true); - case sem::IntrinsicType::kAtomicXor: + case sem::BuiltinType::kAtomicXor: return call("atomic_fetch_xor_explicit", true); - case sem::IntrinsicType::kAtomicExchange: + case sem::BuiltinType::kAtomicExchange: return call("atomic_exchange_explicit", true); - case sem::IntrinsicType::kAtomicCompareExchangeWeak: { + case sem::BuiltinType::kAtomicCompareExchangeWeak: { auto* ptr_ty = TypeOf(expr->args[0])->UnwrapRef()->As(); auto sc = ptr_ty->StorageClass(); @@ -836,16 +836,16 @@ bool GeneratorImpl::EmitAtomicCall(std::ostream& out, } TINT_UNREACHABLE(Writer, diagnostics_) - << "unsupported atomic intrinsic: " << intrinsic->Type(); + << "unsupported atomic builtin: " << builtin->Type(); return false; } bool GeneratorImpl::EmitTextureCall(std::ostream& out, const sem::Call* call, - const sem::Intrinsic* intrinsic) { + const sem::Builtin* builtin) { using Usage = sem::ParameterUsage; - auto& signature = intrinsic->Signature(); + auto& signature = builtin->Signature(); auto* expr = call->Declaration(); auto& arguments = call->Arguments(); @@ -883,8 +883,8 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, return true; }; - switch (intrinsic->Type()) { - case sem::IntrinsicType::kTextureDimensions: { + switch (builtin->Type()) { + case sem::BuiltinType::kTextureDimensions: { std::vector dims; switch (texture_type->dim()) { case ast::TextureDimension::kNone: @@ -936,7 +936,7 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, } return true; } - case sem::IntrinsicType::kTextureNumLayers: { + case sem::BuiltinType::kTextureNumLayers: { out << "int("; if (!texture_expr()) { return false; @@ -944,7 +944,7 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, out << ".get_array_size())"; return true; } - case sem::IntrinsicType::kTextureNumLevels: { + case sem::BuiltinType::kTextureNumLevels: { out << "int("; if (!texture_expr()) { return false; @@ -952,7 +952,7 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, out << ".get_num_mip_levels())"; return true; } - case sem::IntrinsicType::kTextureNumSamples: { + case sem::BuiltinType::kTextureNumSamples: { out << "int("; if (!texture_expr()) { return false; @@ -970,33 +970,33 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, bool lod_param_is_named = true; - switch (intrinsic->Type()) { - case sem::IntrinsicType::kTextureSample: - case sem::IntrinsicType::kTextureSampleBias: - case sem::IntrinsicType::kTextureSampleLevel: - case sem::IntrinsicType::kTextureSampleGrad: + switch (builtin->Type()) { + case sem::BuiltinType::kTextureSample: + case sem::BuiltinType::kTextureSampleBias: + case sem::BuiltinType::kTextureSampleLevel: + case sem::BuiltinType::kTextureSampleGrad: out << ".sample("; break; - case sem::IntrinsicType::kTextureSampleCompare: - case sem::IntrinsicType::kTextureSampleCompareLevel: + case sem::BuiltinType::kTextureSampleCompare: + case sem::BuiltinType::kTextureSampleCompareLevel: out << ".sample_compare("; break; - case sem::IntrinsicType::kTextureGather: + case sem::BuiltinType::kTextureGather: out << ".gather("; break; - case sem::IntrinsicType::kTextureGatherCompare: + case sem::BuiltinType::kTextureGatherCompare: out << ".gather_compare("; break; - case sem::IntrinsicType::kTextureLoad: + case sem::BuiltinType::kTextureLoad: out << ".read("; lod_param_is_named = false; break; - case sem::IntrinsicType::kTextureStore: + case sem::BuiltinType::kTextureStore: out << ".write("; break; default: TINT_UNREACHABLE(Writer, diagnostics_) - << "Unhandled texture intrinsic '" << intrinsic->str() << "'"; + << "Unhandled texture builtin '" << builtin->str() << "'"; return false; } @@ -1066,7 +1066,7 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, out << ")"; } } - if (intrinsic->Type() == sem::IntrinsicType::kTextureSampleCompareLevel) { + if (builtin->Type() == sem::BuiltinType::kTextureSampleCompareLevel) { maybe_write_comma(); out << "level(0)"; } @@ -1154,8 +1154,8 @@ bool GeneratorImpl::EmitTextureCall(std::ostream& out, bool GeneratorImpl::EmitDotCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { - auto* vec_ty = intrinsic->Parameters()[0]->Type()->As(); + const sem::Builtin* builtin) { + auto* vec_ty = builtin->Parameters()[0]->Type()->As(); std::string fn = "dot"; if (vec_ty->type()->is_integer_scalar()) { // MSL does not have a builtin for dot() with integer vector types. @@ -1201,11 +1201,11 @@ bool GeneratorImpl::EmitDotCall(std::ostream& out, bool GeneratorImpl::EmitModfCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { - return CallIntrinsicHelper( - out, expr, intrinsic, + const sem::Builtin* builtin) { + return CallBuiltinHelper( + out, expr, builtin, [&](TextBuffer* b, const std::vector& params) { - auto* ty = intrinsic->Parameters()[0]->Type(); + auto* ty = builtin->Parameters()[0]->Type(); auto in = params[0]; std::string width; @@ -1216,7 +1216,7 @@ bool GeneratorImpl::EmitModfCall(std::ostream& out, // Emit the builtin return type unique to this overload. This does not // exist in the AST, so it will not be generated in Generate(). if (!EmitStructType(&helpers_, - intrinsic->ReturnType()->As())) { + builtin->ReturnType()->As())) { return false; } @@ -1229,11 +1229,11 @@ bool GeneratorImpl::EmitModfCall(std::ostream& out, bool GeneratorImpl::EmitFrexpCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { - return CallIntrinsicHelper( - out, expr, intrinsic, + const sem::Builtin* builtin) { + return CallBuiltinHelper( + out, expr, builtin, [&](TextBuffer* b, const std::vector& params) { - auto* ty = intrinsic->Parameters()[0]->Type(); + auto* ty = builtin->Parameters()[0]->Type(); auto in = params[0]; std::string width; @@ -1244,7 +1244,7 @@ bool GeneratorImpl::EmitFrexpCall(std::ostream& out, // Emit the builtin return type unique to this overload. This does not // exist in the AST, so it will not be generated in Generate(). if (!EmitStructType(&helpers_, - intrinsic->ReturnType()->As())) { + builtin->ReturnType()->As())) { return false; } @@ -1257,9 +1257,9 @@ bool GeneratorImpl::EmitFrexpCall(std::ostream& out, bool GeneratorImpl::EmitDegreesCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { - return CallIntrinsicHelper( - out, expr, intrinsic, + const sem::Builtin* builtin) { + return CallBuiltinHelper( + out, expr, builtin, [&](TextBuffer* b, const std::vector& params) { line(b) << "return " << params[0] << " * " << std::setprecision(20) << sem::kRadToDeg << ";"; @@ -1269,9 +1269,9 @@ bool GeneratorImpl::EmitDegreesCall(std::ostream& out, bool GeneratorImpl::EmitRadiansCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic) { - return CallIntrinsicHelper( - out, expr, intrinsic, + const sem::Builtin* builtin) { + return CallBuiltinHelper( + out, expr, builtin, [&](TextBuffer* b, const std::vector& params) { line(b) << "return " << params[0] << " * " << std::setprecision(20) << sem::kDegToRad << ";"; @@ -1279,153 +1279,152 @@ bool GeneratorImpl::EmitRadiansCall(std::ostream& out, }); } -std::string GeneratorImpl::generate_builtin_name( - const sem::Intrinsic* intrinsic) { +std::string GeneratorImpl::generate_builtin_name(const sem::Builtin* builtin) { std::string out = ""; - switch (intrinsic->Type()) { - case sem::IntrinsicType::kAcos: - case sem::IntrinsicType::kAll: - case sem::IntrinsicType::kAny: - case sem::IntrinsicType::kAsin: - case sem::IntrinsicType::kAtan: - case sem::IntrinsicType::kAtan2: - case sem::IntrinsicType::kCeil: - case sem::IntrinsicType::kCos: - case sem::IntrinsicType::kCosh: - case sem::IntrinsicType::kCross: - case sem::IntrinsicType::kDeterminant: - case sem::IntrinsicType::kDistance: - case sem::IntrinsicType::kDot: - case sem::IntrinsicType::kExp: - case sem::IntrinsicType::kExp2: - case sem::IntrinsicType::kFloor: - case sem::IntrinsicType::kFma: - case sem::IntrinsicType::kFract: - case sem::IntrinsicType::kFrexp: - case sem::IntrinsicType::kLength: - case sem::IntrinsicType::kLdexp: - case sem::IntrinsicType::kLog: - case sem::IntrinsicType::kLog2: - case sem::IntrinsicType::kMix: - case sem::IntrinsicType::kModf: - case sem::IntrinsicType::kNormalize: - case sem::IntrinsicType::kPow: - case sem::IntrinsicType::kReflect: - case sem::IntrinsicType::kRefract: - case sem::IntrinsicType::kSelect: - case sem::IntrinsicType::kSin: - case sem::IntrinsicType::kSinh: - case sem::IntrinsicType::kSqrt: - case sem::IntrinsicType::kStep: - case sem::IntrinsicType::kTan: - case sem::IntrinsicType::kTanh: - case sem::IntrinsicType::kTranspose: - case sem::IntrinsicType::kTrunc: - case sem::IntrinsicType::kSign: - case sem::IntrinsicType::kClamp: - out += intrinsic->str(); + switch (builtin->Type()) { + case sem::BuiltinType::kAcos: + case sem::BuiltinType::kAll: + case sem::BuiltinType::kAny: + case sem::BuiltinType::kAsin: + case sem::BuiltinType::kAtan: + case sem::BuiltinType::kAtan2: + case sem::BuiltinType::kCeil: + case sem::BuiltinType::kCos: + case sem::BuiltinType::kCosh: + case sem::BuiltinType::kCross: + case sem::BuiltinType::kDeterminant: + case sem::BuiltinType::kDistance: + case sem::BuiltinType::kDot: + case sem::BuiltinType::kExp: + case sem::BuiltinType::kExp2: + case sem::BuiltinType::kFloor: + case sem::BuiltinType::kFma: + case sem::BuiltinType::kFract: + case sem::BuiltinType::kFrexp: + case sem::BuiltinType::kLength: + case sem::BuiltinType::kLdexp: + case sem::BuiltinType::kLog: + case sem::BuiltinType::kLog2: + case sem::BuiltinType::kMix: + case sem::BuiltinType::kModf: + case sem::BuiltinType::kNormalize: + case sem::BuiltinType::kPow: + case sem::BuiltinType::kReflect: + case sem::BuiltinType::kRefract: + case sem::BuiltinType::kSelect: + case sem::BuiltinType::kSin: + case sem::BuiltinType::kSinh: + case sem::BuiltinType::kSqrt: + case sem::BuiltinType::kStep: + case sem::BuiltinType::kTan: + case sem::BuiltinType::kTanh: + case sem::BuiltinType::kTranspose: + case sem::BuiltinType::kTrunc: + case sem::BuiltinType::kSign: + case sem::BuiltinType::kClamp: + out += builtin->str(); break; - case sem::IntrinsicType::kAbs: - if (intrinsic->ReturnType()->is_float_scalar_or_vector()) { + case sem::BuiltinType::kAbs: + if (builtin->ReturnType()->is_float_scalar_or_vector()) { out += "fabs"; } else { out += "abs"; } break; - case sem::IntrinsicType::kCountOneBits: + case sem::BuiltinType::kCountOneBits: out += "popcount"; break; - case sem::IntrinsicType::kDpdx: - case sem::IntrinsicType::kDpdxCoarse: - case sem::IntrinsicType::kDpdxFine: + case sem::BuiltinType::kDpdx: + case sem::BuiltinType::kDpdxCoarse: + case sem::BuiltinType::kDpdxFine: out += "dfdx"; break; - case sem::IntrinsicType::kDpdy: - case sem::IntrinsicType::kDpdyCoarse: - case sem::IntrinsicType::kDpdyFine: + case sem::BuiltinType::kDpdy: + case sem::BuiltinType::kDpdyCoarse: + case sem::BuiltinType::kDpdyFine: out += "dfdy"; break; - case sem::IntrinsicType::kFwidth: - case sem::IntrinsicType::kFwidthCoarse: - case sem::IntrinsicType::kFwidthFine: + case sem::BuiltinType::kFwidth: + case sem::BuiltinType::kFwidthCoarse: + case sem::BuiltinType::kFwidthFine: out += "fwidth"; break; - case sem::IntrinsicType::kIsFinite: + case sem::BuiltinType::kIsFinite: out += "isfinite"; break; - case sem::IntrinsicType::kIsInf: + case sem::BuiltinType::kIsInf: out += "isinf"; break; - case sem::IntrinsicType::kIsNan: + case sem::BuiltinType::kIsNan: out += "isnan"; break; - case sem::IntrinsicType::kIsNormal: + case sem::BuiltinType::kIsNormal: out += "isnormal"; break; - case sem::IntrinsicType::kMax: - if (intrinsic->ReturnType()->is_float_scalar_or_vector()) { + case sem::BuiltinType::kMax: + if (builtin->ReturnType()->is_float_scalar_or_vector()) { out += "fmax"; } else { out += "max"; } break; - case sem::IntrinsicType::kMin: - if (intrinsic->ReturnType()->is_float_scalar_or_vector()) { + case sem::BuiltinType::kMin: + if (builtin->ReturnType()->is_float_scalar_or_vector()) { out += "fmin"; } else { out += "min"; } break; - case sem::IntrinsicType::kFaceForward: + case sem::BuiltinType::kFaceForward: out += "faceforward"; break; - case sem::IntrinsicType::kPack4x8snorm: + case sem::BuiltinType::kPack4x8snorm: out += "pack_float_to_snorm4x8"; break; - case sem::IntrinsicType::kPack4x8unorm: + case sem::BuiltinType::kPack4x8unorm: out += "pack_float_to_unorm4x8"; break; - case sem::IntrinsicType::kPack2x16snorm: + case sem::BuiltinType::kPack2x16snorm: out += "pack_float_to_snorm2x16"; break; - case sem::IntrinsicType::kPack2x16unorm: + case sem::BuiltinType::kPack2x16unorm: out += "pack_float_to_unorm2x16"; break; - case sem::IntrinsicType::kReverseBits: + case sem::BuiltinType::kReverseBits: out += "reverse_bits"; break; - case sem::IntrinsicType::kRound: + case sem::BuiltinType::kRound: out += "rint"; break; - case sem::IntrinsicType::kSmoothStep: + case sem::BuiltinType::kSmoothStep: out += "smoothstep"; break; - case sem::IntrinsicType::kInverseSqrt: + case sem::BuiltinType::kInverseSqrt: out += "rsqrt"; break; - case sem::IntrinsicType::kUnpack4x8snorm: + case sem::BuiltinType::kUnpack4x8snorm: out += "unpack_snorm4x8_to_float"; break; - case sem::IntrinsicType::kUnpack4x8unorm: + case sem::BuiltinType::kUnpack4x8unorm: out += "unpack_unorm4x8_to_float"; break; - case sem::IntrinsicType::kUnpack2x16snorm: + case sem::BuiltinType::kUnpack2x16snorm: out += "unpack_snorm2x16_to_float"; break; - case sem::IntrinsicType::kUnpack2x16unorm: + case sem::BuiltinType::kUnpack2x16unorm: out += "unpack_unorm2x16_to_float"; break; - case sem::IntrinsicType::kArrayLength: + case sem::BuiltinType::kArrayLength: diagnostics_.add_error( diag::System::Writer, - "Unable to translate builtin: " + std::string(intrinsic->str()) + + "Unable to translate builtin: " + std::string(builtin->str()) + "\nDid you forget to pass array_length_from_uniform generator " "options?"); return ""; default: diagnostics_.add_error( diag::System::Writer, - "Unknown import method: " + std::string(intrinsic->str())); + "Unknown import method: " + std::string(builtin->str())); return ""; } return out; @@ -2871,26 +2870,26 @@ GeneratorImpl::SizeAndAlign GeneratorImpl::MslPackedTypeSizeAndAlign( } template -bool GeneratorImpl::CallIntrinsicHelper(std::ostream& out, - const ast::CallExpression* call, - const sem::Intrinsic* intrinsic, - F&& build) { +bool GeneratorImpl::CallBuiltinHelper(std::ostream& out, + const ast::CallExpression* call, + const sem::Builtin* builtin, + F&& build) { // Generate the helper function if it hasn't been created already - auto fn = utils::GetOrCreate(intrinsics_, intrinsic, [&]() -> std::string { + auto fn = utils::GetOrCreate(builtins_, builtin, [&]() -> std::string { TextBuffer b; TINT_DEFER(helpers_.Append(b)); auto fn_name = - UniqueIdentifier(std::string("tint_") + sem::str(intrinsic->Type())); + UniqueIdentifier(std::string("tint_") + sem::str(builtin->Type())); std::vector parameter_names; { auto decl = line(&b); - if (!EmitTypeAndName(decl, intrinsic->ReturnType(), fn_name)) { + if (!EmitTypeAndName(decl, builtin->ReturnType(), fn_name)) { return ""; } { ScopedParen sp(decl); - for (auto* param : intrinsic->Parameters()) { + for (auto* param : builtin->Parameters()) { if (!parameter_names.empty()) { decl << ", "; } diff --git a/src/writer/msl/generator_impl.h b/src/writer/msl/generator_impl.h index 52e5bea6f8..2d0a2bbf83 100644 --- a/src/writer/msl/generator_impl.h +++ b/src/writer/msl/generator_impl.h @@ -46,7 +46,7 @@ namespace tint { // Forward declarations namespace sem { class Call; -class Intrinsic; +class Builtin; class TypeConstructor; class TypeConversion; } // namespace sem @@ -143,14 +143,14 @@ class GeneratorImpl : public TextGenerator { /// @param expr the call expression /// @returns true if the call expression is emitted bool EmitCall(std::ostream& out, const ast::CallExpression* expr); - /// Handles generating an intrinsic call expression + /// Handles generating a builtin call expression /// @param out the output of the expression stream /// @param call the call expression - /// @param intrinsic the intrinsic being called + /// @param builtin the builtin being called /// @returns true if the call expression is emitted - bool EmitIntrinsicCall(std::ostream& out, - const sem::Call* call, - const sem::Intrinsic* intrinsic); + bool EmitBuiltinCall(std::ostream& out, + const sem::Call* call, + const sem::Builtin* builtin); /// Handles generating a type conversion expression /// @param out the output of the expression stream /// @param call the call expression @@ -179,60 +179,60 @@ class GeneratorImpl : public TextGenerator { /// `atomicMax`, etc) /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the atomic intrinsic + /// @param builtin the semantic information for the atomic builtin /// @returns true if the call expression is emitted bool EmitAtomicCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); + const sem::Builtin* builtin); /// Handles generating a call to a texture function (`textureSample`, /// `textureSampleGrad`, etc) /// @param out the output of the expression stream /// @param call the call expression - /// @param intrinsic the semantic information for the texture intrinsic + /// @param builtin the semantic information for the texture builtin /// @returns true if the call expression is emitted bool EmitTextureCall(std::ostream& out, const sem::Call* call, - const sem::Intrinsic* intrinsic); - /// Handles generating a call to the `dot()` intrinsic + const sem::Builtin* builtin); + /// Handles generating a call to the `dot()` builtin /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the intrinsic + /// @param builtin the semantic information for the builtin /// @returns true if the call expression is emitted bool EmitDotCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); - /// Handles generating a call to the `modf()` intrinsic + const sem::Builtin* builtin); + /// Handles generating a call to the `modf()` builtin /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the intrinsic + /// @param builtin the semantic information for the builtin /// @returns true if the call expression is emitted bool EmitModfCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); - /// Handles generating a call to the `frexp()` intrinsic + const sem::Builtin* builtin); + /// Handles generating a call to the `frexp()` builtin /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the intrinsic + /// @param builtin the semantic information for the builtin /// @returns true if the call expression is emitted bool EmitFrexpCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); - /// Handles generating a call to the `degrees()` intrinsic + const sem::Builtin* builtin); + /// Handles generating a call to the `degrees()` builtin /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the intrinsic + /// @param builtin the semantic information for the builtin /// @returns true if the call expression is emitted bool EmitDegreesCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); - /// Handles generating a call to the `radians()` intrinsic + const sem::Builtin* builtin); + /// Handles generating a call to the `radians()` builtin /// @param out the output of the expression stream /// @param expr the call expression - /// @param intrinsic the semantic information for the intrinsic + /// @param builtin the semantic information for the builtin /// @returns true if the call expression is emitted bool EmitRadiansCall(std::ostream& out, const ast::CallExpression* expr, - const sem::Intrinsic* intrinsic); + const sem::Builtin* builtin); /// Handles a case statement /// @param stmt the statement /// @returns true if the statement was emitted successfully @@ -368,9 +368,9 @@ class GeneratorImpl : public TextGenerator { bool EmitZeroValue(std::ostream& out, const sem::Type* type); /// Handles generating a builtin name - /// @param intrinsic the semantic info for the intrinsic + /// @param builtin the semantic info for the builtin /// @returns the name or "" if not valid - std::string generate_builtin_name(const sem::Intrinsic* intrinsic); + std::string generate_builtin_name(const sem::Builtin* builtin); /// Converts a builtin to an attribute name /// @param builtin the builtin to convert @@ -392,13 +392,13 @@ class GeneratorImpl : public TextGenerator { uint32_t align; }; - /// CallIntrinsicHelper will call the intrinsic helper function, creating it - /// if it hasn't been built already. If the intrinsic needs to be built then - /// CallIntrinsicHelper will generate the function signature and will call + /// CallBuiltinHelper will call the builtin helper function, creating it + /// if it hasn't been built already. If the builtin needs to be built then + /// CallBuiltinHelper will generate the function signature and will call /// `build` to emit the body of the function. /// @param out the output of the expression stream /// @param call the call expression - /// @param intrinsic the semantic information for the intrinsic + /// @param builtin the semantic information for the builtin /// @param build a function with the signature: /// `bool(TextBuffer* buffer, const std::vector& params)` /// Where: @@ -406,10 +406,10 @@ class GeneratorImpl : public TextGenerator { /// `params` is the name of all the generated function parameters /// @returns true if the call expression is emitted template - bool CallIntrinsicHelper(std::ostream& out, - const ast::CallExpression* call, - const sem::Intrinsic* intrinsic, - F&& build); + bool CallBuiltinHelper(std::ostream& out, + const ast::CallExpression* call, + const sem::Builtin* builtin, + F&& build); TextBuffer helpers_; // Helper functions emitted at the top of the output @@ -438,7 +438,7 @@ class GeneratorImpl : public TextGenerator { /// should be created for that index. std::unordered_map> workgroup_allocations_; - std::unordered_map intrinsics_; + std::unordered_map builtins_; std::unordered_map unary_minus_funcs_; std::unordered_map int_dot_funcs_; }; diff --git a/src/writer/msl/generator_impl_intrinsic_test.cc b/src/writer/msl/generator_impl_builtin_test.cc similarity index 50% rename from src/writer/msl/generator_impl_intrinsic_test.cc rename to src/writer/msl/generator_impl_builtin_test.cc index 45885f57ce..fba42966b2 100644 --- a/src/writer/msl/generator_impl_intrinsic_test.cc +++ b/src/writer/msl/generator_impl_builtin_test.cc @@ -21,7 +21,7 @@ namespace writer { namespace msl { namespace { -using IntrinsicType = sem::IntrinsicType; +using BuiltinType = sem::BuiltinType; using MslGeneratorImplTest = TestHelper; @@ -31,12 +31,12 @@ enum class ParamType { kBool, }; -struct IntrinsicData { - IntrinsicType intrinsic; +struct BuiltinData { + BuiltinType builtin; ParamType type; const char* msl_name; }; -inline std::ostream& operator<<(std::ostream& out, IntrinsicData data) { +inline std::ostream& operator<<(std::ostream& out, BuiltinData data) { out << data.msl_name << "<"; switch (data.type) { case ParamType::kF32: @@ -53,111 +53,111 @@ inline std::ostream& operator<<(std::ostream& out, IntrinsicData data) { return out; } -const ast::CallExpression* GenerateCall(IntrinsicType intrinsic, +const ast::CallExpression* GenerateCall(BuiltinType builtin, ParamType type, ProgramBuilder* builder) { std::string name; std::ostringstream str(name); - str << intrinsic; - switch (intrinsic) { - case IntrinsicType::kAcos: - case IntrinsicType::kAsin: - case IntrinsicType::kAtan: - case IntrinsicType::kCeil: - case IntrinsicType::kCos: - case IntrinsicType::kCosh: - case IntrinsicType::kDpdx: - case IntrinsicType::kDpdxCoarse: - case IntrinsicType::kDpdxFine: - case IntrinsicType::kDpdy: - case IntrinsicType::kDpdyCoarse: - case IntrinsicType::kDpdyFine: - case IntrinsicType::kExp: - case IntrinsicType::kExp2: - case IntrinsicType::kFloor: - case IntrinsicType::kFract: - case IntrinsicType::kFwidth: - case IntrinsicType::kFwidthCoarse: - case IntrinsicType::kFwidthFine: - case IntrinsicType::kInverseSqrt: - case IntrinsicType::kIsFinite: - case IntrinsicType::kIsInf: - case IntrinsicType::kIsNan: - case IntrinsicType::kIsNormal: - case IntrinsicType::kLength: - case IntrinsicType::kLog: - case IntrinsicType::kLog2: - case IntrinsicType::kNormalize: - case IntrinsicType::kRound: - case IntrinsicType::kSin: - case IntrinsicType::kSinh: - case IntrinsicType::kSqrt: - case IntrinsicType::kTan: - case IntrinsicType::kTanh: - case IntrinsicType::kTrunc: - case IntrinsicType::kSign: + str << builtin; + switch (builtin) { + case BuiltinType::kAcos: + case BuiltinType::kAsin: + case BuiltinType::kAtan: + case BuiltinType::kCeil: + case BuiltinType::kCos: + case BuiltinType::kCosh: + case BuiltinType::kDpdx: + case BuiltinType::kDpdxCoarse: + case BuiltinType::kDpdxFine: + case BuiltinType::kDpdy: + case BuiltinType::kDpdyCoarse: + case BuiltinType::kDpdyFine: + case BuiltinType::kExp: + case BuiltinType::kExp2: + case BuiltinType::kFloor: + case BuiltinType::kFract: + case BuiltinType::kFwidth: + case BuiltinType::kFwidthCoarse: + case BuiltinType::kFwidthFine: + case BuiltinType::kInverseSqrt: + case BuiltinType::kIsFinite: + case BuiltinType::kIsInf: + case BuiltinType::kIsNan: + case BuiltinType::kIsNormal: + case BuiltinType::kLength: + case BuiltinType::kLog: + case BuiltinType::kLog2: + case BuiltinType::kNormalize: + case BuiltinType::kRound: + case BuiltinType::kSin: + case BuiltinType::kSinh: + case BuiltinType::kSqrt: + case BuiltinType::kTan: + case BuiltinType::kTanh: + case BuiltinType::kTrunc: + case BuiltinType::kSign: return builder->Call(str.str(), "f2"); - case IntrinsicType::kLdexp: + case BuiltinType::kLdexp: return builder->Call(str.str(), "f2", "i2"); - case IntrinsicType::kAtan2: - case IntrinsicType::kDot: - case IntrinsicType::kDistance: - case IntrinsicType::kPow: - case IntrinsicType::kReflect: - case IntrinsicType::kStep: + case BuiltinType::kAtan2: + case BuiltinType::kDot: + case BuiltinType::kDistance: + case BuiltinType::kPow: + case BuiltinType::kReflect: + case BuiltinType::kStep: return builder->Call(str.str(), "f2", "f2"); - case IntrinsicType::kStorageBarrier: + case BuiltinType::kStorageBarrier: return builder->Call(str.str()); - case IntrinsicType::kCross: + case BuiltinType::kCross: return builder->Call(str.str(), "f3", "f3"); - case IntrinsicType::kFma: - case IntrinsicType::kMix: - case IntrinsicType::kFaceForward: - case IntrinsicType::kSmoothStep: + case BuiltinType::kFma: + case BuiltinType::kMix: + case BuiltinType::kFaceForward: + case BuiltinType::kSmoothStep: return builder->Call(str.str(), "f2", "f2", "f2"); - case IntrinsicType::kAll: - case IntrinsicType::kAny: + case BuiltinType::kAll: + case BuiltinType::kAny: return builder->Call(str.str(), "b2"); - case IntrinsicType::kAbs: + case BuiltinType::kAbs: if (type == ParamType::kF32) { return builder->Call(str.str(), "f2"); } else { return builder->Call(str.str(), "u2"); } - case IntrinsicType::kCountOneBits: - case IntrinsicType::kReverseBits: + case BuiltinType::kCountOneBits: + case BuiltinType::kReverseBits: return builder->Call(str.str(), "u2"); - case IntrinsicType::kMax: - case IntrinsicType::kMin: + case BuiltinType::kMax: + case BuiltinType::kMin: if (type == ParamType::kF32) { return builder->Call(str.str(), "f2", "f2"); } else { return builder->Call(str.str(), "u2", "u2"); } - case IntrinsicType::kClamp: + case BuiltinType::kClamp: if (type == ParamType::kF32) { return builder->Call(str.str(), "f2", "f2", "f2"); } else { return builder->Call(str.str(), "u2", "u2", "u2"); } - case IntrinsicType::kSelect: + case BuiltinType::kSelect: return builder->Call(str.str(), "f2", "f2", "b2"); - case IntrinsicType::kDeterminant: + case BuiltinType::kDeterminant: return builder->Call(str.str(), "m2x2"); - case IntrinsicType::kPack2x16snorm: - case IntrinsicType::kPack2x16unorm: + case BuiltinType::kPack2x16snorm: + case BuiltinType::kPack2x16unorm: return builder->Call(str.str(), "f2"); - case IntrinsicType::kPack4x8snorm: - case IntrinsicType::kPack4x8unorm: + case BuiltinType::kPack4x8snorm: + case BuiltinType::kPack4x8unorm: return builder->Call(str.str(), "f4"); - case IntrinsicType::kUnpack4x8snorm: - case IntrinsicType::kUnpack4x8unorm: - case IntrinsicType::kUnpack2x16snorm: - case IntrinsicType::kUnpack2x16unorm: + case BuiltinType::kUnpack4x8snorm: + case BuiltinType::kUnpack4x8unorm: + case BuiltinType::kUnpack2x16snorm: + case BuiltinType::kUnpack2x16unorm: return builder->Call(str.str(), "u1"); - case IntrinsicType::kWorkgroupBarrier: + case BuiltinType::kWorkgroupBarrier: return builder->Call(str.str()); - case IntrinsicType::kTranspose: + case BuiltinType::kTranspose: return builder->Call(str.str(), "m3x2"); default: break; @@ -165,8 +165,8 @@ const ast::CallExpression* GenerateCall(IntrinsicType intrinsic, return nullptr; } -using MslIntrinsicTest = TestParamHelper; -TEST_P(MslIntrinsicTest, Emit) { +using MslBuiltinTest = TestParamHelper; +TEST_P(MslBuiltinTest, Emit) { auto param = GetParam(); Global("f2", ty.vec2(), ast::StorageClass::kPrivate); @@ -179,8 +179,8 @@ TEST_P(MslIntrinsicTest, Emit) { Global("m2x2", ty.mat2x2(), ast::StorageClass::kPrivate); Global("m3x2", ty.mat3x2(), ast::StorageClass::kPrivate); - auto* call = GenerateCall(param.intrinsic, param.type, this); - ASSERT_NE(nullptr, call) << "Unhandled intrinsic"; + auto* call = GenerateCall(param.builtin, param.type, this); + ASSERT_NE(nullptr, call) << "Unhandled builtin"; Func("func", {}, ty.void_(), {Ignore(call)}, {create(ast::PipelineStage::kFragment)}); @@ -190,100 +190,95 @@ TEST_P(MslIntrinsicTest, Emit) { ASSERT_NE(sem, nullptr); auto* target = sem->Target(); ASSERT_NE(target, nullptr); - auto* intrinsic = target->As(); - ASSERT_NE(intrinsic, nullptr); + auto* builtin = target->As(); + ASSERT_NE(builtin, nullptr); - EXPECT_EQ(gen.generate_builtin_name(intrinsic), param.msl_name); + EXPECT_EQ(gen.generate_builtin_name(builtin), param.msl_name); } INSTANTIATE_TEST_SUITE_P( MslGeneratorImplTest, - MslIntrinsicTest, + MslBuiltinTest, testing::Values( - IntrinsicData{IntrinsicType::kAbs, ParamType::kF32, "fabs"}, - IntrinsicData{IntrinsicType::kAbs, ParamType::kU32, "abs"}, - IntrinsicData{IntrinsicType::kAcos, ParamType::kF32, "acos"}, - IntrinsicData{IntrinsicType::kAll, ParamType::kBool, "all"}, - IntrinsicData{IntrinsicType::kAny, ParamType::kBool, "any"}, - IntrinsicData{IntrinsicType::kAsin, ParamType::kF32, "asin"}, - IntrinsicData{IntrinsicType::kAtan, ParamType::kF32, "atan"}, - IntrinsicData{IntrinsicType::kAtan2, ParamType::kF32, "atan2"}, - IntrinsicData{IntrinsicType::kCeil, ParamType::kF32, "ceil"}, - IntrinsicData{IntrinsicType::kClamp, ParamType::kF32, "clamp"}, - IntrinsicData{IntrinsicType::kClamp, ParamType::kU32, "clamp"}, - IntrinsicData{IntrinsicType::kCos, ParamType::kF32, "cos"}, - IntrinsicData{IntrinsicType::kCosh, ParamType::kF32, "cosh"}, - IntrinsicData{IntrinsicType::kCountOneBits, ParamType::kU32, - "popcount"}, - IntrinsicData{IntrinsicType::kCross, ParamType::kF32, "cross"}, - IntrinsicData{IntrinsicType::kDeterminant, ParamType::kF32, - "determinant"}, - IntrinsicData{IntrinsicType::kDistance, ParamType::kF32, "distance"}, - IntrinsicData{IntrinsicType::kDot, ParamType::kF32, "dot"}, - IntrinsicData{IntrinsicType::kDpdx, ParamType::kF32, "dfdx"}, - IntrinsicData{IntrinsicType::kDpdxCoarse, ParamType::kF32, "dfdx"}, - IntrinsicData{IntrinsicType::kDpdxFine, ParamType::kF32, "dfdx"}, - IntrinsicData{IntrinsicType::kDpdy, ParamType::kF32, "dfdy"}, - IntrinsicData{IntrinsicType::kDpdyCoarse, ParamType::kF32, "dfdy"}, - IntrinsicData{IntrinsicType::kDpdyFine, ParamType::kF32, "dfdy"}, - IntrinsicData{IntrinsicType::kExp, ParamType::kF32, "exp"}, - IntrinsicData{IntrinsicType::kExp2, ParamType::kF32, "exp2"}, - IntrinsicData{IntrinsicType::kFaceForward, ParamType::kF32, - "faceforward"}, - IntrinsicData{IntrinsicType::kFloor, ParamType::kF32, "floor"}, - IntrinsicData{IntrinsicType::kFma, ParamType::kF32, "fma"}, - IntrinsicData{IntrinsicType::kFract, ParamType::kF32, "fract"}, - IntrinsicData{IntrinsicType::kFwidth, ParamType::kF32, "fwidth"}, - IntrinsicData{IntrinsicType::kFwidthCoarse, ParamType::kF32, "fwidth"}, - IntrinsicData{IntrinsicType::kFwidthFine, ParamType::kF32, "fwidth"}, - IntrinsicData{IntrinsicType::kInverseSqrt, ParamType::kF32, "rsqrt"}, - IntrinsicData{IntrinsicType::kIsFinite, ParamType::kF32, "isfinite"}, - IntrinsicData{IntrinsicType::kIsInf, ParamType::kF32, "isinf"}, - IntrinsicData{IntrinsicType::kIsNan, ParamType::kF32, "isnan"}, - IntrinsicData{IntrinsicType::kIsNormal, ParamType::kF32, "isnormal"}, - IntrinsicData{IntrinsicType::kLdexp, ParamType::kF32, "ldexp"}, - IntrinsicData{IntrinsicType::kLength, ParamType::kF32, "length"}, - IntrinsicData{IntrinsicType::kLog, ParamType::kF32, "log"}, - IntrinsicData{IntrinsicType::kLog2, ParamType::kF32, "log2"}, - IntrinsicData{IntrinsicType::kMax, ParamType::kF32, "fmax"}, - IntrinsicData{IntrinsicType::kMax, ParamType::kU32, "max"}, - IntrinsicData{IntrinsicType::kMin, ParamType::kF32, "fmin"}, - IntrinsicData{IntrinsicType::kMin, ParamType::kU32, "min"}, - IntrinsicData{IntrinsicType::kNormalize, ParamType::kF32, "normalize"}, - IntrinsicData{IntrinsicType::kPack4x8snorm, ParamType::kF32, - "pack_float_to_snorm4x8"}, - IntrinsicData{IntrinsicType::kPack4x8unorm, ParamType::kF32, - "pack_float_to_unorm4x8"}, - IntrinsicData{IntrinsicType::kPack2x16snorm, ParamType::kF32, - "pack_float_to_snorm2x16"}, - IntrinsicData{IntrinsicType::kPack2x16unorm, ParamType::kF32, - "pack_float_to_unorm2x16"}, - IntrinsicData{IntrinsicType::kPow, ParamType::kF32, "pow"}, - IntrinsicData{IntrinsicType::kReflect, ParamType::kF32, "reflect"}, - IntrinsicData{IntrinsicType::kReverseBits, ParamType::kU32, - "reverse_bits"}, - IntrinsicData{IntrinsicType::kRound, ParamType::kU32, "rint"}, - IntrinsicData{IntrinsicType::kSelect, ParamType::kF32, "select"}, - IntrinsicData{IntrinsicType::kSign, ParamType::kF32, "sign"}, - IntrinsicData{IntrinsicType::kSin, ParamType::kF32, "sin"}, - IntrinsicData{IntrinsicType::kSinh, ParamType::kF32, "sinh"}, - IntrinsicData{IntrinsicType::kSmoothStep, ParamType::kF32, - "smoothstep"}, - IntrinsicData{IntrinsicType::kSqrt, ParamType::kF32, "sqrt"}, - IntrinsicData{IntrinsicType::kStep, ParamType::kF32, "step"}, - IntrinsicData{IntrinsicType::kTan, ParamType::kF32, "tan"}, - IntrinsicData{IntrinsicType::kTanh, ParamType::kF32, "tanh"}, - IntrinsicData{IntrinsicType::kTranspose, ParamType::kF32, "transpose"}, - IntrinsicData{IntrinsicType::kTrunc, ParamType::kF32, "trunc"}, - IntrinsicData{IntrinsicType::kUnpack4x8snorm, ParamType::kU32, - "unpack_snorm4x8_to_float"}, - IntrinsicData{IntrinsicType::kUnpack4x8unorm, ParamType::kU32, - "unpack_unorm4x8_to_float"}, - IntrinsicData{IntrinsicType::kUnpack2x16snorm, ParamType::kU32, - "unpack_snorm2x16_to_float"}, - IntrinsicData{IntrinsicType::kUnpack2x16unorm, ParamType::kU32, - "unpack_unorm2x16_to_float"})); + BuiltinData{BuiltinType::kAbs, ParamType::kF32, "fabs"}, + BuiltinData{BuiltinType::kAbs, ParamType::kU32, "abs"}, + BuiltinData{BuiltinType::kAcos, ParamType::kF32, "acos"}, + BuiltinData{BuiltinType::kAll, ParamType::kBool, "all"}, + BuiltinData{BuiltinType::kAny, ParamType::kBool, "any"}, + BuiltinData{BuiltinType::kAsin, ParamType::kF32, "asin"}, + BuiltinData{BuiltinType::kAtan, ParamType::kF32, "atan"}, + BuiltinData{BuiltinType::kAtan2, ParamType::kF32, "atan2"}, + BuiltinData{BuiltinType::kCeil, ParamType::kF32, "ceil"}, + BuiltinData{BuiltinType::kClamp, ParamType::kF32, "clamp"}, + BuiltinData{BuiltinType::kClamp, ParamType::kU32, "clamp"}, + BuiltinData{BuiltinType::kCos, ParamType::kF32, "cos"}, + BuiltinData{BuiltinType::kCosh, ParamType::kF32, "cosh"}, + BuiltinData{BuiltinType::kCountOneBits, ParamType::kU32, "popcount"}, + BuiltinData{BuiltinType::kCross, ParamType::kF32, "cross"}, + BuiltinData{BuiltinType::kDeterminant, ParamType::kF32, "determinant"}, + BuiltinData{BuiltinType::kDistance, ParamType::kF32, "distance"}, + BuiltinData{BuiltinType::kDot, ParamType::kF32, "dot"}, + BuiltinData{BuiltinType::kDpdx, ParamType::kF32, "dfdx"}, + BuiltinData{BuiltinType::kDpdxCoarse, ParamType::kF32, "dfdx"}, + BuiltinData{BuiltinType::kDpdxFine, ParamType::kF32, "dfdx"}, + BuiltinData{BuiltinType::kDpdy, ParamType::kF32, "dfdy"}, + BuiltinData{BuiltinType::kDpdyCoarse, ParamType::kF32, "dfdy"}, + BuiltinData{BuiltinType::kDpdyFine, ParamType::kF32, "dfdy"}, + BuiltinData{BuiltinType::kExp, ParamType::kF32, "exp"}, + BuiltinData{BuiltinType::kExp2, ParamType::kF32, "exp2"}, + BuiltinData{BuiltinType::kFaceForward, ParamType::kF32, "faceforward"}, + BuiltinData{BuiltinType::kFloor, ParamType::kF32, "floor"}, + BuiltinData{BuiltinType::kFma, ParamType::kF32, "fma"}, + BuiltinData{BuiltinType::kFract, ParamType::kF32, "fract"}, + BuiltinData{BuiltinType::kFwidth, ParamType::kF32, "fwidth"}, + BuiltinData{BuiltinType::kFwidthCoarse, ParamType::kF32, "fwidth"}, + BuiltinData{BuiltinType::kFwidthFine, ParamType::kF32, "fwidth"}, + BuiltinData{BuiltinType::kInverseSqrt, ParamType::kF32, "rsqrt"}, + BuiltinData{BuiltinType::kIsFinite, ParamType::kF32, "isfinite"}, + BuiltinData{BuiltinType::kIsInf, ParamType::kF32, "isinf"}, + BuiltinData{BuiltinType::kIsNan, ParamType::kF32, "isnan"}, + BuiltinData{BuiltinType::kIsNormal, ParamType::kF32, "isnormal"}, + BuiltinData{BuiltinType::kLdexp, ParamType::kF32, "ldexp"}, + BuiltinData{BuiltinType::kLength, ParamType::kF32, "length"}, + BuiltinData{BuiltinType::kLog, ParamType::kF32, "log"}, + BuiltinData{BuiltinType::kLog2, ParamType::kF32, "log2"}, + BuiltinData{BuiltinType::kMax, ParamType::kF32, "fmax"}, + BuiltinData{BuiltinType::kMax, ParamType::kU32, "max"}, + BuiltinData{BuiltinType::kMin, ParamType::kF32, "fmin"}, + BuiltinData{BuiltinType::kMin, ParamType::kU32, "min"}, + BuiltinData{BuiltinType::kNormalize, ParamType::kF32, "normalize"}, + BuiltinData{BuiltinType::kPack4x8snorm, ParamType::kF32, + "pack_float_to_snorm4x8"}, + BuiltinData{BuiltinType::kPack4x8unorm, ParamType::kF32, + "pack_float_to_unorm4x8"}, + BuiltinData{BuiltinType::kPack2x16snorm, ParamType::kF32, + "pack_float_to_snorm2x16"}, + BuiltinData{BuiltinType::kPack2x16unorm, ParamType::kF32, + "pack_float_to_unorm2x16"}, + BuiltinData{BuiltinType::kPow, ParamType::kF32, "pow"}, + BuiltinData{BuiltinType::kReflect, ParamType::kF32, "reflect"}, + BuiltinData{BuiltinType::kReverseBits, ParamType::kU32, "reverse_bits"}, + BuiltinData{BuiltinType::kRound, ParamType::kU32, "rint"}, + BuiltinData{BuiltinType::kSelect, ParamType::kF32, "select"}, + BuiltinData{BuiltinType::kSign, ParamType::kF32, "sign"}, + BuiltinData{BuiltinType::kSin, ParamType::kF32, "sin"}, + BuiltinData{BuiltinType::kSinh, ParamType::kF32, "sinh"}, + BuiltinData{BuiltinType::kSmoothStep, ParamType::kF32, "smoothstep"}, + BuiltinData{BuiltinType::kSqrt, ParamType::kF32, "sqrt"}, + BuiltinData{BuiltinType::kStep, ParamType::kF32, "step"}, + BuiltinData{BuiltinType::kTan, ParamType::kF32, "tan"}, + BuiltinData{BuiltinType::kTanh, ParamType::kF32, "tanh"}, + BuiltinData{BuiltinType::kTranspose, ParamType::kF32, "transpose"}, + BuiltinData{BuiltinType::kTrunc, ParamType::kF32, "trunc"}, + BuiltinData{BuiltinType::kUnpack4x8snorm, ParamType::kU32, + "unpack_snorm4x8_to_float"}, + BuiltinData{BuiltinType::kUnpack4x8unorm, ParamType::kU32, + "unpack_unorm4x8_to_float"}, + BuiltinData{BuiltinType::kUnpack2x16snorm, ParamType::kU32, + "unpack_snorm2x16_to_float"}, + BuiltinData{BuiltinType::kUnpack2x16unorm, ParamType::kU32, + "unpack_unorm2x16_to_float"})); -TEST_F(MslGeneratorImplTest, Intrinsic_Call) { +TEST_F(MslGeneratorImplTest, Builtin_Call) { Global("param1", ty.vec2(), ast::StorageClass::kPrivate); Global("param2", ty.vec2(), ast::StorageClass::kPrivate); diff --git a/src/writer/msl/generator_impl_intrinsic_texture_test.cc b/src/writer/msl/generator_impl_builtin_texture_test.cc similarity index 97% rename from src/writer/msl/generator_impl_intrinsic_texture_test.cc rename to src/writer/msl/generator_impl_builtin_texture_test.cc index d3e298c165..f5887ffdde 100644 --- a/src/writer/msl/generator_impl_intrinsic_texture_test.cc +++ b/src/writer/msl/generator_impl_builtin_texture_test.cc @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "src/ast/builtin_texture_helper_test.h" #include "src/ast/call_statement.h" -#include "src/ast/intrinsic_texture_helper_test.h" #include "src/writer/msl/test_helper.h" namespace tint { @@ -22,8 +22,8 @@ namespace msl { namespace { std::string expected_texture_overload( - ast::intrinsic::test::ValidTextureOverload overload) { - using ValidTextureOverload = ast::intrinsic::test::ValidTextureOverload; + ast::builtin::test::ValidTextureOverload overload) { + using ValidTextureOverload = ast::builtin::test::ValidTextureOverload; switch (overload) { case ValidTextureOverload::kDimensions1d: case ValidTextureOverload::kDimensionsStorageWO1d: @@ -271,10 +271,10 @@ std::string expected_texture_overload( return ""; } // NOLINT - Ignore the length of this function -class MslGeneratorIntrinsicTextureTest - : public TestParamHelper {}; +class MslGeneratorBuiltinTextureTest + : public TestParamHelper {}; -TEST_P(MslGeneratorIntrinsicTextureTest, Call) { +TEST_P(MslGeneratorBuiltinTextureTest, Call) { auto param = GetParam(); param.BuildTextureVariable(this); @@ -295,9 +295,9 @@ TEST_P(MslGeneratorIntrinsicTextureTest, Call) { } INSTANTIATE_TEST_SUITE_P( - MslGeneratorIntrinsicTextureTest, - MslGeneratorIntrinsicTextureTest, - testing::ValuesIn(ast::intrinsic::test::TextureOverloadCase::ValidCases())); + MslGeneratorBuiltinTextureTest, + MslGeneratorBuiltinTextureTest, + testing::ValuesIn(ast::builtin::test::TextureOverloadCase::ValidCases())); } // namespace } // namespace msl diff --git a/src/writer/msl/generator_impl_import_test.cc b/src/writer/msl/generator_impl_import_test.cc index 84b95360a5..2624195285 100644 --- a/src/writer/msl/generator_impl_import_test.cc +++ b/src/writer/msl/generator_impl_import_test.cc @@ -35,7 +35,7 @@ TEST_P(MslImportData_SingleParamTest, FloatScalar) { auto param = GetParam(); auto* call = Call(param.name, 1.f); - // The resolver will set the intrinsic data for the ident + // The resolver will set the builtin data for the ident WrapInFunction(call); GeneratorImpl& gen = Build(); @@ -44,10 +44,10 @@ TEST_P(MslImportData_SingleParamTest, FloatScalar) { ASSERT_NE(sem, nullptr); auto* target = sem->Target(); ASSERT_NE(target, nullptr); - auto* intrinsic = target->As(); - ASSERT_NE(intrinsic, nullptr); + auto* builtin = target->As(); + ASSERT_NE(builtin, nullptr); - ASSERT_EQ(gen.generate_builtin_name(intrinsic), param.msl_name); + ASSERT_EQ(gen.generate_builtin_name(builtin), param.msl_name); } INSTANTIATE_TEST_SUITE_P(MslGeneratorImplTest, MslImportData_SingleParamTest, diff --git a/src/writer/spirv/builder.cc b/src/writer/spirv/builder.cc index a40e394cd3..19707c0e32 100644 --- a/src/writer/spirv/builder.cc +++ b/src/writer/spirv/builder.cc @@ -25,11 +25,11 @@ #include "src/ast/traverse_expressions.h" #include "src/sem/array.h" #include "src/sem/atomic_type.h" +#include "src/sem/builtin.h" #include "src/sem/call.h" #include "src/sem/depth_multisampled_texture_type.h" #include "src/sem/depth_texture_type.h" #include "src/sem/function.h" -#include "src/sem/intrinsic.h" #include "src/sem/member_accessor_expression.h" #include "src/sem/multisampled_texture_type.h" #include "src/sem/reference_type.h" @@ -62,7 +62,7 @@ namespace writer { namespace spirv { namespace { -using IntrinsicType = sem::IntrinsicType; +using BuiltinType = sem::BuiltinType; const char kGLSLstd450[] = "GLSL.std.450"; @@ -109,131 +109,131 @@ const sem::Matrix* GetNestedMatrixType(const sem::Type* type) { return type->As(); } -uint32_t intrinsic_to_glsl_method(const sem::Intrinsic* intrinsic) { - switch (intrinsic->Type()) { - case IntrinsicType::kAcos: +uint32_t builtin_to_glsl_method(const sem::Builtin* builtin) { + switch (builtin->Type()) { + case BuiltinType::kAcos: return GLSLstd450Acos; - case IntrinsicType::kAsin: + case BuiltinType::kAsin: return GLSLstd450Asin; - case IntrinsicType::kAtan: + case BuiltinType::kAtan: return GLSLstd450Atan; - case IntrinsicType::kAtan2: + case BuiltinType::kAtan2: return GLSLstd450Atan2; - case IntrinsicType::kCeil: + case BuiltinType::kCeil: return GLSLstd450Ceil; - case IntrinsicType::kClamp: - if (intrinsic->ReturnType()->is_float_scalar_or_vector()) { + case BuiltinType::kClamp: + if (builtin->ReturnType()->is_float_scalar_or_vector()) { return GLSLstd450NClamp; - } else if (intrinsic->ReturnType()->is_unsigned_scalar_or_vector()) { + } else if (builtin->ReturnType()->is_unsigned_scalar_or_vector()) { return GLSLstd450UClamp; } else { return GLSLstd450SClamp; } - case IntrinsicType::kCos: + case BuiltinType::kCos: return GLSLstd450Cos; - case IntrinsicType::kCosh: + case BuiltinType::kCosh: return GLSLstd450Cosh; - case IntrinsicType::kCross: + case BuiltinType::kCross: return GLSLstd450Cross; - case IntrinsicType::kDegrees: + case BuiltinType::kDegrees: return GLSLstd450Degrees; - case IntrinsicType::kDeterminant: + case BuiltinType::kDeterminant: return GLSLstd450Determinant; - case IntrinsicType::kDistance: + case BuiltinType::kDistance: return GLSLstd450Distance; - case IntrinsicType::kExp: + case BuiltinType::kExp: return GLSLstd450Exp; - case IntrinsicType::kExp2: + case BuiltinType::kExp2: return GLSLstd450Exp2; - case IntrinsicType::kFaceForward: + case BuiltinType::kFaceForward: return GLSLstd450FaceForward; - case IntrinsicType::kFloor: + case BuiltinType::kFloor: return GLSLstd450Floor; - case IntrinsicType::kFma: + case BuiltinType::kFma: return GLSLstd450Fma; - case IntrinsicType::kFract: + case BuiltinType::kFract: return GLSLstd450Fract; - case IntrinsicType::kFrexp: + case BuiltinType::kFrexp: return GLSLstd450FrexpStruct; - case IntrinsicType::kInverseSqrt: + case BuiltinType::kInverseSqrt: return GLSLstd450InverseSqrt; - case IntrinsicType::kLdexp: + case BuiltinType::kLdexp: return GLSLstd450Ldexp; - case IntrinsicType::kLength: + case BuiltinType::kLength: return GLSLstd450Length; - case IntrinsicType::kLog: + case BuiltinType::kLog: return GLSLstd450Log; - case IntrinsicType::kLog2: + case BuiltinType::kLog2: return GLSLstd450Log2; - case IntrinsicType::kMax: - if (intrinsic->ReturnType()->is_float_scalar_or_vector()) { + case BuiltinType::kMax: + if (builtin->ReturnType()->is_float_scalar_or_vector()) { return GLSLstd450NMax; - } else if (intrinsic->ReturnType()->is_unsigned_scalar_or_vector()) { + } else if (builtin->ReturnType()->is_unsigned_scalar_or_vector()) { return GLSLstd450UMax; } else { return GLSLstd450SMax; } - case IntrinsicType::kMin: - if (intrinsic->ReturnType()->is_float_scalar_or_vector()) { + case BuiltinType::kMin: + if (builtin->ReturnType()->is_float_scalar_or_vector()) { return GLSLstd450NMin; - } else if (intrinsic->ReturnType()->is_unsigned_scalar_or_vector()) { + } else if (builtin->ReturnType()->is_unsigned_scalar_or_vector()) { return GLSLstd450UMin; } else { return GLSLstd450SMin; } - case IntrinsicType::kMix: + case BuiltinType::kMix: return GLSLstd450FMix; - case IntrinsicType::kModf: + case BuiltinType::kModf: return GLSLstd450ModfStruct; - case IntrinsicType::kNormalize: + case BuiltinType::kNormalize: return GLSLstd450Normalize; - case IntrinsicType::kPack4x8snorm: + case BuiltinType::kPack4x8snorm: return GLSLstd450PackSnorm4x8; - case IntrinsicType::kPack4x8unorm: + case BuiltinType::kPack4x8unorm: return GLSLstd450PackUnorm4x8; - case IntrinsicType::kPack2x16snorm: + case BuiltinType::kPack2x16snorm: return GLSLstd450PackSnorm2x16; - case IntrinsicType::kPack2x16unorm: + case BuiltinType::kPack2x16unorm: return GLSLstd450PackUnorm2x16; - case IntrinsicType::kPack2x16float: + case BuiltinType::kPack2x16float: return GLSLstd450PackHalf2x16; - case IntrinsicType::kPow: + case BuiltinType::kPow: return GLSLstd450Pow; - case IntrinsicType::kRadians: + case BuiltinType::kRadians: return GLSLstd450Radians; - case IntrinsicType::kReflect: + case BuiltinType::kReflect: return GLSLstd450Reflect; - case IntrinsicType::kRefract: + case BuiltinType::kRefract: return GLSLstd450Refract; - case IntrinsicType::kRound: + case BuiltinType::kRound: return GLSLstd450RoundEven; - case IntrinsicType::kSign: + case BuiltinType::kSign: return GLSLstd450FSign; - case IntrinsicType::kSin: + case BuiltinType::kSin: return GLSLstd450Sin; - case IntrinsicType::kSinh: + case BuiltinType::kSinh: return GLSLstd450Sinh; - case IntrinsicType::kSmoothStep: + case BuiltinType::kSmoothStep: return GLSLstd450SmoothStep; - case IntrinsicType::kSqrt: + case BuiltinType::kSqrt: return GLSLstd450Sqrt; - case IntrinsicType::kStep: + case BuiltinType::kStep: return GLSLstd450Step; - case IntrinsicType::kTan: + case BuiltinType::kTan: return GLSLstd450Tan; - case IntrinsicType::kTanh: + case BuiltinType::kTanh: return GLSLstd450Tanh; - case IntrinsicType::kTrunc: + case BuiltinType::kTrunc: return GLSLstd450Trunc; - case IntrinsicType::kUnpack4x8snorm: + case BuiltinType::kUnpack4x8snorm: return GLSLstd450UnpackSnorm4x8; - case IntrinsicType::kUnpack4x8unorm: + case BuiltinType::kUnpack4x8unorm: return GLSLstd450UnpackUnorm4x8; - case IntrinsicType::kUnpack2x16snorm: + case BuiltinType::kUnpack2x16snorm: return GLSLstd450UnpackSnorm2x16; - case IntrinsicType::kUnpack2x16unorm: + case BuiltinType::kUnpack2x16unorm: return GLSLstd450UnpackUnorm2x16; - case IntrinsicType::kUnpack2x16float: + case BuiltinType::kUnpack2x16float: return GLSLstd450UnpackHalf2x16; default: break; @@ -2213,8 +2213,8 @@ uint32_t Builder::GenerateCallExpression(const ast::CallExpression* expr) { if (auto* func = target->As()) { return GenerateFunctionCall(call, func); } - if (auto* intrinsic = target->As()) { - return GenerateIntrinsicCall(call, intrinsic); + if (auto* builtin = target->As()) { + return GenerateBuiltinCall(call, builtin); } if (target->IsAnyOf()) { return GenerateTypeConstructorOrConversion(call, nullptr); @@ -2264,42 +2264,42 @@ uint32_t Builder::GenerateFunctionCall(const sem::Call* call, return result_id; } -uint32_t Builder::GenerateIntrinsicCall(const sem::Call* call, - const sem::Intrinsic* intrinsic) { +uint32_t Builder::GenerateBuiltinCall(const sem::Call* call, + const sem::Builtin* builtin) { auto result = result_op(); auto result_id = result.to_i(); - auto result_type_id = GenerateTypeIfNeeded(intrinsic->ReturnType()); + auto result_type_id = GenerateTypeIfNeeded(builtin->ReturnType()); if (result_type_id == 0) { return 0; } - if (intrinsic->IsFineDerivative() || intrinsic->IsCoarseDerivative()) { + if (builtin->IsFineDerivative() || builtin->IsCoarseDerivative()) { push_capability(SpvCapabilityDerivativeControl); } - if (intrinsic->IsImageQuery()) { + if (builtin->IsImageQuery()) { push_capability(SpvCapabilityImageQuery); } - if (intrinsic->IsTexture()) { - if (!GenerateTextureIntrinsic(call, intrinsic, Operand::Int(result_type_id), - result)) { + if (builtin->IsTexture()) { + if (!GenerateTextureBuiltin(call, builtin, Operand::Int(result_type_id), + result)) { return 0; } return result_id; } - if (intrinsic->IsBarrier()) { - if (!GenerateControlBarrierIntrinsic(intrinsic)) { + if (builtin->IsBarrier()) { + if (!GenerateControlBarrierBuiltin(builtin)) { return 0; } return result_id; } - if (intrinsic->IsAtomic()) { - if (!GenerateAtomicIntrinsic(call, intrinsic, Operand::Int(result_type_id), - result)) { + if (builtin->IsAtomic()) { + if (!GenerateAtomicBuiltin(call, builtin, Operand::Int(result_type_id), + result)) { return 0; } return result_id; @@ -2310,7 +2310,7 @@ uint32_t Builder::GenerateIntrinsicCall(const sem::Call* call, auto get_arg_as_value_id = [&](size_t i, bool generate_load = true) -> uint32_t { auto* arg = call->Arguments()[i]; - auto* param = intrinsic->Parameters()[i]; + auto* param = builtin->Parameters()[i]; auto val_id = GenerateExpression(arg->Declaration()); if (val_id == 0) { return 0; @@ -2334,22 +2334,22 @@ uint32_t Builder::GenerateIntrinsicCall(const sem::Call* call, op = spv::Op::OpExtInst; }; - switch (intrinsic->Type()) { - case IntrinsicType::kAny: - if (intrinsic->Parameters()[0]->Type()->Is()) { + switch (builtin->Type()) { + case BuiltinType::kAny: + if (builtin->Parameters()[0]->Type()->Is()) { // any(v: bool) just resolves to v. return get_arg_as_value_id(0); } op = spv::Op::OpAny; break; - case IntrinsicType::kAll: - if (intrinsic->Parameters()[0]->Type()->Is()) { + case BuiltinType::kAll: + if (builtin->Parameters()[0]->Type()->Is()) { // all(v: bool) just resolves to v. return get_arg_as_value_id(0); } op = spv::Op::OpAll; break; - case IntrinsicType::kArrayLength: { + case BuiltinType::kArrayLength: { auto* address_of = call->Arguments()[0]->Declaration()->As(); if (!address_of || address_of->op != ast::UnaryOp::kAddressOf) { @@ -2388,12 +2388,12 @@ uint32_t Builder::GenerateIntrinsicCall(const sem::Call* call, } return result_id; } - case IntrinsicType::kCountOneBits: + case BuiltinType::kCountOneBits: op = spv::Op::OpBitCount; break; - case IntrinsicType::kDot: { + case BuiltinType::kDot: { op = spv::Op::OpDot; - auto* vec_ty = intrinsic->Parameters()[0]->Type()->As(); + auto* vec_ty = builtin->Parameters()[0]->Type()->As(); if (vec_ty->type()->is_integer_scalar()) { // TODO(crbug.com/tint/1267): OpDot requires floating-point types, but // WGSL also supports integer types. SPV_KHR_integer_dot_product adds @@ -2433,40 +2433,40 @@ uint32_t Builder::GenerateIntrinsicCall(const sem::Call* call, } break; } - case IntrinsicType::kDpdx: + case BuiltinType::kDpdx: op = spv::Op::OpDPdx; break; - case IntrinsicType::kDpdxCoarse: + case BuiltinType::kDpdxCoarse: op = spv::Op::OpDPdxCoarse; break; - case IntrinsicType::kDpdxFine: + case BuiltinType::kDpdxFine: op = spv::Op::OpDPdxFine; break; - case IntrinsicType::kDpdy: + case BuiltinType::kDpdy: op = spv::Op::OpDPdy; break; - case IntrinsicType::kDpdyCoarse: + case BuiltinType::kDpdyCoarse: op = spv::Op::OpDPdyCoarse; break; - case IntrinsicType::kDpdyFine: + case BuiltinType::kDpdyFine: op = spv::Op::OpDPdyFine; break; - case IntrinsicType::kFwidth: + case BuiltinType::kFwidth: op = spv::Op::OpFwidth; break; - case IntrinsicType::kFwidthCoarse: + case BuiltinType::kFwidthCoarse: op = spv::Op::OpFwidthCoarse; break; - case IntrinsicType::kFwidthFine: + case BuiltinType::kFwidthFine: op = spv::Op::OpFwidthFine; break; - case IntrinsicType::kIsInf: + case BuiltinType::kIsInf: op = spv::Op::OpIsInf; break; - case IntrinsicType::kIsNan: + case BuiltinType::kIsNan: op = spv::Op::OpIsNan; break; - case IntrinsicType::kIsFinite: { + case BuiltinType::kIsFinite: { // Implemented as: not(IsInf or IsNan) auto val_id = get_arg_as_value_id(0); if (!val_id) { @@ -2492,7 +2492,7 @@ uint32_t Builder::GenerateIntrinsicCall(const sem::Call* call, } return 0; } - case IntrinsicType::kIsNormal: { + case BuiltinType::kIsNormal: { // A normal number is finite, non-zero, and not subnormal. // Its exponent is neither of the extreme possible values. // Implemented as: @@ -2520,7 +2520,7 @@ uint32_t Builder::GenerateIntrinsicCall(const sem::Call* call, GenerateConstantIfNeeded(ScalarConstant::U32(kMinNormalExponent)); auto max_exponent_id = GenerateConstantIfNeeded(ScalarConstant::U32(kMaxNormalExponent)); - if (auto* fvec_ty = intrinsic->ReturnType()->As()) { + if (auto* fvec_ty = builtin->ReturnType()->As()) { // In the vector case, update the unsigned type to a vector type of the // same size, and create vector constants by replicating the scalars. // I expect backend compilers to fold these into unique constants, so @@ -2570,7 +2570,7 @@ uint32_t Builder::GenerateIntrinsicCall(const sem::Call* call, } return 0; } - case IntrinsicType::kMix: { + case BuiltinType::kMix: { auto std450 = Operand::Int(GetGLSLstd450Import()); auto a_id = get_arg_as_value_id(0); @@ -2582,10 +2582,9 @@ uint32_t Builder::GenerateIntrinsicCall(const sem::Call* call, // If the interpolant is scalar but the objects are vectors, we need to // splat the interpolant into a vector of the same size. - auto* result_vector_type = intrinsic->ReturnType()->As(); - if (result_vector_type && - intrinsic->Parameters()[2]->Type()->is_scalar()) { - f_id = GenerateSplat(f_id, intrinsic->Parameters()[0]->Type()); + auto* result_vector_type = builtin->ReturnType()->As(); + if (result_vector_type && builtin->Parameters()[2]->Type()->is_scalar()) { + f_id = GenerateSplat(f_id, builtin->Parameters()[0]->Type()); if (f_id == 0) { return 0; } @@ -2599,10 +2598,10 @@ uint32_t Builder::GenerateIntrinsicCall(const sem::Call* call, } return result_id; } - case IntrinsicType::kReverseBits: + case BuiltinType::kReverseBits: op = spv::Op::OpBitReverse; break; - case IntrinsicType::kSelect: { + case BuiltinType::kSelect: { // Note: Argument order is different in WGSL and SPIR-V auto cond_id = get_arg_as_value_id(2); auto true_id = get_arg_as_value_id(1); @@ -2614,9 +2613,8 @@ uint32_t Builder::GenerateIntrinsicCall(const sem::Call* call, // If the condition is scalar but the objects are vectors, we need to // splat the condition into a vector of the same size. // TODO(jrprice): If we're targeting SPIR-V 1.4, we don't need to do this. - auto* result_vector_type = intrinsic->ReturnType()->As(); - if (result_vector_type && - intrinsic->Parameters()[2]->Type()->is_scalar()) { + auto* result_vector_type = builtin->ReturnType()->As(); + if (result_vector_type && builtin->Parameters()[2]->Type()->is_scalar()) { auto* bool_vec_ty = builder_.create( builder_.create(), result_vector_type->Width()); if (!GenerateTypeIfNeeded(bool_vec_ty)) { @@ -2636,25 +2634,25 @@ uint32_t Builder::GenerateIntrinsicCall(const sem::Call* call, } return result_id; } - case IntrinsicType::kTranspose: + case BuiltinType::kTranspose: op = spv::Op::OpTranspose; break; - case IntrinsicType::kAbs: - if (intrinsic->ReturnType()->is_unsigned_scalar_or_vector()) { + case BuiltinType::kAbs: + if (builtin->ReturnType()->is_unsigned_scalar_or_vector()) { // abs() only operates on *signed* integers. // This is a no-op for unsigned integers. return get_arg_as_value_id(0); } - if (intrinsic->ReturnType()->is_float_scalar_or_vector()) { + if (builtin->ReturnType()->is_float_scalar_or_vector()) { glsl_std450(GLSLstd450FAbs); } else { glsl_std450(GLSLstd450SAbs); } break; default: { - auto inst_id = intrinsic_to_glsl_method(intrinsic); + auto inst_id = builtin_to_glsl_method(builtin); if (inst_id == 0) { - error_ = "unknown method " + std::string(intrinsic->str()); + error_ = "unknown method " + std::string(builtin->str()); return 0; } glsl_std450(inst_id); @@ -2663,8 +2661,7 @@ uint32_t Builder::GenerateIntrinsicCall(const sem::Call* call, } if (op == spv::Op::OpNop) { - error_ = - "unable to determine operator for: " + std::string(intrinsic->str()); + error_ = "unable to determine operator for: " + std::string(builtin->str()); return 0; } @@ -2683,13 +2680,13 @@ uint32_t Builder::GenerateIntrinsicCall(const sem::Call* call, return result_id; } -bool Builder::GenerateTextureIntrinsic(const sem::Call* call, - const sem::Intrinsic* intrinsic, - Operand result_type, - Operand result_id) { +bool Builder::GenerateTextureBuiltin(const sem::Call* call, + const sem::Builtin* builtin, + Operand result_type, + Operand result_id) { using Usage = sem::ParameterUsage; - auto& signature = intrinsic->Signature(); + auto& signature = builtin->Signature(); auto& arguments = call->Arguments(); // Generates the given expression, returning the operand ID @@ -2723,7 +2720,7 @@ bool Builder::GenerateTextureIntrinsic(const sem::Call* call, auto op = spv::Op::OpNop; - // Custom function to call after the texture-intrinsic op has been generated. + // Custom function to call after the texture-builtin op has been generated. std::function post_emission = [] { return true; }; // Populate the spirv_params with common parameters @@ -2848,8 +2845,8 @@ bool Builder::GenerateTextureIntrinsic(const sem::Call* call, return append_coords_to_spirv_params(); }; - switch (intrinsic->Type()) { - case IntrinsicType::kTextureDimensions: { + switch (builtin->Type()) { + case BuiltinType::kTextureDimensions: { // Number of returned elements from OpImageQuerySize[Lod] may not match // those of textureDimensions(). // This might be due to an extra vector scalar describing the number of @@ -2896,7 +2893,7 @@ bool Builder::GenerateTextureIntrinsic(const sem::Call* call, } break; } - case IntrinsicType::kTextureNumLayers: { + case BuiltinType::kTextureNumLayers: { uint32_t spirv_dims = 0; switch (texture_type->dim()) { default: @@ -2928,19 +2925,19 @@ bool Builder::GenerateTextureIntrinsic(const sem::Call* call, } break; } - case IntrinsicType::kTextureNumLevels: { + case BuiltinType::kTextureNumLevels: { op = spv::Op::OpImageQueryLevels; append_result_type_and_id_to_spirv_params(); spirv_params.emplace_back(gen_arg(Usage::kTexture)); break; } - case IntrinsicType::kTextureNumSamples: { + case BuiltinType::kTextureNumSamples: { op = spv::Op::OpImageQuerySamples; append_result_type_and_id_to_spirv_params(); spirv_params.emplace_back(gen_arg(Usage::kTexture)); break; } - case IntrinsicType::kTextureLoad: { + case BuiltinType::kTextureLoad: { op = texture_type->Is() ? spv::Op::OpImageRead : spv::Op::OpImageFetch; append_result_type_and_id_to_spirv_params_for_read(); @@ -2961,7 +2958,7 @@ bool Builder::GenerateTextureIntrinsic(const sem::Call* call, break; } - case IntrinsicType::kTextureStore: { + case BuiltinType::kTextureStore: { op = spv::Op::OpImageWrite; spirv_params.emplace_back(gen_arg(Usage::kTexture)); if (!append_coords_to_spirv_params()) { @@ -2970,7 +2967,7 @@ bool Builder::GenerateTextureIntrinsic(const sem::Call* call, spirv_params.emplace_back(gen_arg(Usage::kValue)); break; } - case IntrinsicType::kTextureGather: { + case BuiltinType::kTextureGather: { op = spv::Op::OpImageGather; append_result_type_and_id_to_spirv_params(); if (!append_image_and_coords_to_spirv_params()) { @@ -2984,7 +2981,7 @@ bool Builder::GenerateTextureIntrinsic(const sem::Call* call, } break; } - case IntrinsicType::kTextureGatherCompare: { + case BuiltinType::kTextureGatherCompare: { op = spv::Op::OpImageDrefGather; append_result_type_and_id_to_spirv_params(); if (!append_image_and_coords_to_spirv_params()) { @@ -2993,7 +2990,7 @@ bool Builder::GenerateTextureIntrinsic(const sem::Call* call, spirv_params.emplace_back(gen_arg(Usage::kDepthRef)); break; } - case IntrinsicType::kTextureSample: { + case BuiltinType::kTextureSample: { op = spv::Op::OpImageSampleImplicitLod; append_result_type_and_id_to_spirv_params_for_read(); if (!append_image_and_coords_to_spirv_params()) { @@ -3001,7 +2998,7 @@ bool Builder::GenerateTextureIntrinsic(const sem::Call* call, } break; } - case IntrinsicType::kTextureSampleBias: { + case BuiltinType::kTextureSampleBias: { op = spv::Op::OpImageSampleImplicitLod; append_result_type_and_id_to_spirv_params_for_read(); if (!append_image_and_coords_to_spirv_params()) { @@ -3011,7 +3008,7 @@ bool Builder::GenerateTextureIntrinsic(const sem::Call* call, ImageOperand{SpvImageOperandsBiasMask, gen_arg(Usage::kBias)}); break; } - case IntrinsicType::kTextureSampleLevel: { + case BuiltinType::kTextureSampleLevel: { op = spv::Op::OpImageSampleExplicitLod; append_result_type_and_id_to_spirv_params_for_read(); if (!append_image_and_coords_to_spirv_params()) { @@ -3037,7 +3034,7 @@ bool Builder::GenerateTextureIntrinsic(const sem::Call* call, image_operands.emplace_back(ImageOperand{SpvImageOperandsLodMask, level}); break; } - case IntrinsicType::kTextureSampleGrad: { + case BuiltinType::kTextureSampleGrad: { op = spv::Op::OpImageSampleExplicitLod; append_result_type_and_id_to_spirv_params_for_read(); if (!append_image_and_coords_to_spirv_params()) { @@ -3049,7 +3046,7 @@ bool Builder::GenerateTextureIntrinsic(const sem::Call* call, ImageOperand{SpvImageOperandsGradMask, gen_arg(Usage::kDdy)}); break; } - case IntrinsicType::kTextureSampleCompare: { + case BuiltinType::kTextureSampleCompare: { op = spv::Op::OpImageSampleDrefImplicitLod; append_result_type_and_id_to_spirv_params(); if (!append_image_and_coords_to_spirv_params()) { @@ -3058,7 +3055,7 @@ bool Builder::GenerateTextureIntrinsic(const sem::Call* call, spirv_params.emplace_back(gen_arg(Usage::kDepthRef)); break; } - case IntrinsicType::kTextureSampleCompareLevel: { + case BuiltinType::kTextureSampleCompareLevel: { op = spv::Op::OpImageSampleDrefExplicitLod; append_result_type_and_id_to_spirv_params(); if (!append_image_and_coords_to_spirv_params()) { @@ -3096,8 +3093,7 @@ bool Builder::GenerateTextureIntrinsic(const sem::Call* call, } if (op == spv::Op::OpNop) { - error_ = - "unable to determine operator for: " + std::string(intrinsic->str()); + error_ = "unable to determine operator for: " + std::string(builtin->str()); return false; } @@ -3108,7 +3104,7 @@ bool Builder::GenerateTextureIntrinsic(const sem::Call* call, return post_emission(); } -bool Builder::GenerateControlBarrierIntrinsic(const sem::Intrinsic* intrinsic) { +bool Builder::GenerateControlBarrierBuiltin(const sem::Builtin* builtin) { auto const op = spv::Op::OpControlBarrier; uint32_t execution = 0; uint32_t memory = 0; @@ -3116,21 +3112,21 @@ bool Builder::GenerateControlBarrierIntrinsic(const sem::Intrinsic* intrinsic) { // TODO(crbug.com/tint/661): Combine sequential barriers to a single // instruction. - if (intrinsic->Type() == sem::IntrinsicType::kWorkgroupBarrier) { + if (builtin->Type() == sem::BuiltinType::kWorkgroupBarrier) { execution = static_cast(spv::Scope::Workgroup); memory = static_cast(spv::Scope::Workgroup); semantics = static_cast(spv::MemorySemanticsMask::AcquireRelease) | static_cast(spv::MemorySemanticsMask::WorkgroupMemory); - } else if (intrinsic->Type() == sem::IntrinsicType::kStorageBarrier) { + } else if (builtin->Type() == sem::BuiltinType::kStorageBarrier) { execution = static_cast(spv::Scope::Workgroup); memory = static_cast(spv::Scope::Workgroup); semantics = static_cast(spv::MemorySemanticsMask::AcquireRelease) | static_cast(spv::MemorySemanticsMask::UniformMemory); } else { - error_ = "unexpected barrier intrinsic type "; - error_ += sem::str(intrinsic->Type()); + error_ = "unexpected barrier builtin type "; + error_ += sem::str(builtin->Type()); return false; } @@ -3148,20 +3144,20 @@ bool Builder::GenerateControlBarrierIntrinsic(const sem::Intrinsic* intrinsic) { }); } -bool Builder::GenerateAtomicIntrinsic(const sem::Call* call, - const sem::Intrinsic* intrinsic, - Operand result_type, - Operand result_id) { +bool Builder::GenerateAtomicBuiltin(const sem::Call* call, + const sem::Builtin* builtin, + Operand result_type, + Operand result_id) { auto is_value_signed = [&] { - return intrinsic->Parameters()[1]->Type()->Is(); + return builtin->Parameters()[1]->Type()->Is(); }; auto storage_class = - intrinsic->Parameters()[0]->Type()->As()->StorageClass(); + builtin->Parameters()[0]->Type()->As()->StorageClass(); uint32_t memory_id = 0; switch ( - intrinsic->Parameters()[0]->Type()->As()->StorageClass()) { + builtin->Parameters()[0]->Type()->As()->StorageClass()) { case ast::StorageClass::kWorkgroup: memory_id = GenerateConstantIfNeeded( ScalarConstant::U32(static_cast(spv::Scope::Workgroup))); @@ -3203,8 +3199,8 @@ bool Builder::GenerateAtomicIntrinsic(const sem::Call* call, Operand memory = Operand::Int(memory_id); Operand semantics = Operand::Int(semantics_id); - switch (intrinsic->Type()) { - case sem::IntrinsicType::kAtomicLoad: + switch (builtin->Type()) { + case sem::BuiltinType::kAtomicLoad: return push_function_inst(spv::Op::OpAtomicLoad, { result_type, result_id, @@ -3212,14 +3208,14 @@ bool Builder::GenerateAtomicIntrinsic(const sem::Call* call, memory, semantics, }); - case sem::IntrinsicType::kAtomicStore: + case sem::BuiltinType::kAtomicStore: return push_function_inst(spv::Op::OpAtomicStore, { pointer, memory, semantics, value, }); - case sem::IntrinsicType::kAtomicAdd: + case sem::BuiltinType::kAtomicAdd: return push_function_inst(spv::Op::OpAtomicIAdd, { result_type, result_id, @@ -3228,7 +3224,7 @@ bool Builder::GenerateAtomicIntrinsic(const sem::Call* call, semantics, value, }); - case sem::IntrinsicType::kAtomicSub: + case sem::BuiltinType::kAtomicSub: return push_function_inst(spv::Op::OpAtomicISub, { result_type, result_id, @@ -3237,7 +3233,7 @@ bool Builder::GenerateAtomicIntrinsic(const sem::Call* call, semantics, value, }); - case sem::IntrinsicType::kAtomicMax: + case sem::BuiltinType::kAtomicMax: return push_function_inst( is_value_signed() ? spv::Op::OpAtomicSMax : spv::Op::OpAtomicUMax, { @@ -3248,7 +3244,7 @@ bool Builder::GenerateAtomicIntrinsic(const sem::Call* call, semantics, value, }); - case sem::IntrinsicType::kAtomicMin: + case sem::BuiltinType::kAtomicMin: return push_function_inst( is_value_signed() ? spv::Op::OpAtomicSMin : spv::Op::OpAtomicUMin, { @@ -3259,7 +3255,7 @@ bool Builder::GenerateAtomicIntrinsic(const sem::Call* call, semantics, value, }); - case sem::IntrinsicType::kAtomicAnd: + case sem::BuiltinType::kAtomicAnd: return push_function_inst(spv::Op::OpAtomicAnd, { result_type, result_id, @@ -3268,7 +3264,7 @@ bool Builder::GenerateAtomicIntrinsic(const sem::Call* call, semantics, value, }); - case sem::IntrinsicType::kAtomicOr: + case sem::BuiltinType::kAtomicOr: return push_function_inst(spv::Op::OpAtomicOr, { result_type, result_id, @@ -3277,7 +3273,7 @@ bool Builder::GenerateAtomicIntrinsic(const sem::Call* call, semantics, value, }); - case sem::IntrinsicType::kAtomicXor: + case sem::BuiltinType::kAtomicXor: return push_function_inst(spv::Op::OpAtomicXor, { result_type, result_id, @@ -3286,7 +3282,7 @@ bool Builder::GenerateAtomicIntrinsic(const sem::Call* call, semantics, value, }); - case sem::IntrinsicType::kAtomicExchange: + case sem::BuiltinType::kAtomicExchange: return push_function_inst(spv::Op::OpAtomicExchange, { result_type, result_id, @@ -3295,7 +3291,7 @@ bool Builder::GenerateAtomicIntrinsic(const sem::Call* call, semantics, value, }); - case sem::IntrinsicType::kAtomicCompareExchangeWeak: { + case sem::BuiltinType::kAtomicCompareExchangeWeak: { auto comparator = GenerateExpression(call->Arguments()[1]->Declaration()); if (comparator == 0) { return false; @@ -3383,7 +3379,7 @@ bool Builder::GenerateAtomicIntrinsic(const sem::Call* call, } default: TINT_UNREACHABLE(Writer, builder_.Diagnostics()) - << "unhandled atomic intrinsic " << intrinsic->Type(); + << "unhandled atomic builtin " << builtin->Type(); return false; } } diff --git a/src/writer/spirv/builder.h b/src/writer/spirv/builder.h index 34d3a31ee0..3b194f4b0d 100644 --- a/src/writer/spirv/builder.h +++ b/src/writer/spirv/builder.h @@ -35,7 +35,7 @@ #include "src/ast/variable_decl_statement.h" #include "src/program_builder.h" #include "src/scope_stack.h" -#include "src/sem/intrinsic.h" +#include "src/sem/builtin.h" #include "src/sem/storage_texture_type.h" #include "src/writer/spirv/function.h" #include "src/writer/spirv/scalar_constant.h" @@ -376,44 +376,44 @@ class Builder { /// @returns the expression ID on success or 0 otherwise uint32_t GenerateFunctionCall(const sem::Call* call, const sem::Function* function); - /// Handles generating an intrinsic call expression + /// Handles generating a builtin call expression /// @param call the call expression - /// @param intrinsic the intrinsic being called + /// @param builtin the builtin being called /// @returns the expression ID on success or 0 otherwise - uint32_t GenerateIntrinsicCall(const sem::Call* call, - const sem::Intrinsic* intrinsic); + uint32_t GenerateBuiltinCall(const sem::Call* call, + const sem::Builtin* builtin); /// Handles generating a type constructor or type conversion expression /// @param call the call expression /// @param var the variable that is being initialized. May be null. /// @returns the expression ID on success or 0 otherwise uint32_t GenerateTypeConstructorOrConversion(const sem::Call* call, const ast::Variable* var); - /// Generates a texture intrinsic call. Emits an error and returns false if + /// Generates a texture builtin call. Emits an error and returns false if /// we're currently outside a function. /// @param call the call expression - /// @param intrinsic the semantic information for the texture intrinsic + /// @param builtin the semantic information for the texture builtin /// @param result_type result type operand of the texture instruction /// @param result_id result identifier operand of the texture instruction /// parameters /// @returns true on success - bool GenerateTextureIntrinsic(const sem::Call* call, - const sem::Intrinsic* intrinsic, - spirv::Operand result_type, - spirv::Operand result_id); + bool GenerateTextureBuiltin(const sem::Call* call, + const sem::Builtin* builtin, + spirv::Operand result_type, + spirv::Operand result_id); /// Generates a control barrier statement. - /// @param intrinsic the semantic information for the barrier intrinsic call + /// @param builtin the semantic information for the barrier builtin call /// @returns true on success - bool GenerateControlBarrierIntrinsic(const sem::Intrinsic* intrinsic); - /// Generates an atomic intrinsic call. + bool GenerateControlBarrierBuiltin(const sem::Builtin* builtin); + /// Generates an atomic builtin call. /// @param call the call expression - /// @param intrinsic the semantic information for the atomic intrinsic call + /// @param builtin the semantic information for the atomic builtin call /// @param result_type result type operand of the texture instruction /// @param result_id result identifier operand of the texture instruction /// @returns true on success - bool GenerateAtomicIntrinsic(const sem::Call* call, - const sem::Intrinsic* intrinsic, - Operand result_type, - Operand result_id); + bool GenerateAtomicBuiltin(const sem::Call* call, + const sem::Builtin* builtin, + Operand result_type, + Operand result_id); /// Generates a sampled image /// @param texture_type the texture type /// @param texture_operand the texture operand diff --git a/src/writer/spirv/builder_intrinsic_test.cc b/src/writer/spirv/builder_builtin_test.cc similarity index 84% rename from src/writer/spirv/builder_intrinsic_test.cc rename to src/writer/spirv/builder_builtin_test.cc index 06b9f6d053..3786265337 100644 --- a/src/writer/spirv/builder_intrinsic_test.cc +++ b/src/writer/spirv/builder_builtin_test.cc @@ -25,22 +25,22 @@ namespace writer { namespace spirv { namespace { -using IntrinsicBuilderTest = TestHelper; +using BuiltinBuilderTest = TestHelper; template -using IntrinsicBuilderTestWithParam = TestParamHelper; +using BuiltinBuilderTestWithParam = TestParamHelper; -struct IntrinsicData { +struct BuiltinData { std::string name; std::string op; }; -inline std::ostream& operator<<(std::ostream& out, IntrinsicData data) { +inline std::ostream& operator<<(std::ostream& out, BuiltinData data) { out << data.name; return out; } -using IntrinsicBoolTest = IntrinsicBuilderTestWithParam; -TEST_P(IntrinsicBoolTest, Call_Bool_Scalar) { +using BuiltinBoolTest = BuiltinBuilderTestWithParam; +TEST_P(BuiltinBoolTest, Call_Bool_Scalar) { auto param = GetParam(); auto* var = Global("v", ty.bool_(), ast::StorageClass::kPrivate); auto* expr = Call(param.name, "v"); @@ -67,7 +67,7 @@ TEST_P(IntrinsicBoolTest, Call_Bool_Scalar) { "%10 = OpLoad %3 %1\nOpReturn\n"); } -TEST_P(IntrinsicBoolTest, Call_Bool_Vector) { +TEST_P(BuiltinBoolTest, Call_Bool_Vector) { auto param = GetParam(); auto* var = Global("v", ty.vec3(), ast::StorageClass::kPrivate); auto* expr = Call(param.name, "v"); @@ -97,13 +97,13 @@ OpReturn "${op}", param.op); EXPECT_EQ(DumpInstructions(b.functions()[0].instructions()), expected); } -INSTANTIATE_TEST_SUITE_P(IntrinsicBuilderTest, - IntrinsicBoolTest, - testing::Values(IntrinsicData{"any", "OpAny"}, - IntrinsicData{"all", "OpAll"})); +INSTANTIATE_TEST_SUITE_P(BuiltinBuilderTest, + BuiltinBoolTest, + testing::Values(BuiltinData{"any", "OpAny"}, + BuiltinData{"all", "OpAll"})); -using IntrinsicFloatTest = IntrinsicBuilderTestWithParam; -TEST_P(IntrinsicFloatTest, Call_Float_Scalar) { +using BuiltinFloatTest = BuiltinBuilderTestWithParam; +TEST_P(BuiltinFloatTest, Call_Float_Scalar) { auto param = GetParam(); auto* var = Global("v", ty.f32(), ast::StorageClass::kPrivate); auto* expr = Call(param.name, "v"); @@ -134,7 +134,7 @@ OpReturn EXPECT_EQ(DumpInstructions(b.functions()[0].instructions()), expected); } -TEST_P(IntrinsicFloatTest, Call_Float_Vector) { +TEST_P(BuiltinFloatTest, Call_Float_Vector) { auto param = GetParam(); auto* var = Global("v", ty.vec3(), ast::StorageClass::kPrivate); auto* expr = Call(param.name, "v"); @@ -166,12 +166,12 @@ OpReturn "${op}", param.op); EXPECT_EQ(DumpInstructions(b.functions()[0].instructions()), expected); } -INSTANTIATE_TEST_SUITE_P(IntrinsicBuilderTest, - IntrinsicFloatTest, - testing::Values(IntrinsicData{"isNan", "OpIsNan"}, - IntrinsicData{"isInf", "OpIsInf"})); +INSTANTIATE_TEST_SUITE_P(BuiltinBuilderTest, + BuiltinFloatTest, + testing::Values(BuiltinData{"isNan", "OpIsNan"}, + BuiltinData{"isInf", "OpIsInf"})); -TEST_F(IntrinsicBuilderTest, IsFinite_Scalar) { +TEST_F(BuiltinBuilderTest, IsFinite_Scalar) { auto* var = Global("v", ty.f32(), ast::StorageClass::kPrivate); auto* expr = Call("isFinite", "v"); auto* func = Func("a_func", {}, ty.void_(), @@ -202,7 +202,7 @@ OpReturn )"); } -TEST_F(IntrinsicBuilderTest, IsFinite_Vector) { +TEST_F(BuiltinBuilderTest, IsFinite_Vector) { auto* var = Global("v", ty.vec3(), ast::StorageClass::kPrivate); auto* expr = Call("isFinite", "v"); auto* func = Func("a_func", {}, ty.void_(), @@ -235,7 +235,7 @@ OpReturn )"); } -TEST_F(IntrinsicBuilderTest, IsNormal_Scalar) { +TEST_F(BuiltinBuilderTest, IsNormal_Scalar) { auto* var = Global("v", ty.f32(), ast::StorageClass::kPrivate); auto* expr = Call("isNormal", "v"); auto* func = Func("a_func", {}, ty.void_(), @@ -275,7 +275,7 @@ OpFunctionEnd )"); } -TEST_F(IntrinsicBuilderTest, IsNormal_Vector) { +TEST_F(BuiltinBuilderTest, IsNormal_Vector) { auto* var = Global("v", ty.vec2(), ast::StorageClass::kPrivate); auto* expr = Call("isNormal", "v"); auto* func = Func("a_func", {}, ty.void_(), @@ -321,8 +321,8 @@ OpFunctionEnd )"); } -using IntrinsicIntTest = IntrinsicBuilderTestWithParam; -TEST_P(IntrinsicIntTest, Call_SInt_Scalar) { +using BuiltinIntTest = BuiltinBuilderTestWithParam; +TEST_P(BuiltinIntTest, Call_SInt_Scalar) { auto param = GetParam(); auto* var = Global("v", ty.i32(), ast::StorageClass::kPrivate); auto* expr = Call(param.name, "v"); @@ -352,7 +352,7 @@ OpReturn EXPECT_EQ(DumpInstructions(b.functions()[0].instructions()), expected); } -TEST_P(IntrinsicIntTest, Call_SInt_Vector) { +TEST_P(BuiltinIntTest, Call_SInt_Vector) { auto param = GetParam(); auto* var = Global("v", ty.vec3(), ast::StorageClass::kPrivate); auto* expr = Call(param.name, "v"); @@ -383,7 +383,7 @@ OpReturn EXPECT_EQ(DumpInstructions(b.functions()[0].instructions()), expected); } -TEST_P(IntrinsicIntTest, Call_UInt_Scalar) { +TEST_P(BuiltinIntTest, Call_UInt_Scalar) { auto param = GetParam(); auto* var = Global("v", ty.u32(), ast::StorageClass::kPrivate); auto* expr = Call(param.name, "v"); @@ -413,7 +413,7 @@ OpReturn EXPECT_EQ(DumpInstructions(b.functions()[0].instructions()), expected); } -TEST_P(IntrinsicIntTest, Call_UInt_Vector) { +TEST_P(BuiltinIntTest, Call_UInt_Vector) { auto param = GetParam(); auto* var = Global("v", ty.vec3(), ast::StorageClass::kPrivate); auto* expr = Call(param.name, "v"); @@ -444,12 +444,12 @@ OpReturn EXPECT_EQ(DumpInstructions(b.functions()[0].instructions()), expected); } INSTANTIATE_TEST_SUITE_P( - IntrinsicBuilderTest, - IntrinsicIntTest, - testing::Values(IntrinsicData{"countOneBits", "OpBitCount"}, - IntrinsicData{"reverseBits", "OpBitReverse"})); + BuiltinBuilderTest, + BuiltinIntTest, + testing::Values(BuiltinData{"countOneBits", "OpBitCount"}, + BuiltinData{"reverseBits", "OpBitReverse"})); -TEST_F(IntrinsicBuilderTest, Call_Dot_F32) { +TEST_F(BuiltinBuilderTest, Call_Dot_F32) { auto* var = Global("v", ty.vec3(), ast::StorageClass::kPrivate); auto* expr = Call("dot", "v", "v"); auto* func = Func("a_func", {}, ty.void_(), @@ -478,7 +478,7 @@ OpReturn )"); } -TEST_F(IntrinsicBuilderTest, Call_Dot_U32) { +TEST_F(BuiltinBuilderTest, Call_Dot_U32) { auto* var = Global("v", ty.vec3(), ast::StorageClass::kPrivate); auto* expr = Call("dot", "v", "v"); auto* func = Func("a_func", {}, ty.void_(), @@ -517,7 +517,7 @@ OpReturn )"); } -TEST_F(IntrinsicBuilderTest, Call_Dot_I32) { +TEST_F(BuiltinBuilderTest, Call_Dot_I32) { auto* var = Global("v", ty.vec3(), ast::StorageClass::kPrivate); auto* expr = Call("dot", "v", "v"); auto* func = Func("a_func", {}, ty.void_(), @@ -556,8 +556,8 @@ OpReturn )"); } -using IntrinsicDeriveTest = IntrinsicBuilderTestWithParam; -TEST_P(IntrinsicDeriveTest, Call_Derivative_Scalar) { +using BuiltinDeriveTest = BuiltinBuilderTestWithParam; +TEST_P(BuiltinDeriveTest, Call_Derivative_Scalar) { auto param = GetParam(); auto* var = Global("v", ty.f32(), ast::StorageClass::kPrivate); auto* expr = Call(param.name, "v"); @@ -585,7 +585,7 @@ OpReturn EXPECT_EQ(DumpInstructions(b.functions()[0].instructions()), expected); } -TEST_P(IntrinsicDeriveTest, Call_Derivative_Vector) { +TEST_P(BuiltinDeriveTest, Call_Derivative_Vector) { auto param = GetParam(); auto* var = Global("v", ty.vec3(), ast::StorageClass::kPrivate); auto* expr = Call(param.name, "v"); @@ -620,19 +620,19 @@ OpReturn EXPECT_EQ(DumpInstructions(b.functions()[0].instructions()), expected); } INSTANTIATE_TEST_SUITE_P( - IntrinsicBuilderTest, - IntrinsicDeriveTest, - testing::Values(IntrinsicData{"dpdx", "OpDPdx"}, - IntrinsicData{"dpdxFine", "OpDPdxFine"}, - IntrinsicData{"dpdxCoarse", "OpDPdxCoarse"}, - IntrinsicData{"dpdy", "OpDPdy"}, - IntrinsicData{"dpdyFine", "OpDPdyFine"}, - IntrinsicData{"dpdyCoarse", "OpDPdyCoarse"}, - IntrinsicData{"fwidth", "OpFwidth"}, - IntrinsicData{"fwidthFine", "OpFwidthFine"}, - IntrinsicData{"fwidthCoarse", "OpFwidthCoarse"})); + BuiltinBuilderTest, + BuiltinDeriveTest, + testing::Values(BuiltinData{"dpdx", "OpDPdx"}, + BuiltinData{"dpdxFine", "OpDPdxFine"}, + BuiltinData{"dpdxCoarse", "OpDPdxCoarse"}, + BuiltinData{"dpdy", "OpDPdy"}, + BuiltinData{"dpdyFine", "OpDPdyFine"}, + BuiltinData{"dpdyCoarse", "OpDPdyCoarse"}, + BuiltinData{"fwidth", "OpFwidth"}, + BuiltinData{"fwidthFine", "OpFwidthFine"}, + BuiltinData{"fwidthCoarse", "OpFwidthCoarse"})); -TEST_F(IntrinsicBuilderTest, Call_Select) { +TEST_F(BuiltinBuilderTest, Call_Select) { auto* v3 = Global("v3", ty.vec3(), ast::StorageClass::kPrivate); auto* bool_v3 = @@ -672,7 +672,7 @@ OpReturn } // This tests that we do not push OpTypeSampledImage and float_0 type twice. -TEST_F(IntrinsicBuilderTest, Call_TextureSampleCompare_Twice) { +TEST_F(BuiltinBuilderTest, Call_TextureSampleCompare_Twice) { auto* s = ty.sampler(ast::SamplerKind::kComparisonSampler); auto* t = ty.depth_texture(ast::TextureDimension::k2d); @@ -732,7 +732,7 @@ TEST_F(IntrinsicBuilderTest, Call_TextureSampleCompare_Twice) { )"); } -TEST_F(IntrinsicBuilderTest, Call_GLSLMethod_WithLoad) { +TEST_F(BuiltinBuilderTest, Call_GLSLMethod_WithLoad) { auto* var = Global("ident", ty.f32(), ast::StorageClass::kPrivate); auto* expr = Call("round", "ident"); auto* func = Func("a_func", {}, ty.void_(), @@ -763,9 +763,9 @@ OpFunctionEnd )"); } -using Intrinsic_Builtin_SingleParam_Float_Test = - IntrinsicBuilderTestWithParam; -TEST_P(Intrinsic_Builtin_SingleParam_Float_Test, Call_Scalar) { +using Builtin_Builtin_SingleParam_Float_Test = + BuiltinBuilderTestWithParam; +TEST_P(Builtin_Builtin_SingleParam_Float_Test, Call_Scalar) { auto param = GetParam(); auto* expr = Call(param.name, 1.0f); auto* func = Func("a_func", {}, ty.void_(), @@ -792,7 +792,7 @@ OpFunctionEnd )"); } -TEST_P(Intrinsic_Builtin_SingleParam_Float_Test, Call_Vector) { +TEST_P(Builtin_Builtin_SingleParam_Float_Test, Call_Vector) { auto param = GetParam(); auto* expr = Call(param.name, vec2(1.0f, 1.0f)); auto* func = Func("a_func", {}, ty.void_(), @@ -820,35 +820,35 @@ OpReturn OpFunctionEnd )"); } -INSTANTIATE_TEST_SUITE_P(IntrinsicBuilderTest, - Intrinsic_Builtin_SingleParam_Float_Test, - testing::Values(IntrinsicData{"abs", "FAbs"}, - IntrinsicData{"acos", "Acos"}, - IntrinsicData{"asin", "Asin"}, - IntrinsicData{"atan", "Atan"}, - IntrinsicData{"ceil", "Ceil"}, - IntrinsicData{"cos", "Cos"}, - IntrinsicData{"cosh", "Cosh"}, - IntrinsicData{"degrees", "Degrees"}, - IntrinsicData{"exp", "Exp"}, - IntrinsicData{"exp2", "Exp2"}, - IntrinsicData{"floor", "Floor"}, - IntrinsicData{"fract", "Fract"}, - IntrinsicData{"inverseSqrt", - "InverseSqrt"}, - IntrinsicData{"log", "Log"}, - IntrinsicData{"log2", "Log2"}, - IntrinsicData{"radians", "Radians"}, - IntrinsicData{"round", "RoundEven"}, - IntrinsicData{"sign", "FSign"}, - IntrinsicData{"sin", "Sin"}, - IntrinsicData{"sinh", "Sinh"}, - IntrinsicData{"sqrt", "Sqrt"}, - IntrinsicData{"tan", "Tan"}, - IntrinsicData{"tanh", "Tanh"}, - IntrinsicData{"trunc", "Trunc"})); +INSTANTIATE_TEST_SUITE_P(BuiltinBuilderTest, + Builtin_Builtin_SingleParam_Float_Test, + testing::Values(BuiltinData{"abs", "FAbs"}, + BuiltinData{"acos", "Acos"}, + BuiltinData{"asin", "Asin"}, + BuiltinData{"atan", "Atan"}, + BuiltinData{"ceil", "Ceil"}, + BuiltinData{"cos", "Cos"}, + BuiltinData{"cosh", "Cosh"}, + BuiltinData{"degrees", "Degrees"}, + BuiltinData{"exp", "Exp"}, + BuiltinData{"exp2", "Exp2"}, + BuiltinData{"floor", "Floor"}, + BuiltinData{"fract", "Fract"}, + BuiltinData{"inverseSqrt", + "InverseSqrt"}, + BuiltinData{"log", "Log"}, + BuiltinData{"log2", "Log2"}, + BuiltinData{"radians", "Radians"}, + BuiltinData{"round", "RoundEven"}, + BuiltinData{"sign", "FSign"}, + BuiltinData{"sin", "Sin"}, + BuiltinData{"sinh", "Sinh"}, + BuiltinData{"sqrt", "Sqrt"}, + BuiltinData{"tan", "Tan"}, + BuiltinData{"tanh", "Tanh"}, + BuiltinData{"trunc", "Trunc"})); -TEST_F(IntrinsicBuilderTest, Call_Length_Scalar) { +TEST_F(BuiltinBuilderTest, Call_Length_Scalar) { auto* expr = Call("length", 1.0f); auto* func = Func("a_func", {}, ty.void_(), { @@ -873,7 +873,7 @@ OpFunctionEnd )"); } -TEST_F(IntrinsicBuilderTest, Call_Length_Vector) { +TEST_F(BuiltinBuilderTest, Call_Length_Vector) { auto* expr = Call("length", vec2(1.0f, 1.0f)); auto* func = Func("a_func", {}, ty.void_(), { @@ -900,7 +900,7 @@ OpFunctionEnd )"); } -TEST_F(IntrinsicBuilderTest, Call_Normalize) { +TEST_F(BuiltinBuilderTest, Call_Normalize) { auto* expr = Call("normalize", vec2(1.0f, 1.0f)); auto* func = Func("a_func", {}, ty.void_(), { @@ -927,9 +927,9 @@ OpFunctionEnd )"); } -using Intrinsic_Builtin_DualParam_Float_Test = - IntrinsicBuilderTestWithParam; -TEST_P(Intrinsic_Builtin_DualParam_Float_Test, Call_Scalar) { +using Builtin_Builtin_DualParam_Float_Test = + BuiltinBuilderTestWithParam; +TEST_P(Builtin_Builtin_DualParam_Float_Test, Call_Scalar) { auto param = GetParam(); auto* expr = Call(param.name, 1.0f, 1.0f); auto* func = Func("a_func", {}, ty.void_(), @@ -956,7 +956,7 @@ OpFunctionEnd )"); } -TEST_P(Intrinsic_Builtin_DualParam_Float_Test, Call_Vector) { +TEST_P(Builtin_Builtin_DualParam_Float_Test, Call_Vector) { auto param = GetParam(); auto* expr = Call(param.name, vec2(1.0f, 1.0f), vec2(1.0f, 1.0f)); auto* func = Func("a_func", {}, ty.void_(), @@ -984,15 +984,15 @@ OpReturn OpFunctionEnd )"); } -INSTANTIATE_TEST_SUITE_P(IntrinsicBuilderTest, - Intrinsic_Builtin_DualParam_Float_Test, - testing::Values(IntrinsicData{"atan2", "Atan2"}, - IntrinsicData{"max", "NMax"}, - IntrinsicData{"min", "NMin"}, - IntrinsicData{"pow", "Pow"}, - IntrinsicData{"step", "Step"})); +INSTANTIATE_TEST_SUITE_P(BuiltinBuilderTest, + Builtin_Builtin_DualParam_Float_Test, + testing::Values(BuiltinData{"atan2", "Atan2"}, + BuiltinData{"max", "NMax"}, + BuiltinData{"min", "NMin"}, + BuiltinData{"pow", "Pow"}, + BuiltinData{"step", "Step"})); -TEST_F(IntrinsicBuilderTest, Call_Reflect_Vector) { +TEST_F(BuiltinBuilderTest, Call_Reflect_Vector) { auto* expr = Call("reflect", vec2(1.0f, 1.0f), vec2(1.0f, 1.0f)); auto* func = Func("a_func", {}, ty.void_(), { @@ -1019,7 +1019,7 @@ OpFunctionEnd )"); } -TEST_F(IntrinsicBuilderTest, Call_Distance_Scalar) { +TEST_F(BuiltinBuilderTest, Call_Distance_Scalar) { auto* expr = Call("distance", 1.0f, 1.0f); auto* func = Func("a_func", {}, ty.void_(), { @@ -1044,7 +1044,7 @@ OpFunctionEnd )"); } -TEST_F(IntrinsicBuilderTest, Call_Distance_Vector) { +TEST_F(BuiltinBuilderTest, Call_Distance_Vector) { auto* expr = Call("distance", vec2(1.0f, 1.0f), vec2(1.0f, 1.0f)); auto* func = Func("a_func", {}, ty.void_(), { @@ -1071,7 +1071,7 @@ OpFunctionEnd )"); } -TEST_F(IntrinsicBuilderTest, Call_Cross) { +TEST_F(BuiltinBuilderTest, Call_Cross) { auto* expr = Call("cross", vec3(1.0f, 1.0f, 1.0f), vec3(1.0f, 1.0f, 1.0f)); auto* func = Func("a_func", {}, ty.void_(), @@ -1099,9 +1099,9 @@ OpFunctionEnd )"); } -using Intrinsic_Builtin_ThreeParam_Float_Test = - IntrinsicBuilderTestWithParam; -TEST_P(Intrinsic_Builtin_ThreeParam_Float_Test, Call_Scalar) { +using Builtin_Builtin_ThreeParam_Float_Test = + BuiltinBuilderTestWithParam; +TEST_P(Builtin_Builtin_ThreeParam_Float_Test, Call_Scalar) { auto param = GetParam(); auto* expr = Call(param.name, 1.0f, 1.0f, 1.0f); auto* func = Func("a_func", {}, ty.void_(), @@ -1128,7 +1128,7 @@ OpFunctionEnd )"); } -TEST_P(Intrinsic_Builtin_ThreeParam_Float_Test, Call_Vector) { +TEST_P(Builtin_Builtin_ThreeParam_Float_Test, Call_Vector) { auto param = GetParam(); auto* expr = Call(param.name, vec2(1.0f, 1.0f), vec2(1.0f, 1.0f), vec2(1.0f, 1.0f)); @@ -1157,16 +1157,16 @@ OpReturn OpFunctionEnd )"); } -INSTANTIATE_TEST_SUITE_P(IntrinsicBuilderTest, - Intrinsic_Builtin_ThreeParam_Float_Test, - testing::Values(IntrinsicData{"clamp", "NClamp"}, - IntrinsicData{"fma", "Fma"}, - IntrinsicData{"mix", "FMix"}, +INSTANTIATE_TEST_SUITE_P(BuiltinBuilderTest, + Builtin_Builtin_ThreeParam_Float_Test, + testing::Values(BuiltinData{"clamp", "NClamp"}, + BuiltinData{"fma", "Fma"}, + BuiltinData{"mix", "FMix"}, - IntrinsicData{"smoothStep", - "SmoothStep"})); + BuiltinData{"smoothStep", + "SmoothStep"})); -TEST_F(IntrinsicBuilderTest, Call_FaceForward_Vector) { +TEST_F(BuiltinBuilderTest, Call_FaceForward_Vector) { auto* expr = Call("faceForward", vec2(1.0f, 1.0f), vec2(1.0f, 1.0f), vec2(1.0f, 1.0f)); auto* func = Func("a_func", {}, ty.void_(), @@ -1194,9 +1194,9 @@ OpFunctionEnd )"); } -using Intrinsic_Builtin_SingleParam_Sint_Test = - IntrinsicBuilderTestWithParam; -TEST_P(Intrinsic_Builtin_SingleParam_Sint_Test, Call_Scalar) { +using Builtin_Builtin_SingleParam_Sint_Test = + BuiltinBuilderTestWithParam; +TEST_P(Builtin_Builtin_SingleParam_Sint_Test, Call_Scalar) { auto param = GetParam(); auto* expr = Call(param.name, 1); auto* func = Func("a_func", {}, ty.void_(), @@ -1223,7 +1223,7 @@ OpFunctionEnd )"); } -TEST_P(Intrinsic_Builtin_SingleParam_Sint_Test, Call_Vector) { +TEST_P(Builtin_Builtin_SingleParam_Sint_Test, Call_Vector) { auto param = GetParam(); auto* expr = Call(param.name, vec2(1, 1)); auto* func = Func("a_func", {}, ty.void_(), @@ -1251,13 +1251,13 @@ OpReturn OpFunctionEnd )"); } -INSTANTIATE_TEST_SUITE_P(IntrinsicBuilderTest, - Intrinsic_Builtin_SingleParam_Sint_Test, - testing::Values(IntrinsicData{"abs", "SAbs"})); +INSTANTIATE_TEST_SUITE_P(BuiltinBuilderTest, + Builtin_Builtin_SingleParam_Sint_Test, + testing::Values(BuiltinData{"abs", "SAbs"})); // Calling abs() on an unsigned integer scalar / vector is a no-op. -using Intrinsic_Builtin_Abs_Uint_Test = IntrinsicBuilderTest; -TEST_F(Intrinsic_Builtin_Abs_Uint_Test, Call_Scalar) { +using Builtin_Builtin_Abs_Uint_Test = BuiltinBuilderTest; +TEST_F(Builtin_Builtin_Abs_Uint_Test, Call_Scalar) { auto* expr = Call("abs", 1u); auto* func = Func("a_func", {}, ty.void_(), { @@ -1280,7 +1280,7 @@ OpFunctionEnd )"); } -TEST_F(Intrinsic_Builtin_Abs_Uint_Test, Call_Vector) { +TEST_F(Builtin_Builtin_Abs_Uint_Test, Call_Vector) { auto* expr = Call("abs", vec2(1u, 1u)); auto* func = Func("a_func", {}, ty.void_(), { @@ -1305,9 +1305,9 @@ OpFunctionEnd )"); } -using Intrinsic_Builtin_DualParam_SInt_Test = - IntrinsicBuilderTestWithParam; -TEST_P(Intrinsic_Builtin_DualParam_SInt_Test, Call_Scalar) { +using Builtin_Builtin_DualParam_SInt_Test = + BuiltinBuilderTestWithParam; +TEST_P(Builtin_Builtin_DualParam_SInt_Test, Call_Scalar) { auto param = GetParam(); auto* expr = Call(param.name, 1, 1); auto* func = Func("a_func", {}, ty.void_(), @@ -1334,7 +1334,7 @@ OpFunctionEnd )"); } -TEST_P(Intrinsic_Builtin_DualParam_SInt_Test, Call_Vector) { +TEST_P(Builtin_Builtin_DualParam_SInt_Test, Call_Vector) { auto param = GetParam(); auto* expr = Call(param.name, vec2(1, 1), vec2(1, 1)); auto* func = Func("a_func", {}, ty.void_(), @@ -1362,14 +1362,14 @@ OpReturn OpFunctionEnd )"); } -INSTANTIATE_TEST_SUITE_P(IntrinsicBuilderTest, - Intrinsic_Builtin_DualParam_SInt_Test, - testing::Values(IntrinsicData{"max", "SMax"}, - IntrinsicData{"min", "SMin"})); +INSTANTIATE_TEST_SUITE_P(BuiltinBuilderTest, + Builtin_Builtin_DualParam_SInt_Test, + testing::Values(BuiltinData{"max", "SMax"}, + BuiltinData{"min", "SMin"})); -using Intrinsic_Builtin_DualParam_UInt_Test = - IntrinsicBuilderTestWithParam; -TEST_P(Intrinsic_Builtin_DualParam_UInt_Test, Call_Scalar) { +using Builtin_Builtin_DualParam_UInt_Test = + BuiltinBuilderTestWithParam; +TEST_P(Builtin_Builtin_DualParam_UInt_Test, Call_Scalar) { auto param = GetParam(); auto* expr = Call(param.name, 1u, 1u); auto* func = Func("a_func", {}, ty.void_(), @@ -1396,7 +1396,7 @@ OpFunctionEnd )"); } -TEST_P(Intrinsic_Builtin_DualParam_UInt_Test, Call_Vector) { +TEST_P(Builtin_Builtin_DualParam_UInt_Test, Call_Vector) { auto param = GetParam(); auto* expr = Call(param.name, vec2(1u, 1u), vec2(1u, 1u)); auto* func = Func("a_func", {}, ty.void_(), @@ -1424,14 +1424,14 @@ OpReturn OpFunctionEnd )"); } -INSTANTIATE_TEST_SUITE_P(IntrinsicBuilderTest, - Intrinsic_Builtin_DualParam_UInt_Test, - testing::Values(IntrinsicData{"max", "UMax"}, - IntrinsicData{"min", "UMin"})); +INSTANTIATE_TEST_SUITE_P(BuiltinBuilderTest, + Builtin_Builtin_DualParam_UInt_Test, + testing::Values(BuiltinData{"max", "UMax"}, + BuiltinData{"min", "UMin"})); -using Intrinsic_Builtin_ThreeParam_Sint_Test = - IntrinsicBuilderTestWithParam; -TEST_P(Intrinsic_Builtin_ThreeParam_Sint_Test, Call_Scalar) { +using Builtin_Builtin_ThreeParam_Sint_Test = + BuiltinBuilderTestWithParam; +TEST_P(Builtin_Builtin_ThreeParam_Sint_Test, Call_Scalar) { auto param = GetParam(); auto* expr = Call(param.name, 1, 1, 1); auto* func = Func("a_func", {}, ty.void_(), @@ -1458,7 +1458,7 @@ OpFunctionEnd )"); } -TEST_P(Intrinsic_Builtin_ThreeParam_Sint_Test, Call_Vector) { +TEST_P(Builtin_Builtin_ThreeParam_Sint_Test, Call_Vector) { auto param = GetParam(); auto* expr = Call(param.name, vec2(1, 1), vec2(1, 1), vec2(1, 1)); @@ -1487,13 +1487,13 @@ OpReturn OpFunctionEnd )"); } -INSTANTIATE_TEST_SUITE_P(IntrinsicBuilderTest, - Intrinsic_Builtin_ThreeParam_Sint_Test, - testing::Values(IntrinsicData{"clamp", "SClamp"})); +INSTANTIATE_TEST_SUITE_P(BuiltinBuilderTest, + Builtin_Builtin_ThreeParam_Sint_Test, + testing::Values(BuiltinData{"clamp", "SClamp"})); -using Intrinsic_Builtin_ThreeParam_Uint_Test = - IntrinsicBuilderTestWithParam; -TEST_P(Intrinsic_Builtin_ThreeParam_Uint_Test, Call_Scalar) { +using Builtin_Builtin_ThreeParam_Uint_Test = + BuiltinBuilderTestWithParam; +TEST_P(Builtin_Builtin_ThreeParam_Uint_Test, Call_Scalar) { auto param = GetParam(); auto* expr = Call(param.name, 1u, 1u, 1u); auto* func = Func("a_func", {}, ty.void_(), @@ -1520,7 +1520,7 @@ OpFunctionEnd )"); } -TEST_P(Intrinsic_Builtin_ThreeParam_Uint_Test, Call_Vector) { +TEST_P(Builtin_Builtin_ThreeParam_Uint_Test, Call_Vector) { auto param = GetParam(); auto* expr = Call(param.name, vec2(1u, 1u), vec2(1u, 1u), vec2(1u, 1u)); @@ -1549,11 +1549,11 @@ OpReturn OpFunctionEnd )"); } -INSTANTIATE_TEST_SUITE_P(IntrinsicBuilderTest, - Intrinsic_Builtin_ThreeParam_Uint_Test, - testing::Values(IntrinsicData{"clamp", "UClamp"})); +INSTANTIATE_TEST_SUITE_P(BuiltinBuilderTest, + Builtin_Builtin_ThreeParam_Uint_Test, + testing::Values(BuiltinData{"clamp", "UClamp"})); -TEST_F(IntrinsicBuilderTest, Call_Modf) { +TEST_F(BuiltinBuilderTest, Call_Modf) { auto* expr = Call("modf", vec2(1.0f, 2.0f)); Func("a_func", {}, ty.void_(), {CallStmt(expr)}, {Stage(ast::PipelineStage::kFragment)}); @@ -1592,7 +1592,7 @@ OpFunctionEnd Validate(b); } -TEST_F(IntrinsicBuilderTest, Call_Frexp) { +TEST_F(BuiltinBuilderTest, Call_Frexp) { auto* expr = Call("frexp", vec2(1.0f, 2.0f)); Func("a_func", {}, ty.void_(), {CallStmt(expr)}, {Stage(ast::PipelineStage::kFragment)}); @@ -1633,7 +1633,7 @@ OpFunctionEnd Validate(b); } -TEST_F(IntrinsicBuilderTest, Call_Determinant) { +TEST_F(BuiltinBuilderTest, Call_Determinant) { auto* var = Global("var", ty.mat3x3(), ast::StorageClass::kPrivate); auto* expr = Call("determinant", "var"); auto* func = Func("a_func", {}, ty.void_(), @@ -1666,7 +1666,7 @@ OpFunctionEnd )"); } -TEST_F(IntrinsicBuilderTest, Call_Transpose) { +TEST_F(BuiltinBuilderTest, Call_Transpose) { auto* var = Global("var", ty.mat2x3(), ast::StorageClass::kPrivate); auto* expr = Call("transpose", "var"); auto* func = Func("a_func", {}, ty.void_(), @@ -1700,7 +1700,7 @@ OpFunctionEnd )"); } -TEST_F(IntrinsicBuilderTest, Call_ArrayLength) { +TEST_F(BuiltinBuilderTest, Call_ArrayLength) { auto* s = Structure("my_struct", {Member("a", ty.array(4))}, {create()}); Global("b", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kRead, @@ -1745,7 +1745,7 @@ OpReturn Validate(b); } -TEST_F(IntrinsicBuilderTest, Call_ArrayLength_OtherMembersInStruct) { +TEST_F(BuiltinBuilderTest, Call_ArrayLength_OtherMembersInStruct) { auto* s = Structure("my_struct", { Member("z", ty.f32()), @@ -1794,7 +1794,7 @@ OpReturn Validate(b); } -TEST_F(IntrinsicBuilderTest, Call_ArrayLength_ViaLets) { +TEST_F(BuiltinBuilderTest, Call_ArrayLength_ViaLets) { auto* s = Structure("my_struct", {Member("a", ty.array(4))}, {create()}); Global("b", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kRead, @@ -1844,7 +1844,7 @@ OpReturn Validate(b); } -TEST_F(IntrinsicBuilderTest, Call_ArrayLength_ViaLets_WithPtrNoise) { +TEST_F(BuiltinBuilderTest, Call_ArrayLength_ViaLets_WithPtrNoise) { // [[block]] struct my_struct { // a : @stride(4) array; // }; @@ -1907,7 +1907,7 @@ OpReturn Validate(b); } -TEST_F(IntrinsicBuilderTest, Call_AtomicLoad) { +TEST_F(BuiltinBuilderTest, Call_AtomicLoad) { // [[block]] struct S { // u : atomic; // i : atomic; @@ -1973,7 +1973,7 @@ OpReturn Validate(b); } -TEST_F(IntrinsicBuilderTest, Call_AtomicStore) { +TEST_F(BuiltinBuilderTest, Call_AtomicStore) { // [[block]] struct S { // u : atomic; // i : atomic; @@ -2052,9 +2052,8 @@ OpReturn Validate(b); } -using Intrinsic_Builtin_AtomicRMW_i32 = - IntrinsicBuilderTestWithParam; -TEST_P(Intrinsic_Builtin_AtomicRMW_i32, Test) { +using Builtin_Builtin_AtomicRMW_i32 = BuiltinBuilderTestWithParam; +TEST_P(Builtin_Builtin_AtomicRMW_i32, Test) { // [[block]] struct S { // v : atomic; // } @@ -2121,18 +2120,17 @@ TEST_P(Intrinsic_Builtin_AtomicRMW_i32, Test) { Validate(b); } INSTANTIATE_TEST_SUITE_P( - IntrinsicBuilderTest, - Intrinsic_Builtin_AtomicRMW_i32, - testing::Values(IntrinsicData{"atomicAdd", "OpAtomicIAdd"}, - IntrinsicData{"atomicMax", "OpAtomicSMax"}, - IntrinsicData{"atomicMin", "OpAtomicSMin"}, - IntrinsicData{"atomicAnd", "OpAtomicAnd"}, - IntrinsicData{"atomicOr", "OpAtomicOr"}, - IntrinsicData{"atomicXor", "OpAtomicXor"})); + BuiltinBuilderTest, + Builtin_Builtin_AtomicRMW_i32, + testing::Values(BuiltinData{"atomicAdd", "OpAtomicIAdd"}, + BuiltinData{"atomicMax", "OpAtomicSMax"}, + BuiltinData{"atomicMin", "OpAtomicSMin"}, + BuiltinData{"atomicAnd", "OpAtomicAnd"}, + BuiltinData{"atomicOr", "OpAtomicOr"}, + BuiltinData{"atomicXor", "OpAtomicXor"})); -using Intrinsic_Builtin_AtomicRMW_u32 = - IntrinsicBuilderTestWithParam; -TEST_P(Intrinsic_Builtin_AtomicRMW_u32, Test) { +using Builtin_Builtin_AtomicRMW_u32 = BuiltinBuilderTestWithParam; +TEST_P(Builtin_Builtin_AtomicRMW_u32, Test) { // [[block]] struct S { // v : atomic; // } @@ -2198,16 +2196,16 @@ TEST_P(Intrinsic_Builtin_AtomicRMW_u32, Test) { Validate(b); } INSTANTIATE_TEST_SUITE_P( - IntrinsicBuilderTest, - Intrinsic_Builtin_AtomicRMW_u32, - testing::Values(IntrinsicData{"atomicAdd", "OpAtomicIAdd"}, - IntrinsicData{"atomicMax", "OpAtomicUMax"}, - IntrinsicData{"atomicMin", "OpAtomicUMin"}, - IntrinsicData{"atomicAnd", "OpAtomicAnd"}, - IntrinsicData{"atomicOr", "OpAtomicOr"}, - IntrinsicData{"atomicXor", "OpAtomicXor"})); + BuiltinBuilderTest, + Builtin_Builtin_AtomicRMW_u32, + testing::Values(BuiltinData{"atomicAdd", "OpAtomicIAdd"}, + BuiltinData{"atomicMax", "OpAtomicUMax"}, + BuiltinData{"atomicMin", "OpAtomicUMin"}, + BuiltinData{"atomicAnd", "OpAtomicAnd"}, + BuiltinData{"atomicOr", "OpAtomicOr"}, + BuiltinData{"atomicXor", "OpAtomicXor"})); -TEST_F(IntrinsicBuilderTest, Call_AtomicExchange) { +TEST_F(BuiltinBuilderTest, Call_AtomicExchange) { // [[block]] struct S { // u : atomic; // i : atomic; @@ -2289,7 +2287,7 @@ OpReturn Validate(b); } -TEST_F(IntrinsicBuilderTest, Call_AtomicCompareExchangeWeak) { +TEST_F(BuiltinBuilderTest, Call_AtomicCompareExchangeWeak) { // [[block]] struct S { // u : atomic; // i : atomic; @@ -2372,9 +2370,9 @@ OpReturn Validate(b); } -using Intrinsic_Builtin_DataPacking_Test = - IntrinsicBuilderTestWithParam; -TEST_P(Intrinsic_Builtin_DataPacking_Test, Binary) { +using Builtin_Builtin_DataPacking_Test = + BuiltinBuilderTestWithParam; +TEST_P(Builtin_Builtin_DataPacking_Test, Binary) { auto param = GetParam(); bool pack4 = param.name == "pack4x8snorm" || param.name == "pack4x8unorm"; @@ -2424,17 +2422,17 @@ OpFunctionEnd } INSTANTIATE_TEST_SUITE_P( - IntrinsicBuilderTest, - Intrinsic_Builtin_DataPacking_Test, - testing::Values(IntrinsicData{"pack4x8snorm", "PackSnorm4x8"}, - IntrinsicData{"pack4x8unorm", "PackUnorm4x8"}, - IntrinsicData{"pack2x16snorm", "PackSnorm2x16"}, - IntrinsicData{"pack2x16unorm", "PackUnorm2x16"}, - IntrinsicData{"pack2x16float", "PackHalf2x16"})); + BuiltinBuilderTest, + Builtin_Builtin_DataPacking_Test, + testing::Values(BuiltinData{"pack4x8snorm", "PackSnorm4x8"}, + BuiltinData{"pack4x8unorm", "PackUnorm4x8"}, + BuiltinData{"pack2x16snorm", "PackSnorm2x16"}, + BuiltinData{"pack2x16unorm", "PackUnorm2x16"}, + BuiltinData{"pack2x16float", "PackHalf2x16"})); -using Intrinsic_Builtin_DataUnpacking_Test = - IntrinsicBuilderTestWithParam; -TEST_P(Intrinsic_Builtin_DataUnpacking_Test, Binary) { +using Builtin_Builtin_DataUnpacking_Test = + BuiltinBuilderTestWithParam; +TEST_P(Builtin_Builtin_DataUnpacking_Test, Binary) { auto param = GetParam(); bool pack4 = param.name == "unpack4x8snorm" || param.name == "unpack4x8unorm"; @@ -2480,15 +2478,15 @@ OpFunctionEnd } INSTANTIATE_TEST_SUITE_P( - IntrinsicBuilderTest, - Intrinsic_Builtin_DataUnpacking_Test, - testing::Values(IntrinsicData{"unpack4x8snorm", "UnpackSnorm4x8"}, - IntrinsicData{"unpack4x8unorm", "UnpackUnorm4x8"}, - IntrinsicData{"unpack2x16snorm", "UnpackSnorm2x16"}, - IntrinsicData{"unpack2x16unorm", "UnpackUnorm2x16"}, - IntrinsicData{"unpack2x16float", "UnpackHalf2x16"})); + BuiltinBuilderTest, + Builtin_Builtin_DataUnpacking_Test, + testing::Values(BuiltinData{"unpack4x8snorm", "UnpackSnorm4x8"}, + BuiltinData{"unpack4x8unorm", "UnpackUnorm4x8"}, + BuiltinData{"unpack2x16snorm", "UnpackSnorm2x16"}, + BuiltinData{"unpack2x16unorm", "UnpackUnorm2x16"}, + BuiltinData{"unpack2x16float", "UnpackHalf2x16"})); -TEST_F(IntrinsicBuilderTest, Call_WorkgroupBarrier) { +TEST_F(BuiltinBuilderTest, Call_WorkgroupBarrier) { Func("f", {}, ty.void_(), ast::StatementList{ CallStmt(Call("workgroupBarrier")), @@ -2522,7 +2520,7 @@ OpReturn Validate(b); } -TEST_F(IntrinsicBuilderTest, Call_StorageBarrier) { +TEST_F(BuiltinBuilderTest, Call_StorageBarrier) { Func("f", {}, ty.void_(), ast::StatementList{ CallStmt(Call("storageBarrier")), diff --git a/src/writer/spirv/builder_intrinsic_texture_test.cc b/src/writer/spirv/builder_builtin_texture_test.cc similarity index 99% rename from src/writer/spirv/builder_intrinsic_texture_test.cc rename to src/writer/spirv/builder_builtin_texture_test.cc index 1cffb0209d..d26f288228 100644 --- a/src/writer/spirv/builder_intrinsic_texture_test.cc +++ b/src/writer/spirv/builder_builtin_texture_test.cc @@ -13,8 +13,8 @@ // limitations under the License. #include "gmock/gmock.h" +#include "src/ast/builtin_texture_helper_test.h" #include "src/ast/call_statement.h" -#include "src/ast/intrinsic_texture_helper_test.h" #include "src/ast/stage_attribute.h" #include "src/writer/spirv/spv_dump.h" #include "src/writer/spirv/test_helper.h" @@ -31,8 +31,8 @@ struct expected_texture_overload_spirv { }; expected_texture_overload_spirv expected_texture_overload( - ast::intrinsic::test::ValidTextureOverload overload) { - using ValidTextureOverload = ast::intrinsic::test::ValidTextureOverload; + ast::builtin::test::ValidTextureOverload overload) { + using ValidTextureOverload = ast::builtin::test::ValidTextureOverload; switch (overload) { case ValidTextureOverload::kDimensions1d: return { @@ -3672,15 +3672,15 @@ OpImageWrite %10 %16 %22 ""}; } // NOLINT - Ignore the length of this function -using IntrinsicTextureTest = - TestParamHelper; +using BuiltinTextureTest = + TestParamHelper; INSTANTIATE_TEST_SUITE_P( - IntrinsicTextureTest, - IntrinsicTextureTest, - testing::ValuesIn(ast::intrinsic::test::TextureOverloadCase::ValidCases())); + BuiltinTextureTest, + BuiltinTextureTest, + testing::ValuesIn(ast::builtin::test::TextureOverloadCase::ValidCases())); -TEST_P(IntrinsicTextureTest, Call) { +TEST_P(BuiltinTextureTest, Call) { auto param = GetParam(); auto* texture = param.BuildTextureVariable(this); @@ -3706,7 +3706,7 @@ TEST_P(IntrinsicTextureTest, Call) { } // Check the SPIRV generated passes validation -TEST_P(IntrinsicTextureTest, ValidateSPIRV) { +TEST_P(BuiltinTextureTest, ValidateSPIRV) { auto param = GetParam(); param.BuildTextureVariable(this); @@ -3724,11 +3724,11 @@ TEST_P(IntrinsicTextureTest, ValidateSPIRV) { Validate(b); } -TEST_P(IntrinsicTextureTest, OutsideFunction_IsError) { +TEST_P(BuiltinTextureTest, OutsideFunction_IsError) { auto param = GetParam(); // The point of this test is to try to generate the texture - // intrinsic call outside a function. + // builtin call outside a function. auto* texture = param.BuildTextureVariable(this); auto* sampler = param.BuildSamplerVariable(this); diff --git a/test/BUILD.gn b/test/BUILD.gn index 75fa189a82..538c4a9639 100644 --- a/test/BUILD.gn +++ b/test/BUILD.gn @@ -153,6 +153,8 @@ tint_unittests_source_set("tint_unittests_ast_src") { "../src/ast/bool_test.cc", "../src/ast/break_statement_test.cc", "../src/ast/builtin_attribute_test.cc", + "../src/ast/builtin_texture_helper_test.cc", + "../src/ast/builtin_texture_helper_test.h", "../src/ast/call_expression_test.cc", "../src/ast/call_statement_test.cc", "../src/ast/case_statement_test.cc", @@ -174,8 +176,6 @@ tint_unittests_source_set("tint_unittests_ast_src") { "../src/ast/index_accessor_expression_test.cc", "../src/ast/int_literal_expression_test.cc", "../src/ast/interpolate_attribute_test.cc", - "../src/ast/intrinsic_texture_helper_test.cc", - "../src/ast/intrinsic_texture_helper_test.h", "../src/ast/invariant_attribute_test.cc", "../src/ast/location_attribute_test.cc", "../src/ast/loop_statement_test.cc", @@ -239,6 +239,8 @@ tint_unittests_source_set("tint_unittests_resolver_src") { "../src/resolver/atomics_validation_test.cc", "../src/resolver/bitcast_validation_test.cc", "../src/resolver/builtins_validation_test.cc", + "../src/resolver/builtin_test.cc", + "../src/resolver/builtin_validation_test.cc", "../src/resolver/call_test.cc", "../src/resolver/call_validation_test.cc", "../src/resolver/compound_statement_test.cc", @@ -248,8 +250,6 @@ tint_unittests_source_set("tint_unittests_resolver_src") { "../src/resolver/entry_point_validation_test.cc", "../src/resolver/function_validation_test.cc", "../src/resolver/host_shareable_validation_test.cc", - "../src/resolver/intrinsic_test.cc", - "../src/resolver/intrinsic_validation_test.cc", "../src/resolver/is_host_shareable_test.cc", "../src/resolver/is_storeable_test.cc", "../src/resolver/pipeline_overridable_constant_test.cc", @@ -278,12 +278,12 @@ tint_unittests_source_set("tint_unittests_sem_src") { sources = [ "../src/sem/atomic_type_test.cc", "../src/sem/bool_type_test.cc", + "../src/sem/builtin_test.cc", "../src/sem/depth_multisampled_texture_type_test.cc", "../src/sem/depth_texture_type_test.cc", "../src/sem/external_texture_type_test.cc", "../src/sem/f32_type_test.cc", "../src/sem/i32_type_test.cc", - "../src/sem/intrinsic_test.cc", "../src/sem/matrix_type_test.cc", "../src/sem/multisampled_texture_type_test.cc", "../src/sem/pointer_type_test.cc", @@ -413,6 +413,8 @@ tint_unittests_source_set("tint_unittests_spv_writer_src") { "../src/writer/spirv/builder_binary_expression_test.cc", "../src/writer/spirv/builder_bitcast_expression_test.cc", "../src/writer/spirv/builder_block_test.cc", + "../src/writer/spirv/builder_builtin_test.cc", + "../src/writer/spirv/builder_builtin_texture_test.cc", "../src/writer/spirv/builder_call_test.cc", "../src/writer/spirv/builder_constructor_expression_test.cc", "../src/writer/spirv/builder_discard_test.cc", @@ -424,8 +426,6 @@ tint_unittests_source_set("tint_unittests_spv_writer_src") { "../src/writer/spirv/builder_global_variable_test.cc", "../src/writer/spirv/builder_ident_expression_test.cc", "../src/writer/spirv/builder_if_test.cc", - "../src/writer/spirv/builder_intrinsic_test.cc", - "../src/writer/spirv/builder_intrinsic_texture_test.cc", "../src/writer/spirv/builder_literal_test.cc", "../src/writer/spirv/builder_loop_test.cc", "../src/writer/spirv/builder_return_test.cc", @@ -576,6 +576,8 @@ tint_unittests_source_set("tint_unittests_msl_writer_src") { "../src/writer/msl/generator_impl_bitcast_test.cc", "../src/writer/msl/generator_impl_block_test.cc", "../src/writer/msl/generator_impl_break_test.cc", + "../src/writer/msl/generator_impl_builtin_test.cc", + "../src/writer/msl/generator_impl_builtin_texture_test.cc", "../src/writer/msl/generator_impl_call_test.cc", "../src/writer/msl/generator_impl_case_test.cc", "../src/writer/msl/generator_impl_cast_test.cc", @@ -586,8 +588,6 @@ tint_unittests_source_set("tint_unittests_msl_writer_src") { "../src/writer/msl/generator_impl_identifier_test.cc", "../src/writer/msl/generator_impl_if_test.cc", "../src/writer/msl/generator_impl_import_test.cc", - "../src/writer/msl/generator_impl_intrinsic_test.cc", - "../src/writer/msl/generator_impl_intrinsic_texture_test.cc", "../src/writer/msl/generator_impl_loop_test.cc", "../src/writer/msl/generator_impl_member_accessor_test.cc", "../src/writer/msl/generator_impl_module_constant_test.cc", @@ -615,6 +615,8 @@ tint_unittests_source_set("tint_unittests_hlsl_writer_src") { "../src/writer/hlsl/generator_impl_bitcast_test.cc", "../src/writer/hlsl/generator_impl_block_test.cc", "../src/writer/hlsl/generator_impl_break_test.cc", + "../src/writer/hlsl/generator_impl_builtin_test.cc", + "../src/writer/hlsl/generator_impl_builtin_texture_test.cc", "../src/writer/hlsl/generator_impl_call_test.cc", "../src/writer/hlsl/generator_impl_case_test.cc", "../src/writer/hlsl/generator_impl_cast_test.cc", @@ -625,8 +627,6 @@ tint_unittests_source_set("tint_unittests_hlsl_writer_src") { "../src/writer/hlsl/generator_impl_identifier_test.cc", "../src/writer/hlsl/generator_impl_if_test.cc", "../src/writer/hlsl/generator_impl_import_test.cc", - "../src/writer/hlsl/generator_impl_intrinsic_test.cc", - "../src/writer/hlsl/generator_impl_intrinsic_texture_test.cc", "../src/writer/hlsl/generator_impl_loop_test.cc", "../src/writer/hlsl/generator_impl_member_accessor_test.cc", "../src/writer/hlsl/generator_impl_module_constant_test.cc", @@ -656,6 +656,8 @@ tint_unittests_source_set("tint_unittests_glsl_writer_src") { "../src/writer/glsl/generator_impl_bitcast_test.cc", "../src/writer/glsl/generator_impl_block_test.cc", "../src/writer/glsl/generator_impl_break_test.cc", + "../src/writer/glsl/generator_impl_builtin_test.cc", + "../src/writer/glsl/generator_impl_builtin_texture_test.cc", "../src/writer/glsl/generator_impl_call_test.cc", "../src/writer/glsl/generator_impl_case_test.cc", "../src/writer/glsl/generator_impl_cast_test.cc", @@ -666,8 +668,6 @@ tint_unittests_source_set("tint_unittests_glsl_writer_src") { "../src/writer/glsl/generator_impl_identifier_test.cc", "../src/writer/glsl/generator_impl_if_test.cc", "../src/writer/glsl/generator_impl_import_test.cc", - "../src/writer/glsl/generator_impl_intrinsic_test.cc", - "../src/writer/glsl/generator_impl_intrinsic_texture_test.cc", "../src/writer/glsl/generator_impl_loop_test.cc", "../src/writer/glsl/generator_impl_member_accessor_test.cc", "../src/writer/glsl/generator_impl_module_constant_test.cc", @@ -692,11 +692,11 @@ tint_unittests_source_set("tint_unittests_glsl_writer_src") { tint_unittests_source_set("tint_unittests_core_src") { sources = [ "../src/block_allocator_test.cc", + "../src/builtin_table_test.cc", "../src/castable_test.cc", "../src/clone_context_test.cc", "../src/debug_test.cc", "../src/demangler_test.cc", - "../src/intrinsic_table_test.cc", "../src/program_builder_test.cc", "../src/program_test.cc", "../src/scope_stack_test.cc", diff --git a/test/bug/chromium/1273230.wgsl.expected.glsl b/test/bug/chromium/1273230.wgsl.expected.glsl index b3db713b98..bfc20ad387 100644 --- a/test/bug/chromium/1273230.wgsl.expected.glsl +++ b/test/bug/chromium/1273230.wgsl.expected.glsl @@ -1,20 +1,20 @@ -bug/chromium/1273230.wgsl:4:7 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:4:7 warning: use of deprecated builtin _ = isNormal(4.); ^^^^^^^^ -bug/chromium/1273230.wgsl:7:3 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:7:3 warning: use of deprecated builtin isNormal(vec4()); ^^^^^^^^ -bug/chromium/1273230.wgsl:10:6 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:10:6 warning: use of deprecated builtin isNormal(0.); ^^^^^^^^ -bug/chromium/1273230.wgsl:11:9 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:11:9 warning: use of deprecated builtin _ = isNormal(4.); ^^^^^^^^ -bug/chromium/1273230.wgsl:12:9 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:12:9 warning: use of deprecated builtin _ = isNormal(2.); ^^^^^^^^ diff --git a/test/bug/chromium/1273230.wgsl.expected.hlsl b/test/bug/chromium/1273230.wgsl.expected.hlsl index eb84f1ae3e..b1b9cf0085 100644 --- a/test/bug/chromium/1273230.wgsl.expected.hlsl +++ b/test/bug/chromium/1273230.wgsl.expected.hlsl @@ -1,20 +1,20 @@ -bug/chromium/1273230.wgsl:4:7 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:4:7 warning: use of deprecated builtin _ = isNormal(4.); ^^^^^^^^ -bug/chromium/1273230.wgsl:7:3 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:7:3 warning: use of deprecated builtin isNormal(vec4()); ^^^^^^^^ -bug/chromium/1273230.wgsl:10:6 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:10:6 warning: use of deprecated builtin isNormal(0.); ^^^^^^^^ -bug/chromium/1273230.wgsl:11:9 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:11:9 warning: use of deprecated builtin _ = isNormal(4.); ^^^^^^^^ -bug/chromium/1273230.wgsl:12:9 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:12:9 warning: use of deprecated builtin _ = isNormal(2.); ^^^^^^^^ diff --git a/test/bug/chromium/1273230.wgsl.expected.msl b/test/bug/chromium/1273230.wgsl.expected.msl index c8e38abeec..a6f5aabf40 100644 --- a/test/bug/chromium/1273230.wgsl.expected.msl +++ b/test/bug/chromium/1273230.wgsl.expected.msl @@ -1,20 +1,20 @@ -bug/chromium/1273230.wgsl:4:7 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:4:7 warning: use of deprecated builtin _ = isNormal(4.); ^^^^^^^^ -bug/chromium/1273230.wgsl:7:3 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:7:3 warning: use of deprecated builtin isNormal(vec4()); ^^^^^^^^ -bug/chromium/1273230.wgsl:10:6 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:10:6 warning: use of deprecated builtin isNormal(0.); ^^^^^^^^ -bug/chromium/1273230.wgsl:11:9 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:11:9 warning: use of deprecated builtin _ = isNormal(4.); ^^^^^^^^ -bug/chromium/1273230.wgsl:12:9 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:12:9 warning: use of deprecated builtin _ = isNormal(2.); ^^^^^^^^ diff --git a/test/bug/chromium/1273230.wgsl.expected.spvasm b/test/bug/chromium/1273230.wgsl.expected.spvasm index 6719df277f..a2c9d8c1b1 100644 --- a/test/bug/chromium/1273230.wgsl.expected.spvasm +++ b/test/bug/chromium/1273230.wgsl.expected.spvasm @@ -1,20 +1,20 @@ -bug/chromium/1273230.wgsl:4:7 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:4:7 warning: use of deprecated builtin _ = isNormal(4.); ^^^^^^^^ -bug/chromium/1273230.wgsl:7:3 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:7:3 warning: use of deprecated builtin isNormal(vec4()); ^^^^^^^^ -bug/chromium/1273230.wgsl:10:6 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:10:6 warning: use of deprecated builtin isNormal(0.); ^^^^^^^^ -bug/chromium/1273230.wgsl:11:9 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:11:9 warning: use of deprecated builtin _ = isNormal(4.); ^^^^^^^^ -bug/chromium/1273230.wgsl:12:9 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:12:9 warning: use of deprecated builtin _ = isNormal(2.); ^^^^^^^^ diff --git a/test/bug/chromium/1273230.wgsl.expected.wgsl b/test/bug/chromium/1273230.wgsl.expected.wgsl index 2d9a2714b2..3e387da8b0 100644 --- a/test/bug/chromium/1273230.wgsl.expected.wgsl +++ b/test/bug/chromium/1273230.wgsl.expected.wgsl @@ -1,20 +1,20 @@ -bug/chromium/1273230.wgsl:4:7 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:4:7 warning: use of deprecated builtin _ = isNormal(4.); ^^^^^^^^ -bug/chromium/1273230.wgsl:7:3 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:7:3 warning: use of deprecated builtin isNormal(vec4()); ^^^^^^^^ -bug/chromium/1273230.wgsl:10:6 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:10:6 warning: use of deprecated builtin isNormal(0.); ^^^^^^^^ -bug/chromium/1273230.wgsl:11:9 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:11:9 warning: use of deprecated builtin _ = isNormal(4.); ^^^^^^^^ -bug/chromium/1273230.wgsl:12:9 warning: use of deprecated intrinsic +bug/chromium/1273230.wgsl:12:9 warning: use of deprecated builtin _ = isNormal(2.); ^^^^^^^^ diff --git a/test/intrinsics/arrayLength/complex_via_let.wgsl b/test/builtins/arrayLength/complex_via_let.wgsl similarity index 100% rename from test/intrinsics/arrayLength/complex_via_let.wgsl rename to test/builtins/arrayLength/complex_via_let.wgsl diff --git a/test/intrinsics/arrayLength/complex_via_let.wgsl.expected.glsl b/test/builtins/arrayLength/complex_via_let.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/arrayLength/complex_via_let.wgsl.expected.glsl rename to test/builtins/arrayLength/complex_via_let.wgsl.expected.glsl diff --git a/test/intrinsics/arrayLength/complex_via_let.wgsl.expected.hlsl b/test/builtins/arrayLength/complex_via_let.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/arrayLength/complex_via_let.wgsl.expected.hlsl rename to test/builtins/arrayLength/complex_via_let.wgsl.expected.hlsl diff --git a/test/intrinsics/arrayLength/complex_via_let.wgsl.expected.msl b/test/builtins/arrayLength/complex_via_let.wgsl.expected.msl similarity index 100% rename from test/intrinsics/arrayLength/complex_via_let.wgsl.expected.msl rename to test/builtins/arrayLength/complex_via_let.wgsl.expected.msl diff --git a/test/intrinsics/arrayLength/complex_via_let.wgsl.expected.spvasm b/test/builtins/arrayLength/complex_via_let.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/arrayLength/complex_via_let.wgsl.expected.spvasm rename to test/builtins/arrayLength/complex_via_let.wgsl.expected.spvasm diff --git a/test/intrinsics/arrayLength/complex_via_let.wgsl.expected.wgsl b/test/builtins/arrayLength/complex_via_let.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/arrayLength/complex_via_let.wgsl.expected.wgsl rename to test/builtins/arrayLength/complex_via_let.wgsl.expected.wgsl diff --git a/test/intrinsics/arrayLength/complex_via_let_no_struct.wgsl b/test/builtins/arrayLength/complex_via_let_no_struct.wgsl similarity index 100% rename from test/intrinsics/arrayLength/complex_via_let_no_struct.wgsl rename to test/builtins/arrayLength/complex_via_let_no_struct.wgsl diff --git a/test/intrinsics/arrayLength/complex_via_let_no_struct.wgsl.expected.glsl b/test/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/arrayLength/complex_via_let_no_struct.wgsl.expected.glsl rename to test/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.glsl diff --git a/test/intrinsics/arrayLength/complex_via_let_no_struct.wgsl.expected.hlsl b/test/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/arrayLength/complex_via_let_no_struct.wgsl.expected.hlsl rename to test/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.hlsl diff --git a/test/intrinsics/arrayLength/complex_via_let_no_struct.wgsl.expected.msl b/test/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.msl similarity index 100% rename from test/intrinsics/arrayLength/complex_via_let_no_struct.wgsl.expected.msl rename to test/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.msl diff --git a/test/intrinsics/arrayLength/complex_via_let_no_struct.wgsl.expected.spvasm b/test/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/arrayLength/complex_via_let_no_struct.wgsl.expected.spvasm rename to test/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.spvasm diff --git a/test/intrinsics/arrayLength/complex_via_let_no_struct.wgsl.expected.wgsl b/test/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/arrayLength/complex_via_let_no_struct.wgsl.expected.wgsl rename to test/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.wgsl diff --git a/test/intrinsics/arrayLength/deprecated.wgsl b/test/builtins/arrayLength/deprecated.wgsl similarity index 100% rename from test/intrinsics/arrayLength/deprecated.wgsl rename to test/builtins/arrayLength/deprecated.wgsl diff --git a/test/intrinsics/arrayLength/deprecated.wgsl.expected.glsl b/test/builtins/arrayLength/deprecated.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/arrayLength/deprecated.wgsl.expected.glsl rename to test/builtins/arrayLength/deprecated.wgsl.expected.glsl diff --git a/test/intrinsics/arrayLength/deprecated.wgsl.expected.hlsl b/test/builtins/arrayLength/deprecated.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/arrayLength/deprecated.wgsl.expected.hlsl rename to test/builtins/arrayLength/deprecated.wgsl.expected.hlsl diff --git a/test/intrinsics/arrayLength/deprecated.wgsl.expected.msl b/test/builtins/arrayLength/deprecated.wgsl.expected.msl similarity index 100% rename from test/intrinsics/arrayLength/deprecated.wgsl.expected.msl rename to test/builtins/arrayLength/deprecated.wgsl.expected.msl diff --git a/test/intrinsics/arrayLength/deprecated.wgsl.expected.spvasm b/test/builtins/arrayLength/deprecated.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/arrayLength/deprecated.wgsl.expected.spvasm rename to test/builtins/arrayLength/deprecated.wgsl.expected.spvasm diff --git a/test/intrinsics/arrayLength/deprecated.wgsl.expected.wgsl b/test/builtins/arrayLength/deprecated.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/arrayLength/deprecated.wgsl.expected.wgsl rename to test/builtins/arrayLength/deprecated.wgsl.expected.wgsl diff --git a/test/intrinsics/arrayLength/simple.wgsl b/test/builtins/arrayLength/simple.wgsl similarity index 100% rename from test/intrinsics/arrayLength/simple.wgsl rename to test/builtins/arrayLength/simple.wgsl diff --git a/test/intrinsics/arrayLength/simple.wgsl.expected.glsl b/test/builtins/arrayLength/simple.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/arrayLength/simple.wgsl.expected.glsl rename to test/builtins/arrayLength/simple.wgsl.expected.glsl diff --git a/test/intrinsics/arrayLength/simple.wgsl.expected.hlsl b/test/builtins/arrayLength/simple.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/arrayLength/simple.wgsl.expected.hlsl rename to test/builtins/arrayLength/simple.wgsl.expected.hlsl diff --git a/test/intrinsics/arrayLength/simple.wgsl.expected.msl b/test/builtins/arrayLength/simple.wgsl.expected.msl similarity index 100% rename from test/intrinsics/arrayLength/simple.wgsl.expected.msl rename to test/builtins/arrayLength/simple.wgsl.expected.msl diff --git a/test/intrinsics/arrayLength/simple.wgsl.expected.spvasm b/test/builtins/arrayLength/simple.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/arrayLength/simple.wgsl.expected.spvasm rename to test/builtins/arrayLength/simple.wgsl.expected.spvasm diff --git a/test/intrinsics/arrayLength/simple.wgsl.expected.wgsl b/test/builtins/arrayLength/simple.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/arrayLength/simple.wgsl.expected.wgsl rename to test/builtins/arrayLength/simple.wgsl.expected.wgsl diff --git a/test/intrinsics/arrayLength/simple_no_struct.wgsl b/test/builtins/arrayLength/simple_no_struct.wgsl similarity index 100% rename from test/intrinsics/arrayLength/simple_no_struct.wgsl rename to test/builtins/arrayLength/simple_no_struct.wgsl diff --git a/test/intrinsics/arrayLength/simple_no_struct.wgsl.expected.glsl b/test/builtins/arrayLength/simple_no_struct.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/arrayLength/simple_no_struct.wgsl.expected.glsl rename to test/builtins/arrayLength/simple_no_struct.wgsl.expected.glsl diff --git a/test/intrinsics/arrayLength/simple_no_struct.wgsl.expected.hlsl b/test/builtins/arrayLength/simple_no_struct.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/arrayLength/simple_no_struct.wgsl.expected.hlsl rename to test/builtins/arrayLength/simple_no_struct.wgsl.expected.hlsl diff --git a/test/intrinsics/arrayLength/simple_no_struct.wgsl.expected.msl b/test/builtins/arrayLength/simple_no_struct.wgsl.expected.msl similarity index 100% rename from test/intrinsics/arrayLength/simple_no_struct.wgsl.expected.msl rename to test/builtins/arrayLength/simple_no_struct.wgsl.expected.msl diff --git a/test/intrinsics/arrayLength/simple_no_struct.wgsl.expected.spvasm b/test/builtins/arrayLength/simple_no_struct.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/arrayLength/simple_no_struct.wgsl.expected.spvasm rename to test/builtins/arrayLength/simple_no_struct.wgsl.expected.spvasm diff --git a/test/intrinsics/arrayLength/simple_no_struct.wgsl.expected.wgsl b/test/builtins/arrayLength/simple_no_struct.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/arrayLength/simple_no_struct.wgsl.expected.wgsl rename to test/builtins/arrayLength/simple_no_struct.wgsl.expected.wgsl diff --git a/test/intrinsics/arrayLength/via_let.wgsl b/test/builtins/arrayLength/via_let.wgsl similarity index 100% rename from test/intrinsics/arrayLength/via_let.wgsl rename to test/builtins/arrayLength/via_let.wgsl diff --git a/test/intrinsics/arrayLength/via_let.wgsl.expected.glsl b/test/builtins/arrayLength/via_let.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/arrayLength/via_let.wgsl.expected.glsl rename to test/builtins/arrayLength/via_let.wgsl.expected.glsl diff --git a/test/intrinsics/arrayLength/via_let.wgsl.expected.hlsl b/test/builtins/arrayLength/via_let.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/arrayLength/via_let.wgsl.expected.hlsl rename to test/builtins/arrayLength/via_let.wgsl.expected.hlsl diff --git a/test/intrinsics/arrayLength/via_let.wgsl.expected.msl b/test/builtins/arrayLength/via_let.wgsl.expected.msl similarity index 100% rename from test/intrinsics/arrayLength/via_let.wgsl.expected.msl rename to test/builtins/arrayLength/via_let.wgsl.expected.msl diff --git a/test/intrinsics/arrayLength/via_let.wgsl.expected.spvasm b/test/builtins/arrayLength/via_let.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/arrayLength/via_let.wgsl.expected.spvasm rename to test/builtins/arrayLength/via_let.wgsl.expected.spvasm diff --git a/test/intrinsics/arrayLength/via_let.wgsl.expected.wgsl b/test/builtins/arrayLength/via_let.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/arrayLength/via_let.wgsl.expected.wgsl rename to test/builtins/arrayLength/via_let.wgsl.expected.wgsl diff --git a/test/intrinsics/arrayLength/via_let_complex.wgsl b/test/builtins/arrayLength/via_let_complex.wgsl similarity index 100% rename from test/intrinsics/arrayLength/via_let_complex.wgsl rename to test/builtins/arrayLength/via_let_complex.wgsl diff --git a/test/intrinsics/arrayLength/via_let_complex.wgsl.expected.glsl b/test/builtins/arrayLength/via_let_complex.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/arrayLength/via_let_complex.wgsl.expected.glsl rename to test/builtins/arrayLength/via_let_complex.wgsl.expected.glsl diff --git a/test/intrinsics/arrayLength/via_let_complex.wgsl.expected.hlsl b/test/builtins/arrayLength/via_let_complex.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/arrayLength/via_let_complex.wgsl.expected.hlsl rename to test/builtins/arrayLength/via_let_complex.wgsl.expected.hlsl diff --git a/test/intrinsics/arrayLength/via_let_complex.wgsl.expected.msl b/test/builtins/arrayLength/via_let_complex.wgsl.expected.msl similarity index 100% rename from test/intrinsics/arrayLength/via_let_complex.wgsl.expected.msl rename to test/builtins/arrayLength/via_let_complex.wgsl.expected.msl diff --git a/test/intrinsics/arrayLength/via_let_complex.wgsl.expected.spvasm b/test/builtins/arrayLength/via_let_complex.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/arrayLength/via_let_complex.wgsl.expected.spvasm rename to test/builtins/arrayLength/via_let_complex.wgsl.expected.spvasm diff --git a/test/intrinsics/arrayLength/via_let_complex.wgsl.expected.wgsl b/test/builtins/arrayLength/via_let_complex.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/arrayLength/via_let_complex.wgsl.expected.wgsl rename to test/builtins/arrayLength/via_let_complex.wgsl.expected.wgsl diff --git a/test/intrinsics/arrayLength/via_let_complex_no_struct.wgsl b/test/builtins/arrayLength/via_let_complex_no_struct.wgsl similarity index 100% rename from test/intrinsics/arrayLength/via_let_complex_no_struct.wgsl rename to test/builtins/arrayLength/via_let_complex_no_struct.wgsl diff --git a/test/intrinsics/arrayLength/via_let_complex_no_struct.wgsl.expected.glsl b/test/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/arrayLength/via_let_complex_no_struct.wgsl.expected.glsl rename to test/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.glsl diff --git a/test/intrinsics/arrayLength/via_let_complex_no_struct.wgsl.expected.hlsl b/test/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/arrayLength/via_let_complex_no_struct.wgsl.expected.hlsl rename to test/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.hlsl diff --git a/test/intrinsics/arrayLength/via_let_complex_no_struct.wgsl.expected.msl b/test/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.msl similarity index 100% rename from test/intrinsics/arrayLength/via_let_complex_no_struct.wgsl.expected.msl rename to test/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.msl diff --git a/test/intrinsics/arrayLength/via_let_complex_no_struct.wgsl.expected.spvasm b/test/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/arrayLength/via_let_complex_no_struct.wgsl.expected.spvasm rename to test/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.spvasm diff --git a/test/intrinsics/arrayLength/via_let_complex_no_struct.wgsl.expected.wgsl b/test/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/arrayLength/via_let_complex_no_struct.wgsl.expected.wgsl rename to test/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.wgsl diff --git a/test/intrinsics/arrayLength/via_let_no_struct.wgsl b/test/builtins/arrayLength/via_let_no_struct.wgsl similarity index 100% rename from test/intrinsics/arrayLength/via_let_no_struct.wgsl rename to test/builtins/arrayLength/via_let_no_struct.wgsl diff --git a/test/intrinsics/arrayLength/via_let_no_struct.wgsl.expected.glsl b/test/builtins/arrayLength/via_let_no_struct.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/arrayLength/via_let_no_struct.wgsl.expected.glsl rename to test/builtins/arrayLength/via_let_no_struct.wgsl.expected.glsl diff --git a/test/intrinsics/arrayLength/via_let_no_struct.wgsl.expected.hlsl b/test/builtins/arrayLength/via_let_no_struct.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/arrayLength/via_let_no_struct.wgsl.expected.hlsl rename to test/builtins/arrayLength/via_let_no_struct.wgsl.expected.hlsl diff --git a/test/intrinsics/arrayLength/via_let_no_struct.wgsl.expected.msl b/test/builtins/arrayLength/via_let_no_struct.wgsl.expected.msl similarity index 100% rename from test/intrinsics/arrayLength/via_let_no_struct.wgsl.expected.msl rename to test/builtins/arrayLength/via_let_no_struct.wgsl.expected.msl diff --git a/test/intrinsics/arrayLength/via_let_no_struct.wgsl.expected.spvasm b/test/builtins/arrayLength/via_let_no_struct.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/arrayLength/via_let_no_struct.wgsl.expected.spvasm rename to test/builtins/arrayLength/via_let_no_struct.wgsl.expected.spvasm diff --git a/test/intrinsics/arrayLength/via_let_no_struct.wgsl.expected.wgsl b/test/builtins/arrayLength/via_let_no_struct.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/arrayLength/via_let_no_struct.wgsl.expected.wgsl rename to test/builtins/arrayLength/via_let_no_struct.wgsl.expected.wgsl diff --git a/test/intrinsics/intrinsics.wgsl.tmpl b/test/builtins/builtins.wgsl.tmpl similarity index 98% rename from test/intrinsics/intrinsics.wgsl.tmpl rename to test/builtins/builtins.wgsl.tmpl index 254fb1611a..c7e22651a2 100644 --- a/test/intrinsics/intrinsics.wgsl.tmpl +++ b/test/builtins/builtins.wgsl.tmpl @@ -1,10 +1,10 @@ {{- /* -------------------------------------------------------------------------------- -Template file for use with tools/intrinsic-gen to generate the wgsl files in the +Template file for use with tools/builtin-gen to generate the wgsl files in the ./gen/... subdirectories See: -* tools/cmd/intrinsic-gen/gen for structures used by this template +* tools/cmd/builtin-gen/gen for structures used by this template * https://golang.org/pkg/text/template/ for documentation on the template syntax -------------------------------------------------------------------------------- */ -}} diff --git a/test/intrinsics/degrees.spvasm b/test/builtins/degrees.spvasm similarity index 100% rename from test/intrinsics/degrees.spvasm rename to test/builtins/degrees.spvasm diff --git a/test/intrinsics/degrees.spvasm.expected.glsl b/test/builtins/degrees.spvasm.expected.glsl similarity index 100% rename from test/intrinsics/degrees.spvasm.expected.glsl rename to test/builtins/degrees.spvasm.expected.glsl diff --git a/test/intrinsics/degrees.spvasm.expected.hlsl b/test/builtins/degrees.spvasm.expected.hlsl similarity index 100% rename from test/intrinsics/degrees.spvasm.expected.hlsl rename to test/builtins/degrees.spvasm.expected.hlsl diff --git a/test/intrinsics/degrees.spvasm.expected.msl b/test/builtins/degrees.spvasm.expected.msl similarity index 100% rename from test/intrinsics/degrees.spvasm.expected.msl rename to test/builtins/degrees.spvasm.expected.msl diff --git a/test/intrinsics/degrees.spvasm.expected.spvasm b/test/builtins/degrees.spvasm.expected.spvasm similarity index 100% rename from test/intrinsics/degrees.spvasm.expected.spvasm rename to test/builtins/degrees.spvasm.expected.spvasm diff --git a/test/intrinsics/degrees.spvasm.expected.wgsl b/test/builtins/degrees.spvasm.expected.wgsl similarity index 100% rename from test/intrinsics/degrees.spvasm.expected.wgsl rename to test/builtins/degrees.spvasm.expected.wgsl diff --git a/test/intrinsics/frexp.wgsl b/test/builtins/frexp.wgsl similarity index 100% rename from test/intrinsics/frexp.wgsl rename to test/builtins/frexp.wgsl diff --git a/test/intrinsics/frexp.wgsl.expected.glsl b/test/builtins/frexp.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/frexp.wgsl.expected.glsl rename to test/builtins/frexp.wgsl.expected.glsl diff --git a/test/intrinsics/frexp.wgsl.expected.hlsl b/test/builtins/frexp.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/frexp.wgsl.expected.hlsl rename to test/builtins/frexp.wgsl.expected.hlsl diff --git a/test/intrinsics/frexp.wgsl.expected.msl b/test/builtins/frexp.wgsl.expected.msl similarity index 100% rename from test/intrinsics/frexp.wgsl.expected.msl rename to test/builtins/frexp.wgsl.expected.msl diff --git a/test/intrinsics/frexp.wgsl.expected.spvasm b/test/builtins/frexp.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/frexp.wgsl.expected.spvasm rename to test/builtins/frexp.wgsl.expected.spvasm diff --git a/test/intrinsics/frexp.wgsl.expected.wgsl b/test/builtins/frexp.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/frexp.wgsl.expected.wgsl rename to test/builtins/frexp.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/abs/002533.wgsl b/test/builtins/gen/abs/002533.wgsl similarity index 88% rename from test/intrinsics/gen/abs/002533.wgsl rename to test/builtins/gen/abs/002533.wgsl index 1a7c3f8982..0a476d353f 100644 --- a/test/intrinsics/gen/abs/002533.wgsl +++ b/test/builtins/gen/abs/002533.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/abs/002533.wgsl.expected.glsl b/test/builtins/gen/abs/002533.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/abs/002533.wgsl.expected.glsl rename to test/builtins/gen/abs/002533.wgsl.expected.glsl diff --git a/test/intrinsics/gen/abs/002533.wgsl.expected.hlsl b/test/builtins/gen/abs/002533.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/abs/002533.wgsl.expected.hlsl rename to test/builtins/gen/abs/002533.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/abs/002533.wgsl.expected.msl b/test/builtins/gen/abs/002533.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/abs/002533.wgsl.expected.msl rename to test/builtins/gen/abs/002533.wgsl.expected.msl diff --git a/test/intrinsics/gen/abs/002533.wgsl.expected.spvasm b/test/builtins/gen/abs/002533.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/abs/002533.wgsl.expected.spvasm rename to test/builtins/gen/abs/002533.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/abs/002533.wgsl.expected.wgsl b/test/builtins/gen/abs/002533.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/abs/002533.wgsl.expected.wgsl rename to test/builtins/gen/abs/002533.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/abs/005174.wgsl b/test/builtins/gen/abs/005174.wgsl similarity index 88% rename from test/intrinsics/gen/abs/005174.wgsl rename to test/builtins/gen/abs/005174.wgsl index ecbf4094e6..25a250addd 100644 --- a/test/intrinsics/gen/abs/005174.wgsl +++ b/test/builtins/gen/abs/005174.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/abs/005174.wgsl.expected.glsl b/test/builtins/gen/abs/005174.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/abs/005174.wgsl.expected.glsl rename to test/builtins/gen/abs/005174.wgsl.expected.glsl diff --git a/test/intrinsics/gen/abs/005174.wgsl.expected.hlsl b/test/builtins/gen/abs/005174.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/abs/005174.wgsl.expected.hlsl rename to test/builtins/gen/abs/005174.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/abs/005174.wgsl.expected.msl b/test/builtins/gen/abs/005174.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/abs/005174.wgsl.expected.msl rename to test/builtins/gen/abs/005174.wgsl.expected.msl diff --git a/test/intrinsics/gen/abs/005174.wgsl.expected.spvasm b/test/builtins/gen/abs/005174.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/abs/005174.wgsl.expected.spvasm rename to test/builtins/gen/abs/005174.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/abs/005174.wgsl.expected.wgsl b/test/builtins/gen/abs/005174.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/abs/005174.wgsl.expected.wgsl rename to test/builtins/gen/abs/005174.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/abs/1ce782.wgsl b/test/builtins/gen/abs/1ce782.wgsl similarity index 88% rename from test/intrinsics/gen/abs/1ce782.wgsl rename to test/builtins/gen/abs/1ce782.wgsl index 7a7666e2cc..a9903ca8b7 100644 --- a/test/intrinsics/gen/abs/1ce782.wgsl +++ b/test/builtins/gen/abs/1ce782.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/abs/1ce782.wgsl.expected.glsl b/test/builtins/gen/abs/1ce782.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/abs/1ce782.wgsl.expected.glsl rename to test/builtins/gen/abs/1ce782.wgsl.expected.glsl diff --git a/test/intrinsics/gen/abs/1ce782.wgsl.expected.hlsl b/test/builtins/gen/abs/1ce782.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/abs/1ce782.wgsl.expected.hlsl rename to test/builtins/gen/abs/1ce782.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/abs/1ce782.wgsl.expected.msl b/test/builtins/gen/abs/1ce782.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/abs/1ce782.wgsl.expected.msl rename to test/builtins/gen/abs/1ce782.wgsl.expected.msl diff --git a/test/intrinsics/gen/abs/1ce782.wgsl.expected.spvasm b/test/builtins/gen/abs/1ce782.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/abs/1ce782.wgsl.expected.spvasm rename to test/builtins/gen/abs/1ce782.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/abs/1ce782.wgsl.expected.wgsl b/test/builtins/gen/abs/1ce782.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/abs/1ce782.wgsl.expected.wgsl rename to test/builtins/gen/abs/1ce782.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/abs/1e9d53.wgsl b/test/builtins/gen/abs/1e9d53.wgsl similarity index 88% rename from test/intrinsics/gen/abs/1e9d53.wgsl rename to test/builtins/gen/abs/1e9d53.wgsl index 45cac6d961..ea898e91e9 100644 --- a/test/intrinsics/gen/abs/1e9d53.wgsl +++ b/test/builtins/gen/abs/1e9d53.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/abs/1e9d53.wgsl.expected.glsl b/test/builtins/gen/abs/1e9d53.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/abs/1e9d53.wgsl.expected.glsl rename to test/builtins/gen/abs/1e9d53.wgsl.expected.glsl diff --git a/test/intrinsics/gen/abs/1e9d53.wgsl.expected.hlsl b/test/builtins/gen/abs/1e9d53.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/abs/1e9d53.wgsl.expected.hlsl rename to test/builtins/gen/abs/1e9d53.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/abs/1e9d53.wgsl.expected.msl b/test/builtins/gen/abs/1e9d53.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/abs/1e9d53.wgsl.expected.msl rename to test/builtins/gen/abs/1e9d53.wgsl.expected.msl diff --git a/test/intrinsics/gen/abs/1e9d53.wgsl.expected.spvasm b/test/builtins/gen/abs/1e9d53.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/abs/1e9d53.wgsl.expected.spvasm rename to test/builtins/gen/abs/1e9d53.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/abs/1e9d53.wgsl.expected.wgsl b/test/builtins/gen/abs/1e9d53.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/abs/1e9d53.wgsl.expected.wgsl rename to test/builtins/gen/abs/1e9d53.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/abs/467cd1.wgsl b/test/builtins/gen/abs/467cd1.wgsl similarity index 88% rename from test/intrinsics/gen/abs/467cd1.wgsl rename to test/builtins/gen/abs/467cd1.wgsl index 99b46e2621..e136df274f 100644 --- a/test/intrinsics/gen/abs/467cd1.wgsl +++ b/test/builtins/gen/abs/467cd1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/abs/467cd1.wgsl.expected.glsl b/test/builtins/gen/abs/467cd1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/abs/467cd1.wgsl.expected.glsl rename to test/builtins/gen/abs/467cd1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/abs/467cd1.wgsl.expected.hlsl b/test/builtins/gen/abs/467cd1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/abs/467cd1.wgsl.expected.hlsl rename to test/builtins/gen/abs/467cd1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/abs/467cd1.wgsl.expected.msl b/test/builtins/gen/abs/467cd1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/abs/467cd1.wgsl.expected.msl rename to test/builtins/gen/abs/467cd1.wgsl.expected.msl diff --git a/test/intrinsics/gen/abs/467cd1.wgsl.expected.spvasm b/test/builtins/gen/abs/467cd1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/abs/467cd1.wgsl.expected.spvasm rename to test/builtins/gen/abs/467cd1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/abs/467cd1.wgsl.expected.wgsl b/test/builtins/gen/abs/467cd1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/abs/467cd1.wgsl.expected.wgsl rename to test/builtins/gen/abs/467cd1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/abs/4ad288.wgsl b/test/builtins/gen/abs/4ad288.wgsl similarity index 88% rename from test/intrinsics/gen/abs/4ad288.wgsl rename to test/builtins/gen/abs/4ad288.wgsl index b342fa722c..b33ffaad6e 100644 --- a/test/intrinsics/gen/abs/4ad288.wgsl +++ b/test/builtins/gen/abs/4ad288.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/abs/4ad288.wgsl.expected.glsl b/test/builtins/gen/abs/4ad288.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/abs/4ad288.wgsl.expected.glsl rename to test/builtins/gen/abs/4ad288.wgsl.expected.glsl diff --git a/test/intrinsics/gen/abs/4ad288.wgsl.expected.hlsl b/test/builtins/gen/abs/4ad288.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/abs/4ad288.wgsl.expected.hlsl rename to test/builtins/gen/abs/4ad288.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/abs/4ad288.wgsl.expected.msl b/test/builtins/gen/abs/4ad288.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/abs/4ad288.wgsl.expected.msl rename to test/builtins/gen/abs/4ad288.wgsl.expected.msl diff --git a/test/intrinsics/gen/abs/4ad288.wgsl.expected.spvasm b/test/builtins/gen/abs/4ad288.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/abs/4ad288.wgsl.expected.spvasm rename to test/builtins/gen/abs/4ad288.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/abs/4ad288.wgsl.expected.wgsl b/test/builtins/gen/abs/4ad288.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/abs/4ad288.wgsl.expected.wgsl rename to test/builtins/gen/abs/4ad288.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/abs/5ad50a.wgsl b/test/builtins/gen/abs/5ad50a.wgsl similarity index 88% rename from test/intrinsics/gen/abs/5ad50a.wgsl rename to test/builtins/gen/abs/5ad50a.wgsl index 8cd67254d7..6f40a4b31e 100644 --- a/test/intrinsics/gen/abs/5ad50a.wgsl +++ b/test/builtins/gen/abs/5ad50a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/abs/5ad50a.wgsl.expected.glsl b/test/builtins/gen/abs/5ad50a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/abs/5ad50a.wgsl.expected.glsl rename to test/builtins/gen/abs/5ad50a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/abs/5ad50a.wgsl.expected.hlsl b/test/builtins/gen/abs/5ad50a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/abs/5ad50a.wgsl.expected.hlsl rename to test/builtins/gen/abs/5ad50a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/abs/5ad50a.wgsl.expected.msl b/test/builtins/gen/abs/5ad50a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/abs/5ad50a.wgsl.expected.msl rename to test/builtins/gen/abs/5ad50a.wgsl.expected.msl diff --git a/test/intrinsics/gen/abs/5ad50a.wgsl.expected.spvasm b/test/builtins/gen/abs/5ad50a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/abs/5ad50a.wgsl.expected.spvasm rename to test/builtins/gen/abs/5ad50a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/abs/5ad50a.wgsl.expected.wgsl b/test/builtins/gen/abs/5ad50a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/abs/5ad50a.wgsl.expected.wgsl rename to test/builtins/gen/abs/5ad50a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/abs/7326de.wgsl b/test/builtins/gen/abs/7326de.wgsl similarity index 88% rename from test/intrinsics/gen/abs/7326de.wgsl rename to test/builtins/gen/abs/7326de.wgsl index ce2be5384e..b06e0c3cd9 100644 --- a/test/intrinsics/gen/abs/7326de.wgsl +++ b/test/builtins/gen/abs/7326de.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/abs/7326de.wgsl.expected.glsl b/test/builtins/gen/abs/7326de.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/abs/7326de.wgsl.expected.glsl rename to test/builtins/gen/abs/7326de.wgsl.expected.glsl diff --git a/test/intrinsics/gen/abs/7326de.wgsl.expected.hlsl b/test/builtins/gen/abs/7326de.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/abs/7326de.wgsl.expected.hlsl rename to test/builtins/gen/abs/7326de.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/abs/7326de.wgsl.expected.msl b/test/builtins/gen/abs/7326de.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/abs/7326de.wgsl.expected.msl rename to test/builtins/gen/abs/7326de.wgsl.expected.msl diff --git a/test/intrinsics/gen/abs/7326de.wgsl.expected.spvasm b/test/builtins/gen/abs/7326de.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/abs/7326de.wgsl.expected.spvasm rename to test/builtins/gen/abs/7326de.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/abs/7326de.wgsl.expected.wgsl b/test/builtins/gen/abs/7326de.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/abs/7326de.wgsl.expected.wgsl rename to test/builtins/gen/abs/7326de.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/abs/7f28e6.wgsl b/test/builtins/gen/abs/7f28e6.wgsl similarity index 88% rename from test/intrinsics/gen/abs/7f28e6.wgsl rename to test/builtins/gen/abs/7f28e6.wgsl index cbdeef0f35..51d137c265 100644 --- a/test/intrinsics/gen/abs/7f28e6.wgsl +++ b/test/builtins/gen/abs/7f28e6.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/abs/7f28e6.wgsl.expected.glsl b/test/builtins/gen/abs/7f28e6.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/abs/7f28e6.wgsl.expected.glsl rename to test/builtins/gen/abs/7f28e6.wgsl.expected.glsl diff --git a/test/intrinsics/gen/abs/7f28e6.wgsl.expected.hlsl b/test/builtins/gen/abs/7f28e6.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/abs/7f28e6.wgsl.expected.hlsl rename to test/builtins/gen/abs/7f28e6.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/abs/7f28e6.wgsl.expected.msl b/test/builtins/gen/abs/7f28e6.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/abs/7f28e6.wgsl.expected.msl rename to test/builtins/gen/abs/7f28e6.wgsl.expected.msl diff --git a/test/intrinsics/gen/abs/7f28e6.wgsl.expected.spvasm b/test/builtins/gen/abs/7f28e6.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/abs/7f28e6.wgsl.expected.spvasm rename to test/builtins/gen/abs/7f28e6.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/abs/7f28e6.wgsl.expected.wgsl b/test/builtins/gen/abs/7f28e6.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/abs/7f28e6.wgsl.expected.wgsl rename to test/builtins/gen/abs/7f28e6.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/abs/7faa9e.wgsl b/test/builtins/gen/abs/7faa9e.wgsl similarity index 88% rename from test/intrinsics/gen/abs/7faa9e.wgsl rename to test/builtins/gen/abs/7faa9e.wgsl index 8b250ee774..5136e6f816 100644 --- a/test/intrinsics/gen/abs/7faa9e.wgsl +++ b/test/builtins/gen/abs/7faa9e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/abs/7faa9e.wgsl.expected.glsl b/test/builtins/gen/abs/7faa9e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/abs/7faa9e.wgsl.expected.glsl rename to test/builtins/gen/abs/7faa9e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/abs/7faa9e.wgsl.expected.hlsl b/test/builtins/gen/abs/7faa9e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/abs/7faa9e.wgsl.expected.hlsl rename to test/builtins/gen/abs/7faa9e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/abs/7faa9e.wgsl.expected.msl b/test/builtins/gen/abs/7faa9e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/abs/7faa9e.wgsl.expected.msl rename to test/builtins/gen/abs/7faa9e.wgsl.expected.msl diff --git a/test/intrinsics/gen/abs/7faa9e.wgsl.expected.spvasm b/test/builtins/gen/abs/7faa9e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/abs/7faa9e.wgsl.expected.spvasm rename to test/builtins/gen/abs/7faa9e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/abs/7faa9e.wgsl.expected.wgsl b/test/builtins/gen/abs/7faa9e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/abs/7faa9e.wgsl.expected.wgsl rename to test/builtins/gen/abs/7faa9e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/abs/9c80a6.wgsl b/test/builtins/gen/abs/9c80a6.wgsl similarity index 88% rename from test/intrinsics/gen/abs/9c80a6.wgsl rename to test/builtins/gen/abs/9c80a6.wgsl index 71ef852786..7df89951f1 100644 --- a/test/intrinsics/gen/abs/9c80a6.wgsl +++ b/test/builtins/gen/abs/9c80a6.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/abs/9c80a6.wgsl.expected.glsl b/test/builtins/gen/abs/9c80a6.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/abs/9c80a6.wgsl.expected.glsl rename to test/builtins/gen/abs/9c80a6.wgsl.expected.glsl diff --git a/test/intrinsics/gen/abs/9c80a6.wgsl.expected.hlsl b/test/builtins/gen/abs/9c80a6.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/abs/9c80a6.wgsl.expected.hlsl rename to test/builtins/gen/abs/9c80a6.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/abs/9c80a6.wgsl.expected.msl b/test/builtins/gen/abs/9c80a6.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/abs/9c80a6.wgsl.expected.msl rename to test/builtins/gen/abs/9c80a6.wgsl.expected.msl diff --git a/test/intrinsics/gen/abs/9c80a6.wgsl.expected.spvasm b/test/builtins/gen/abs/9c80a6.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/abs/9c80a6.wgsl.expected.spvasm rename to test/builtins/gen/abs/9c80a6.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/abs/9c80a6.wgsl.expected.wgsl b/test/builtins/gen/abs/9c80a6.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/abs/9c80a6.wgsl.expected.wgsl rename to test/builtins/gen/abs/9c80a6.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/abs/b96037.wgsl b/test/builtins/gen/abs/b96037.wgsl similarity index 88% rename from test/intrinsics/gen/abs/b96037.wgsl rename to test/builtins/gen/abs/b96037.wgsl index dddc75e408..f3a6385e3a 100644 --- a/test/intrinsics/gen/abs/b96037.wgsl +++ b/test/builtins/gen/abs/b96037.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/abs/b96037.wgsl.expected.glsl b/test/builtins/gen/abs/b96037.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/abs/b96037.wgsl.expected.glsl rename to test/builtins/gen/abs/b96037.wgsl.expected.glsl diff --git a/test/intrinsics/gen/abs/b96037.wgsl.expected.hlsl b/test/builtins/gen/abs/b96037.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/abs/b96037.wgsl.expected.hlsl rename to test/builtins/gen/abs/b96037.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/abs/b96037.wgsl.expected.msl b/test/builtins/gen/abs/b96037.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/abs/b96037.wgsl.expected.msl rename to test/builtins/gen/abs/b96037.wgsl.expected.msl diff --git a/test/intrinsics/gen/abs/b96037.wgsl.expected.spvasm b/test/builtins/gen/abs/b96037.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/abs/b96037.wgsl.expected.spvasm rename to test/builtins/gen/abs/b96037.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/abs/b96037.wgsl.expected.wgsl b/test/builtins/gen/abs/b96037.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/abs/b96037.wgsl.expected.wgsl rename to test/builtins/gen/abs/b96037.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/acos/489247.wgsl b/test/builtins/gen/acos/489247.wgsl similarity index 88% rename from test/intrinsics/gen/acos/489247.wgsl rename to test/builtins/gen/acos/489247.wgsl index d2f227ac45..5f6b1246fb 100644 --- a/test/intrinsics/gen/acos/489247.wgsl +++ b/test/builtins/gen/acos/489247.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/acos/489247.wgsl.expected.glsl b/test/builtins/gen/acos/489247.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/acos/489247.wgsl.expected.glsl rename to test/builtins/gen/acos/489247.wgsl.expected.glsl diff --git a/test/intrinsics/gen/acos/489247.wgsl.expected.hlsl b/test/builtins/gen/acos/489247.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/acos/489247.wgsl.expected.hlsl rename to test/builtins/gen/acos/489247.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/acos/489247.wgsl.expected.msl b/test/builtins/gen/acos/489247.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/acos/489247.wgsl.expected.msl rename to test/builtins/gen/acos/489247.wgsl.expected.msl diff --git a/test/intrinsics/gen/acos/489247.wgsl.expected.spvasm b/test/builtins/gen/acos/489247.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/acos/489247.wgsl.expected.spvasm rename to test/builtins/gen/acos/489247.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/acos/489247.wgsl.expected.wgsl b/test/builtins/gen/acos/489247.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/acos/489247.wgsl.expected.wgsl rename to test/builtins/gen/acos/489247.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/acos/8e2acf.wgsl b/test/builtins/gen/acos/8e2acf.wgsl similarity index 88% rename from test/intrinsics/gen/acos/8e2acf.wgsl rename to test/builtins/gen/acos/8e2acf.wgsl index e085faec12..5e18348734 100644 --- a/test/intrinsics/gen/acos/8e2acf.wgsl +++ b/test/builtins/gen/acos/8e2acf.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/acos/8e2acf.wgsl.expected.glsl b/test/builtins/gen/acos/8e2acf.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/acos/8e2acf.wgsl.expected.glsl rename to test/builtins/gen/acos/8e2acf.wgsl.expected.glsl diff --git a/test/intrinsics/gen/acos/8e2acf.wgsl.expected.hlsl b/test/builtins/gen/acos/8e2acf.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/acos/8e2acf.wgsl.expected.hlsl rename to test/builtins/gen/acos/8e2acf.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/acos/8e2acf.wgsl.expected.msl b/test/builtins/gen/acos/8e2acf.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/acos/8e2acf.wgsl.expected.msl rename to test/builtins/gen/acos/8e2acf.wgsl.expected.msl diff --git a/test/intrinsics/gen/acos/8e2acf.wgsl.expected.spvasm b/test/builtins/gen/acos/8e2acf.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/acos/8e2acf.wgsl.expected.spvasm rename to test/builtins/gen/acos/8e2acf.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/acos/8e2acf.wgsl.expected.wgsl b/test/builtins/gen/acos/8e2acf.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/acos/8e2acf.wgsl.expected.wgsl rename to test/builtins/gen/acos/8e2acf.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/acos/a610c4.wgsl b/test/builtins/gen/acos/a610c4.wgsl similarity index 88% rename from test/intrinsics/gen/acos/a610c4.wgsl rename to test/builtins/gen/acos/a610c4.wgsl index 7f7be34718..88d8cc25d6 100644 --- a/test/intrinsics/gen/acos/a610c4.wgsl +++ b/test/builtins/gen/acos/a610c4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/acos/a610c4.wgsl.expected.glsl b/test/builtins/gen/acos/a610c4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/acos/a610c4.wgsl.expected.glsl rename to test/builtins/gen/acos/a610c4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/acos/a610c4.wgsl.expected.hlsl b/test/builtins/gen/acos/a610c4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/acos/a610c4.wgsl.expected.hlsl rename to test/builtins/gen/acos/a610c4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/acos/a610c4.wgsl.expected.msl b/test/builtins/gen/acos/a610c4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/acos/a610c4.wgsl.expected.msl rename to test/builtins/gen/acos/a610c4.wgsl.expected.msl diff --git a/test/intrinsics/gen/acos/a610c4.wgsl.expected.spvasm b/test/builtins/gen/acos/a610c4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/acos/a610c4.wgsl.expected.spvasm rename to test/builtins/gen/acos/a610c4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/acos/a610c4.wgsl.expected.wgsl b/test/builtins/gen/acos/a610c4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/acos/a610c4.wgsl.expected.wgsl rename to test/builtins/gen/acos/a610c4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/acos/dfc915.wgsl b/test/builtins/gen/acos/dfc915.wgsl similarity index 88% rename from test/intrinsics/gen/acos/dfc915.wgsl rename to test/builtins/gen/acos/dfc915.wgsl index 5e27bf8a0f..aa36605444 100644 --- a/test/intrinsics/gen/acos/dfc915.wgsl +++ b/test/builtins/gen/acos/dfc915.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/acos/dfc915.wgsl.expected.glsl b/test/builtins/gen/acos/dfc915.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/acos/dfc915.wgsl.expected.glsl rename to test/builtins/gen/acos/dfc915.wgsl.expected.glsl diff --git a/test/intrinsics/gen/acos/dfc915.wgsl.expected.hlsl b/test/builtins/gen/acos/dfc915.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/acos/dfc915.wgsl.expected.hlsl rename to test/builtins/gen/acos/dfc915.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/acos/dfc915.wgsl.expected.msl b/test/builtins/gen/acos/dfc915.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/acos/dfc915.wgsl.expected.msl rename to test/builtins/gen/acos/dfc915.wgsl.expected.msl diff --git a/test/intrinsics/gen/acos/dfc915.wgsl.expected.spvasm b/test/builtins/gen/acos/dfc915.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/acos/dfc915.wgsl.expected.spvasm rename to test/builtins/gen/acos/dfc915.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/acos/dfc915.wgsl.expected.wgsl b/test/builtins/gen/acos/dfc915.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/acos/dfc915.wgsl.expected.wgsl rename to test/builtins/gen/acos/dfc915.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/all/353d6a.wgsl b/test/builtins/gen/all/353d6a.wgsl similarity index 88% rename from test/intrinsics/gen/all/353d6a.wgsl rename to test/builtins/gen/all/353d6a.wgsl index fbfe933b7f..985d068e51 100644 --- a/test/intrinsics/gen/all/353d6a.wgsl +++ b/test/builtins/gen/all/353d6a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/all/353d6a.wgsl.expected.glsl b/test/builtins/gen/all/353d6a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/all/353d6a.wgsl.expected.glsl rename to test/builtins/gen/all/353d6a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/all/353d6a.wgsl.expected.hlsl b/test/builtins/gen/all/353d6a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/all/353d6a.wgsl.expected.hlsl rename to test/builtins/gen/all/353d6a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/all/353d6a.wgsl.expected.msl b/test/builtins/gen/all/353d6a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/all/353d6a.wgsl.expected.msl rename to test/builtins/gen/all/353d6a.wgsl.expected.msl diff --git a/test/intrinsics/gen/all/353d6a.wgsl.expected.spvasm b/test/builtins/gen/all/353d6a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/all/353d6a.wgsl.expected.spvasm rename to test/builtins/gen/all/353d6a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/all/353d6a.wgsl.expected.wgsl b/test/builtins/gen/all/353d6a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/all/353d6a.wgsl.expected.wgsl rename to test/builtins/gen/all/353d6a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/all/986c7b.wgsl b/test/builtins/gen/all/986c7b.wgsl similarity index 88% rename from test/intrinsics/gen/all/986c7b.wgsl rename to test/builtins/gen/all/986c7b.wgsl index 515f3a30cb..7f58c255ee 100644 --- a/test/intrinsics/gen/all/986c7b.wgsl +++ b/test/builtins/gen/all/986c7b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/all/986c7b.wgsl.expected.glsl b/test/builtins/gen/all/986c7b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/all/986c7b.wgsl.expected.glsl rename to test/builtins/gen/all/986c7b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/all/986c7b.wgsl.expected.hlsl b/test/builtins/gen/all/986c7b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/all/986c7b.wgsl.expected.hlsl rename to test/builtins/gen/all/986c7b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/all/986c7b.wgsl.expected.msl b/test/builtins/gen/all/986c7b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/all/986c7b.wgsl.expected.msl rename to test/builtins/gen/all/986c7b.wgsl.expected.msl diff --git a/test/intrinsics/gen/all/986c7b.wgsl.expected.spvasm b/test/builtins/gen/all/986c7b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/all/986c7b.wgsl.expected.spvasm rename to test/builtins/gen/all/986c7b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/all/986c7b.wgsl.expected.wgsl b/test/builtins/gen/all/986c7b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/all/986c7b.wgsl.expected.wgsl rename to test/builtins/gen/all/986c7b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/all/bd2dba.wgsl b/test/builtins/gen/all/bd2dba.wgsl similarity index 88% rename from test/intrinsics/gen/all/bd2dba.wgsl rename to test/builtins/gen/all/bd2dba.wgsl index 657678fd43..f36e3f7fc7 100644 --- a/test/intrinsics/gen/all/bd2dba.wgsl +++ b/test/builtins/gen/all/bd2dba.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/all/bd2dba.wgsl.expected.glsl b/test/builtins/gen/all/bd2dba.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/all/bd2dba.wgsl.expected.glsl rename to test/builtins/gen/all/bd2dba.wgsl.expected.glsl diff --git a/test/intrinsics/gen/all/bd2dba.wgsl.expected.hlsl b/test/builtins/gen/all/bd2dba.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/all/bd2dba.wgsl.expected.hlsl rename to test/builtins/gen/all/bd2dba.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/all/bd2dba.wgsl.expected.msl b/test/builtins/gen/all/bd2dba.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/all/bd2dba.wgsl.expected.msl rename to test/builtins/gen/all/bd2dba.wgsl.expected.msl diff --git a/test/intrinsics/gen/all/bd2dba.wgsl.expected.spvasm b/test/builtins/gen/all/bd2dba.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/all/bd2dba.wgsl.expected.spvasm rename to test/builtins/gen/all/bd2dba.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/all/bd2dba.wgsl.expected.wgsl b/test/builtins/gen/all/bd2dba.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/all/bd2dba.wgsl.expected.wgsl rename to test/builtins/gen/all/bd2dba.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/all/f46790.wgsl b/test/builtins/gen/all/f46790.wgsl similarity index 88% rename from test/intrinsics/gen/all/f46790.wgsl rename to test/builtins/gen/all/f46790.wgsl index 875da79314..e3e3f728af 100644 --- a/test/intrinsics/gen/all/f46790.wgsl +++ b/test/builtins/gen/all/f46790.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/all/f46790.wgsl.expected.glsl b/test/builtins/gen/all/f46790.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/all/f46790.wgsl.expected.glsl rename to test/builtins/gen/all/f46790.wgsl.expected.glsl diff --git a/test/intrinsics/gen/all/f46790.wgsl.expected.hlsl b/test/builtins/gen/all/f46790.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/all/f46790.wgsl.expected.hlsl rename to test/builtins/gen/all/f46790.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/all/f46790.wgsl.expected.msl b/test/builtins/gen/all/f46790.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/all/f46790.wgsl.expected.msl rename to test/builtins/gen/all/f46790.wgsl.expected.msl diff --git a/test/intrinsics/gen/all/f46790.wgsl.expected.spvasm b/test/builtins/gen/all/f46790.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/all/f46790.wgsl.expected.spvasm rename to test/builtins/gen/all/f46790.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/all/f46790.wgsl.expected.wgsl b/test/builtins/gen/all/f46790.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/all/f46790.wgsl.expected.wgsl rename to test/builtins/gen/all/f46790.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/any/083428.wgsl b/test/builtins/gen/any/083428.wgsl similarity index 88% rename from test/intrinsics/gen/any/083428.wgsl rename to test/builtins/gen/any/083428.wgsl index 8aecc0f1fa..542fbcd865 100644 --- a/test/intrinsics/gen/any/083428.wgsl +++ b/test/builtins/gen/any/083428.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/any/083428.wgsl.expected.glsl b/test/builtins/gen/any/083428.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/any/083428.wgsl.expected.glsl rename to test/builtins/gen/any/083428.wgsl.expected.glsl diff --git a/test/intrinsics/gen/any/083428.wgsl.expected.hlsl b/test/builtins/gen/any/083428.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/any/083428.wgsl.expected.hlsl rename to test/builtins/gen/any/083428.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/any/083428.wgsl.expected.msl b/test/builtins/gen/any/083428.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/any/083428.wgsl.expected.msl rename to test/builtins/gen/any/083428.wgsl.expected.msl diff --git a/test/intrinsics/gen/any/083428.wgsl.expected.spvasm b/test/builtins/gen/any/083428.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/any/083428.wgsl.expected.spvasm rename to test/builtins/gen/any/083428.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/any/083428.wgsl.expected.wgsl b/test/builtins/gen/any/083428.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/any/083428.wgsl.expected.wgsl rename to test/builtins/gen/any/083428.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/any/0e3e58.wgsl b/test/builtins/gen/any/0e3e58.wgsl similarity index 88% rename from test/intrinsics/gen/any/0e3e58.wgsl rename to test/builtins/gen/any/0e3e58.wgsl index 71bda253ab..506de4c1cd 100644 --- a/test/intrinsics/gen/any/0e3e58.wgsl +++ b/test/builtins/gen/any/0e3e58.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/any/0e3e58.wgsl.expected.glsl b/test/builtins/gen/any/0e3e58.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/any/0e3e58.wgsl.expected.glsl rename to test/builtins/gen/any/0e3e58.wgsl.expected.glsl diff --git a/test/intrinsics/gen/any/0e3e58.wgsl.expected.hlsl b/test/builtins/gen/any/0e3e58.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/any/0e3e58.wgsl.expected.hlsl rename to test/builtins/gen/any/0e3e58.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/any/0e3e58.wgsl.expected.msl b/test/builtins/gen/any/0e3e58.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/any/0e3e58.wgsl.expected.msl rename to test/builtins/gen/any/0e3e58.wgsl.expected.msl diff --git a/test/intrinsics/gen/any/0e3e58.wgsl.expected.spvasm b/test/builtins/gen/any/0e3e58.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/any/0e3e58.wgsl.expected.spvasm rename to test/builtins/gen/any/0e3e58.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/any/0e3e58.wgsl.expected.wgsl b/test/builtins/gen/any/0e3e58.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/any/0e3e58.wgsl.expected.wgsl rename to test/builtins/gen/any/0e3e58.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/any/2ab91a.wgsl b/test/builtins/gen/any/2ab91a.wgsl similarity index 88% rename from test/intrinsics/gen/any/2ab91a.wgsl rename to test/builtins/gen/any/2ab91a.wgsl index 6b6b067cf3..7e32b80d47 100644 --- a/test/intrinsics/gen/any/2ab91a.wgsl +++ b/test/builtins/gen/any/2ab91a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/any/2ab91a.wgsl.expected.glsl b/test/builtins/gen/any/2ab91a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/any/2ab91a.wgsl.expected.glsl rename to test/builtins/gen/any/2ab91a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/any/2ab91a.wgsl.expected.hlsl b/test/builtins/gen/any/2ab91a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/any/2ab91a.wgsl.expected.hlsl rename to test/builtins/gen/any/2ab91a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/any/2ab91a.wgsl.expected.msl b/test/builtins/gen/any/2ab91a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/any/2ab91a.wgsl.expected.msl rename to test/builtins/gen/any/2ab91a.wgsl.expected.msl diff --git a/test/intrinsics/gen/any/2ab91a.wgsl.expected.spvasm b/test/builtins/gen/any/2ab91a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/any/2ab91a.wgsl.expected.spvasm rename to test/builtins/gen/any/2ab91a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/any/2ab91a.wgsl.expected.wgsl b/test/builtins/gen/any/2ab91a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/any/2ab91a.wgsl.expected.wgsl rename to test/builtins/gen/any/2ab91a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/any/e755c1.wgsl b/test/builtins/gen/any/e755c1.wgsl similarity index 88% rename from test/intrinsics/gen/any/e755c1.wgsl rename to test/builtins/gen/any/e755c1.wgsl index b27d31abca..6362a687d8 100644 --- a/test/intrinsics/gen/any/e755c1.wgsl +++ b/test/builtins/gen/any/e755c1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/any/e755c1.wgsl.expected.glsl b/test/builtins/gen/any/e755c1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/any/e755c1.wgsl.expected.glsl rename to test/builtins/gen/any/e755c1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/any/e755c1.wgsl.expected.hlsl b/test/builtins/gen/any/e755c1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/any/e755c1.wgsl.expected.hlsl rename to test/builtins/gen/any/e755c1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/any/e755c1.wgsl.expected.msl b/test/builtins/gen/any/e755c1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/any/e755c1.wgsl.expected.msl rename to test/builtins/gen/any/e755c1.wgsl.expected.msl diff --git a/test/intrinsics/gen/any/e755c1.wgsl.expected.spvasm b/test/builtins/gen/any/e755c1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/any/e755c1.wgsl.expected.spvasm rename to test/builtins/gen/any/e755c1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/any/e755c1.wgsl.expected.wgsl b/test/builtins/gen/any/e755c1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/any/e755c1.wgsl.expected.wgsl rename to test/builtins/gen/any/e755c1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/arrayLength/1588cd.wgsl b/test/builtins/gen/arrayLength/1588cd.wgsl similarity index 90% rename from test/intrinsics/gen/arrayLength/1588cd.wgsl rename to test/builtins/gen/arrayLength/1588cd.wgsl index 727e8bdbd3..25f05b2bf9 100644 --- a/test/intrinsics/gen/arrayLength/1588cd.wgsl +++ b/test/builtins/gen/arrayLength/1588cd.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/arrayLength/1588cd.wgsl.expected.glsl b/test/builtins/gen/arrayLength/1588cd.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/arrayLength/1588cd.wgsl.expected.glsl rename to test/builtins/gen/arrayLength/1588cd.wgsl.expected.glsl diff --git a/test/intrinsics/gen/arrayLength/1588cd.wgsl.expected.hlsl b/test/builtins/gen/arrayLength/1588cd.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/arrayLength/1588cd.wgsl.expected.hlsl rename to test/builtins/gen/arrayLength/1588cd.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/arrayLength/1588cd.wgsl.expected.msl b/test/builtins/gen/arrayLength/1588cd.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/arrayLength/1588cd.wgsl.expected.msl rename to test/builtins/gen/arrayLength/1588cd.wgsl.expected.msl diff --git a/test/intrinsics/gen/arrayLength/1588cd.wgsl.expected.spvasm b/test/builtins/gen/arrayLength/1588cd.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/arrayLength/1588cd.wgsl.expected.spvasm rename to test/builtins/gen/arrayLength/1588cd.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/arrayLength/1588cd.wgsl.expected.wgsl b/test/builtins/gen/arrayLength/1588cd.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/arrayLength/1588cd.wgsl.expected.wgsl rename to test/builtins/gen/arrayLength/1588cd.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/arrayLength/61b1c7.wgsl b/test/builtins/gen/arrayLength/61b1c7.wgsl similarity index 90% rename from test/intrinsics/gen/arrayLength/61b1c7.wgsl rename to test/builtins/gen/arrayLength/61b1c7.wgsl index 02b7f3d723..1bac505ca9 100644 --- a/test/intrinsics/gen/arrayLength/61b1c7.wgsl +++ b/test/builtins/gen/arrayLength/61b1c7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/arrayLength/61b1c7.wgsl.expected.glsl b/test/builtins/gen/arrayLength/61b1c7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/arrayLength/61b1c7.wgsl.expected.glsl rename to test/builtins/gen/arrayLength/61b1c7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/arrayLength/61b1c7.wgsl.expected.hlsl b/test/builtins/gen/arrayLength/61b1c7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/arrayLength/61b1c7.wgsl.expected.hlsl rename to test/builtins/gen/arrayLength/61b1c7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/arrayLength/61b1c7.wgsl.expected.msl b/test/builtins/gen/arrayLength/61b1c7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/arrayLength/61b1c7.wgsl.expected.msl rename to test/builtins/gen/arrayLength/61b1c7.wgsl.expected.msl diff --git a/test/intrinsics/gen/arrayLength/61b1c7.wgsl.expected.spvasm b/test/builtins/gen/arrayLength/61b1c7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/arrayLength/61b1c7.wgsl.expected.spvasm rename to test/builtins/gen/arrayLength/61b1c7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/arrayLength/61b1c7.wgsl.expected.wgsl b/test/builtins/gen/arrayLength/61b1c7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/arrayLength/61b1c7.wgsl.expected.wgsl rename to test/builtins/gen/arrayLength/61b1c7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/arrayLength/a0f5ca.wgsl b/test/builtins/gen/arrayLength/a0f5ca.wgsl similarity index 90% rename from test/intrinsics/gen/arrayLength/a0f5ca.wgsl rename to test/builtins/gen/arrayLength/a0f5ca.wgsl index 192d2881f3..b313858633 100644 --- a/test/intrinsics/gen/arrayLength/a0f5ca.wgsl +++ b/test/builtins/gen/arrayLength/a0f5ca.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/arrayLength/a0f5ca.wgsl.expected.glsl b/test/builtins/gen/arrayLength/a0f5ca.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/arrayLength/a0f5ca.wgsl.expected.glsl rename to test/builtins/gen/arrayLength/a0f5ca.wgsl.expected.glsl diff --git a/test/intrinsics/gen/arrayLength/a0f5ca.wgsl.expected.hlsl b/test/builtins/gen/arrayLength/a0f5ca.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/arrayLength/a0f5ca.wgsl.expected.hlsl rename to test/builtins/gen/arrayLength/a0f5ca.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/arrayLength/a0f5ca.wgsl.expected.msl b/test/builtins/gen/arrayLength/a0f5ca.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/arrayLength/a0f5ca.wgsl.expected.msl rename to test/builtins/gen/arrayLength/a0f5ca.wgsl.expected.msl diff --git a/test/intrinsics/gen/arrayLength/a0f5ca.wgsl.expected.spvasm b/test/builtins/gen/arrayLength/a0f5ca.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/arrayLength/a0f5ca.wgsl.expected.spvasm rename to test/builtins/gen/arrayLength/a0f5ca.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/arrayLength/a0f5ca.wgsl.expected.wgsl b/test/builtins/gen/arrayLength/a0f5ca.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/arrayLength/a0f5ca.wgsl.expected.wgsl rename to test/builtins/gen/arrayLength/a0f5ca.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/arrayLength/cdd123.wgsl b/test/builtins/gen/arrayLength/cdd123.wgsl similarity index 90% rename from test/intrinsics/gen/arrayLength/cdd123.wgsl rename to test/builtins/gen/arrayLength/cdd123.wgsl index 03948a999b..0589da2d97 100644 --- a/test/intrinsics/gen/arrayLength/cdd123.wgsl +++ b/test/builtins/gen/arrayLength/cdd123.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/arrayLength/cdd123.wgsl.expected.glsl b/test/builtins/gen/arrayLength/cdd123.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/arrayLength/cdd123.wgsl.expected.glsl rename to test/builtins/gen/arrayLength/cdd123.wgsl.expected.glsl diff --git a/test/intrinsics/gen/arrayLength/cdd123.wgsl.expected.hlsl b/test/builtins/gen/arrayLength/cdd123.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/arrayLength/cdd123.wgsl.expected.hlsl rename to test/builtins/gen/arrayLength/cdd123.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/arrayLength/cdd123.wgsl.expected.msl b/test/builtins/gen/arrayLength/cdd123.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/arrayLength/cdd123.wgsl.expected.msl rename to test/builtins/gen/arrayLength/cdd123.wgsl.expected.msl diff --git a/test/intrinsics/gen/arrayLength/cdd123.wgsl.expected.spvasm b/test/builtins/gen/arrayLength/cdd123.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/arrayLength/cdd123.wgsl.expected.spvasm rename to test/builtins/gen/arrayLength/cdd123.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/arrayLength/cdd123.wgsl.expected.wgsl b/test/builtins/gen/arrayLength/cdd123.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/arrayLength/cdd123.wgsl.expected.wgsl rename to test/builtins/gen/arrayLength/cdd123.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/arrayLength/cfca0a.wgsl b/test/builtins/gen/arrayLength/cfca0a.wgsl similarity index 90% rename from test/intrinsics/gen/arrayLength/cfca0a.wgsl rename to test/builtins/gen/arrayLength/cfca0a.wgsl index e3f72dd27c..51f628b09a 100644 --- a/test/intrinsics/gen/arrayLength/cfca0a.wgsl +++ b/test/builtins/gen/arrayLength/cfca0a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/arrayLength/cfca0a.wgsl.expected.glsl b/test/builtins/gen/arrayLength/cfca0a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/arrayLength/cfca0a.wgsl.expected.glsl rename to test/builtins/gen/arrayLength/cfca0a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/arrayLength/cfca0a.wgsl.expected.hlsl b/test/builtins/gen/arrayLength/cfca0a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/arrayLength/cfca0a.wgsl.expected.hlsl rename to test/builtins/gen/arrayLength/cfca0a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/arrayLength/cfca0a.wgsl.expected.msl b/test/builtins/gen/arrayLength/cfca0a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/arrayLength/cfca0a.wgsl.expected.msl rename to test/builtins/gen/arrayLength/cfca0a.wgsl.expected.msl diff --git a/test/intrinsics/gen/arrayLength/cfca0a.wgsl.expected.spvasm b/test/builtins/gen/arrayLength/cfca0a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/arrayLength/cfca0a.wgsl.expected.spvasm rename to test/builtins/gen/arrayLength/cfca0a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/arrayLength/cfca0a.wgsl.expected.wgsl b/test/builtins/gen/arrayLength/cfca0a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/arrayLength/cfca0a.wgsl.expected.wgsl rename to test/builtins/gen/arrayLength/cfca0a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/arrayLength/eb510f.wgsl b/test/builtins/gen/arrayLength/eb510f.wgsl similarity index 90% rename from test/intrinsics/gen/arrayLength/eb510f.wgsl rename to test/builtins/gen/arrayLength/eb510f.wgsl index 86133e53b1..44ade8b2b3 100644 --- a/test/intrinsics/gen/arrayLength/eb510f.wgsl +++ b/test/builtins/gen/arrayLength/eb510f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/arrayLength/eb510f.wgsl.expected.glsl b/test/builtins/gen/arrayLength/eb510f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/arrayLength/eb510f.wgsl.expected.glsl rename to test/builtins/gen/arrayLength/eb510f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/arrayLength/eb510f.wgsl.expected.hlsl b/test/builtins/gen/arrayLength/eb510f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/arrayLength/eb510f.wgsl.expected.hlsl rename to test/builtins/gen/arrayLength/eb510f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/arrayLength/eb510f.wgsl.expected.msl b/test/builtins/gen/arrayLength/eb510f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/arrayLength/eb510f.wgsl.expected.msl rename to test/builtins/gen/arrayLength/eb510f.wgsl.expected.msl diff --git a/test/intrinsics/gen/arrayLength/eb510f.wgsl.expected.spvasm b/test/builtins/gen/arrayLength/eb510f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/arrayLength/eb510f.wgsl.expected.spvasm rename to test/builtins/gen/arrayLength/eb510f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/arrayLength/eb510f.wgsl.expected.wgsl b/test/builtins/gen/arrayLength/eb510f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/arrayLength/eb510f.wgsl.expected.wgsl rename to test/builtins/gen/arrayLength/eb510f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/asin/064953.wgsl b/test/builtins/gen/asin/064953.wgsl similarity index 88% rename from test/intrinsics/gen/asin/064953.wgsl rename to test/builtins/gen/asin/064953.wgsl index f72a8c5a45..5a08a252e7 100644 --- a/test/intrinsics/gen/asin/064953.wgsl +++ b/test/builtins/gen/asin/064953.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/asin/064953.wgsl.expected.glsl b/test/builtins/gen/asin/064953.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/asin/064953.wgsl.expected.glsl rename to test/builtins/gen/asin/064953.wgsl.expected.glsl diff --git a/test/intrinsics/gen/asin/064953.wgsl.expected.hlsl b/test/builtins/gen/asin/064953.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/asin/064953.wgsl.expected.hlsl rename to test/builtins/gen/asin/064953.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/asin/064953.wgsl.expected.msl b/test/builtins/gen/asin/064953.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/asin/064953.wgsl.expected.msl rename to test/builtins/gen/asin/064953.wgsl.expected.msl diff --git a/test/intrinsics/gen/asin/064953.wgsl.expected.spvasm b/test/builtins/gen/asin/064953.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/asin/064953.wgsl.expected.spvasm rename to test/builtins/gen/asin/064953.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/asin/064953.wgsl.expected.wgsl b/test/builtins/gen/asin/064953.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/asin/064953.wgsl.expected.wgsl rename to test/builtins/gen/asin/064953.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/asin/7b6a44.wgsl b/test/builtins/gen/asin/7b6a44.wgsl similarity index 88% rename from test/intrinsics/gen/asin/7b6a44.wgsl rename to test/builtins/gen/asin/7b6a44.wgsl index 6369852182..22ddf8b040 100644 --- a/test/intrinsics/gen/asin/7b6a44.wgsl +++ b/test/builtins/gen/asin/7b6a44.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/asin/7b6a44.wgsl.expected.glsl b/test/builtins/gen/asin/7b6a44.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/asin/7b6a44.wgsl.expected.glsl rename to test/builtins/gen/asin/7b6a44.wgsl.expected.glsl diff --git a/test/intrinsics/gen/asin/7b6a44.wgsl.expected.hlsl b/test/builtins/gen/asin/7b6a44.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/asin/7b6a44.wgsl.expected.hlsl rename to test/builtins/gen/asin/7b6a44.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/asin/7b6a44.wgsl.expected.msl b/test/builtins/gen/asin/7b6a44.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/asin/7b6a44.wgsl.expected.msl rename to test/builtins/gen/asin/7b6a44.wgsl.expected.msl diff --git a/test/intrinsics/gen/asin/7b6a44.wgsl.expected.spvasm b/test/builtins/gen/asin/7b6a44.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/asin/7b6a44.wgsl.expected.spvasm rename to test/builtins/gen/asin/7b6a44.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/asin/7b6a44.wgsl.expected.wgsl b/test/builtins/gen/asin/7b6a44.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/asin/7b6a44.wgsl.expected.wgsl rename to test/builtins/gen/asin/7b6a44.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/asin/8cd9c9.wgsl b/test/builtins/gen/asin/8cd9c9.wgsl similarity index 88% rename from test/intrinsics/gen/asin/8cd9c9.wgsl rename to test/builtins/gen/asin/8cd9c9.wgsl index 0f7abb0622..f5a9266950 100644 --- a/test/intrinsics/gen/asin/8cd9c9.wgsl +++ b/test/builtins/gen/asin/8cd9c9.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/asin/8cd9c9.wgsl.expected.glsl b/test/builtins/gen/asin/8cd9c9.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/asin/8cd9c9.wgsl.expected.glsl rename to test/builtins/gen/asin/8cd9c9.wgsl.expected.glsl diff --git a/test/intrinsics/gen/asin/8cd9c9.wgsl.expected.hlsl b/test/builtins/gen/asin/8cd9c9.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/asin/8cd9c9.wgsl.expected.hlsl rename to test/builtins/gen/asin/8cd9c9.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/asin/8cd9c9.wgsl.expected.msl b/test/builtins/gen/asin/8cd9c9.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/asin/8cd9c9.wgsl.expected.msl rename to test/builtins/gen/asin/8cd9c9.wgsl.expected.msl diff --git a/test/intrinsics/gen/asin/8cd9c9.wgsl.expected.spvasm b/test/builtins/gen/asin/8cd9c9.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/asin/8cd9c9.wgsl.expected.spvasm rename to test/builtins/gen/asin/8cd9c9.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/asin/8cd9c9.wgsl.expected.wgsl b/test/builtins/gen/asin/8cd9c9.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/asin/8cd9c9.wgsl.expected.wgsl rename to test/builtins/gen/asin/8cd9c9.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/asin/c0c272.wgsl b/test/builtins/gen/asin/c0c272.wgsl similarity index 88% rename from test/intrinsics/gen/asin/c0c272.wgsl rename to test/builtins/gen/asin/c0c272.wgsl index b673fe3d26..133657e522 100644 --- a/test/intrinsics/gen/asin/c0c272.wgsl +++ b/test/builtins/gen/asin/c0c272.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/asin/c0c272.wgsl.expected.glsl b/test/builtins/gen/asin/c0c272.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/asin/c0c272.wgsl.expected.glsl rename to test/builtins/gen/asin/c0c272.wgsl.expected.glsl diff --git a/test/intrinsics/gen/asin/c0c272.wgsl.expected.hlsl b/test/builtins/gen/asin/c0c272.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/asin/c0c272.wgsl.expected.hlsl rename to test/builtins/gen/asin/c0c272.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/asin/c0c272.wgsl.expected.msl b/test/builtins/gen/asin/c0c272.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/asin/c0c272.wgsl.expected.msl rename to test/builtins/gen/asin/c0c272.wgsl.expected.msl diff --git a/test/intrinsics/gen/asin/c0c272.wgsl.expected.spvasm b/test/builtins/gen/asin/c0c272.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/asin/c0c272.wgsl.expected.spvasm rename to test/builtins/gen/asin/c0c272.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/asin/c0c272.wgsl.expected.wgsl b/test/builtins/gen/asin/c0c272.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/asin/c0c272.wgsl.expected.wgsl rename to test/builtins/gen/asin/c0c272.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atan/02979a.wgsl b/test/builtins/gen/atan/02979a.wgsl similarity index 88% rename from test/intrinsics/gen/atan/02979a.wgsl rename to test/builtins/gen/atan/02979a.wgsl index fb9d082327..4624dbc241 100644 --- a/test/intrinsics/gen/atan/02979a.wgsl +++ b/test/builtins/gen/atan/02979a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atan/02979a.wgsl.expected.glsl b/test/builtins/gen/atan/02979a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atan/02979a.wgsl.expected.glsl rename to test/builtins/gen/atan/02979a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atan/02979a.wgsl.expected.hlsl b/test/builtins/gen/atan/02979a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atan/02979a.wgsl.expected.hlsl rename to test/builtins/gen/atan/02979a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atan/02979a.wgsl.expected.msl b/test/builtins/gen/atan/02979a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atan/02979a.wgsl.expected.msl rename to test/builtins/gen/atan/02979a.wgsl.expected.msl diff --git a/test/intrinsics/gen/atan/02979a.wgsl.expected.spvasm b/test/builtins/gen/atan/02979a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atan/02979a.wgsl.expected.spvasm rename to test/builtins/gen/atan/02979a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atan/02979a.wgsl.expected.wgsl b/test/builtins/gen/atan/02979a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atan/02979a.wgsl.expected.wgsl rename to test/builtins/gen/atan/02979a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atan/331e6d.wgsl b/test/builtins/gen/atan/331e6d.wgsl similarity index 88% rename from test/intrinsics/gen/atan/331e6d.wgsl rename to test/builtins/gen/atan/331e6d.wgsl index e090a638e0..43d3be6260 100644 --- a/test/intrinsics/gen/atan/331e6d.wgsl +++ b/test/builtins/gen/atan/331e6d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atan/331e6d.wgsl.expected.glsl b/test/builtins/gen/atan/331e6d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atan/331e6d.wgsl.expected.glsl rename to test/builtins/gen/atan/331e6d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atan/331e6d.wgsl.expected.hlsl b/test/builtins/gen/atan/331e6d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atan/331e6d.wgsl.expected.hlsl rename to test/builtins/gen/atan/331e6d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atan/331e6d.wgsl.expected.msl b/test/builtins/gen/atan/331e6d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atan/331e6d.wgsl.expected.msl rename to test/builtins/gen/atan/331e6d.wgsl.expected.msl diff --git a/test/intrinsics/gen/atan/331e6d.wgsl.expected.spvasm b/test/builtins/gen/atan/331e6d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atan/331e6d.wgsl.expected.spvasm rename to test/builtins/gen/atan/331e6d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atan/331e6d.wgsl.expected.wgsl b/test/builtins/gen/atan/331e6d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atan/331e6d.wgsl.expected.wgsl rename to test/builtins/gen/atan/331e6d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atan/a8b696.wgsl b/test/builtins/gen/atan/a8b696.wgsl similarity index 88% rename from test/intrinsics/gen/atan/a8b696.wgsl rename to test/builtins/gen/atan/a8b696.wgsl index 8b1c3cf6b3..4d946e69a0 100644 --- a/test/intrinsics/gen/atan/a8b696.wgsl +++ b/test/builtins/gen/atan/a8b696.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atan/a8b696.wgsl.expected.glsl b/test/builtins/gen/atan/a8b696.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atan/a8b696.wgsl.expected.glsl rename to test/builtins/gen/atan/a8b696.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atan/a8b696.wgsl.expected.hlsl b/test/builtins/gen/atan/a8b696.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atan/a8b696.wgsl.expected.hlsl rename to test/builtins/gen/atan/a8b696.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atan/a8b696.wgsl.expected.msl b/test/builtins/gen/atan/a8b696.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atan/a8b696.wgsl.expected.msl rename to test/builtins/gen/atan/a8b696.wgsl.expected.msl diff --git a/test/intrinsics/gen/atan/a8b696.wgsl.expected.spvasm b/test/builtins/gen/atan/a8b696.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atan/a8b696.wgsl.expected.spvasm rename to test/builtins/gen/atan/a8b696.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atan/a8b696.wgsl.expected.wgsl b/test/builtins/gen/atan/a8b696.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atan/a8b696.wgsl.expected.wgsl rename to test/builtins/gen/atan/a8b696.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atan/ad96e4.wgsl b/test/builtins/gen/atan/ad96e4.wgsl similarity index 88% rename from test/intrinsics/gen/atan/ad96e4.wgsl rename to test/builtins/gen/atan/ad96e4.wgsl index b334a9e930..f0d71edc18 100644 --- a/test/intrinsics/gen/atan/ad96e4.wgsl +++ b/test/builtins/gen/atan/ad96e4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atan/ad96e4.wgsl.expected.glsl b/test/builtins/gen/atan/ad96e4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atan/ad96e4.wgsl.expected.glsl rename to test/builtins/gen/atan/ad96e4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atan/ad96e4.wgsl.expected.hlsl b/test/builtins/gen/atan/ad96e4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atan/ad96e4.wgsl.expected.hlsl rename to test/builtins/gen/atan/ad96e4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atan/ad96e4.wgsl.expected.msl b/test/builtins/gen/atan/ad96e4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atan/ad96e4.wgsl.expected.msl rename to test/builtins/gen/atan/ad96e4.wgsl.expected.msl diff --git a/test/intrinsics/gen/atan/ad96e4.wgsl.expected.spvasm b/test/builtins/gen/atan/ad96e4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atan/ad96e4.wgsl.expected.spvasm rename to test/builtins/gen/atan/ad96e4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atan/ad96e4.wgsl.expected.wgsl b/test/builtins/gen/atan/ad96e4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atan/ad96e4.wgsl.expected.wgsl rename to test/builtins/gen/atan/ad96e4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atan2/57fb13.wgsl b/test/builtins/gen/atan2/57fb13.wgsl similarity index 89% rename from test/intrinsics/gen/atan2/57fb13.wgsl rename to test/builtins/gen/atan2/57fb13.wgsl index c18536fd12..0362c9d231 100644 --- a/test/intrinsics/gen/atan2/57fb13.wgsl +++ b/test/builtins/gen/atan2/57fb13.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atan2/57fb13.wgsl.expected.glsl b/test/builtins/gen/atan2/57fb13.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atan2/57fb13.wgsl.expected.glsl rename to test/builtins/gen/atan2/57fb13.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atan2/57fb13.wgsl.expected.hlsl b/test/builtins/gen/atan2/57fb13.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atan2/57fb13.wgsl.expected.hlsl rename to test/builtins/gen/atan2/57fb13.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atan2/57fb13.wgsl.expected.msl b/test/builtins/gen/atan2/57fb13.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atan2/57fb13.wgsl.expected.msl rename to test/builtins/gen/atan2/57fb13.wgsl.expected.msl diff --git a/test/intrinsics/gen/atan2/57fb13.wgsl.expected.spvasm b/test/builtins/gen/atan2/57fb13.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atan2/57fb13.wgsl.expected.spvasm rename to test/builtins/gen/atan2/57fb13.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atan2/57fb13.wgsl.expected.wgsl b/test/builtins/gen/atan2/57fb13.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atan2/57fb13.wgsl.expected.wgsl rename to test/builtins/gen/atan2/57fb13.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atan2/96057c.wgsl b/test/builtins/gen/atan2/96057c.wgsl similarity index 88% rename from test/intrinsics/gen/atan2/96057c.wgsl rename to test/builtins/gen/atan2/96057c.wgsl index 09557666a5..a3bad6221a 100644 --- a/test/intrinsics/gen/atan2/96057c.wgsl +++ b/test/builtins/gen/atan2/96057c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atan2/96057c.wgsl.expected.glsl b/test/builtins/gen/atan2/96057c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atan2/96057c.wgsl.expected.glsl rename to test/builtins/gen/atan2/96057c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atan2/96057c.wgsl.expected.hlsl b/test/builtins/gen/atan2/96057c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atan2/96057c.wgsl.expected.hlsl rename to test/builtins/gen/atan2/96057c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atan2/96057c.wgsl.expected.msl b/test/builtins/gen/atan2/96057c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atan2/96057c.wgsl.expected.msl rename to test/builtins/gen/atan2/96057c.wgsl.expected.msl diff --git a/test/intrinsics/gen/atan2/96057c.wgsl.expected.spvasm b/test/builtins/gen/atan2/96057c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atan2/96057c.wgsl.expected.spvasm rename to test/builtins/gen/atan2/96057c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atan2/96057c.wgsl.expected.wgsl b/test/builtins/gen/atan2/96057c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atan2/96057c.wgsl.expected.wgsl rename to test/builtins/gen/atan2/96057c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atan2/a70d0d.wgsl b/test/builtins/gen/atan2/a70d0d.wgsl similarity index 89% rename from test/intrinsics/gen/atan2/a70d0d.wgsl rename to test/builtins/gen/atan2/a70d0d.wgsl index 87a3c7a7f3..fe3ec65f48 100644 --- a/test/intrinsics/gen/atan2/a70d0d.wgsl +++ b/test/builtins/gen/atan2/a70d0d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atan2/a70d0d.wgsl.expected.glsl b/test/builtins/gen/atan2/a70d0d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atan2/a70d0d.wgsl.expected.glsl rename to test/builtins/gen/atan2/a70d0d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atan2/a70d0d.wgsl.expected.hlsl b/test/builtins/gen/atan2/a70d0d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atan2/a70d0d.wgsl.expected.hlsl rename to test/builtins/gen/atan2/a70d0d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atan2/a70d0d.wgsl.expected.msl b/test/builtins/gen/atan2/a70d0d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atan2/a70d0d.wgsl.expected.msl rename to test/builtins/gen/atan2/a70d0d.wgsl.expected.msl diff --git a/test/intrinsics/gen/atan2/a70d0d.wgsl.expected.spvasm b/test/builtins/gen/atan2/a70d0d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atan2/a70d0d.wgsl.expected.spvasm rename to test/builtins/gen/atan2/a70d0d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atan2/a70d0d.wgsl.expected.wgsl b/test/builtins/gen/atan2/a70d0d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atan2/a70d0d.wgsl.expected.wgsl rename to test/builtins/gen/atan2/a70d0d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atan2/ae713e.wgsl b/test/builtins/gen/atan2/ae713e.wgsl similarity index 89% rename from test/intrinsics/gen/atan2/ae713e.wgsl rename to test/builtins/gen/atan2/ae713e.wgsl index 381ca2a2b8..50b8b8f621 100644 --- a/test/intrinsics/gen/atan2/ae713e.wgsl +++ b/test/builtins/gen/atan2/ae713e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atan2/ae713e.wgsl.expected.glsl b/test/builtins/gen/atan2/ae713e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atan2/ae713e.wgsl.expected.glsl rename to test/builtins/gen/atan2/ae713e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atan2/ae713e.wgsl.expected.hlsl b/test/builtins/gen/atan2/ae713e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atan2/ae713e.wgsl.expected.hlsl rename to test/builtins/gen/atan2/ae713e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atan2/ae713e.wgsl.expected.msl b/test/builtins/gen/atan2/ae713e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atan2/ae713e.wgsl.expected.msl rename to test/builtins/gen/atan2/ae713e.wgsl.expected.msl diff --git a/test/intrinsics/gen/atan2/ae713e.wgsl.expected.spvasm b/test/builtins/gen/atan2/ae713e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atan2/ae713e.wgsl.expected.spvasm rename to test/builtins/gen/atan2/ae713e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atan2/ae713e.wgsl.expected.wgsl b/test/builtins/gen/atan2/ae713e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atan2/ae713e.wgsl.expected.wgsl rename to test/builtins/gen/atan2/ae713e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicAdd/794055.wgsl b/test/builtins/gen/atomicAdd/794055.wgsl similarity index 88% rename from test/intrinsics/gen/atomicAdd/794055.wgsl rename to test/builtins/gen/atomicAdd/794055.wgsl index 5963b4f6cf..97cf17c9a3 100644 --- a/test/intrinsics/gen/atomicAdd/794055.wgsl +++ b/test/builtins/gen/atomicAdd/794055.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicAdd/794055.wgsl.expected.glsl b/test/builtins/gen/atomicAdd/794055.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicAdd/794055.wgsl.expected.glsl rename to test/builtins/gen/atomicAdd/794055.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicAdd/794055.wgsl.expected.hlsl b/test/builtins/gen/atomicAdd/794055.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicAdd/794055.wgsl.expected.hlsl rename to test/builtins/gen/atomicAdd/794055.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicAdd/794055.wgsl.expected.msl b/test/builtins/gen/atomicAdd/794055.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicAdd/794055.wgsl.expected.msl rename to test/builtins/gen/atomicAdd/794055.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicAdd/794055.wgsl.expected.spvasm b/test/builtins/gen/atomicAdd/794055.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicAdd/794055.wgsl.expected.spvasm rename to test/builtins/gen/atomicAdd/794055.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicAdd/794055.wgsl.expected.wgsl b/test/builtins/gen/atomicAdd/794055.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicAdd/794055.wgsl.expected.wgsl rename to test/builtins/gen/atomicAdd/794055.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicAdd/8a199a.wgsl b/test/builtins/gen/atomicAdd/8a199a.wgsl similarity index 89% rename from test/intrinsics/gen/atomicAdd/8a199a.wgsl rename to test/builtins/gen/atomicAdd/8a199a.wgsl index aae79c2600..55ef7cf7fb 100644 --- a/test/intrinsics/gen/atomicAdd/8a199a.wgsl +++ b/test/builtins/gen/atomicAdd/8a199a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicAdd/8a199a.wgsl.expected.glsl b/test/builtins/gen/atomicAdd/8a199a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicAdd/8a199a.wgsl.expected.glsl rename to test/builtins/gen/atomicAdd/8a199a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicAdd/8a199a.wgsl.expected.hlsl b/test/builtins/gen/atomicAdd/8a199a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicAdd/8a199a.wgsl.expected.hlsl rename to test/builtins/gen/atomicAdd/8a199a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicAdd/8a199a.wgsl.expected.msl b/test/builtins/gen/atomicAdd/8a199a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicAdd/8a199a.wgsl.expected.msl rename to test/builtins/gen/atomicAdd/8a199a.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicAdd/8a199a.wgsl.expected.spvasm b/test/builtins/gen/atomicAdd/8a199a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicAdd/8a199a.wgsl.expected.spvasm rename to test/builtins/gen/atomicAdd/8a199a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicAdd/8a199a.wgsl.expected.wgsl b/test/builtins/gen/atomicAdd/8a199a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicAdd/8a199a.wgsl.expected.wgsl rename to test/builtins/gen/atomicAdd/8a199a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicAdd/d32fe4.wgsl b/test/builtins/gen/atomicAdd/d32fe4.wgsl similarity index 89% rename from test/intrinsics/gen/atomicAdd/d32fe4.wgsl rename to test/builtins/gen/atomicAdd/d32fe4.wgsl index 4cf4eb68ab..167c225741 100644 --- a/test/intrinsics/gen/atomicAdd/d32fe4.wgsl +++ b/test/builtins/gen/atomicAdd/d32fe4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicAdd/d32fe4.wgsl.expected.glsl b/test/builtins/gen/atomicAdd/d32fe4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicAdd/d32fe4.wgsl.expected.glsl rename to test/builtins/gen/atomicAdd/d32fe4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicAdd/d32fe4.wgsl.expected.hlsl b/test/builtins/gen/atomicAdd/d32fe4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicAdd/d32fe4.wgsl.expected.hlsl rename to test/builtins/gen/atomicAdd/d32fe4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicAdd/d32fe4.wgsl.expected.msl b/test/builtins/gen/atomicAdd/d32fe4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicAdd/d32fe4.wgsl.expected.msl rename to test/builtins/gen/atomicAdd/d32fe4.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicAdd/d32fe4.wgsl.expected.spvasm b/test/builtins/gen/atomicAdd/d32fe4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicAdd/d32fe4.wgsl.expected.spvasm rename to test/builtins/gen/atomicAdd/d32fe4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicAdd/d32fe4.wgsl.expected.wgsl b/test/builtins/gen/atomicAdd/d32fe4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicAdd/d32fe4.wgsl.expected.wgsl rename to test/builtins/gen/atomicAdd/d32fe4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicAdd/d5db1d.wgsl b/test/builtins/gen/atomicAdd/d5db1d.wgsl similarity index 88% rename from test/intrinsics/gen/atomicAdd/d5db1d.wgsl rename to test/builtins/gen/atomicAdd/d5db1d.wgsl index 55329bca26..aa00e56d75 100644 --- a/test/intrinsics/gen/atomicAdd/d5db1d.wgsl +++ b/test/builtins/gen/atomicAdd/d5db1d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicAdd/d5db1d.wgsl.expected.glsl b/test/builtins/gen/atomicAdd/d5db1d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicAdd/d5db1d.wgsl.expected.glsl rename to test/builtins/gen/atomicAdd/d5db1d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicAdd/d5db1d.wgsl.expected.hlsl b/test/builtins/gen/atomicAdd/d5db1d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicAdd/d5db1d.wgsl.expected.hlsl rename to test/builtins/gen/atomicAdd/d5db1d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicAdd/d5db1d.wgsl.expected.msl b/test/builtins/gen/atomicAdd/d5db1d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicAdd/d5db1d.wgsl.expected.msl rename to test/builtins/gen/atomicAdd/d5db1d.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicAdd/d5db1d.wgsl.expected.spvasm b/test/builtins/gen/atomicAdd/d5db1d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicAdd/d5db1d.wgsl.expected.spvasm rename to test/builtins/gen/atomicAdd/d5db1d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicAdd/d5db1d.wgsl.expected.wgsl b/test/builtins/gen/atomicAdd/d5db1d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicAdd/d5db1d.wgsl.expected.wgsl rename to test/builtins/gen/atomicAdd/d5db1d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicAnd/152966.wgsl b/test/builtins/gen/atomicAnd/152966.wgsl similarity index 89% rename from test/intrinsics/gen/atomicAnd/152966.wgsl rename to test/builtins/gen/atomicAnd/152966.wgsl index b99ab19ca5..5e9a32335b 100644 --- a/test/intrinsics/gen/atomicAnd/152966.wgsl +++ b/test/builtins/gen/atomicAnd/152966.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicAnd/152966.wgsl.expected.glsl b/test/builtins/gen/atomicAnd/152966.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicAnd/152966.wgsl.expected.glsl rename to test/builtins/gen/atomicAnd/152966.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicAnd/152966.wgsl.expected.hlsl b/test/builtins/gen/atomicAnd/152966.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicAnd/152966.wgsl.expected.hlsl rename to test/builtins/gen/atomicAnd/152966.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicAnd/152966.wgsl.expected.msl b/test/builtins/gen/atomicAnd/152966.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicAnd/152966.wgsl.expected.msl rename to test/builtins/gen/atomicAnd/152966.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicAnd/152966.wgsl.expected.spvasm b/test/builtins/gen/atomicAnd/152966.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicAnd/152966.wgsl.expected.spvasm rename to test/builtins/gen/atomicAnd/152966.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicAnd/152966.wgsl.expected.wgsl b/test/builtins/gen/atomicAnd/152966.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicAnd/152966.wgsl.expected.wgsl rename to test/builtins/gen/atomicAnd/152966.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicAnd/34edd3.wgsl b/test/builtins/gen/atomicAnd/34edd3.wgsl similarity index 88% rename from test/intrinsics/gen/atomicAnd/34edd3.wgsl rename to test/builtins/gen/atomicAnd/34edd3.wgsl index 567863d754..a77f6bf7fc 100644 --- a/test/intrinsics/gen/atomicAnd/34edd3.wgsl +++ b/test/builtins/gen/atomicAnd/34edd3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicAnd/34edd3.wgsl.expected.glsl b/test/builtins/gen/atomicAnd/34edd3.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicAnd/34edd3.wgsl.expected.glsl rename to test/builtins/gen/atomicAnd/34edd3.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicAnd/34edd3.wgsl.expected.hlsl b/test/builtins/gen/atomicAnd/34edd3.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicAnd/34edd3.wgsl.expected.hlsl rename to test/builtins/gen/atomicAnd/34edd3.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicAnd/34edd3.wgsl.expected.msl b/test/builtins/gen/atomicAnd/34edd3.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicAnd/34edd3.wgsl.expected.msl rename to test/builtins/gen/atomicAnd/34edd3.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicAnd/34edd3.wgsl.expected.spvasm b/test/builtins/gen/atomicAnd/34edd3.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicAnd/34edd3.wgsl.expected.spvasm rename to test/builtins/gen/atomicAnd/34edd3.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicAnd/34edd3.wgsl.expected.wgsl b/test/builtins/gen/atomicAnd/34edd3.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicAnd/34edd3.wgsl.expected.wgsl rename to test/builtins/gen/atomicAnd/34edd3.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicAnd/45a819.wgsl b/test/builtins/gen/atomicAnd/45a819.wgsl similarity index 88% rename from test/intrinsics/gen/atomicAnd/45a819.wgsl rename to test/builtins/gen/atomicAnd/45a819.wgsl index 9eef5c3053..35979fe0d2 100644 --- a/test/intrinsics/gen/atomicAnd/45a819.wgsl +++ b/test/builtins/gen/atomicAnd/45a819.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicAnd/45a819.wgsl.expected.glsl b/test/builtins/gen/atomicAnd/45a819.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicAnd/45a819.wgsl.expected.glsl rename to test/builtins/gen/atomicAnd/45a819.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicAnd/45a819.wgsl.expected.hlsl b/test/builtins/gen/atomicAnd/45a819.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicAnd/45a819.wgsl.expected.hlsl rename to test/builtins/gen/atomicAnd/45a819.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicAnd/45a819.wgsl.expected.msl b/test/builtins/gen/atomicAnd/45a819.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicAnd/45a819.wgsl.expected.msl rename to test/builtins/gen/atomicAnd/45a819.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicAnd/45a819.wgsl.expected.spvasm b/test/builtins/gen/atomicAnd/45a819.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicAnd/45a819.wgsl.expected.spvasm rename to test/builtins/gen/atomicAnd/45a819.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicAnd/45a819.wgsl.expected.wgsl b/test/builtins/gen/atomicAnd/45a819.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicAnd/45a819.wgsl.expected.wgsl rename to test/builtins/gen/atomicAnd/45a819.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicAnd/85a8d9.wgsl b/test/builtins/gen/atomicAnd/85a8d9.wgsl similarity index 89% rename from test/intrinsics/gen/atomicAnd/85a8d9.wgsl rename to test/builtins/gen/atomicAnd/85a8d9.wgsl index 042cba62b9..bfdd0882f0 100644 --- a/test/intrinsics/gen/atomicAnd/85a8d9.wgsl +++ b/test/builtins/gen/atomicAnd/85a8d9.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicAnd/85a8d9.wgsl.expected.glsl b/test/builtins/gen/atomicAnd/85a8d9.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicAnd/85a8d9.wgsl.expected.glsl rename to test/builtins/gen/atomicAnd/85a8d9.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicAnd/85a8d9.wgsl.expected.hlsl b/test/builtins/gen/atomicAnd/85a8d9.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicAnd/85a8d9.wgsl.expected.hlsl rename to test/builtins/gen/atomicAnd/85a8d9.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicAnd/85a8d9.wgsl.expected.msl b/test/builtins/gen/atomicAnd/85a8d9.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicAnd/85a8d9.wgsl.expected.msl rename to test/builtins/gen/atomicAnd/85a8d9.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicAnd/85a8d9.wgsl.expected.spvasm b/test/builtins/gen/atomicAnd/85a8d9.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicAnd/85a8d9.wgsl.expected.spvasm rename to test/builtins/gen/atomicAnd/85a8d9.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicAnd/85a8d9.wgsl.expected.wgsl b/test/builtins/gen/atomicAnd/85a8d9.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicAnd/85a8d9.wgsl.expected.wgsl rename to test/builtins/gen/atomicAnd/85a8d9.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/12871c.wgsl b/test/builtins/gen/atomicCompareExchangeWeak/12871c.wgsl similarity index 90% rename from test/intrinsics/gen/atomicCompareExchangeWeak/12871c.wgsl rename to test/builtins/gen/atomicCompareExchangeWeak/12871c.wgsl index 3735ad4379..66ffc049de 100644 --- a/test/intrinsics/gen/atomicCompareExchangeWeak/12871c.wgsl +++ b/test/builtins/gen/atomicCompareExchangeWeak/12871c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.glsl b/test/builtins/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.glsl rename to test/builtins/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.hlsl b/test/builtins/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.hlsl rename to test/builtins/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.msl b/test/builtins/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.msl rename to test/builtins/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.spvasm b/test/builtins/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.spvasm rename to test/builtins/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.wgsl b/test/builtins/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.wgsl rename to test/builtins/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/6673da.wgsl b/test/builtins/gen/atomicCompareExchangeWeak/6673da.wgsl similarity index 90% rename from test/intrinsics/gen/atomicCompareExchangeWeak/6673da.wgsl rename to test/builtins/gen/atomicCompareExchangeWeak/6673da.wgsl index be43eb0157..f9f15bb433 100644 --- a/test/intrinsics/gen/atomicCompareExchangeWeak/6673da.wgsl +++ b/test/builtins/gen/atomicCompareExchangeWeak/6673da.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.glsl b/test/builtins/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.glsl rename to test/builtins/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.hlsl b/test/builtins/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.hlsl rename to test/builtins/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.msl b/test/builtins/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.msl rename to test/builtins/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.spvasm b/test/builtins/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.spvasm rename to test/builtins/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.wgsl b/test/builtins/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.wgsl rename to test/builtins/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/89ea3b.wgsl b/test/builtins/gen/atomicCompareExchangeWeak/89ea3b.wgsl similarity index 88% rename from test/intrinsics/gen/atomicCompareExchangeWeak/89ea3b.wgsl rename to test/builtins/gen/atomicCompareExchangeWeak/89ea3b.wgsl index 58bf4b53fc..2f2c25160f 100644 --- a/test/intrinsics/gen/atomicCompareExchangeWeak/89ea3b.wgsl +++ b/test/builtins/gen/atomicCompareExchangeWeak/89ea3b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.glsl b/test/builtins/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.glsl rename to test/builtins/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.hlsl b/test/builtins/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.hlsl rename to test/builtins/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.msl b/test/builtins/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.msl rename to test/builtins/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.spvasm b/test/builtins/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.spvasm rename to test/builtins/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.wgsl b/test/builtins/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.wgsl rename to test/builtins/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/b2ab2c.wgsl b/test/builtins/gen/atomicCompareExchangeWeak/b2ab2c.wgsl similarity index 88% rename from test/intrinsics/gen/atomicCompareExchangeWeak/b2ab2c.wgsl rename to test/builtins/gen/atomicCompareExchangeWeak/b2ab2c.wgsl index 38cf645a88..0df6c0fa01 100644 --- a/test/intrinsics/gen/atomicCompareExchangeWeak/b2ab2c.wgsl +++ b/test/builtins/gen/atomicCompareExchangeWeak/b2ab2c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.glsl b/test/builtins/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.glsl rename to test/builtins/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.hlsl b/test/builtins/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.hlsl rename to test/builtins/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.msl b/test/builtins/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.msl rename to test/builtins/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.spvasm b/test/builtins/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.spvasm rename to test/builtins/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.wgsl b/test/builtins/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.wgsl rename to test/builtins/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicExchange/0a5dca.wgsl b/test/builtins/gen/atomicExchange/0a5dca.wgsl similarity index 88% rename from test/intrinsics/gen/atomicExchange/0a5dca.wgsl rename to test/builtins/gen/atomicExchange/0a5dca.wgsl index 44ac264e62..5fb5b6577d 100644 --- a/test/intrinsics/gen/atomicExchange/0a5dca.wgsl +++ b/test/builtins/gen/atomicExchange/0a5dca.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicExchange/0a5dca.wgsl.expected.glsl b/test/builtins/gen/atomicExchange/0a5dca.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicExchange/0a5dca.wgsl.expected.glsl rename to test/builtins/gen/atomicExchange/0a5dca.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicExchange/0a5dca.wgsl.expected.hlsl b/test/builtins/gen/atomicExchange/0a5dca.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicExchange/0a5dca.wgsl.expected.hlsl rename to test/builtins/gen/atomicExchange/0a5dca.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicExchange/0a5dca.wgsl.expected.msl b/test/builtins/gen/atomicExchange/0a5dca.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicExchange/0a5dca.wgsl.expected.msl rename to test/builtins/gen/atomicExchange/0a5dca.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicExchange/0a5dca.wgsl.expected.spvasm b/test/builtins/gen/atomicExchange/0a5dca.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicExchange/0a5dca.wgsl.expected.spvasm rename to test/builtins/gen/atomicExchange/0a5dca.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicExchange/0a5dca.wgsl.expected.wgsl b/test/builtins/gen/atomicExchange/0a5dca.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicExchange/0a5dca.wgsl.expected.wgsl rename to test/builtins/gen/atomicExchange/0a5dca.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicExchange/d59712.wgsl b/test/builtins/gen/atomicExchange/d59712.wgsl similarity index 89% rename from test/intrinsics/gen/atomicExchange/d59712.wgsl rename to test/builtins/gen/atomicExchange/d59712.wgsl index fc014eea19..5109bb74be 100644 --- a/test/intrinsics/gen/atomicExchange/d59712.wgsl +++ b/test/builtins/gen/atomicExchange/d59712.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicExchange/d59712.wgsl.expected.glsl b/test/builtins/gen/atomicExchange/d59712.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicExchange/d59712.wgsl.expected.glsl rename to test/builtins/gen/atomicExchange/d59712.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicExchange/d59712.wgsl.expected.hlsl b/test/builtins/gen/atomicExchange/d59712.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicExchange/d59712.wgsl.expected.hlsl rename to test/builtins/gen/atomicExchange/d59712.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicExchange/d59712.wgsl.expected.msl b/test/builtins/gen/atomicExchange/d59712.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicExchange/d59712.wgsl.expected.msl rename to test/builtins/gen/atomicExchange/d59712.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicExchange/d59712.wgsl.expected.spvasm b/test/builtins/gen/atomicExchange/d59712.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicExchange/d59712.wgsl.expected.spvasm rename to test/builtins/gen/atomicExchange/d59712.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicExchange/d59712.wgsl.expected.wgsl b/test/builtins/gen/atomicExchange/d59712.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicExchange/d59712.wgsl.expected.wgsl rename to test/builtins/gen/atomicExchange/d59712.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicExchange/e114ba.wgsl b/test/builtins/gen/atomicExchange/e114ba.wgsl similarity index 88% rename from test/intrinsics/gen/atomicExchange/e114ba.wgsl rename to test/builtins/gen/atomicExchange/e114ba.wgsl index f52534afad..bb22f272a2 100644 --- a/test/intrinsics/gen/atomicExchange/e114ba.wgsl +++ b/test/builtins/gen/atomicExchange/e114ba.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicExchange/e114ba.wgsl.expected.glsl b/test/builtins/gen/atomicExchange/e114ba.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicExchange/e114ba.wgsl.expected.glsl rename to test/builtins/gen/atomicExchange/e114ba.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicExchange/e114ba.wgsl.expected.hlsl b/test/builtins/gen/atomicExchange/e114ba.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicExchange/e114ba.wgsl.expected.hlsl rename to test/builtins/gen/atomicExchange/e114ba.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicExchange/e114ba.wgsl.expected.msl b/test/builtins/gen/atomicExchange/e114ba.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicExchange/e114ba.wgsl.expected.msl rename to test/builtins/gen/atomicExchange/e114ba.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicExchange/e114ba.wgsl.expected.spvasm b/test/builtins/gen/atomicExchange/e114ba.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicExchange/e114ba.wgsl.expected.spvasm rename to test/builtins/gen/atomicExchange/e114ba.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicExchange/e114ba.wgsl.expected.wgsl b/test/builtins/gen/atomicExchange/e114ba.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicExchange/e114ba.wgsl.expected.wgsl rename to test/builtins/gen/atomicExchange/e114ba.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicExchange/f2e22f.wgsl b/test/builtins/gen/atomicExchange/f2e22f.wgsl similarity index 89% rename from test/intrinsics/gen/atomicExchange/f2e22f.wgsl rename to test/builtins/gen/atomicExchange/f2e22f.wgsl index be22ff966f..f9af16803f 100644 --- a/test/intrinsics/gen/atomicExchange/f2e22f.wgsl +++ b/test/builtins/gen/atomicExchange/f2e22f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicExchange/f2e22f.wgsl.expected.glsl b/test/builtins/gen/atomicExchange/f2e22f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicExchange/f2e22f.wgsl.expected.glsl rename to test/builtins/gen/atomicExchange/f2e22f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicExchange/f2e22f.wgsl.expected.hlsl b/test/builtins/gen/atomicExchange/f2e22f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicExchange/f2e22f.wgsl.expected.hlsl rename to test/builtins/gen/atomicExchange/f2e22f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicExchange/f2e22f.wgsl.expected.msl b/test/builtins/gen/atomicExchange/f2e22f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicExchange/f2e22f.wgsl.expected.msl rename to test/builtins/gen/atomicExchange/f2e22f.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicExchange/f2e22f.wgsl.expected.spvasm b/test/builtins/gen/atomicExchange/f2e22f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicExchange/f2e22f.wgsl.expected.spvasm rename to test/builtins/gen/atomicExchange/f2e22f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicExchange/f2e22f.wgsl.expected.wgsl b/test/builtins/gen/atomicExchange/f2e22f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicExchange/f2e22f.wgsl.expected.wgsl rename to test/builtins/gen/atomicExchange/f2e22f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicLoad/0806ad.wgsl b/test/builtins/gen/atomicLoad/0806ad.wgsl similarity index 89% rename from test/intrinsics/gen/atomicLoad/0806ad.wgsl rename to test/builtins/gen/atomicLoad/0806ad.wgsl index 0981e05298..61fd4ecbee 100644 --- a/test/intrinsics/gen/atomicLoad/0806ad.wgsl +++ b/test/builtins/gen/atomicLoad/0806ad.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicLoad/0806ad.wgsl.expected.glsl b/test/builtins/gen/atomicLoad/0806ad.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicLoad/0806ad.wgsl.expected.glsl rename to test/builtins/gen/atomicLoad/0806ad.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicLoad/0806ad.wgsl.expected.hlsl b/test/builtins/gen/atomicLoad/0806ad.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicLoad/0806ad.wgsl.expected.hlsl rename to test/builtins/gen/atomicLoad/0806ad.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicLoad/0806ad.wgsl.expected.msl b/test/builtins/gen/atomicLoad/0806ad.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicLoad/0806ad.wgsl.expected.msl rename to test/builtins/gen/atomicLoad/0806ad.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicLoad/0806ad.wgsl.expected.spvasm b/test/builtins/gen/atomicLoad/0806ad.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicLoad/0806ad.wgsl.expected.spvasm rename to test/builtins/gen/atomicLoad/0806ad.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicLoad/0806ad.wgsl.expected.wgsl b/test/builtins/gen/atomicLoad/0806ad.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicLoad/0806ad.wgsl.expected.wgsl rename to test/builtins/gen/atomicLoad/0806ad.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicLoad/361bf1.wgsl b/test/builtins/gen/atomicLoad/361bf1.wgsl similarity index 88% rename from test/intrinsics/gen/atomicLoad/361bf1.wgsl rename to test/builtins/gen/atomicLoad/361bf1.wgsl index 3c51abc94d..23841abad7 100644 --- a/test/intrinsics/gen/atomicLoad/361bf1.wgsl +++ b/test/builtins/gen/atomicLoad/361bf1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicLoad/361bf1.wgsl.expected.glsl b/test/builtins/gen/atomicLoad/361bf1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicLoad/361bf1.wgsl.expected.glsl rename to test/builtins/gen/atomicLoad/361bf1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicLoad/361bf1.wgsl.expected.hlsl b/test/builtins/gen/atomicLoad/361bf1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicLoad/361bf1.wgsl.expected.hlsl rename to test/builtins/gen/atomicLoad/361bf1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicLoad/361bf1.wgsl.expected.msl b/test/builtins/gen/atomicLoad/361bf1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicLoad/361bf1.wgsl.expected.msl rename to test/builtins/gen/atomicLoad/361bf1.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicLoad/361bf1.wgsl.expected.spvasm b/test/builtins/gen/atomicLoad/361bf1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicLoad/361bf1.wgsl.expected.spvasm rename to test/builtins/gen/atomicLoad/361bf1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicLoad/361bf1.wgsl.expected.wgsl b/test/builtins/gen/atomicLoad/361bf1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicLoad/361bf1.wgsl.expected.wgsl rename to test/builtins/gen/atomicLoad/361bf1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicLoad/afcc03.wgsl b/test/builtins/gen/atomicLoad/afcc03.wgsl similarity index 88% rename from test/intrinsics/gen/atomicLoad/afcc03.wgsl rename to test/builtins/gen/atomicLoad/afcc03.wgsl index 7585c6f570..2f29bbc067 100644 --- a/test/intrinsics/gen/atomicLoad/afcc03.wgsl +++ b/test/builtins/gen/atomicLoad/afcc03.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicLoad/afcc03.wgsl.expected.glsl b/test/builtins/gen/atomicLoad/afcc03.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicLoad/afcc03.wgsl.expected.glsl rename to test/builtins/gen/atomicLoad/afcc03.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicLoad/afcc03.wgsl.expected.hlsl b/test/builtins/gen/atomicLoad/afcc03.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicLoad/afcc03.wgsl.expected.hlsl rename to test/builtins/gen/atomicLoad/afcc03.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicLoad/afcc03.wgsl.expected.msl b/test/builtins/gen/atomicLoad/afcc03.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicLoad/afcc03.wgsl.expected.msl rename to test/builtins/gen/atomicLoad/afcc03.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicLoad/afcc03.wgsl.expected.spvasm b/test/builtins/gen/atomicLoad/afcc03.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicLoad/afcc03.wgsl.expected.spvasm rename to test/builtins/gen/atomicLoad/afcc03.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicLoad/afcc03.wgsl.expected.wgsl b/test/builtins/gen/atomicLoad/afcc03.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicLoad/afcc03.wgsl.expected.wgsl rename to test/builtins/gen/atomicLoad/afcc03.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicLoad/fe6cc3.wgsl b/test/builtins/gen/atomicLoad/fe6cc3.wgsl similarity index 89% rename from test/intrinsics/gen/atomicLoad/fe6cc3.wgsl rename to test/builtins/gen/atomicLoad/fe6cc3.wgsl index d337a1e1a8..854e9feb00 100644 --- a/test/intrinsics/gen/atomicLoad/fe6cc3.wgsl +++ b/test/builtins/gen/atomicLoad/fe6cc3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicLoad/fe6cc3.wgsl.expected.glsl b/test/builtins/gen/atomicLoad/fe6cc3.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicLoad/fe6cc3.wgsl.expected.glsl rename to test/builtins/gen/atomicLoad/fe6cc3.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicLoad/fe6cc3.wgsl.expected.hlsl b/test/builtins/gen/atomicLoad/fe6cc3.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicLoad/fe6cc3.wgsl.expected.hlsl rename to test/builtins/gen/atomicLoad/fe6cc3.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicLoad/fe6cc3.wgsl.expected.msl b/test/builtins/gen/atomicLoad/fe6cc3.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicLoad/fe6cc3.wgsl.expected.msl rename to test/builtins/gen/atomicLoad/fe6cc3.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicLoad/fe6cc3.wgsl.expected.spvasm b/test/builtins/gen/atomicLoad/fe6cc3.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicLoad/fe6cc3.wgsl.expected.spvasm rename to test/builtins/gen/atomicLoad/fe6cc3.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicLoad/fe6cc3.wgsl.expected.wgsl b/test/builtins/gen/atomicLoad/fe6cc3.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicLoad/fe6cc3.wgsl.expected.wgsl rename to test/builtins/gen/atomicLoad/fe6cc3.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicMax/51b9be.wgsl b/test/builtins/gen/atomicMax/51b9be.wgsl similarity index 89% rename from test/intrinsics/gen/atomicMax/51b9be.wgsl rename to test/builtins/gen/atomicMax/51b9be.wgsl index 7f2e69c2af..6303854baa 100644 --- a/test/intrinsics/gen/atomicMax/51b9be.wgsl +++ b/test/builtins/gen/atomicMax/51b9be.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicMax/51b9be.wgsl.expected.glsl b/test/builtins/gen/atomicMax/51b9be.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicMax/51b9be.wgsl.expected.glsl rename to test/builtins/gen/atomicMax/51b9be.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicMax/51b9be.wgsl.expected.hlsl b/test/builtins/gen/atomicMax/51b9be.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicMax/51b9be.wgsl.expected.hlsl rename to test/builtins/gen/atomicMax/51b9be.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicMax/51b9be.wgsl.expected.msl b/test/builtins/gen/atomicMax/51b9be.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicMax/51b9be.wgsl.expected.msl rename to test/builtins/gen/atomicMax/51b9be.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicMax/51b9be.wgsl.expected.spvasm b/test/builtins/gen/atomicMax/51b9be.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicMax/51b9be.wgsl.expected.spvasm rename to test/builtins/gen/atomicMax/51b9be.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicMax/51b9be.wgsl.expected.wgsl b/test/builtins/gen/atomicMax/51b9be.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicMax/51b9be.wgsl.expected.wgsl rename to test/builtins/gen/atomicMax/51b9be.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicMax/92aa72.wgsl b/test/builtins/gen/atomicMax/92aa72.wgsl similarity index 89% rename from test/intrinsics/gen/atomicMax/92aa72.wgsl rename to test/builtins/gen/atomicMax/92aa72.wgsl index 603ea33edd..4924d84ee8 100644 --- a/test/intrinsics/gen/atomicMax/92aa72.wgsl +++ b/test/builtins/gen/atomicMax/92aa72.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicMax/92aa72.wgsl.expected.glsl b/test/builtins/gen/atomicMax/92aa72.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicMax/92aa72.wgsl.expected.glsl rename to test/builtins/gen/atomicMax/92aa72.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicMax/92aa72.wgsl.expected.hlsl b/test/builtins/gen/atomicMax/92aa72.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicMax/92aa72.wgsl.expected.hlsl rename to test/builtins/gen/atomicMax/92aa72.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicMax/92aa72.wgsl.expected.msl b/test/builtins/gen/atomicMax/92aa72.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicMax/92aa72.wgsl.expected.msl rename to test/builtins/gen/atomicMax/92aa72.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicMax/92aa72.wgsl.expected.spvasm b/test/builtins/gen/atomicMax/92aa72.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicMax/92aa72.wgsl.expected.spvasm rename to test/builtins/gen/atomicMax/92aa72.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicMax/92aa72.wgsl.expected.wgsl b/test/builtins/gen/atomicMax/92aa72.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicMax/92aa72.wgsl.expected.wgsl rename to test/builtins/gen/atomicMax/92aa72.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicMax/a89cc3.wgsl b/test/builtins/gen/atomicMax/a89cc3.wgsl similarity index 88% rename from test/intrinsics/gen/atomicMax/a89cc3.wgsl rename to test/builtins/gen/atomicMax/a89cc3.wgsl index f6c65cf7e6..904cea824d 100644 --- a/test/intrinsics/gen/atomicMax/a89cc3.wgsl +++ b/test/builtins/gen/atomicMax/a89cc3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicMax/a89cc3.wgsl.expected.glsl b/test/builtins/gen/atomicMax/a89cc3.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicMax/a89cc3.wgsl.expected.glsl rename to test/builtins/gen/atomicMax/a89cc3.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicMax/a89cc3.wgsl.expected.hlsl b/test/builtins/gen/atomicMax/a89cc3.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicMax/a89cc3.wgsl.expected.hlsl rename to test/builtins/gen/atomicMax/a89cc3.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicMax/a89cc3.wgsl.expected.msl b/test/builtins/gen/atomicMax/a89cc3.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicMax/a89cc3.wgsl.expected.msl rename to test/builtins/gen/atomicMax/a89cc3.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicMax/a89cc3.wgsl.expected.spvasm b/test/builtins/gen/atomicMax/a89cc3.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicMax/a89cc3.wgsl.expected.spvasm rename to test/builtins/gen/atomicMax/a89cc3.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicMax/a89cc3.wgsl.expected.wgsl b/test/builtins/gen/atomicMax/a89cc3.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicMax/a89cc3.wgsl.expected.wgsl rename to test/builtins/gen/atomicMax/a89cc3.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicMax/beccfc.wgsl b/test/builtins/gen/atomicMax/beccfc.wgsl similarity index 88% rename from test/intrinsics/gen/atomicMax/beccfc.wgsl rename to test/builtins/gen/atomicMax/beccfc.wgsl index c6c4b60aa5..b26574dca7 100644 --- a/test/intrinsics/gen/atomicMax/beccfc.wgsl +++ b/test/builtins/gen/atomicMax/beccfc.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicMax/beccfc.wgsl.expected.glsl b/test/builtins/gen/atomicMax/beccfc.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicMax/beccfc.wgsl.expected.glsl rename to test/builtins/gen/atomicMax/beccfc.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicMax/beccfc.wgsl.expected.hlsl b/test/builtins/gen/atomicMax/beccfc.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicMax/beccfc.wgsl.expected.hlsl rename to test/builtins/gen/atomicMax/beccfc.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicMax/beccfc.wgsl.expected.msl b/test/builtins/gen/atomicMax/beccfc.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicMax/beccfc.wgsl.expected.msl rename to test/builtins/gen/atomicMax/beccfc.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicMax/beccfc.wgsl.expected.spvasm b/test/builtins/gen/atomicMax/beccfc.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicMax/beccfc.wgsl.expected.spvasm rename to test/builtins/gen/atomicMax/beccfc.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicMax/beccfc.wgsl.expected.wgsl b/test/builtins/gen/atomicMax/beccfc.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicMax/beccfc.wgsl.expected.wgsl rename to test/builtins/gen/atomicMax/beccfc.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicMin/278235.wgsl b/test/builtins/gen/atomicMin/278235.wgsl similarity index 88% rename from test/intrinsics/gen/atomicMin/278235.wgsl rename to test/builtins/gen/atomicMin/278235.wgsl index 2a0cf130f5..591d0916cf 100644 --- a/test/intrinsics/gen/atomicMin/278235.wgsl +++ b/test/builtins/gen/atomicMin/278235.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicMin/278235.wgsl.expected.glsl b/test/builtins/gen/atomicMin/278235.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicMin/278235.wgsl.expected.glsl rename to test/builtins/gen/atomicMin/278235.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicMin/278235.wgsl.expected.hlsl b/test/builtins/gen/atomicMin/278235.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicMin/278235.wgsl.expected.hlsl rename to test/builtins/gen/atomicMin/278235.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicMin/278235.wgsl.expected.msl b/test/builtins/gen/atomicMin/278235.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicMin/278235.wgsl.expected.msl rename to test/builtins/gen/atomicMin/278235.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicMin/278235.wgsl.expected.spvasm b/test/builtins/gen/atomicMin/278235.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicMin/278235.wgsl.expected.spvasm rename to test/builtins/gen/atomicMin/278235.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicMin/278235.wgsl.expected.wgsl b/test/builtins/gen/atomicMin/278235.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicMin/278235.wgsl.expected.wgsl rename to test/builtins/gen/atomicMin/278235.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicMin/69d383.wgsl b/test/builtins/gen/atomicMin/69d383.wgsl similarity index 88% rename from test/intrinsics/gen/atomicMin/69d383.wgsl rename to test/builtins/gen/atomicMin/69d383.wgsl index 41b6284085..9b435d4eaa 100644 --- a/test/intrinsics/gen/atomicMin/69d383.wgsl +++ b/test/builtins/gen/atomicMin/69d383.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicMin/69d383.wgsl.expected.glsl b/test/builtins/gen/atomicMin/69d383.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicMin/69d383.wgsl.expected.glsl rename to test/builtins/gen/atomicMin/69d383.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicMin/69d383.wgsl.expected.hlsl b/test/builtins/gen/atomicMin/69d383.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicMin/69d383.wgsl.expected.hlsl rename to test/builtins/gen/atomicMin/69d383.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicMin/69d383.wgsl.expected.msl b/test/builtins/gen/atomicMin/69d383.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicMin/69d383.wgsl.expected.msl rename to test/builtins/gen/atomicMin/69d383.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicMin/69d383.wgsl.expected.spvasm b/test/builtins/gen/atomicMin/69d383.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicMin/69d383.wgsl.expected.spvasm rename to test/builtins/gen/atomicMin/69d383.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicMin/69d383.wgsl.expected.wgsl b/test/builtins/gen/atomicMin/69d383.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicMin/69d383.wgsl.expected.wgsl rename to test/builtins/gen/atomicMin/69d383.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicMin/8e38dc.wgsl b/test/builtins/gen/atomicMin/8e38dc.wgsl similarity index 89% rename from test/intrinsics/gen/atomicMin/8e38dc.wgsl rename to test/builtins/gen/atomicMin/8e38dc.wgsl index 9512528421..fdde4a5fd2 100644 --- a/test/intrinsics/gen/atomicMin/8e38dc.wgsl +++ b/test/builtins/gen/atomicMin/8e38dc.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicMin/8e38dc.wgsl.expected.glsl b/test/builtins/gen/atomicMin/8e38dc.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicMin/8e38dc.wgsl.expected.glsl rename to test/builtins/gen/atomicMin/8e38dc.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicMin/8e38dc.wgsl.expected.hlsl b/test/builtins/gen/atomicMin/8e38dc.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicMin/8e38dc.wgsl.expected.hlsl rename to test/builtins/gen/atomicMin/8e38dc.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicMin/8e38dc.wgsl.expected.msl b/test/builtins/gen/atomicMin/8e38dc.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicMin/8e38dc.wgsl.expected.msl rename to test/builtins/gen/atomicMin/8e38dc.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicMin/8e38dc.wgsl.expected.spvasm b/test/builtins/gen/atomicMin/8e38dc.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicMin/8e38dc.wgsl.expected.spvasm rename to test/builtins/gen/atomicMin/8e38dc.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicMin/8e38dc.wgsl.expected.wgsl b/test/builtins/gen/atomicMin/8e38dc.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicMin/8e38dc.wgsl.expected.wgsl rename to test/builtins/gen/atomicMin/8e38dc.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicMin/c67a74.wgsl b/test/builtins/gen/atomicMin/c67a74.wgsl similarity index 89% rename from test/intrinsics/gen/atomicMin/c67a74.wgsl rename to test/builtins/gen/atomicMin/c67a74.wgsl index fe5bb45a14..f55c3944ed 100644 --- a/test/intrinsics/gen/atomicMin/c67a74.wgsl +++ b/test/builtins/gen/atomicMin/c67a74.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicMin/c67a74.wgsl.expected.glsl b/test/builtins/gen/atomicMin/c67a74.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicMin/c67a74.wgsl.expected.glsl rename to test/builtins/gen/atomicMin/c67a74.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicMin/c67a74.wgsl.expected.hlsl b/test/builtins/gen/atomicMin/c67a74.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicMin/c67a74.wgsl.expected.hlsl rename to test/builtins/gen/atomicMin/c67a74.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicMin/c67a74.wgsl.expected.msl b/test/builtins/gen/atomicMin/c67a74.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicMin/c67a74.wgsl.expected.msl rename to test/builtins/gen/atomicMin/c67a74.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicMin/c67a74.wgsl.expected.spvasm b/test/builtins/gen/atomicMin/c67a74.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicMin/c67a74.wgsl.expected.spvasm rename to test/builtins/gen/atomicMin/c67a74.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicMin/c67a74.wgsl.expected.wgsl b/test/builtins/gen/atomicMin/c67a74.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicMin/c67a74.wgsl.expected.wgsl rename to test/builtins/gen/atomicMin/c67a74.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicOr/5e3d61.wgsl b/test/builtins/gen/atomicOr/5e3d61.wgsl similarity index 88% rename from test/intrinsics/gen/atomicOr/5e3d61.wgsl rename to test/builtins/gen/atomicOr/5e3d61.wgsl index be6bc51cb0..d6a846867c 100644 --- a/test/intrinsics/gen/atomicOr/5e3d61.wgsl +++ b/test/builtins/gen/atomicOr/5e3d61.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicOr/5e3d61.wgsl.expected.glsl b/test/builtins/gen/atomicOr/5e3d61.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicOr/5e3d61.wgsl.expected.glsl rename to test/builtins/gen/atomicOr/5e3d61.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicOr/5e3d61.wgsl.expected.hlsl b/test/builtins/gen/atomicOr/5e3d61.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicOr/5e3d61.wgsl.expected.hlsl rename to test/builtins/gen/atomicOr/5e3d61.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicOr/5e3d61.wgsl.expected.msl b/test/builtins/gen/atomicOr/5e3d61.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicOr/5e3d61.wgsl.expected.msl rename to test/builtins/gen/atomicOr/5e3d61.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicOr/5e3d61.wgsl.expected.spvasm b/test/builtins/gen/atomicOr/5e3d61.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicOr/5e3d61.wgsl.expected.spvasm rename to test/builtins/gen/atomicOr/5e3d61.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicOr/5e3d61.wgsl.expected.wgsl b/test/builtins/gen/atomicOr/5e3d61.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicOr/5e3d61.wgsl.expected.wgsl rename to test/builtins/gen/atomicOr/5e3d61.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicOr/5e95d4.wgsl b/test/builtins/gen/atomicOr/5e95d4.wgsl similarity index 89% rename from test/intrinsics/gen/atomicOr/5e95d4.wgsl rename to test/builtins/gen/atomicOr/5e95d4.wgsl index 356f0d0a52..b66fd0cd50 100644 --- a/test/intrinsics/gen/atomicOr/5e95d4.wgsl +++ b/test/builtins/gen/atomicOr/5e95d4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicOr/5e95d4.wgsl.expected.glsl b/test/builtins/gen/atomicOr/5e95d4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicOr/5e95d4.wgsl.expected.glsl rename to test/builtins/gen/atomicOr/5e95d4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicOr/5e95d4.wgsl.expected.hlsl b/test/builtins/gen/atomicOr/5e95d4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicOr/5e95d4.wgsl.expected.hlsl rename to test/builtins/gen/atomicOr/5e95d4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicOr/5e95d4.wgsl.expected.msl b/test/builtins/gen/atomicOr/5e95d4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicOr/5e95d4.wgsl.expected.msl rename to test/builtins/gen/atomicOr/5e95d4.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicOr/5e95d4.wgsl.expected.spvasm b/test/builtins/gen/atomicOr/5e95d4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicOr/5e95d4.wgsl.expected.spvasm rename to test/builtins/gen/atomicOr/5e95d4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicOr/5e95d4.wgsl.expected.wgsl b/test/builtins/gen/atomicOr/5e95d4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicOr/5e95d4.wgsl.expected.wgsl rename to test/builtins/gen/atomicOr/5e95d4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicOr/8d96a0.wgsl b/test/builtins/gen/atomicOr/8d96a0.wgsl similarity index 89% rename from test/intrinsics/gen/atomicOr/8d96a0.wgsl rename to test/builtins/gen/atomicOr/8d96a0.wgsl index c686a284ef..2f957389da 100644 --- a/test/intrinsics/gen/atomicOr/8d96a0.wgsl +++ b/test/builtins/gen/atomicOr/8d96a0.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicOr/8d96a0.wgsl.expected.glsl b/test/builtins/gen/atomicOr/8d96a0.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicOr/8d96a0.wgsl.expected.glsl rename to test/builtins/gen/atomicOr/8d96a0.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicOr/8d96a0.wgsl.expected.hlsl b/test/builtins/gen/atomicOr/8d96a0.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicOr/8d96a0.wgsl.expected.hlsl rename to test/builtins/gen/atomicOr/8d96a0.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicOr/8d96a0.wgsl.expected.msl b/test/builtins/gen/atomicOr/8d96a0.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicOr/8d96a0.wgsl.expected.msl rename to test/builtins/gen/atomicOr/8d96a0.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicOr/8d96a0.wgsl.expected.spvasm b/test/builtins/gen/atomicOr/8d96a0.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicOr/8d96a0.wgsl.expected.spvasm rename to test/builtins/gen/atomicOr/8d96a0.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicOr/8d96a0.wgsl.expected.wgsl b/test/builtins/gen/atomicOr/8d96a0.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicOr/8d96a0.wgsl.expected.wgsl rename to test/builtins/gen/atomicOr/8d96a0.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicOr/d09248.wgsl b/test/builtins/gen/atomicOr/d09248.wgsl similarity index 88% rename from test/intrinsics/gen/atomicOr/d09248.wgsl rename to test/builtins/gen/atomicOr/d09248.wgsl index ead0c34919..7ffd645246 100644 --- a/test/intrinsics/gen/atomicOr/d09248.wgsl +++ b/test/builtins/gen/atomicOr/d09248.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicOr/d09248.wgsl.expected.glsl b/test/builtins/gen/atomicOr/d09248.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicOr/d09248.wgsl.expected.glsl rename to test/builtins/gen/atomicOr/d09248.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicOr/d09248.wgsl.expected.hlsl b/test/builtins/gen/atomicOr/d09248.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicOr/d09248.wgsl.expected.hlsl rename to test/builtins/gen/atomicOr/d09248.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicOr/d09248.wgsl.expected.msl b/test/builtins/gen/atomicOr/d09248.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicOr/d09248.wgsl.expected.msl rename to test/builtins/gen/atomicOr/d09248.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicOr/d09248.wgsl.expected.spvasm b/test/builtins/gen/atomicOr/d09248.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicOr/d09248.wgsl.expected.spvasm rename to test/builtins/gen/atomicOr/d09248.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicOr/d09248.wgsl.expected.wgsl b/test/builtins/gen/atomicOr/d09248.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicOr/d09248.wgsl.expected.wgsl rename to test/builtins/gen/atomicOr/d09248.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicStore/726882.wgsl b/test/builtins/gen/atomicStore/726882.wgsl similarity index 88% rename from test/intrinsics/gen/atomicStore/726882.wgsl rename to test/builtins/gen/atomicStore/726882.wgsl index 3994efb6bb..3287e4935c 100644 --- a/test/intrinsics/gen/atomicStore/726882.wgsl +++ b/test/builtins/gen/atomicStore/726882.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicStore/726882.wgsl.expected.glsl b/test/builtins/gen/atomicStore/726882.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicStore/726882.wgsl.expected.glsl rename to test/builtins/gen/atomicStore/726882.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicStore/726882.wgsl.expected.hlsl b/test/builtins/gen/atomicStore/726882.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicStore/726882.wgsl.expected.hlsl rename to test/builtins/gen/atomicStore/726882.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicStore/726882.wgsl.expected.msl b/test/builtins/gen/atomicStore/726882.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicStore/726882.wgsl.expected.msl rename to test/builtins/gen/atomicStore/726882.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicStore/726882.wgsl.expected.spvasm b/test/builtins/gen/atomicStore/726882.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicStore/726882.wgsl.expected.spvasm rename to test/builtins/gen/atomicStore/726882.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicStore/726882.wgsl.expected.wgsl b/test/builtins/gen/atomicStore/726882.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicStore/726882.wgsl.expected.wgsl rename to test/builtins/gen/atomicStore/726882.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicStore/8bea94.wgsl b/test/builtins/gen/atomicStore/8bea94.wgsl similarity index 88% rename from test/intrinsics/gen/atomicStore/8bea94.wgsl rename to test/builtins/gen/atomicStore/8bea94.wgsl index 3ce1a43662..bf474e778c 100644 --- a/test/intrinsics/gen/atomicStore/8bea94.wgsl +++ b/test/builtins/gen/atomicStore/8bea94.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicStore/8bea94.wgsl.expected.glsl b/test/builtins/gen/atomicStore/8bea94.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicStore/8bea94.wgsl.expected.glsl rename to test/builtins/gen/atomicStore/8bea94.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicStore/8bea94.wgsl.expected.hlsl b/test/builtins/gen/atomicStore/8bea94.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicStore/8bea94.wgsl.expected.hlsl rename to test/builtins/gen/atomicStore/8bea94.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicStore/8bea94.wgsl.expected.msl b/test/builtins/gen/atomicStore/8bea94.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicStore/8bea94.wgsl.expected.msl rename to test/builtins/gen/atomicStore/8bea94.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicStore/8bea94.wgsl.expected.spvasm b/test/builtins/gen/atomicStore/8bea94.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicStore/8bea94.wgsl.expected.spvasm rename to test/builtins/gen/atomicStore/8bea94.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicStore/8bea94.wgsl.expected.wgsl b/test/builtins/gen/atomicStore/8bea94.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicStore/8bea94.wgsl.expected.wgsl rename to test/builtins/gen/atomicStore/8bea94.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicStore/cdc29e.wgsl b/test/builtins/gen/atomicStore/cdc29e.wgsl similarity index 89% rename from test/intrinsics/gen/atomicStore/cdc29e.wgsl rename to test/builtins/gen/atomicStore/cdc29e.wgsl index b9cb3909ce..362f702b6b 100644 --- a/test/intrinsics/gen/atomicStore/cdc29e.wgsl +++ b/test/builtins/gen/atomicStore/cdc29e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicStore/cdc29e.wgsl.expected.glsl b/test/builtins/gen/atomicStore/cdc29e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicStore/cdc29e.wgsl.expected.glsl rename to test/builtins/gen/atomicStore/cdc29e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicStore/cdc29e.wgsl.expected.hlsl b/test/builtins/gen/atomicStore/cdc29e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicStore/cdc29e.wgsl.expected.hlsl rename to test/builtins/gen/atomicStore/cdc29e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicStore/cdc29e.wgsl.expected.msl b/test/builtins/gen/atomicStore/cdc29e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicStore/cdc29e.wgsl.expected.msl rename to test/builtins/gen/atomicStore/cdc29e.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicStore/cdc29e.wgsl.expected.spvasm b/test/builtins/gen/atomicStore/cdc29e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicStore/cdc29e.wgsl.expected.spvasm rename to test/builtins/gen/atomicStore/cdc29e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicStore/cdc29e.wgsl.expected.wgsl b/test/builtins/gen/atomicStore/cdc29e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicStore/cdc29e.wgsl.expected.wgsl rename to test/builtins/gen/atomicStore/cdc29e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicStore/d1e9a6.wgsl b/test/builtins/gen/atomicStore/d1e9a6.wgsl similarity index 89% rename from test/intrinsics/gen/atomicStore/d1e9a6.wgsl rename to test/builtins/gen/atomicStore/d1e9a6.wgsl index a4ff0954cc..0de53f58bd 100644 --- a/test/intrinsics/gen/atomicStore/d1e9a6.wgsl +++ b/test/builtins/gen/atomicStore/d1e9a6.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicStore/d1e9a6.wgsl.expected.glsl b/test/builtins/gen/atomicStore/d1e9a6.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicStore/d1e9a6.wgsl.expected.glsl rename to test/builtins/gen/atomicStore/d1e9a6.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicStore/d1e9a6.wgsl.expected.hlsl b/test/builtins/gen/atomicStore/d1e9a6.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicStore/d1e9a6.wgsl.expected.hlsl rename to test/builtins/gen/atomicStore/d1e9a6.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicStore/d1e9a6.wgsl.expected.msl b/test/builtins/gen/atomicStore/d1e9a6.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicStore/d1e9a6.wgsl.expected.msl rename to test/builtins/gen/atomicStore/d1e9a6.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicStore/d1e9a6.wgsl.expected.spvasm b/test/builtins/gen/atomicStore/d1e9a6.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicStore/d1e9a6.wgsl.expected.spvasm rename to test/builtins/gen/atomicStore/d1e9a6.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicStore/d1e9a6.wgsl.expected.wgsl b/test/builtins/gen/atomicStore/d1e9a6.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicStore/d1e9a6.wgsl.expected.wgsl rename to test/builtins/gen/atomicStore/d1e9a6.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicSub/051100.wgsl b/test/builtins/gen/atomicSub/051100.wgsl similarity index 89% rename from test/intrinsics/gen/atomicSub/051100.wgsl rename to test/builtins/gen/atomicSub/051100.wgsl index 698b794e8e..818b85faee 100644 --- a/test/intrinsics/gen/atomicSub/051100.wgsl +++ b/test/builtins/gen/atomicSub/051100.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicSub/051100.wgsl.expected.glsl b/test/builtins/gen/atomicSub/051100.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicSub/051100.wgsl.expected.glsl rename to test/builtins/gen/atomicSub/051100.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicSub/051100.wgsl.expected.hlsl b/test/builtins/gen/atomicSub/051100.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicSub/051100.wgsl.expected.hlsl rename to test/builtins/gen/atomicSub/051100.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicSub/051100.wgsl.expected.msl b/test/builtins/gen/atomicSub/051100.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicSub/051100.wgsl.expected.msl rename to test/builtins/gen/atomicSub/051100.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicSub/051100.wgsl.expected.spvasm b/test/builtins/gen/atomicSub/051100.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicSub/051100.wgsl.expected.spvasm rename to test/builtins/gen/atomicSub/051100.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicSub/051100.wgsl.expected.wgsl b/test/builtins/gen/atomicSub/051100.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicSub/051100.wgsl.expected.wgsl rename to test/builtins/gen/atomicSub/051100.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicSub/0d26c2.wgsl b/test/builtins/gen/atomicSub/0d26c2.wgsl similarity index 88% rename from test/intrinsics/gen/atomicSub/0d26c2.wgsl rename to test/builtins/gen/atomicSub/0d26c2.wgsl index 84cfa43166..43478d79e7 100644 --- a/test/intrinsics/gen/atomicSub/0d26c2.wgsl +++ b/test/builtins/gen/atomicSub/0d26c2.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicSub/0d26c2.wgsl.expected.glsl b/test/builtins/gen/atomicSub/0d26c2.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicSub/0d26c2.wgsl.expected.glsl rename to test/builtins/gen/atomicSub/0d26c2.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicSub/0d26c2.wgsl.expected.hlsl b/test/builtins/gen/atomicSub/0d26c2.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicSub/0d26c2.wgsl.expected.hlsl rename to test/builtins/gen/atomicSub/0d26c2.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicSub/0d26c2.wgsl.expected.msl b/test/builtins/gen/atomicSub/0d26c2.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicSub/0d26c2.wgsl.expected.msl rename to test/builtins/gen/atomicSub/0d26c2.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicSub/0d26c2.wgsl.expected.spvasm b/test/builtins/gen/atomicSub/0d26c2.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicSub/0d26c2.wgsl.expected.spvasm rename to test/builtins/gen/atomicSub/0d26c2.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicSub/0d26c2.wgsl.expected.wgsl b/test/builtins/gen/atomicSub/0d26c2.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicSub/0d26c2.wgsl.expected.wgsl rename to test/builtins/gen/atomicSub/0d26c2.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicSub/15bfc9.wgsl b/test/builtins/gen/atomicSub/15bfc9.wgsl similarity index 89% rename from test/intrinsics/gen/atomicSub/15bfc9.wgsl rename to test/builtins/gen/atomicSub/15bfc9.wgsl index e46889ef21..8609e9f301 100644 --- a/test/intrinsics/gen/atomicSub/15bfc9.wgsl +++ b/test/builtins/gen/atomicSub/15bfc9.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicSub/15bfc9.wgsl.expected.glsl b/test/builtins/gen/atomicSub/15bfc9.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicSub/15bfc9.wgsl.expected.glsl rename to test/builtins/gen/atomicSub/15bfc9.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicSub/15bfc9.wgsl.expected.hlsl b/test/builtins/gen/atomicSub/15bfc9.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicSub/15bfc9.wgsl.expected.hlsl rename to test/builtins/gen/atomicSub/15bfc9.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicSub/15bfc9.wgsl.expected.msl b/test/builtins/gen/atomicSub/15bfc9.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicSub/15bfc9.wgsl.expected.msl rename to test/builtins/gen/atomicSub/15bfc9.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicSub/15bfc9.wgsl.expected.spvasm b/test/builtins/gen/atomicSub/15bfc9.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicSub/15bfc9.wgsl.expected.spvasm rename to test/builtins/gen/atomicSub/15bfc9.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicSub/15bfc9.wgsl.expected.wgsl b/test/builtins/gen/atomicSub/15bfc9.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicSub/15bfc9.wgsl.expected.wgsl rename to test/builtins/gen/atomicSub/15bfc9.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicSub/77883a.wgsl b/test/builtins/gen/atomicSub/77883a.wgsl similarity index 88% rename from test/intrinsics/gen/atomicSub/77883a.wgsl rename to test/builtins/gen/atomicSub/77883a.wgsl index fc8fa7647a..3ab3abd4e6 100644 --- a/test/intrinsics/gen/atomicSub/77883a.wgsl +++ b/test/builtins/gen/atomicSub/77883a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicSub/77883a.wgsl.expected.glsl b/test/builtins/gen/atomicSub/77883a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicSub/77883a.wgsl.expected.glsl rename to test/builtins/gen/atomicSub/77883a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicSub/77883a.wgsl.expected.hlsl b/test/builtins/gen/atomicSub/77883a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicSub/77883a.wgsl.expected.hlsl rename to test/builtins/gen/atomicSub/77883a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicSub/77883a.wgsl.expected.msl b/test/builtins/gen/atomicSub/77883a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicSub/77883a.wgsl.expected.msl rename to test/builtins/gen/atomicSub/77883a.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicSub/77883a.wgsl.expected.spvasm b/test/builtins/gen/atomicSub/77883a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicSub/77883a.wgsl.expected.spvasm rename to test/builtins/gen/atomicSub/77883a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicSub/77883a.wgsl.expected.wgsl b/test/builtins/gen/atomicSub/77883a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicSub/77883a.wgsl.expected.wgsl rename to test/builtins/gen/atomicSub/77883a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicXor/54510e.wgsl b/test/builtins/gen/atomicXor/54510e.wgsl similarity index 89% rename from test/intrinsics/gen/atomicXor/54510e.wgsl rename to test/builtins/gen/atomicXor/54510e.wgsl index 6928f876e1..755c218dde 100644 --- a/test/intrinsics/gen/atomicXor/54510e.wgsl +++ b/test/builtins/gen/atomicXor/54510e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicXor/54510e.wgsl.expected.glsl b/test/builtins/gen/atomicXor/54510e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicXor/54510e.wgsl.expected.glsl rename to test/builtins/gen/atomicXor/54510e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicXor/54510e.wgsl.expected.hlsl b/test/builtins/gen/atomicXor/54510e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicXor/54510e.wgsl.expected.hlsl rename to test/builtins/gen/atomicXor/54510e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicXor/54510e.wgsl.expected.msl b/test/builtins/gen/atomicXor/54510e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicXor/54510e.wgsl.expected.msl rename to test/builtins/gen/atomicXor/54510e.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicXor/54510e.wgsl.expected.spvasm b/test/builtins/gen/atomicXor/54510e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicXor/54510e.wgsl.expected.spvasm rename to test/builtins/gen/atomicXor/54510e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicXor/54510e.wgsl.expected.wgsl b/test/builtins/gen/atomicXor/54510e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicXor/54510e.wgsl.expected.wgsl rename to test/builtins/gen/atomicXor/54510e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicXor/75dc95.wgsl b/test/builtins/gen/atomicXor/75dc95.wgsl similarity index 88% rename from test/intrinsics/gen/atomicXor/75dc95.wgsl rename to test/builtins/gen/atomicXor/75dc95.wgsl index 061d653c2f..951d7325c5 100644 --- a/test/intrinsics/gen/atomicXor/75dc95.wgsl +++ b/test/builtins/gen/atomicXor/75dc95.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicXor/75dc95.wgsl.expected.glsl b/test/builtins/gen/atomicXor/75dc95.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicXor/75dc95.wgsl.expected.glsl rename to test/builtins/gen/atomicXor/75dc95.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicXor/75dc95.wgsl.expected.hlsl b/test/builtins/gen/atomicXor/75dc95.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicXor/75dc95.wgsl.expected.hlsl rename to test/builtins/gen/atomicXor/75dc95.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicXor/75dc95.wgsl.expected.msl b/test/builtins/gen/atomicXor/75dc95.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicXor/75dc95.wgsl.expected.msl rename to test/builtins/gen/atomicXor/75dc95.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicXor/75dc95.wgsl.expected.spvasm b/test/builtins/gen/atomicXor/75dc95.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicXor/75dc95.wgsl.expected.spvasm rename to test/builtins/gen/atomicXor/75dc95.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicXor/75dc95.wgsl.expected.wgsl b/test/builtins/gen/atomicXor/75dc95.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicXor/75dc95.wgsl.expected.wgsl rename to test/builtins/gen/atomicXor/75dc95.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicXor/c1b78c.wgsl b/test/builtins/gen/atomicXor/c1b78c.wgsl similarity index 89% rename from test/intrinsics/gen/atomicXor/c1b78c.wgsl rename to test/builtins/gen/atomicXor/c1b78c.wgsl index 5bbc251d91..54c82df138 100644 --- a/test/intrinsics/gen/atomicXor/c1b78c.wgsl +++ b/test/builtins/gen/atomicXor/c1b78c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicXor/c1b78c.wgsl.expected.glsl b/test/builtins/gen/atomicXor/c1b78c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicXor/c1b78c.wgsl.expected.glsl rename to test/builtins/gen/atomicXor/c1b78c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicXor/c1b78c.wgsl.expected.hlsl b/test/builtins/gen/atomicXor/c1b78c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicXor/c1b78c.wgsl.expected.hlsl rename to test/builtins/gen/atomicXor/c1b78c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicXor/c1b78c.wgsl.expected.msl b/test/builtins/gen/atomicXor/c1b78c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicXor/c1b78c.wgsl.expected.msl rename to test/builtins/gen/atomicXor/c1b78c.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicXor/c1b78c.wgsl.expected.spvasm b/test/builtins/gen/atomicXor/c1b78c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicXor/c1b78c.wgsl.expected.spvasm rename to test/builtins/gen/atomicXor/c1b78c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicXor/c1b78c.wgsl.expected.wgsl b/test/builtins/gen/atomicXor/c1b78c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicXor/c1b78c.wgsl.expected.wgsl rename to test/builtins/gen/atomicXor/c1b78c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/atomicXor/c8e6be.wgsl b/test/builtins/gen/atomicXor/c8e6be.wgsl similarity index 88% rename from test/intrinsics/gen/atomicXor/c8e6be.wgsl rename to test/builtins/gen/atomicXor/c8e6be.wgsl index ce241183ae..bfc379d472 100644 --- a/test/intrinsics/gen/atomicXor/c8e6be.wgsl +++ b/test/builtins/gen/atomicXor/c8e6be.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/atomicXor/c8e6be.wgsl.expected.glsl b/test/builtins/gen/atomicXor/c8e6be.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/atomicXor/c8e6be.wgsl.expected.glsl rename to test/builtins/gen/atomicXor/c8e6be.wgsl.expected.glsl diff --git a/test/intrinsics/gen/atomicXor/c8e6be.wgsl.expected.hlsl b/test/builtins/gen/atomicXor/c8e6be.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/atomicXor/c8e6be.wgsl.expected.hlsl rename to test/builtins/gen/atomicXor/c8e6be.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/atomicXor/c8e6be.wgsl.expected.msl b/test/builtins/gen/atomicXor/c8e6be.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/atomicXor/c8e6be.wgsl.expected.msl rename to test/builtins/gen/atomicXor/c8e6be.wgsl.expected.msl diff --git a/test/intrinsics/gen/atomicXor/c8e6be.wgsl.expected.spvasm b/test/builtins/gen/atomicXor/c8e6be.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/atomicXor/c8e6be.wgsl.expected.spvasm rename to test/builtins/gen/atomicXor/c8e6be.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/atomicXor/c8e6be.wgsl.expected.wgsl b/test/builtins/gen/atomicXor/c8e6be.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/atomicXor/c8e6be.wgsl.expected.wgsl rename to test/builtins/gen/atomicXor/c8e6be.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/ceil/34064b.wgsl b/test/builtins/gen/ceil/34064b.wgsl similarity index 88% rename from test/intrinsics/gen/ceil/34064b.wgsl rename to test/builtins/gen/ceil/34064b.wgsl index 3d79d91618..41f8602c0a 100644 --- a/test/intrinsics/gen/ceil/34064b.wgsl +++ b/test/builtins/gen/ceil/34064b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/ceil/34064b.wgsl.expected.glsl b/test/builtins/gen/ceil/34064b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/ceil/34064b.wgsl.expected.glsl rename to test/builtins/gen/ceil/34064b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/ceil/34064b.wgsl.expected.hlsl b/test/builtins/gen/ceil/34064b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/ceil/34064b.wgsl.expected.hlsl rename to test/builtins/gen/ceil/34064b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/ceil/34064b.wgsl.expected.msl b/test/builtins/gen/ceil/34064b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/ceil/34064b.wgsl.expected.msl rename to test/builtins/gen/ceil/34064b.wgsl.expected.msl diff --git a/test/intrinsics/gen/ceil/34064b.wgsl.expected.spvasm b/test/builtins/gen/ceil/34064b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/ceil/34064b.wgsl.expected.spvasm rename to test/builtins/gen/ceil/34064b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/ceil/34064b.wgsl.expected.wgsl b/test/builtins/gen/ceil/34064b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/ceil/34064b.wgsl.expected.wgsl rename to test/builtins/gen/ceil/34064b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/ceil/678655.wgsl b/test/builtins/gen/ceil/678655.wgsl similarity index 88% rename from test/intrinsics/gen/ceil/678655.wgsl rename to test/builtins/gen/ceil/678655.wgsl index 0a49b589ca..e9d4249d1b 100644 --- a/test/intrinsics/gen/ceil/678655.wgsl +++ b/test/builtins/gen/ceil/678655.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/ceil/678655.wgsl.expected.glsl b/test/builtins/gen/ceil/678655.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/ceil/678655.wgsl.expected.glsl rename to test/builtins/gen/ceil/678655.wgsl.expected.glsl diff --git a/test/intrinsics/gen/ceil/678655.wgsl.expected.hlsl b/test/builtins/gen/ceil/678655.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/ceil/678655.wgsl.expected.hlsl rename to test/builtins/gen/ceil/678655.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/ceil/678655.wgsl.expected.msl b/test/builtins/gen/ceil/678655.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/ceil/678655.wgsl.expected.msl rename to test/builtins/gen/ceil/678655.wgsl.expected.msl diff --git a/test/intrinsics/gen/ceil/678655.wgsl.expected.spvasm b/test/builtins/gen/ceil/678655.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/ceil/678655.wgsl.expected.spvasm rename to test/builtins/gen/ceil/678655.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/ceil/678655.wgsl.expected.wgsl b/test/builtins/gen/ceil/678655.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/ceil/678655.wgsl.expected.wgsl rename to test/builtins/gen/ceil/678655.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/ceil/96f597.wgsl b/test/builtins/gen/ceil/96f597.wgsl similarity index 88% rename from test/intrinsics/gen/ceil/96f597.wgsl rename to test/builtins/gen/ceil/96f597.wgsl index 84647b951e..4b21a855ef 100644 --- a/test/intrinsics/gen/ceil/96f597.wgsl +++ b/test/builtins/gen/ceil/96f597.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/ceil/96f597.wgsl.expected.glsl b/test/builtins/gen/ceil/96f597.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/ceil/96f597.wgsl.expected.glsl rename to test/builtins/gen/ceil/96f597.wgsl.expected.glsl diff --git a/test/intrinsics/gen/ceil/96f597.wgsl.expected.hlsl b/test/builtins/gen/ceil/96f597.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/ceil/96f597.wgsl.expected.hlsl rename to test/builtins/gen/ceil/96f597.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/ceil/96f597.wgsl.expected.msl b/test/builtins/gen/ceil/96f597.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/ceil/96f597.wgsl.expected.msl rename to test/builtins/gen/ceil/96f597.wgsl.expected.msl diff --git a/test/intrinsics/gen/ceil/96f597.wgsl.expected.spvasm b/test/builtins/gen/ceil/96f597.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/ceil/96f597.wgsl.expected.spvasm rename to test/builtins/gen/ceil/96f597.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/ceil/96f597.wgsl.expected.wgsl b/test/builtins/gen/ceil/96f597.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/ceil/96f597.wgsl.expected.wgsl rename to test/builtins/gen/ceil/96f597.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/ceil/b74c16.wgsl b/test/builtins/gen/ceil/b74c16.wgsl similarity index 88% rename from test/intrinsics/gen/ceil/b74c16.wgsl rename to test/builtins/gen/ceil/b74c16.wgsl index 46a48b4ad1..f80ec4d3fb 100644 --- a/test/intrinsics/gen/ceil/b74c16.wgsl +++ b/test/builtins/gen/ceil/b74c16.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/ceil/b74c16.wgsl.expected.glsl b/test/builtins/gen/ceil/b74c16.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/ceil/b74c16.wgsl.expected.glsl rename to test/builtins/gen/ceil/b74c16.wgsl.expected.glsl diff --git a/test/intrinsics/gen/ceil/b74c16.wgsl.expected.hlsl b/test/builtins/gen/ceil/b74c16.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/ceil/b74c16.wgsl.expected.hlsl rename to test/builtins/gen/ceil/b74c16.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/ceil/b74c16.wgsl.expected.msl b/test/builtins/gen/ceil/b74c16.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/ceil/b74c16.wgsl.expected.msl rename to test/builtins/gen/ceil/b74c16.wgsl.expected.msl diff --git a/test/intrinsics/gen/ceil/b74c16.wgsl.expected.spvasm b/test/builtins/gen/ceil/b74c16.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/ceil/b74c16.wgsl.expected.spvasm rename to test/builtins/gen/ceil/b74c16.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/ceil/b74c16.wgsl.expected.wgsl b/test/builtins/gen/ceil/b74c16.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/ceil/b74c16.wgsl.expected.wgsl rename to test/builtins/gen/ceil/b74c16.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/clamp/0acf8f.wgsl b/test/builtins/gen/clamp/0acf8f.wgsl similarity index 89% rename from test/intrinsics/gen/clamp/0acf8f.wgsl rename to test/builtins/gen/clamp/0acf8f.wgsl index a55d7dca03..e7a635bbdd 100644 --- a/test/intrinsics/gen/clamp/0acf8f.wgsl +++ b/test/builtins/gen/clamp/0acf8f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/clamp/0acf8f.wgsl.expected.glsl b/test/builtins/gen/clamp/0acf8f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/clamp/0acf8f.wgsl.expected.glsl rename to test/builtins/gen/clamp/0acf8f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/clamp/0acf8f.wgsl.expected.hlsl b/test/builtins/gen/clamp/0acf8f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/clamp/0acf8f.wgsl.expected.hlsl rename to test/builtins/gen/clamp/0acf8f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/clamp/0acf8f.wgsl.expected.msl b/test/builtins/gen/clamp/0acf8f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/clamp/0acf8f.wgsl.expected.msl rename to test/builtins/gen/clamp/0acf8f.wgsl.expected.msl diff --git a/test/intrinsics/gen/clamp/0acf8f.wgsl.expected.spvasm b/test/builtins/gen/clamp/0acf8f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/clamp/0acf8f.wgsl.expected.spvasm rename to test/builtins/gen/clamp/0acf8f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/clamp/0acf8f.wgsl.expected.wgsl b/test/builtins/gen/clamp/0acf8f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/clamp/0acf8f.wgsl.expected.wgsl rename to test/builtins/gen/clamp/0acf8f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/clamp/1a32e3.wgsl b/test/builtins/gen/clamp/1a32e3.wgsl similarity index 89% rename from test/intrinsics/gen/clamp/1a32e3.wgsl rename to test/builtins/gen/clamp/1a32e3.wgsl index 723c13474c..a42b9655ae 100644 --- a/test/intrinsics/gen/clamp/1a32e3.wgsl +++ b/test/builtins/gen/clamp/1a32e3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/clamp/1a32e3.wgsl.expected.glsl b/test/builtins/gen/clamp/1a32e3.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/clamp/1a32e3.wgsl.expected.glsl rename to test/builtins/gen/clamp/1a32e3.wgsl.expected.glsl diff --git a/test/intrinsics/gen/clamp/1a32e3.wgsl.expected.hlsl b/test/builtins/gen/clamp/1a32e3.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/clamp/1a32e3.wgsl.expected.hlsl rename to test/builtins/gen/clamp/1a32e3.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/clamp/1a32e3.wgsl.expected.msl b/test/builtins/gen/clamp/1a32e3.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/clamp/1a32e3.wgsl.expected.msl rename to test/builtins/gen/clamp/1a32e3.wgsl.expected.msl diff --git a/test/intrinsics/gen/clamp/1a32e3.wgsl.expected.spvasm b/test/builtins/gen/clamp/1a32e3.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/clamp/1a32e3.wgsl.expected.spvasm rename to test/builtins/gen/clamp/1a32e3.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/clamp/1a32e3.wgsl.expected.wgsl b/test/builtins/gen/clamp/1a32e3.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/clamp/1a32e3.wgsl.expected.wgsl rename to test/builtins/gen/clamp/1a32e3.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/clamp/2bd567.wgsl b/test/builtins/gen/clamp/2bd567.wgsl similarity index 88% rename from test/intrinsics/gen/clamp/2bd567.wgsl rename to test/builtins/gen/clamp/2bd567.wgsl index e8d2ed23b4..9fa69a0d0d 100644 --- a/test/intrinsics/gen/clamp/2bd567.wgsl +++ b/test/builtins/gen/clamp/2bd567.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/clamp/2bd567.wgsl.expected.glsl b/test/builtins/gen/clamp/2bd567.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/clamp/2bd567.wgsl.expected.glsl rename to test/builtins/gen/clamp/2bd567.wgsl.expected.glsl diff --git a/test/intrinsics/gen/clamp/2bd567.wgsl.expected.hlsl b/test/builtins/gen/clamp/2bd567.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/clamp/2bd567.wgsl.expected.hlsl rename to test/builtins/gen/clamp/2bd567.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/clamp/2bd567.wgsl.expected.msl b/test/builtins/gen/clamp/2bd567.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/clamp/2bd567.wgsl.expected.msl rename to test/builtins/gen/clamp/2bd567.wgsl.expected.msl diff --git a/test/intrinsics/gen/clamp/2bd567.wgsl.expected.spvasm b/test/builtins/gen/clamp/2bd567.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/clamp/2bd567.wgsl.expected.spvasm rename to test/builtins/gen/clamp/2bd567.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/clamp/2bd567.wgsl.expected.wgsl b/test/builtins/gen/clamp/2bd567.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/clamp/2bd567.wgsl.expected.wgsl rename to test/builtins/gen/clamp/2bd567.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/clamp/2bde41.wgsl b/test/builtins/gen/clamp/2bde41.wgsl similarity index 89% rename from test/intrinsics/gen/clamp/2bde41.wgsl rename to test/builtins/gen/clamp/2bde41.wgsl index 582549cf3b..bdc06b9177 100644 --- a/test/intrinsics/gen/clamp/2bde41.wgsl +++ b/test/builtins/gen/clamp/2bde41.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/clamp/2bde41.wgsl.expected.glsl b/test/builtins/gen/clamp/2bde41.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/clamp/2bde41.wgsl.expected.glsl rename to test/builtins/gen/clamp/2bde41.wgsl.expected.glsl diff --git a/test/intrinsics/gen/clamp/2bde41.wgsl.expected.hlsl b/test/builtins/gen/clamp/2bde41.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/clamp/2bde41.wgsl.expected.hlsl rename to test/builtins/gen/clamp/2bde41.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/clamp/2bde41.wgsl.expected.msl b/test/builtins/gen/clamp/2bde41.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/clamp/2bde41.wgsl.expected.msl rename to test/builtins/gen/clamp/2bde41.wgsl.expected.msl diff --git a/test/intrinsics/gen/clamp/2bde41.wgsl.expected.spvasm b/test/builtins/gen/clamp/2bde41.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/clamp/2bde41.wgsl.expected.spvasm rename to test/builtins/gen/clamp/2bde41.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/clamp/2bde41.wgsl.expected.wgsl b/test/builtins/gen/clamp/2bde41.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/clamp/2bde41.wgsl.expected.wgsl rename to test/builtins/gen/clamp/2bde41.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/clamp/548fc7.wgsl b/test/builtins/gen/clamp/548fc7.wgsl similarity index 89% rename from test/intrinsics/gen/clamp/548fc7.wgsl rename to test/builtins/gen/clamp/548fc7.wgsl index 8863032b2b..202aecb9c5 100644 --- a/test/intrinsics/gen/clamp/548fc7.wgsl +++ b/test/builtins/gen/clamp/548fc7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/clamp/548fc7.wgsl.expected.glsl b/test/builtins/gen/clamp/548fc7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/clamp/548fc7.wgsl.expected.glsl rename to test/builtins/gen/clamp/548fc7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/clamp/548fc7.wgsl.expected.hlsl b/test/builtins/gen/clamp/548fc7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/clamp/548fc7.wgsl.expected.hlsl rename to test/builtins/gen/clamp/548fc7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/clamp/548fc7.wgsl.expected.msl b/test/builtins/gen/clamp/548fc7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/clamp/548fc7.wgsl.expected.msl rename to test/builtins/gen/clamp/548fc7.wgsl.expected.msl diff --git a/test/intrinsics/gen/clamp/548fc7.wgsl.expected.spvasm b/test/builtins/gen/clamp/548fc7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/clamp/548fc7.wgsl.expected.spvasm rename to test/builtins/gen/clamp/548fc7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/clamp/548fc7.wgsl.expected.wgsl b/test/builtins/gen/clamp/548fc7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/clamp/548fc7.wgsl.expected.wgsl rename to test/builtins/gen/clamp/548fc7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/clamp/5f0819.wgsl b/test/builtins/gen/clamp/5f0819.wgsl similarity index 89% rename from test/intrinsics/gen/clamp/5f0819.wgsl rename to test/builtins/gen/clamp/5f0819.wgsl index c128db4fac..5ee0369f99 100644 --- a/test/intrinsics/gen/clamp/5f0819.wgsl +++ b/test/builtins/gen/clamp/5f0819.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/clamp/5f0819.wgsl.expected.glsl b/test/builtins/gen/clamp/5f0819.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/clamp/5f0819.wgsl.expected.glsl rename to test/builtins/gen/clamp/5f0819.wgsl.expected.glsl diff --git a/test/intrinsics/gen/clamp/5f0819.wgsl.expected.hlsl b/test/builtins/gen/clamp/5f0819.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/clamp/5f0819.wgsl.expected.hlsl rename to test/builtins/gen/clamp/5f0819.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/clamp/5f0819.wgsl.expected.msl b/test/builtins/gen/clamp/5f0819.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/clamp/5f0819.wgsl.expected.msl rename to test/builtins/gen/clamp/5f0819.wgsl.expected.msl diff --git a/test/intrinsics/gen/clamp/5f0819.wgsl.expected.spvasm b/test/builtins/gen/clamp/5f0819.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/clamp/5f0819.wgsl.expected.spvasm rename to test/builtins/gen/clamp/5f0819.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/clamp/5f0819.wgsl.expected.wgsl b/test/builtins/gen/clamp/5f0819.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/clamp/5f0819.wgsl.expected.wgsl rename to test/builtins/gen/clamp/5f0819.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/clamp/6c1749.wgsl b/test/builtins/gen/clamp/6c1749.wgsl similarity index 89% rename from test/intrinsics/gen/clamp/6c1749.wgsl rename to test/builtins/gen/clamp/6c1749.wgsl index 3592939309..dd62b9c100 100644 --- a/test/intrinsics/gen/clamp/6c1749.wgsl +++ b/test/builtins/gen/clamp/6c1749.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/clamp/6c1749.wgsl.expected.glsl b/test/builtins/gen/clamp/6c1749.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/clamp/6c1749.wgsl.expected.glsl rename to test/builtins/gen/clamp/6c1749.wgsl.expected.glsl diff --git a/test/intrinsics/gen/clamp/6c1749.wgsl.expected.hlsl b/test/builtins/gen/clamp/6c1749.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/clamp/6c1749.wgsl.expected.hlsl rename to test/builtins/gen/clamp/6c1749.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/clamp/6c1749.wgsl.expected.msl b/test/builtins/gen/clamp/6c1749.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/clamp/6c1749.wgsl.expected.msl rename to test/builtins/gen/clamp/6c1749.wgsl.expected.msl diff --git a/test/intrinsics/gen/clamp/6c1749.wgsl.expected.spvasm b/test/builtins/gen/clamp/6c1749.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/clamp/6c1749.wgsl.expected.spvasm rename to test/builtins/gen/clamp/6c1749.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/clamp/6c1749.wgsl.expected.wgsl b/test/builtins/gen/clamp/6c1749.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/clamp/6c1749.wgsl.expected.wgsl rename to test/builtins/gen/clamp/6c1749.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/clamp/7706d7.wgsl b/test/builtins/gen/clamp/7706d7.wgsl similarity index 89% rename from test/intrinsics/gen/clamp/7706d7.wgsl rename to test/builtins/gen/clamp/7706d7.wgsl index 5e648fedbb..0ab5c81528 100644 --- a/test/intrinsics/gen/clamp/7706d7.wgsl +++ b/test/builtins/gen/clamp/7706d7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/clamp/7706d7.wgsl.expected.glsl b/test/builtins/gen/clamp/7706d7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/clamp/7706d7.wgsl.expected.glsl rename to test/builtins/gen/clamp/7706d7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/clamp/7706d7.wgsl.expected.hlsl b/test/builtins/gen/clamp/7706d7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/clamp/7706d7.wgsl.expected.hlsl rename to test/builtins/gen/clamp/7706d7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/clamp/7706d7.wgsl.expected.msl b/test/builtins/gen/clamp/7706d7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/clamp/7706d7.wgsl.expected.msl rename to test/builtins/gen/clamp/7706d7.wgsl.expected.msl diff --git a/test/intrinsics/gen/clamp/7706d7.wgsl.expected.spvasm b/test/builtins/gen/clamp/7706d7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/clamp/7706d7.wgsl.expected.spvasm rename to test/builtins/gen/clamp/7706d7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/clamp/7706d7.wgsl.expected.wgsl b/test/builtins/gen/clamp/7706d7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/clamp/7706d7.wgsl.expected.wgsl rename to test/builtins/gen/clamp/7706d7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/clamp/867397.wgsl b/test/builtins/gen/clamp/867397.wgsl similarity index 89% rename from test/intrinsics/gen/clamp/867397.wgsl rename to test/builtins/gen/clamp/867397.wgsl index 96596d0c3f..6a0e4f351c 100644 --- a/test/intrinsics/gen/clamp/867397.wgsl +++ b/test/builtins/gen/clamp/867397.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/clamp/867397.wgsl.expected.glsl b/test/builtins/gen/clamp/867397.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/clamp/867397.wgsl.expected.glsl rename to test/builtins/gen/clamp/867397.wgsl.expected.glsl diff --git a/test/intrinsics/gen/clamp/867397.wgsl.expected.hlsl b/test/builtins/gen/clamp/867397.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/clamp/867397.wgsl.expected.hlsl rename to test/builtins/gen/clamp/867397.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/clamp/867397.wgsl.expected.msl b/test/builtins/gen/clamp/867397.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/clamp/867397.wgsl.expected.msl rename to test/builtins/gen/clamp/867397.wgsl.expected.msl diff --git a/test/intrinsics/gen/clamp/867397.wgsl.expected.spvasm b/test/builtins/gen/clamp/867397.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/clamp/867397.wgsl.expected.spvasm rename to test/builtins/gen/clamp/867397.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/clamp/867397.wgsl.expected.wgsl b/test/builtins/gen/clamp/867397.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/clamp/867397.wgsl.expected.wgsl rename to test/builtins/gen/clamp/867397.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/clamp/a2de25.wgsl b/test/builtins/gen/clamp/a2de25.wgsl similarity index 88% rename from test/intrinsics/gen/clamp/a2de25.wgsl rename to test/builtins/gen/clamp/a2de25.wgsl index 403c5bf84a..671ecbcaa2 100644 --- a/test/intrinsics/gen/clamp/a2de25.wgsl +++ b/test/builtins/gen/clamp/a2de25.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/clamp/a2de25.wgsl.expected.glsl b/test/builtins/gen/clamp/a2de25.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/clamp/a2de25.wgsl.expected.glsl rename to test/builtins/gen/clamp/a2de25.wgsl.expected.glsl diff --git a/test/intrinsics/gen/clamp/a2de25.wgsl.expected.hlsl b/test/builtins/gen/clamp/a2de25.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/clamp/a2de25.wgsl.expected.hlsl rename to test/builtins/gen/clamp/a2de25.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/clamp/a2de25.wgsl.expected.msl b/test/builtins/gen/clamp/a2de25.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/clamp/a2de25.wgsl.expected.msl rename to test/builtins/gen/clamp/a2de25.wgsl.expected.msl diff --git a/test/intrinsics/gen/clamp/a2de25.wgsl.expected.spvasm b/test/builtins/gen/clamp/a2de25.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/clamp/a2de25.wgsl.expected.spvasm rename to test/builtins/gen/clamp/a2de25.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/clamp/a2de25.wgsl.expected.wgsl b/test/builtins/gen/clamp/a2de25.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/clamp/a2de25.wgsl.expected.wgsl rename to test/builtins/gen/clamp/a2de25.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/clamp/b07c65.wgsl b/test/builtins/gen/clamp/b07c65.wgsl similarity index 88% rename from test/intrinsics/gen/clamp/b07c65.wgsl rename to test/builtins/gen/clamp/b07c65.wgsl index 1d187094de..1616879ea6 100644 --- a/test/intrinsics/gen/clamp/b07c65.wgsl +++ b/test/builtins/gen/clamp/b07c65.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/clamp/b07c65.wgsl.expected.glsl b/test/builtins/gen/clamp/b07c65.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/clamp/b07c65.wgsl.expected.glsl rename to test/builtins/gen/clamp/b07c65.wgsl.expected.glsl diff --git a/test/intrinsics/gen/clamp/b07c65.wgsl.expected.hlsl b/test/builtins/gen/clamp/b07c65.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/clamp/b07c65.wgsl.expected.hlsl rename to test/builtins/gen/clamp/b07c65.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/clamp/b07c65.wgsl.expected.msl b/test/builtins/gen/clamp/b07c65.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/clamp/b07c65.wgsl.expected.msl rename to test/builtins/gen/clamp/b07c65.wgsl.expected.msl diff --git a/test/intrinsics/gen/clamp/b07c65.wgsl.expected.spvasm b/test/builtins/gen/clamp/b07c65.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/clamp/b07c65.wgsl.expected.spvasm rename to test/builtins/gen/clamp/b07c65.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/clamp/b07c65.wgsl.expected.wgsl b/test/builtins/gen/clamp/b07c65.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/clamp/b07c65.wgsl.expected.wgsl rename to test/builtins/gen/clamp/b07c65.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/clamp/bd43ce.wgsl b/test/builtins/gen/clamp/bd43ce.wgsl similarity index 89% rename from test/intrinsics/gen/clamp/bd43ce.wgsl rename to test/builtins/gen/clamp/bd43ce.wgsl index 45085ef996..fbdbb70de5 100644 --- a/test/intrinsics/gen/clamp/bd43ce.wgsl +++ b/test/builtins/gen/clamp/bd43ce.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/clamp/bd43ce.wgsl.expected.glsl b/test/builtins/gen/clamp/bd43ce.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/clamp/bd43ce.wgsl.expected.glsl rename to test/builtins/gen/clamp/bd43ce.wgsl.expected.glsl diff --git a/test/intrinsics/gen/clamp/bd43ce.wgsl.expected.hlsl b/test/builtins/gen/clamp/bd43ce.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/clamp/bd43ce.wgsl.expected.hlsl rename to test/builtins/gen/clamp/bd43ce.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/clamp/bd43ce.wgsl.expected.msl b/test/builtins/gen/clamp/bd43ce.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/clamp/bd43ce.wgsl.expected.msl rename to test/builtins/gen/clamp/bd43ce.wgsl.expected.msl diff --git a/test/intrinsics/gen/clamp/bd43ce.wgsl.expected.spvasm b/test/builtins/gen/clamp/bd43ce.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/clamp/bd43ce.wgsl.expected.spvasm rename to test/builtins/gen/clamp/bd43ce.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/clamp/bd43ce.wgsl.expected.wgsl b/test/builtins/gen/clamp/bd43ce.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/clamp/bd43ce.wgsl.expected.wgsl rename to test/builtins/gen/clamp/bd43ce.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/cos/16dc15.wgsl b/test/builtins/gen/cos/16dc15.wgsl similarity index 88% rename from test/intrinsics/gen/cos/16dc15.wgsl rename to test/builtins/gen/cos/16dc15.wgsl index 9f92844eef..0e917e3b77 100644 --- a/test/intrinsics/gen/cos/16dc15.wgsl +++ b/test/builtins/gen/cos/16dc15.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/cos/16dc15.wgsl.expected.glsl b/test/builtins/gen/cos/16dc15.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/cos/16dc15.wgsl.expected.glsl rename to test/builtins/gen/cos/16dc15.wgsl.expected.glsl diff --git a/test/intrinsics/gen/cos/16dc15.wgsl.expected.hlsl b/test/builtins/gen/cos/16dc15.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/cos/16dc15.wgsl.expected.hlsl rename to test/builtins/gen/cos/16dc15.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/cos/16dc15.wgsl.expected.msl b/test/builtins/gen/cos/16dc15.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/cos/16dc15.wgsl.expected.msl rename to test/builtins/gen/cos/16dc15.wgsl.expected.msl diff --git a/test/intrinsics/gen/cos/16dc15.wgsl.expected.spvasm b/test/builtins/gen/cos/16dc15.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/cos/16dc15.wgsl.expected.spvasm rename to test/builtins/gen/cos/16dc15.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/cos/16dc15.wgsl.expected.wgsl b/test/builtins/gen/cos/16dc15.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/cos/16dc15.wgsl.expected.wgsl rename to test/builtins/gen/cos/16dc15.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/cos/29d66d.wgsl b/test/builtins/gen/cos/29d66d.wgsl similarity index 88% rename from test/intrinsics/gen/cos/29d66d.wgsl rename to test/builtins/gen/cos/29d66d.wgsl index d0082a4002..7c47ea4da3 100644 --- a/test/intrinsics/gen/cos/29d66d.wgsl +++ b/test/builtins/gen/cos/29d66d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/cos/29d66d.wgsl.expected.glsl b/test/builtins/gen/cos/29d66d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/cos/29d66d.wgsl.expected.glsl rename to test/builtins/gen/cos/29d66d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/cos/29d66d.wgsl.expected.hlsl b/test/builtins/gen/cos/29d66d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/cos/29d66d.wgsl.expected.hlsl rename to test/builtins/gen/cos/29d66d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/cos/29d66d.wgsl.expected.msl b/test/builtins/gen/cos/29d66d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/cos/29d66d.wgsl.expected.msl rename to test/builtins/gen/cos/29d66d.wgsl.expected.msl diff --git a/test/intrinsics/gen/cos/29d66d.wgsl.expected.spvasm b/test/builtins/gen/cos/29d66d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/cos/29d66d.wgsl.expected.spvasm rename to test/builtins/gen/cos/29d66d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/cos/29d66d.wgsl.expected.wgsl b/test/builtins/gen/cos/29d66d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/cos/29d66d.wgsl.expected.wgsl rename to test/builtins/gen/cos/29d66d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/cos/c3b486.wgsl b/test/builtins/gen/cos/c3b486.wgsl similarity index 88% rename from test/intrinsics/gen/cos/c3b486.wgsl rename to test/builtins/gen/cos/c3b486.wgsl index 58bf9737fa..942f1bd9e0 100644 --- a/test/intrinsics/gen/cos/c3b486.wgsl +++ b/test/builtins/gen/cos/c3b486.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/cos/c3b486.wgsl.expected.glsl b/test/builtins/gen/cos/c3b486.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/cos/c3b486.wgsl.expected.glsl rename to test/builtins/gen/cos/c3b486.wgsl.expected.glsl diff --git a/test/intrinsics/gen/cos/c3b486.wgsl.expected.hlsl b/test/builtins/gen/cos/c3b486.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/cos/c3b486.wgsl.expected.hlsl rename to test/builtins/gen/cos/c3b486.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/cos/c3b486.wgsl.expected.msl b/test/builtins/gen/cos/c3b486.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/cos/c3b486.wgsl.expected.msl rename to test/builtins/gen/cos/c3b486.wgsl.expected.msl diff --git a/test/intrinsics/gen/cos/c3b486.wgsl.expected.spvasm b/test/builtins/gen/cos/c3b486.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/cos/c3b486.wgsl.expected.spvasm rename to test/builtins/gen/cos/c3b486.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/cos/c3b486.wgsl.expected.wgsl b/test/builtins/gen/cos/c3b486.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/cos/c3b486.wgsl.expected.wgsl rename to test/builtins/gen/cos/c3b486.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/cos/c5c28e.wgsl b/test/builtins/gen/cos/c5c28e.wgsl similarity index 88% rename from test/intrinsics/gen/cos/c5c28e.wgsl rename to test/builtins/gen/cos/c5c28e.wgsl index 249a587f3a..d88b9e1eab 100644 --- a/test/intrinsics/gen/cos/c5c28e.wgsl +++ b/test/builtins/gen/cos/c5c28e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/cos/c5c28e.wgsl.expected.glsl b/test/builtins/gen/cos/c5c28e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/cos/c5c28e.wgsl.expected.glsl rename to test/builtins/gen/cos/c5c28e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/cos/c5c28e.wgsl.expected.hlsl b/test/builtins/gen/cos/c5c28e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/cos/c5c28e.wgsl.expected.hlsl rename to test/builtins/gen/cos/c5c28e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/cos/c5c28e.wgsl.expected.msl b/test/builtins/gen/cos/c5c28e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/cos/c5c28e.wgsl.expected.msl rename to test/builtins/gen/cos/c5c28e.wgsl.expected.msl diff --git a/test/intrinsics/gen/cos/c5c28e.wgsl.expected.spvasm b/test/builtins/gen/cos/c5c28e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/cos/c5c28e.wgsl.expected.spvasm rename to test/builtins/gen/cos/c5c28e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/cos/c5c28e.wgsl.expected.wgsl b/test/builtins/gen/cos/c5c28e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/cos/c5c28e.wgsl.expected.wgsl rename to test/builtins/gen/cos/c5c28e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/cosh/377652.wgsl b/test/builtins/gen/cosh/377652.wgsl similarity index 88% rename from test/intrinsics/gen/cosh/377652.wgsl rename to test/builtins/gen/cosh/377652.wgsl index b528307a15..ff336ed1ac 100644 --- a/test/intrinsics/gen/cosh/377652.wgsl +++ b/test/builtins/gen/cosh/377652.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/cosh/377652.wgsl.expected.glsl b/test/builtins/gen/cosh/377652.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/cosh/377652.wgsl.expected.glsl rename to test/builtins/gen/cosh/377652.wgsl.expected.glsl diff --git a/test/intrinsics/gen/cosh/377652.wgsl.expected.hlsl b/test/builtins/gen/cosh/377652.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/cosh/377652.wgsl.expected.hlsl rename to test/builtins/gen/cosh/377652.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/cosh/377652.wgsl.expected.msl b/test/builtins/gen/cosh/377652.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/cosh/377652.wgsl.expected.msl rename to test/builtins/gen/cosh/377652.wgsl.expected.msl diff --git a/test/intrinsics/gen/cosh/377652.wgsl.expected.spvasm b/test/builtins/gen/cosh/377652.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/cosh/377652.wgsl.expected.spvasm rename to test/builtins/gen/cosh/377652.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/cosh/377652.wgsl.expected.wgsl b/test/builtins/gen/cosh/377652.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/cosh/377652.wgsl.expected.wgsl rename to test/builtins/gen/cosh/377652.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/cosh/c13756.wgsl b/test/builtins/gen/cosh/c13756.wgsl similarity index 88% rename from test/intrinsics/gen/cosh/c13756.wgsl rename to test/builtins/gen/cosh/c13756.wgsl index fa11315c83..4eadf79a07 100644 --- a/test/intrinsics/gen/cosh/c13756.wgsl +++ b/test/builtins/gen/cosh/c13756.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/cosh/c13756.wgsl.expected.glsl b/test/builtins/gen/cosh/c13756.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/cosh/c13756.wgsl.expected.glsl rename to test/builtins/gen/cosh/c13756.wgsl.expected.glsl diff --git a/test/intrinsics/gen/cosh/c13756.wgsl.expected.hlsl b/test/builtins/gen/cosh/c13756.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/cosh/c13756.wgsl.expected.hlsl rename to test/builtins/gen/cosh/c13756.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/cosh/c13756.wgsl.expected.msl b/test/builtins/gen/cosh/c13756.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/cosh/c13756.wgsl.expected.msl rename to test/builtins/gen/cosh/c13756.wgsl.expected.msl diff --git a/test/intrinsics/gen/cosh/c13756.wgsl.expected.spvasm b/test/builtins/gen/cosh/c13756.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/cosh/c13756.wgsl.expected.spvasm rename to test/builtins/gen/cosh/c13756.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/cosh/c13756.wgsl.expected.wgsl b/test/builtins/gen/cosh/c13756.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/cosh/c13756.wgsl.expected.wgsl rename to test/builtins/gen/cosh/c13756.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/cosh/da92dd.wgsl b/test/builtins/gen/cosh/da92dd.wgsl similarity index 88% rename from test/intrinsics/gen/cosh/da92dd.wgsl rename to test/builtins/gen/cosh/da92dd.wgsl index 59eb8df9ae..770696cfc2 100644 --- a/test/intrinsics/gen/cosh/da92dd.wgsl +++ b/test/builtins/gen/cosh/da92dd.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/cosh/da92dd.wgsl.expected.glsl b/test/builtins/gen/cosh/da92dd.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/cosh/da92dd.wgsl.expected.glsl rename to test/builtins/gen/cosh/da92dd.wgsl.expected.glsl diff --git a/test/intrinsics/gen/cosh/da92dd.wgsl.expected.hlsl b/test/builtins/gen/cosh/da92dd.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/cosh/da92dd.wgsl.expected.hlsl rename to test/builtins/gen/cosh/da92dd.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/cosh/da92dd.wgsl.expected.msl b/test/builtins/gen/cosh/da92dd.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/cosh/da92dd.wgsl.expected.msl rename to test/builtins/gen/cosh/da92dd.wgsl.expected.msl diff --git a/test/intrinsics/gen/cosh/da92dd.wgsl.expected.spvasm b/test/builtins/gen/cosh/da92dd.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/cosh/da92dd.wgsl.expected.spvasm rename to test/builtins/gen/cosh/da92dd.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/cosh/da92dd.wgsl.expected.wgsl b/test/builtins/gen/cosh/da92dd.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/cosh/da92dd.wgsl.expected.wgsl rename to test/builtins/gen/cosh/da92dd.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/cosh/e0c1de.wgsl b/test/builtins/gen/cosh/e0c1de.wgsl similarity index 88% rename from test/intrinsics/gen/cosh/e0c1de.wgsl rename to test/builtins/gen/cosh/e0c1de.wgsl index 961d55f119..79f948ea82 100644 --- a/test/intrinsics/gen/cosh/e0c1de.wgsl +++ b/test/builtins/gen/cosh/e0c1de.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/cosh/e0c1de.wgsl.expected.glsl b/test/builtins/gen/cosh/e0c1de.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/cosh/e0c1de.wgsl.expected.glsl rename to test/builtins/gen/cosh/e0c1de.wgsl.expected.glsl diff --git a/test/intrinsics/gen/cosh/e0c1de.wgsl.expected.hlsl b/test/builtins/gen/cosh/e0c1de.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/cosh/e0c1de.wgsl.expected.hlsl rename to test/builtins/gen/cosh/e0c1de.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/cosh/e0c1de.wgsl.expected.msl b/test/builtins/gen/cosh/e0c1de.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/cosh/e0c1de.wgsl.expected.msl rename to test/builtins/gen/cosh/e0c1de.wgsl.expected.msl diff --git a/test/intrinsics/gen/cosh/e0c1de.wgsl.expected.spvasm b/test/builtins/gen/cosh/e0c1de.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/cosh/e0c1de.wgsl.expected.spvasm rename to test/builtins/gen/cosh/e0c1de.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/cosh/e0c1de.wgsl.expected.wgsl b/test/builtins/gen/cosh/e0c1de.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/cosh/e0c1de.wgsl.expected.wgsl rename to test/builtins/gen/cosh/e0c1de.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/countOneBits/0d0e46.wgsl b/test/builtins/gen/countOneBits/0d0e46.wgsl similarity index 89% rename from test/intrinsics/gen/countOneBits/0d0e46.wgsl rename to test/builtins/gen/countOneBits/0d0e46.wgsl index dc6b49ef52..adef749cb0 100644 --- a/test/intrinsics/gen/countOneBits/0d0e46.wgsl +++ b/test/builtins/gen/countOneBits/0d0e46.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/countOneBits/0d0e46.wgsl.expected.glsl b/test/builtins/gen/countOneBits/0d0e46.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/countOneBits/0d0e46.wgsl.expected.glsl rename to test/builtins/gen/countOneBits/0d0e46.wgsl.expected.glsl diff --git a/test/intrinsics/gen/countOneBits/0d0e46.wgsl.expected.hlsl b/test/builtins/gen/countOneBits/0d0e46.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/countOneBits/0d0e46.wgsl.expected.hlsl rename to test/builtins/gen/countOneBits/0d0e46.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/countOneBits/0d0e46.wgsl.expected.msl b/test/builtins/gen/countOneBits/0d0e46.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/countOneBits/0d0e46.wgsl.expected.msl rename to test/builtins/gen/countOneBits/0d0e46.wgsl.expected.msl diff --git a/test/intrinsics/gen/countOneBits/0d0e46.wgsl.expected.spvasm b/test/builtins/gen/countOneBits/0d0e46.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/countOneBits/0d0e46.wgsl.expected.spvasm rename to test/builtins/gen/countOneBits/0d0e46.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/countOneBits/0d0e46.wgsl.expected.wgsl b/test/builtins/gen/countOneBits/0d0e46.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/countOneBits/0d0e46.wgsl.expected.wgsl rename to test/builtins/gen/countOneBits/0d0e46.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/countOneBits/0f7980.wgsl b/test/builtins/gen/countOneBits/0f7980.wgsl similarity index 89% rename from test/intrinsics/gen/countOneBits/0f7980.wgsl rename to test/builtins/gen/countOneBits/0f7980.wgsl index cf4b27b787..95185f5949 100644 --- a/test/intrinsics/gen/countOneBits/0f7980.wgsl +++ b/test/builtins/gen/countOneBits/0f7980.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/countOneBits/0f7980.wgsl.expected.glsl b/test/builtins/gen/countOneBits/0f7980.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/countOneBits/0f7980.wgsl.expected.glsl rename to test/builtins/gen/countOneBits/0f7980.wgsl.expected.glsl diff --git a/test/intrinsics/gen/countOneBits/0f7980.wgsl.expected.hlsl b/test/builtins/gen/countOneBits/0f7980.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/countOneBits/0f7980.wgsl.expected.hlsl rename to test/builtins/gen/countOneBits/0f7980.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/countOneBits/0f7980.wgsl.expected.msl b/test/builtins/gen/countOneBits/0f7980.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/countOneBits/0f7980.wgsl.expected.msl rename to test/builtins/gen/countOneBits/0f7980.wgsl.expected.msl diff --git a/test/intrinsics/gen/countOneBits/0f7980.wgsl.expected.spvasm b/test/builtins/gen/countOneBits/0f7980.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/countOneBits/0f7980.wgsl.expected.spvasm rename to test/builtins/gen/countOneBits/0f7980.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/countOneBits/0f7980.wgsl.expected.wgsl b/test/builtins/gen/countOneBits/0f7980.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/countOneBits/0f7980.wgsl.expected.wgsl rename to test/builtins/gen/countOneBits/0f7980.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/countOneBits/65d2ae.wgsl b/test/builtins/gen/countOneBits/65d2ae.wgsl similarity index 89% rename from test/intrinsics/gen/countOneBits/65d2ae.wgsl rename to test/builtins/gen/countOneBits/65d2ae.wgsl index ba29117cf1..c0d2bfa4d7 100644 --- a/test/intrinsics/gen/countOneBits/65d2ae.wgsl +++ b/test/builtins/gen/countOneBits/65d2ae.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/countOneBits/65d2ae.wgsl.expected.glsl b/test/builtins/gen/countOneBits/65d2ae.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/countOneBits/65d2ae.wgsl.expected.glsl rename to test/builtins/gen/countOneBits/65d2ae.wgsl.expected.glsl diff --git a/test/intrinsics/gen/countOneBits/65d2ae.wgsl.expected.hlsl b/test/builtins/gen/countOneBits/65d2ae.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/countOneBits/65d2ae.wgsl.expected.hlsl rename to test/builtins/gen/countOneBits/65d2ae.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/countOneBits/65d2ae.wgsl.expected.msl b/test/builtins/gen/countOneBits/65d2ae.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/countOneBits/65d2ae.wgsl.expected.msl rename to test/builtins/gen/countOneBits/65d2ae.wgsl.expected.msl diff --git a/test/intrinsics/gen/countOneBits/65d2ae.wgsl.expected.spvasm b/test/builtins/gen/countOneBits/65d2ae.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/countOneBits/65d2ae.wgsl.expected.spvasm rename to test/builtins/gen/countOneBits/65d2ae.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/countOneBits/65d2ae.wgsl.expected.wgsl b/test/builtins/gen/countOneBits/65d2ae.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/countOneBits/65d2ae.wgsl.expected.wgsl rename to test/builtins/gen/countOneBits/65d2ae.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/countOneBits/690cfc.wgsl b/test/builtins/gen/countOneBits/690cfc.wgsl similarity index 89% rename from test/intrinsics/gen/countOneBits/690cfc.wgsl rename to test/builtins/gen/countOneBits/690cfc.wgsl index 77ce9c4c23..7770626220 100644 --- a/test/intrinsics/gen/countOneBits/690cfc.wgsl +++ b/test/builtins/gen/countOneBits/690cfc.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/countOneBits/690cfc.wgsl.expected.glsl b/test/builtins/gen/countOneBits/690cfc.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/countOneBits/690cfc.wgsl.expected.glsl rename to test/builtins/gen/countOneBits/690cfc.wgsl.expected.glsl diff --git a/test/intrinsics/gen/countOneBits/690cfc.wgsl.expected.hlsl b/test/builtins/gen/countOneBits/690cfc.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/countOneBits/690cfc.wgsl.expected.hlsl rename to test/builtins/gen/countOneBits/690cfc.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/countOneBits/690cfc.wgsl.expected.msl b/test/builtins/gen/countOneBits/690cfc.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/countOneBits/690cfc.wgsl.expected.msl rename to test/builtins/gen/countOneBits/690cfc.wgsl.expected.msl diff --git a/test/intrinsics/gen/countOneBits/690cfc.wgsl.expected.spvasm b/test/builtins/gen/countOneBits/690cfc.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/countOneBits/690cfc.wgsl.expected.spvasm rename to test/builtins/gen/countOneBits/690cfc.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/countOneBits/690cfc.wgsl.expected.wgsl b/test/builtins/gen/countOneBits/690cfc.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/countOneBits/690cfc.wgsl.expected.wgsl rename to test/builtins/gen/countOneBits/690cfc.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/countOneBits/94fd81.wgsl b/test/builtins/gen/countOneBits/94fd81.wgsl similarity index 89% rename from test/intrinsics/gen/countOneBits/94fd81.wgsl rename to test/builtins/gen/countOneBits/94fd81.wgsl index ec7f081864..7c4d42fad2 100644 --- a/test/intrinsics/gen/countOneBits/94fd81.wgsl +++ b/test/builtins/gen/countOneBits/94fd81.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/countOneBits/94fd81.wgsl.expected.glsl b/test/builtins/gen/countOneBits/94fd81.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/countOneBits/94fd81.wgsl.expected.glsl rename to test/builtins/gen/countOneBits/94fd81.wgsl.expected.glsl diff --git a/test/intrinsics/gen/countOneBits/94fd81.wgsl.expected.hlsl b/test/builtins/gen/countOneBits/94fd81.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/countOneBits/94fd81.wgsl.expected.hlsl rename to test/builtins/gen/countOneBits/94fd81.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/countOneBits/94fd81.wgsl.expected.msl b/test/builtins/gen/countOneBits/94fd81.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/countOneBits/94fd81.wgsl.expected.msl rename to test/builtins/gen/countOneBits/94fd81.wgsl.expected.msl diff --git a/test/intrinsics/gen/countOneBits/94fd81.wgsl.expected.spvasm b/test/builtins/gen/countOneBits/94fd81.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/countOneBits/94fd81.wgsl.expected.spvasm rename to test/builtins/gen/countOneBits/94fd81.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/countOneBits/94fd81.wgsl.expected.wgsl b/test/builtins/gen/countOneBits/94fd81.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/countOneBits/94fd81.wgsl.expected.wgsl rename to test/builtins/gen/countOneBits/94fd81.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/countOneBits/ae44f9.wgsl b/test/builtins/gen/countOneBits/ae44f9.wgsl similarity index 89% rename from test/intrinsics/gen/countOneBits/ae44f9.wgsl rename to test/builtins/gen/countOneBits/ae44f9.wgsl index db56395325..713ab90ac6 100644 --- a/test/intrinsics/gen/countOneBits/ae44f9.wgsl +++ b/test/builtins/gen/countOneBits/ae44f9.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/countOneBits/ae44f9.wgsl.expected.glsl b/test/builtins/gen/countOneBits/ae44f9.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/countOneBits/ae44f9.wgsl.expected.glsl rename to test/builtins/gen/countOneBits/ae44f9.wgsl.expected.glsl diff --git a/test/intrinsics/gen/countOneBits/ae44f9.wgsl.expected.hlsl b/test/builtins/gen/countOneBits/ae44f9.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/countOneBits/ae44f9.wgsl.expected.hlsl rename to test/builtins/gen/countOneBits/ae44f9.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/countOneBits/ae44f9.wgsl.expected.msl b/test/builtins/gen/countOneBits/ae44f9.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/countOneBits/ae44f9.wgsl.expected.msl rename to test/builtins/gen/countOneBits/ae44f9.wgsl.expected.msl diff --git a/test/intrinsics/gen/countOneBits/ae44f9.wgsl.expected.spvasm b/test/builtins/gen/countOneBits/ae44f9.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/countOneBits/ae44f9.wgsl.expected.spvasm rename to test/builtins/gen/countOneBits/ae44f9.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/countOneBits/ae44f9.wgsl.expected.wgsl b/test/builtins/gen/countOneBits/ae44f9.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/countOneBits/ae44f9.wgsl.expected.wgsl rename to test/builtins/gen/countOneBits/ae44f9.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/countOneBits/af90e2.wgsl b/test/builtins/gen/countOneBits/af90e2.wgsl similarity index 89% rename from test/intrinsics/gen/countOneBits/af90e2.wgsl rename to test/builtins/gen/countOneBits/af90e2.wgsl index f57048ccd5..48ea794319 100644 --- a/test/intrinsics/gen/countOneBits/af90e2.wgsl +++ b/test/builtins/gen/countOneBits/af90e2.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/countOneBits/af90e2.wgsl.expected.glsl b/test/builtins/gen/countOneBits/af90e2.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/countOneBits/af90e2.wgsl.expected.glsl rename to test/builtins/gen/countOneBits/af90e2.wgsl.expected.glsl diff --git a/test/intrinsics/gen/countOneBits/af90e2.wgsl.expected.hlsl b/test/builtins/gen/countOneBits/af90e2.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/countOneBits/af90e2.wgsl.expected.hlsl rename to test/builtins/gen/countOneBits/af90e2.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/countOneBits/af90e2.wgsl.expected.msl b/test/builtins/gen/countOneBits/af90e2.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/countOneBits/af90e2.wgsl.expected.msl rename to test/builtins/gen/countOneBits/af90e2.wgsl.expected.msl diff --git a/test/intrinsics/gen/countOneBits/af90e2.wgsl.expected.spvasm b/test/builtins/gen/countOneBits/af90e2.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/countOneBits/af90e2.wgsl.expected.spvasm rename to test/builtins/gen/countOneBits/af90e2.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/countOneBits/af90e2.wgsl.expected.wgsl b/test/builtins/gen/countOneBits/af90e2.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/countOneBits/af90e2.wgsl.expected.wgsl rename to test/builtins/gen/countOneBits/af90e2.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/countOneBits/fd88b2.wgsl b/test/builtins/gen/countOneBits/fd88b2.wgsl similarity index 89% rename from test/intrinsics/gen/countOneBits/fd88b2.wgsl rename to test/builtins/gen/countOneBits/fd88b2.wgsl index f95dcc2286..a0f758ddb1 100644 --- a/test/intrinsics/gen/countOneBits/fd88b2.wgsl +++ b/test/builtins/gen/countOneBits/fd88b2.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/countOneBits/fd88b2.wgsl.expected.glsl b/test/builtins/gen/countOneBits/fd88b2.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/countOneBits/fd88b2.wgsl.expected.glsl rename to test/builtins/gen/countOneBits/fd88b2.wgsl.expected.glsl diff --git a/test/intrinsics/gen/countOneBits/fd88b2.wgsl.expected.hlsl b/test/builtins/gen/countOneBits/fd88b2.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/countOneBits/fd88b2.wgsl.expected.hlsl rename to test/builtins/gen/countOneBits/fd88b2.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/countOneBits/fd88b2.wgsl.expected.msl b/test/builtins/gen/countOneBits/fd88b2.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/countOneBits/fd88b2.wgsl.expected.msl rename to test/builtins/gen/countOneBits/fd88b2.wgsl.expected.msl diff --git a/test/intrinsics/gen/countOneBits/fd88b2.wgsl.expected.spvasm b/test/builtins/gen/countOneBits/fd88b2.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/countOneBits/fd88b2.wgsl.expected.spvasm rename to test/builtins/gen/countOneBits/fd88b2.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/countOneBits/fd88b2.wgsl.expected.wgsl b/test/builtins/gen/countOneBits/fd88b2.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/countOneBits/fd88b2.wgsl.expected.wgsl rename to test/builtins/gen/countOneBits/fd88b2.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/cross/041cb0.wgsl b/test/builtins/gen/cross/041cb0.wgsl similarity index 89% rename from test/intrinsics/gen/cross/041cb0.wgsl rename to test/builtins/gen/cross/041cb0.wgsl index 50f8539df0..ce0f043dc7 100644 --- a/test/intrinsics/gen/cross/041cb0.wgsl +++ b/test/builtins/gen/cross/041cb0.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/cross/041cb0.wgsl.expected.glsl b/test/builtins/gen/cross/041cb0.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/cross/041cb0.wgsl.expected.glsl rename to test/builtins/gen/cross/041cb0.wgsl.expected.glsl diff --git a/test/intrinsics/gen/cross/041cb0.wgsl.expected.hlsl b/test/builtins/gen/cross/041cb0.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/cross/041cb0.wgsl.expected.hlsl rename to test/builtins/gen/cross/041cb0.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/cross/041cb0.wgsl.expected.msl b/test/builtins/gen/cross/041cb0.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/cross/041cb0.wgsl.expected.msl rename to test/builtins/gen/cross/041cb0.wgsl.expected.msl diff --git a/test/intrinsics/gen/cross/041cb0.wgsl.expected.spvasm b/test/builtins/gen/cross/041cb0.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/cross/041cb0.wgsl.expected.spvasm rename to test/builtins/gen/cross/041cb0.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/cross/041cb0.wgsl.expected.wgsl b/test/builtins/gen/cross/041cb0.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/cross/041cb0.wgsl.expected.wgsl rename to test/builtins/gen/cross/041cb0.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/degrees/0d170c.wgsl b/test/builtins/gen/degrees/0d170c.wgsl similarity index 89% rename from test/intrinsics/gen/degrees/0d170c.wgsl rename to test/builtins/gen/degrees/0d170c.wgsl index b2ee663fd1..3dc201e298 100644 --- a/test/intrinsics/gen/degrees/0d170c.wgsl +++ b/test/builtins/gen/degrees/0d170c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/degrees/0d170c.wgsl.expected.glsl b/test/builtins/gen/degrees/0d170c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/degrees/0d170c.wgsl.expected.glsl rename to test/builtins/gen/degrees/0d170c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/degrees/0d170c.wgsl.expected.hlsl b/test/builtins/gen/degrees/0d170c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/degrees/0d170c.wgsl.expected.hlsl rename to test/builtins/gen/degrees/0d170c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/degrees/0d170c.wgsl.expected.msl b/test/builtins/gen/degrees/0d170c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/degrees/0d170c.wgsl.expected.msl rename to test/builtins/gen/degrees/0d170c.wgsl.expected.msl diff --git a/test/intrinsics/gen/degrees/0d170c.wgsl.expected.spvasm b/test/builtins/gen/degrees/0d170c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/degrees/0d170c.wgsl.expected.spvasm rename to test/builtins/gen/degrees/0d170c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/degrees/0d170c.wgsl.expected.wgsl b/test/builtins/gen/degrees/0d170c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/degrees/0d170c.wgsl.expected.wgsl rename to test/builtins/gen/degrees/0d170c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/degrees/1ad5df.wgsl b/test/builtins/gen/degrees/1ad5df.wgsl similarity index 89% rename from test/intrinsics/gen/degrees/1ad5df.wgsl rename to test/builtins/gen/degrees/1ad5df.wgsl index b4c46dbd78..d6ec55144a 100644 --- a/test/intrinsics/gen/degrees/1ad5df.wgsl +++ b/test/builtins/gen/degrees/1ad5df.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/degrees/1ad5df.wgsl.expected.glsl b/test/builtins/gen/degrees/1ad5df.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/degrees/1ad5df.wgsl.expected.glsl rename to test/builtins/gen/degrees/1ad5df.wgsl.expected.glsl diff --git a/test/intrinsics/gen/degrees/1ad5df.wgsl.expected.hlsl b/test/builtins/gen/degrees/1ad5df.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/degrees/1ad5df.wgsl.expected.hlsl rename to test/builtins/gen/degrees/1ad5df.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/degrees/1ad5df.wgsl.expected.msl b/test/builtins/gen/degrees/1ad5df.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/degrees/1ad5df.wgsl.expected.msl rename to test/builtins/gen/degrees/1ad5df.wgsl.expected.msl diff --git a/test/intrinsics/gen/degrees/1ad5df.wgsl.expected.spvasm b/test/builtins/gen/degrees/1ad5df.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/degrees/1ad5df.wgsl.expected.spvasm rename to test/builtins/gen/degrees/1ad5df.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/degrees/1ad5df.wgsl.expected.wgsl b/test/builtins/gen/degrees/1ad5df.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/degrees/1ad5df.wgsl.expected.wgsl rename to test/builtins/gen/degrees/1ad5df.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/degrees/2af623.wgsl b/test/builtins/gen/degrees/2af623.wgsl similarity index 89% rename from test/intrinsics/gen/degrees/2af623.wgsl rename to test/builtins/gen/degrees/2af623.wgsl index 22772dd15e..55f67d8d9c 100644 --- a/test/intrinsics/gen/degrees/2af623.wgsl +++ b/test/builtins/gen/degrees/2af623.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/degrees/2af623.wgsl.expected.glsl b/test/builtins/gen/degrees/2af623.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/degrees/2af623.wgsl.expected.glsl rename to test/builtins/gen/degrees/2af623.wgsl.expected.glsl diff --git a/test/intrinsics/gen/degrees/2af623.wgsl.expected.hlsl b/test/builtins/gen/degrees/2af623.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/degrees/2af623.wgsl.expected.hlsl rename to test/builtins/gen/degrees/2af623.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/degrees/2af623.wgsl.expected.msl b/test/builtins/gen/degrees/2af623.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/degrees/2af623.wgsl.expected.msl rename to test/builtins/gen/degrees/2af623.wgsl.expected.msl diff --git a/test/intrinsics/gen/degrees/2af623.wgsl.expected.spvasm b/test/builtins/gen/degrees/2af623.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/degrees/2af623.wgsl.expected.spvasm rename to test/builtins/gen/degrees/2af623.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/degrees/2af623.wgsl.expected.wgsl b/test/builtins/gen/degrees/2af623.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/degrees/2af623.wgsl.expected.wgsl rename to test/builtins/gen/degrees/2af623.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/degrees/51f705.wgsl b/test/builtins/gen/degrees/51f705.wgsl similarity index 88% rename from test/intrinsics/gen/degrees/51f705.wgsl rename to test/builtins/gen/degrees/51f705.wgsl index 71c2e93dac..c55523a69c 100644 --- a/test/intrinsics/gen/degrees/51f705.wgsl +++ b/test/builtins/gen/degrees/51f705.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/degrees/51f705.wgsl.expected.glsl b/test/builtins/gen/degrees/51f705.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/degrees/51f705.wgsl.expected.glsl rename to test/builtins/gen/degrees/51f705.wgsl.expected.glsl diff --git a/test/intrinsics/gen/degrees/51f705.wgsl.expected.hlsl b/test/builtins/gen/degrees/51f705.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/degrees/51f705.wgsl.expected.hlsl rename to test/builtins/gen/degrees/51f705.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/degrees/51f705.wgsl.expected.msl b/test/builtins/gen/degrees/51f705.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/degrees/51f705.wgsl.expected.msl rename to test/builtins/gen/degrees/51f705.wgsl.expected.msl diff --git a/test/intrinsics/gen/degrees/51f705.wgsl.expected.spvasm b/test/builtins/gen/degrees/51f705.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/degrees/51f705.wgsl.expected.spvasm rename to test/builtins/gen/degrees/51f705.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/degrees/51f705.wgsl.expected.wgsl b/test/builtins/gen/degrees/51f705.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/degrees/51f705.wgsl.expected.wgsl rename to test/builtins/gen/degrees/51f705.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/determinant/2b62ba.wgsl b/test/builtins/gen/determinant/2b62ba.wgsl similarity index 89% rename from test/intrinsics/gen/determinant/2b62ba.wgsl rename to test/builtins/gen/determinant/2b62ba.wgsl index 10fd4e41c4..7189a45dec 100644 --- a/test/intrinsics/gen/determinant/2b62ba.wgsl +++ b/test/builtins/gen/determinant/2b62ba.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/determinant/2b62ba.wgsl.expected.glsl b/test/builtins/gen/determinant/2b62ba.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/determinant/2b62ba.wgsl.expected.glsl rename to test/builtins/gen/determinant/2b62ba.wgsl.expected.glsl diff --git a/test/intrinsics/gen/determinant/2b62ba.wgsl.expected.hlsl b/test/builtins/gen/determinant/2b62ba.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/determinant/2b62ba.wgsl.expected.hlsl rename to test/builtins/gen/determinant/2b62ba.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/determinant/2b62ba.wgsl.expected.msl b/test/builtins/gen/determinant/2b62ba.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/determinant/2b62ba.wgsl.expected.msl rename to test/builtins/gen/determinant/2b62ba.wgsl.expected.msl diff --git a/test/intrinsics/gen/determinant/2b62ba.wgsl.expected.spvasm b/test/builtins/gen/determinant/2b62ba.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/determinant/2b62ba.wgsl.expected.spvasm rename to test/builtins/gen/determinant/2b62ba.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/determinant/2b62ba.wgsl.expected.wgsl b/test/builtins/gen/determinant/2b62ba.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/determinant/2b62ba.wgsl.expected.wgsl rename to test/builtins/gen/determinant/2b62ba.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/determinant/a0a87c.wgsl b/test/builtins/gen/determinant/a0a87c.wgsl similarity index 89% rename from test/intrinsics/gen/determinant/a0a87c.wgsl rename to test/builtins/gen/determinant/a0a87c.wgsl index b7720f5676..31873fa7f5 100644 --- a/test/intrinsics/gen/determinant/a0a87c.wgsl +++ b/test/builtins/gen/determinant/a0a87c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/determinant/a0a87c.wgsl.expected.glsl b/test/builtins/gen/determinant/a0a87c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/determinant/a0a87c.wgsl.expected.glsl rename to test/builtins/gen/determinant/a0a87c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/determinant/a0a87c.wgsl.expected.hlsl b/test/builtins/gen/determinant/a0a87c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/determinant/a0a87c.wgsl.expected.hlsl rename to test/builtins/gen/determinant/a0a87c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/determinant/a0a87c.wgsl.expected.msl b/test/builtins/gen/determinant/a0a87c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/determinant/a0a87c.wgsl.expected.msl rename to test/builtins/gen/determinant/a0a87c.wgsl.expected.msl diff --git a/test/intrinsics/gen/determinant/a0a87c.wgsl.expected.spvasm b/test/builtins/gen/determinant/a0a87c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/determinant/a0a87c.wgsl.expected.spvasm rename to test/builtins/gen/determinant/a0a87c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/determinant/a0a87c.wgsl.expected.wgsl b/test/builtins/gen/determinant/a0a87c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/determinant/a0a87c.wgsl.expected.wgsl rename to test/builtins/gen/determinant/a0a87c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/determinant/e19305.wgsl b/test/builtins/gen/determinant/e19305.wgsl similarity index 89% rename from test/intrinsics/gen/determinant/e19305.wgsl rename to test/builtins/gen/determinant/e19305.wgsl index 1406a1301c..7b3329e482 100644 --- a/test/intrinsics/gen/determinant/e19305.wgsl +++ b/test/builtins/gen/determinant/e19305.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/determinant/e19305.wgsl.expected.glsl b/test/builtins/gen/determinant/e19305.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/determinant/e19305.wgsl.expected.glsl rename to test/builtins/gen/determinant/e19305.wgsl.expected.glsl diff --git a/test/intrinsics/gen/determinant/e19305.wgsl.expected.hlsl b/test/builtins/gen/determinant/e19305.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/determinant/e19305.wgsl.expected.hlsl rename to test/builtins/gen/determinant/e19305.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/determinant/e19305.wgsl.expected.msl b/test/builtins/gen/determinant/e19305.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/determinant/e19305.wgsl.expected.msl rename to test/builtins/gen/determinant/e19305.wgsl.expected.msl diff --git a/test/intrinsics/gen/determinant/e19305.wgsl.expected.spvasm b/test/builtins/gen/determinant/e19305.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/determinant/e19305.wgsl.expected.spvasm rename to test/builtins/gen/determinant/e19305.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/determinant/e19305.wgsl.expected.wgsl b/test/builtins/gen/determinant/e19305.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/determinant/e19305.wgsl.expected.wgsl rename to test/builtins/gen/determinant/e19305.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/distance/0657d4.wgsl b/test/builtins/gen/distance/0657d4.wgsl similarity index 89% rename from test/intrinsics/gen/distance/0657d4.wgsl rename to test/builtins/gen/distance/0657d4.wgsl index 2c57d8231b..73d4596a2d 100644 --- a/test/intrinsics/gen/distance/0657d4.wgsl +++ b/test/builtins/gen/distance/0657d4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/distance/0657d4.wgsl.expected.glsl b/test/builtins/gen/distance/0657d4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/distance/0657d4.wgsl.expected.glsl rename to test/builtins/gen/distance/0657d4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/distance/0657d4.wgsl.expected.hlsl b/test/builtins/gen/distance/0657d4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/distance/0657d4.wgsl.expected.hlsl rename to test/builtins/gen/distance/0657d4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/distance/0657d4.wgsl.expected.msl b/test/builtins/gen/distance/0657d4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/distance/0657d4.wgsl.expected.msl rename to test/builtins/gen/distance/0657d4.wgsl.expected.msl diff --git a/test/intrinsics/gen/distance/0657d4.wgsl.expected.spvasm b/test/builtins/gen/distance/0657d4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/distance/0657d4.wgsl.expected.spvasm rename to test/builtins/gen/distance/0657d4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/distance/0657d4.wgsl.expected.wgsl b/test/builtins/gen/distance/0657d4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/distance/0657d4.wgsl.expected.wgsl rename to test/builtins/gen/distance/0657d4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/distance/9646ea.wgsl b/test/builtins/gen/distance/9646ea.wgsl similarity index 89% rename from test/intrinsics/gen/distance/9646ea.wgsl rename to test/builtins/gen/distance/9646ea.wgsl index 009877c570..da013ae450 100644 --- a/test/intrinsics/gen/distance/9646ea.wgsl +++ b/test/builtins/gen/distance/9646ea.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/distance/9646ea.wgsl.expected.glsl b/test/builtins/gen/distance/9646ea.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/distance/9646ea.wgsl.expected.glsl rename to test/builtins/gen/distance/9646ea.wgsl.expected.glsl diff --git a/test/intrinsics/gen/distance/9646ea.wgsl.expected.hlsl b/test/builtins/gen/distance/9646ea.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/distance/9646ea.wgsl.expected.hlsl rename to test/builtins/gen/distance/9646ea.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/distance/9646ea.wgsl.expected.msl b/test/builtins/gen/distance/9646ea.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/distance/9646ea.wgsl.expected.msl rename to test/builtins/gen/distance/9646ea.wgsl.expected.msl diff --git a/test/intrinsics/gen/distance/9646ea.wgsl.expected.spvasm b/test/builtins/gen/distance/9646ea.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/distance/9646ea.wgsl.expected.spvasm rename to test/builtins/gen/distance/9646ea.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/distance/9646ea.wgsl.expected.wgsl b/test/builtins/gen/distance/9646ea.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/distance/9646ea.wgsl.expected.wgsl rename to test/builtins/gen/distance/9646ea.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/distance/aa4055.wgsl b/test/builtins/gen/distance/aa4055.wgsl similarity index 89% rename from test/intrinsics/gen/distance/aa4055.wgsl rename to test/builtins/gen/distance/aa4055.wgsl index 0094477dbc..bce51c640f 100644 --- a/test/intrinsics/gen/distance/aa4055.wgsl +++ b/test/builtins/gen/distance/aa4055.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/distance/aa4055.wgsl.expected.glsl b/test/builtins/gen/distance/aa4055.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/distance/aa4055.wgsl.expected.glsl rename to test/builtins/gen/distance/aa4055.wgsl.expected.glsl diff --git a/test/intrinsics/gen/distance/aa4055.wgsl.expected.hlsl b/test/builtins/gen/distance/aa4055.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/distance/aa4055.wgsl.expected.hlsl rename to test/builtins/gen/distance/aa4055.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/distance/aa4055.wgsl.expected.msl b/test/builtins/gen/distance/aa4055.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/distance/aa4055.wgsl.expected.msl rename to test/builtins/gen/distance/aa4055.wgsl.expected.msl diff --git a/test/intrinsics/gen/distance/aa4055.wgsl.expected.spvasm b/test/builtins/gen/distance/aa4055.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/distance/aa4055.wgsl.expected.spvasm rename to test/builtins/gen/distance/aa4055.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/distance/aa4055.wgsl.expected.wgsl b/test/builtins/gen/distance/aa4055.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/distance/aa4055.wgsl.expected.wgsl rename to test/builtins/gen/distance/aa4055.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/distance/cfed73.wgsl b/test/builtins/gen/distance/cfed73.wgsl similarity index 89% rename from test/intrinsics/gen/distance/cfed73.wgsl rename to test/builtins/gen/distance/cfed73.wgsl index c40408d42a..9ad9a8125a 100644 --- a/test/intrinsics/gen/distance/cfed73.wgsl +++ b/test/builtins/gen/distance/cfed73.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/distance/cfed73.wgsl.expected.glsl b/test/builtins/gen/distance/cfed73.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/distance/cfed73.wgsl.expected.glsl rename to test/builtins/gen/distance/cfed73.wgsl.expected.glsl diff --git a/test/intrinsics/gen/distance/cfed73.wgsl.expected.hlsl b/test/builtins/gen/distance/cfed73.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/distance/cfed73.wgsl.expected.hlsl rename to test/builtins/gen/distance/cfed73.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/distance/cfed73.wgsl.expected.msl b/test/builtins/gen/distance/cfed73.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/distance/cfed73.wgsl.expected.msl rename to test/builtins/gen/distance/cfed73.wgsl.expected.msl diff --git a/test/intrinsics/gen/distance/cfed73.wgsl.expected.spvasm b/test/builtins/gen/distance/cfed73.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/distance/cfed73.wgsl.expected.spvasm rename to test/builtins/gen/distance/cfed73.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/distance/cfed73.wgsl.expected.wgsl b/test/builtins/gen/distance/cfed73.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/distance/cfed73.wgsl.expected.wgsl rename to test/builtins/gen/distance/cfed73.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dot/0c577b.wgsl b/test/builtins/gen/dot/0c577b.wgsl similarity index 89% rename from test/intrinsics/gen/dot/0c577b.wgsl rename to test/builtins/gen/dot/0c577b.wgsl index 745f4c457e..0724d1622a 100644 --- a/test/intrinsics/gen/dot/0c577b.wgsl +++ b/test/builtins/gen/dot/0c577b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dot/0c577b.wgsl.expected.glsl b/test/builtins/gen/dot/0c577b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dot/0c577b.wgsl.expected.glsl rename to test/builtins/gen/dot/0c577b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dot/0c577b.wgsl.expected.hlsl b/test/builtins/gen/dot/0c577b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dot/0c577b.wgsl.expected.hlsl rename to test/builtins/gen/dot/0c577b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dot/0c577b.wgsl.expected.msl b/test/builtins/gen/dot/0c577b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dot/0c577b.wgsl.expected.msl rename to test/builtins/gen/dot/0c577b.wgsl.expected.msl diff --git a/test/intrinsics/gen/dot/0c577b.wgsl.expected.spvasm b/test/builtins/gen/dot/0c577b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dot/0c577b.wgsl.expected.spvasm rename to test/builtins/gen/dot/0c577b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dot/0c577b.wgsl.expected.wgsl b/test/builtins/gen/dot/0c577b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dot/0c577b.wgsl.expected.wgsl rename to test/builtins/gen/dot/0c577b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dot/7548a0.wgsl b/test/builtins/gen/dot/7548a0.wgsl similarity index 89% rename from test/intrinsics/gen/dot/7548a0.wgsl rename to test/builtins/gen/dot/7548a0.wgsl index 4ee9011f8d..647c3a7bff 100644 --- a/test/intrinsics/gen/dot/7548a0.wgsl +++ b/test/builtins/gen/dot/7548a0.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dot/7548a0.wgsl.expected.glsl b/test/builtins/gen/dot/7548a0.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dot/7548a0.wgsl.expected.glsl rename to test/builtins/gen/dot/7548a0.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dot/7548a0.wgsl.expected.hlsl b/test/builtins/gen/dot/7548a0.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dot/7548a0.wgsl.expected.hlsl rename to test/builtins/gen/dot/7548a0.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dot/7548a0.wgsl.expected.msl b/test/builtins/gen/dot/7548a0.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dot/7548a0.wgsl.expected.msl rename to test/builtins/gen/dot/7548a0.wgsl.expected.msl diff --git a/test/intrinsics/gen/dot/7548a0.wgsl.expected.spvasm b/test/builtins/gen/dot/7548a0.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dot/7548a0.wgsl.expected.spvasm rename to test/builtins/gen/dot/7548a0.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dot/7548a0.wgsl.expected.wgsl b/test/builtins/gen/dot/7548a0.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dot/7548a0.wgsl.expected.wgsl rename to test/builtins/gen/dot/7548a0.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dot/883f0e.wgsl b/test/builtins/gen/dot/883f0e.wgsl similarity index 89% rename from test/intrinsics/gen/dot/883f0e.wgsl rename to test/builtins/gen/dot/883f0e.wgsl index 3a42f8c6bf..4b8db17b10 100644 --- a/test/intrinsics/gen/dot/883f0e.wgsl +++ b/test/builtins/gen/dot/883f0e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dot/883f0e.wgsl.expected.glsl b/test/builtins/gen/dot/883f0e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dot/883f0e.wgsl.expected.glsl rename to test/builtins/gen/dot/883f0e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dot/883f0e.wgsl.expected.hlsl b/test/builtins/gen/dot/883f0e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dot/883f0e.wgsl.expected.hlsl rename to test/builtins/gen/dot/883f0e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dot/883f0e.wgsl.expected.msl b/test/builtins/gen/dot/883f0e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dot/883f0e.wgsl.expected.msl rename to test/builtins/gen/dot/883f0e.wgsl.expected.msl diff --git a/test/intrinsics/gen/dot/883f0e.wgsl.expected.spvasm b/test/builtins/gen/dot/883f0e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dot/883f0e.wgsl.expected.spvasm rename to test/builtins/gen/dot/883f0e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dot/883f0e.wgsl.expected.wgsl b/test/builtins/gen/dot/883f0e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dot/883f0e.wgsl.expected.wgsl rename to test/builtins/gen/dot/883f0e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dot/97c7ee.wgsl b/test/builtins/gen/dot/97c7ee.wgsl similarity index 89% rename from test/intrinsics/gen/dot/97c7ee.wgsl rename to test/builtins/gen/dot/97c7ee.wgsl index c8f94597dc..5dc74810cd 100644 --- a/test/intrinsics/gen/dot/97c7ee.wgsl +++ b/test/builtins/gen/dot/97c7ee.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dot/97c7ee.wgsl.expected.glsl b/test/builtins/gen/dot/97c7ee.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dot/97c7ee.wgsl.expected.glsl rename to test/builtins/gen/dot/97c7ee.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dot/97c7ee.wgsl.expected.hlsl b/test/builtins/gen/dot/97c7ee.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dot/97c7ee.wgsl.expected.hlsl rename to test/builtins/gen/dot/97c7ee.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dot/97c7ee.wgsl.expected.msl b/test/builtins/gen/dot/97c7ee.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dot/97c7ee.wgsl.expected.msl rename to test/builtins/gen/dot/97c7ee.wgsl.expected.msl diff --git a/test/intrinsics/gen/dot/97c7ee.wgsl.expected.spvasm b/test/builtins/gen/dot/97c7ee.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dot/97c7ee.wgsl.expected.spvasm rename to test/builtins/gen/dot/97c7ee.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dot/97c7ee.wgsl.expected.wgsl b/test/builtins/gen/dot/97c7ee.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dot/97c7ee.wgsl.expected.wgsl rename to test/builtins/gen/dot/97c7ee.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dot/ba4246.wgsl b/test/builtins/gen/dot/ba4246.wgsl similarity index 89% rename from test/intrinsics/gen/dot/ba4246.wgsl rename to test/builtins/gen/dot/ba4246.wgsl index fbeb13984a..cc7bb121ef 100644 --- a/test/intrinsics/gen/dot/ba4246.wgsl +++ b/test/builtins/gen/dot/ba4246.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dot/ba4246.wgsl.expected.glsl b/test/builtins/gen/dot/ba4246.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dot/ba4246.wgsl.expected.glsl rename to test/builtins/gen/dot/ba4246.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dot/ba4246.wgsl.expected.hlsl b/test/builtins/gen/dot/ba4246.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dot/ba4246.wgsl.expected.hlsl rename to test/builtins/gen/dot/ba4246.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dot/ba4246.wgsl.expected.msl b/test/builtins/gen/dot/ba4246.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dot/ba4246.wgsl.expected.msl rename to test/builtins/gen/dot/ba4246.wgsl.expected.msl diff --git a/test/intrinsics/gen/dot/ba4246.wgsl.expected.spvasm b/test/builtins/gen/dot/ba4246.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dot/ba4246.wgsl.expected.spvasm rename to test/builtins/gen/dot/ba4246.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dot/ba4246.wgsl.expected.wgsl b/test/builtins/gen/dot/ba4246.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dot/ba4246.wgsl.expected.wgsl rename to test/builtins/gen/dot/ba4246.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dot/e994c7.wgsl b/test/builtins/gen/dot/e994c7.wgsl similarity index 89% rename from test/intrinsics/gen/dot/e994c7.wgsl rename to test/builtins/gen/dot/e994c7.wgsl index b78cbc4fd6..2fbaa28905 100644 --- a/test/intrinsics/gen/dot/e994c7.wgsl +++ b/test/builtins/gen/dot/e994c7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dot/e994c7.wgsl.expected.glsl b/test/builtins/gen/dot/e994c7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dot/e994c7.wgsl.expected.glsl rename to test/builtins/gen/dot/e994c7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dot/e994c7.wgsl.expected.hlsl b/test/builtins/gen/dot/e994c7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dot/e994c7.wgsl.expected.hlsl rename to test/builtins/gen/dot/e994c7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dot/e994c7.wgsl.expected.msl b/test/builtins/gen/dot/e994c7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dot/e994c7.wgsl.expected.msl rename to test/builtins/gen/dot/e994c7.wgsl.expected.msl diff --git a/test/intrinsics/gen/dot/e994c7.wgsl.expected.spvasm b/test/builtins/gen/dot/e994c7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dot/e994c7.wgsl.expected.spvasm rename to test/builtins/gen/dot/e994c7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dot/e994c7.wgsl.expected.wgsl b/test/builtins/gen/dot/e994c7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dot/e994c7.wgsl.expected.wgsl rename to test/builtins/gen/dot/e994c7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dot/ef6b1d.wgsl b/test/builtins/gen/dot/ef6b1d.wgsl similarity index 89% rename from test/intrinsics/gen/dot/ef6b1d.wgsl rename to test/builtins/gen/dot/ef6b1d.wgsl index 2e01ee2ebb..3a3973519d 100644 --- a/test/intrinsics/gen/dot/ef6b1d.wgsl +++ b/test/builtins/gen/dot/ef6b1d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dot/ef6b1d.wgsl.expected.glsl b/test/builtins/gen/dot/ef6b1d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dot/ef6b1d.wgsl.expected.glsl rename to test/builtins/gen/dot/ef6b1d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dot/ef6b1d.wgsl.expected.hlsl b/test/builtins/gen/dot/ef6b1d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dot/ef6b1d.wgsl.expected.hlsl rename to test/builtins/gen/dot/ef6b1d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dot/ef6b1d.wgsl.expected.msl b/test/builtins/gen/dot/ef6b1d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dot/ef6b1d.wgsl.expected.msl rename to test/builtins/gen/dot/ef6b1d.wgsl.expected.msl diff --git a/test/intrinsics/gen/dot/ef6b1d.wgsl.expected.spvasm b/test/builtins/gen/dot/ef6b1d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dot/ef6b1d.wgsl.expected.spvasm rename to test/builtins/gen/dot/ef6b1d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dot/ef6b1d.wgsl.expected.wgsl b/test/builtins/gen/dot/ef6b1d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dot/ef6b1d.wgsl.expected.wgsl rename to test/builtins/gen/dot/ef6b1d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dot/f1312c.wgsl b/test/builtins/gen/dot/f1312c.wgsl similarity index 89% rename from test/intrinsics/gen/dot/f1312c.wgsl rename to test/builtins/gen/dot/f1312c.wgsl index 6bb0876bb0..22e38b137e 100644 --- a/test/intrinsics/gen/dot/f1312c.wgsl +++ b/test/builtins/gen/dot/f1312c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dot/f1312c.wgsl.expected.glsl b/test/builtins/gen/dot/f1312c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dot/f1312c.wgsl.expected.glsl rename to test/builtins/gen/dot/f1312c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dot/f1312c.wgsl.expected.hlsl b/test/builtins/gen/dot/f1312c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dot/f1312c.wgsl.expected.hlsl rename to test/builtins/gen/dot/f1312c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dot/f1312c.wgsl.expected.msl b/test/builtins/gen/dot/f1312c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dot/f1312c.wgsl.expected.msl rename to test/builtins/gen/dot/f1312c.wgsl.expected.msl diff --git a/test/intrinsics/gen/dot/f1312c.wgsl.expected.spvasm b/test/builtins/gen/dot/f1312c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dot/f1312c.wgsl.expected.spvasm rename to test/builtins/gen/dot/f1312c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dot/f1312c.wgsl.expected.wgsl b/test/builtins/gen/dot/f1312c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dot/f1312c.wgsl.expected.wgsl rename to test/builtins/gen/dot/f1312c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dot/fc5f7c.wgsl b/test/builtins/gen/dot/fc5f7c.wgsl similarity index 89% rename from test/intrinsics/gen/dot/fc5f7c.wgsl rename to test/builtins/gen/dot/fc5f7c.wgsl index bbadae8081..dda50448ec 100644 --- a/test/intrinsics/gen/dot/fc5f7c.wgsl +++ b/test/builtins/gen/dot/fc5f7c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dot/fc5f7c.wgsl.expected.glsl b/test/builtins/gen/dot/fc5f7c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dot/fc5f7c.wgsl.expected.glsl rename to test/builtins/gen/dot/fc5f7c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dot/fc5f7c.wgsl.expected.hlsl b/test/builtins/gen/dot/fc5f7c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dot/fc5f7c.wgsl.expected.hlsl rename to test/builtins/gen/dot/fc5f7c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dot/fc5f7c.wgsl.expected.msl b/test/builtins/gen/dot/fc5f7c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dot/fc5f7c.wgsl.expected.msl rename to test/builtins/gen/dot/fc5f7c.wgsl.expected.msl diff --git a/test/intrinsics/gen/dot/fc5f7c.wgsl.expected.spvasm b/test/builtins/gen/dot/fc5f7c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dot/fc5f7c.wgsl.expected.spvasm rename to test/builtins/gen/dot/fc5f7c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dot/fc5f7c.wgsl.expected.wgsl b/test/builtins/gen/dot/fc5f7c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dot/fc5f7c.wgsl.expected.wgsl rename to test/builtins/gen/dot/fc5f7c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdx/0763f7.wgsl b/test/builtins/gen/dpdx/0763f7.wgsl similarity index 87% rename from test/intrinsics/gen/dpdx/0763f7.wgsl rename to test/builtins/gen/dpdx/0763f7.wgsl index cbfc41a04c..003e03f492 100644 --- a/test/intrinsics/gen/dpdx/0763f7.wgsl +++ b/test/builtins/gen/dpdx/0763f7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdx/0763f7.wgsl.expected.glsl b/test/builtins/gen/dpdx/0763f7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdx/0763f7.wgsl.expected.glsl rename to test/builtins/gen/dpdx/0763f7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdx/0763f7.wgsl.expected.hlsl b/test/builtins/gen/dpdx/0763f7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdx/0763f7.wgsl.expected.hlsl rename to test/builtins/gen/dpdx/0763f7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdx/0763f7.wgsl.expected.msl b/test/builtins/gen/dpdx/0763f7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdx/0763f7.wgsl.expected.msl rename to test/builtins/gen/dpdx/0763f7.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdx/0763f7.wgsl.expected.spvasm b/test/builtins/gen/dpdx/0763f7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdx/0763f7.wgsl.expected.spvasm rename to test/builtins/gen/dpdx/0763f7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdx/0763f7.wgsl.expected.wgsl b/test/builtins/gen/dpdx/0763f7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdx/0763f7.wgsl.expected.wgsl rename to test/builtins/gen/dpdx/0763f7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdx/99edb1.wgsl b/test/builtins/gen/dpdx/99edb1.wgsl similarity index 87% rename from test/intrinsics/gen/dpdx/99edb1.wgsl rename to test/builtins/gen/dpdx/99edb1.wgsl index 84f512693b..59f8956b4f 100644 --- a/test/intrinsics/gen/dpdx/99edb1.wgsl +++ b/test/builtins/gen/dpdx/99edb1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdx/99edb1.wgsl.expected.glsl b/test/builtins/gen/dpdx/99edb1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdx/99edb1.wgsl.expected.glsl rename to test/builtins/gen/dpdx/99edb1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdx/99edb1.wgsl.expected.hlsl b/test/builtins/gen/dpdx/99edb1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdx/99edb1.wgsl.expected.hlsl rename to test/builtins/gen/dpdx/99edb1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdx/99edb1.wgsl.expected.msl b/test/builtins/gen/dpdx/99edb1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdx/99edb1.wgsl.expected.msl rename to test/builtins/gen/dpdx/99edb1.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdx/99edb1.wgsl.expected.spvasm b/test/builtins/gen/dpdx/99edb1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdx/99edb1.wgsl.expected.spvasm rename to test/builtins/gen/dpdx/99edb1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdx/99edb1.wgsl.expected.wgsl b/test/builtins/gen/dpdx/99edb1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdx/99edb1.wgsl.expected.wgsl rename to test/builtins/gen/dpdx/99edb1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdx/c487fa.wgsl b/test/builtins/gen/dpdx/c487fa.wgsl similarity index 87% rename from test/intrinsics/gen/dpdx/c487fa.wgsl rename to test/builtins/gen/dpdx/c487fa.wgsl index 7b477fb860..289a97d0d4 100644 --- a/test/intrinsics/gen/dpdx/c487fa.wgsl +++ b/test/builtins/gen/dpdx/c487fa.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdx/c487fa.wgsl.expected.glsl b/test/builtins/gen/dpdx/c487fa.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdx/c487fa.wgsl.expected.glsl rename to test/builtins/gen/dpdx/c487fa.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdx/c487fa.wgsl.expected.hlsl b/test/builtins/gen/dpdx/c487fa.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdx/c487fa.wgsl.expected.hlsl rename to test/builtins/gen/dpdx/c487fa.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdx/c487fa.wgsl.expected.msl b/test/builtins/gen/dpdx/c487fa.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdx/c487fa.wgsl.expected.msl rename to test/builtins/gen/dpdx/c487fa.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdx/c487fa.wgsl.expected.spvasm b/test/builtins/gen/dpdx/c487fa.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdx/c487fa.wgsl.expected.spvasm rename to test/builtins/gen/dpdx/c487fa.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdx/c487fa.wgsl.expected.wgsl b/test/builtins/gen/dpdx/c487fa.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdx/c487fa.wgsl.expected.wgsl rename to test/builtins/gen/dpdx/c487fa.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdx/e263de.wgsl b/test/builtins/gen/dpdx/e263de.wgsl similarity index 86% rename from test/intrinsics/gen/dpdx/e263de.wgsl rename to test/builtins/gen/dpdx/e263de.wgsl index 60498a7a25..ff465157ba 100644 --- a/test/intrinsics/gen/dpdx/e263de.wgsl +++ b/test/builtins/gen/dpdx/e263de.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdx/e263de.wgsl.expected.glsl b/test/builtins/gen/dpdx/e263de.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdx/e263de.wgsl.expected.glsl rename to test/builtins/gen/dpdx/e263de.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdx/e263de.wgsl.expected.hlsl b/test/builtins/gen/dpdx/e263de.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdx/e263de.wgsl.expected.hlsl rename to test/builtins/gen/dpdx/e263de.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdx/e263de.wgsl.expected.msl b/test/builtins/gen/dpdx/e263de.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdx/e263de.wgsl.expected.msl rename to test/builtins/gen/dpdx/e263de.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdx/e263de.wgsl.expected.spvasm b/test/builtins/gen/dpdx/e263de.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdx/e263de.wgsl.expected.spvasm rename to test/builtins/gen/dpdx/e263de.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdx/e263de.wgsl.expected.wgsl b/test/builtins/gen/dpdx/e263de.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdx/e263de.wgsl.expected.wgsl rename to test/builtins/gen/dpdx/e263de.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdxCoarse/029152.wgsl b/test/builtins/gen/dpdxCoarse/029152.wgsl similarity index 87% rename from test/intrinsics/gen/dpdxCoarse/029152.wgsl rename to test/builtins/gen/dpdxCoarse/029152.wgsl index 1a7cc1da61..7792ffa604 100644 --- a/test/intrinsics/gen/dpdxCoarse/029152.wgsl +++ b/test/builtins/gen/dpdxCoarse/029152.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdxCoarse/029152.wgsl.expected.glsl b/test/builtins/gen/dpdxCoarse/029152.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdxCoarse/029152.wgsl.expected.glsl rename to test/builtins/gen/dpdxCoarse/029152.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdxCoarse/029152.wgsl.expected.hlsl b/test/builtins/gen/dpdxCoarse/029152.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdxCoarse/029152.wgsl.expected.hlsl rename to test/builtins/gen/dpdxCoarse/029152.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdxCoarse/029152.wgsl.expected.msl b/test/builtins/gen/dpdxCoarse/029152.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdxCoarse/029152.wgsl.expected.msl rename to test/builtins/gen/dpdxCoarse/029152.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdxCoarse/029152.wgsl.expected.spvasm b/test/builtins/gen/dpdxCoarse/029152.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdxCoarse/029152.wgsl.expected.spvasm rename to test/builtins/gen/dpdxCoarse/029152.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdxCoarse/029152.wgsl.expected.wgsl b/test/builtins/gen/dpdxCoarse/029152.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdxCoarse/029152.wgsl.expected.wgsl rename to test/builtins/gen/dpdxCoarse/029152.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdxCoarse/9581cf.wgsl b/test/builtins/gen/dpdxCoarse/9581cf.wgsl similarity index 87% rename from test/intrinsics/gen/dpdxCoarse/9581cf.wgsl rename to test/builtins/gen/dpdxCoarse/9581cf.wgsl index 5ccf411a35..2a08179370 100644 --- a/test/intrinsics/gen/dpdxCoarse/9581cf.wgsl +++ b/test/builtins/gen/dpdxCoarse/9581cf.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdxCoarse/9581cf.wgsl.expected.glsl b/test/builtins/gen/dpdxCoarse/9581cf.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdxCoarse/9581cf.wgsl.expected.glsl rename to test/builtins/gen/dpdxCoarse/9581cf.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdxCoarse/9581cf.wgsl.expected.hlsl b/test/builtins/gen/dpdxCoarse/9581cf.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdxCoarse/9581cf.wgsl.expected.hlsl rename to test/builtins/gen/dpdxCoarse/9581cf.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdxCoarse/9581cf.wgsl.expected.msl b/test/builtins/gen/dpdxCoarse/9581cf.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdxCoarse/9581cf.wgsl.expected.msl rename to test/builtins/gen/dpdxCoarse/9581cf.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdxCoarse/9581cf.wgsl.expected.spvasm b/test/builtins/gen/dpdxCoarse/9581cf.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdxCoarse/9581cf.wgsl.expected.spvasm rename to test/builtins/gen/dpdxCoarse/9581cf.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdxCoarse/9581cf.wgsl.expected.wgsl b/test/builtins/gen/dpdxCoarse/9581cf.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdxCoarse/9581cf.wgsl.expected.wgsl rename to test/builtins/gen/dpdxCoarse/9581cf.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdxCoarse/c28641.wgsl b/test/builtins/gen/dpdxCoarse/c28641.wgsl similarity index 87% rename from test/intrinsics/gen/dpdxCoarse/c28641.wgsl rename to test/builtins/gen/dpdxCoarse/c28641.wgsl index 8777156bc3..3fe013e1e1 100644 --- a/test/intrinsics/gen/dpdxCoarse/c28641.wgsl +++ b/test/builtins/gen/dpdxCoarse/c28641.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdxCoarse/c28641.wgsl.expected.glsl b/test/builtins/gen/dpdxCoarse/c28641.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdxCoarse/c28641.wgsl.expected.glsl rename to test/builtins/gen/dpdxCoarse/c28641.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdxCoarse/c28641.wgsl.expected.hlsl b/test/builtins/gen/dpdxCoarse/c28641.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdxCoarse/c28641.wgsl.expected.hlsl rename to test/builtins/gen/dpdxCoarse/c28641.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdxCoarse/c28641.wgsl.expected.msl b/test/builtins/gen/dpdxCoarse/c28641.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdxCoarse/c28641.wgsl.expected.msl rename to test/builtins/gen/dpdxCoarse/c28641.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdxCoarse/c28641.wgsl.expected.spvasm b/test/builtins/gen/dpdxCoarse/c28641.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdxCoarse/c28641.wgsl.expected.spvasm rename to test/builtins/gen/dpdxCoarse/c28641.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdxCoarse/c28641.wgsl.expected.wgsl b/test/builtins/gen/dpdxCoarse/c28641.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdxCoarse/c28641.wgsl.expected.wgsl rename to test/builtins/gen/dpdxCoarse/c28641.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdxCoarse/f64d7b.wgsl b/test/builtins/gen/dpdxCoarse/f64d7b.wgsl similarity index 87% rename from test/intrinsics/gen/dpdxCoarse/f64d7b.wgsl rename to test/builtins/gen/dpdxCoarse/f64d7b.wgsl index 40b501cf6f..e5543ea308 100644 --- a/test/intrinsics/gen/dpdxCoarse/f64d7b.wgsl +++ b/test/builtins/gen/dpdxCoarse/f64d7b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdxCoarse/f64d7b.wgsl.expected.glsl b/test/builtins/gen/dpdxCoarse/f64d7b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdxCoarse/f64d7b.wgsl.expected.glsl rename to test/builtins/gen/dpdxCoarse/f64d7b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdxCoarse/f64d7b.wgsl.expected.hlsl b/test/builtins/gen/dpdxCoarse/f64d7b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdxCoarse/f64d7b.wgsl.expected.hlsl rename to test/builtins/gen/dpdxCoarse/f64d7b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdxCoarse/f64d7b.wgsl.expected.msl b/test/builtins/gen/dpdxCoarse/f64d7b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdxCoarse/f64d7b.wgsl.expected.msl rename to test/builtins/gen/dpdxCoarse/f64d7b.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdxCoarse/f64d7b.wgsl.expected.spvasm b/test/builtins/gen/dpdxCoarse/f64d7b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdxCoarse/f64d7b.wgsl.expected.spvasm rename to test/builtins/gen/dpdxCoarse/f64d7b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdxCoarse/f64d7b.wgsl.expected.wgsl b/test/builtins/gen/dpdxCoarse/f64d7b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdxCoarse/f64d7b.wgsl.expected.wgsl rename to test/builtins/gen/dpdxCoarse/f64d7b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdxFine/8c5069.wgsl b/test/builtins/gen/dpdxFine/8c5069.wgsl similarity index 87% rename from test/intrinsics/gen/dpdxFine/8c5069.wgsl rename to test/builtins/gen/dpdxFine/8c5069.wgsl index b1db7e3d9a..a19dccd81e 100644 --- a/test/intrinsics/gen/dpdxFine/8c5069.wgsl +++ b/test/builtins/gen/dpdxFine/8c5069.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdxFine/8c5069.wgsl.expected.glsl b/test/builtins/gen/dpdxFine/8c5069.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdxFine/8c5069.wgsl.expected.glsl rename to test/builtins/gen/dpdxFine/8c5069.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdxFine/8c5069.wgsl.expected.hlsl b/test/builtins/gen/dpdxFine/8c5069.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdxFine/8c5069.wgsl.expected.hlsl rename to test/builtins/gen/dpdxFine/8c5069.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdxFine/8c5069.wgsl.expected.msl b/test/builtins/gen/dpdxFine/8c5069.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdxFine/8c5069.wgsl.expected.msl rename to test/builtins/gen/dpdxFine/8c5069.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdxFine/8c5069.wgsl.expected.spvasm b/test/builtins/gen/dpdxFine/8c5069.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdxFine/8c5069.wgsl.expected.spvasm rename to test/builtins/gen/dpdxFine/8c5069.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdxFine/8c5069.wgsl.expected.wgsl b/test/builtins/gen/dpdxFine/8c5069.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdxFine/8c5069.wgsl.expected.wgsl rename to test/builtins/gen/dpdxFine/8c5069.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdxFine/9631de.wgsl b/test/builtins/gen/dpdxFine/9631de.wgsl similarity index 87% rename from test/intrinsics/gen/dpdxFine/9631de.wgsl rename to test/builtins/gen/dpdxFine/9631de.wgsl index f29dffb64f..1c1c50d94a 100644 --- a/test/intrinsics/gen/dpdxFine/9631de.wgsl +++ b/test/builtins/gen/dpdxFine/9631de.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdxFine/9631de.wgsl.expected.glsl b/test/builtins/gen/dpdxFine/9631de.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdxFine/9631de.wgsl.expected.glsl rename to test/builtins/gen/dpdxFine/9631de.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdxFine/9631de.wgsl.expected.hlsl b/test/builtins/gen/dpdxFine/9631de.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdxFine/9631de.wgsl.expected.hlsl rename to test/builtins/gen/dpdxFine/9631de.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdxFine/9631de.wgsl.expected.msl b/test/builtins/gen/dpdxFine/9631de.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdxFine/9631de.wgsl.expected.msl rename to test/builtins/gen/dpdxFine/9631de.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdxFine/9631de.wgsl.expected.spvasm b/test/builtins/gen/dpdxFine/9631de.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdxFine/9631de.wgsl.expected.spvasm rename to test/builtins/gen/dpdxFine/9631de.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdxFine/9631de.wgsl.expected.wgsl b/test/builtins/gen/dpdxFine/9631de.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdxFine/9631de.wgsl.expected.wgsl rename to test/builtins/gen/dpdxFine/9631de.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdxFine/f401a2.wgsl b/test/builtins/gen/dpdxFine/f401a2.wgsl similarity index 87% rename from test/intrinsics/gen/dpdxFine/f401a2.wgsl rename to test/builtins/gen/dpdxFine/f401a2.wgsl index 405291f316..d501e7ab65 100644 --- a/test/intrinsics/gen/dpdxFine/f401a2.wgsl +++ b/test/builtins/gen/dpdxFine/f401a2.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdxFine/f401a2.wgsl.expected.glsl b/test/builtins/gen/dpdxFine/f401a2.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdxFine/f401a2.wgsl.expected.glsl rename to test/builtins/gen/dpdxFine/f401a2.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdxFine/f401a2.wgsl.expected.hlsl b/test/builtins/gen/dpdxFine/f401a2.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdxFine/f401a2.wgsl.expected.hlsl rename to test/builtins/gen/dpdxFine/f401a2.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdxFine/f401a2.wgsl.expected.msl b/test/builtins/gen/dpdxFine/f401a2.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdxFine/f401a2.wgsl.expected.msl rename to test/builtins/gen/dpdxFine/f401a2.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdxFine/f401a2.wgsl.expected.spvasm b/test/builtins/gen/dpdxFine/f401a2.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdxFine/f401a2.wgsl.expected.spvasm rename to test/builtins/gen/dpdxFine/f401a2.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdxFine/f401a2.wgsl.expected.wgsl b/test/builtins/gen/dpdxFine/f401a2.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdxFine/f401a2.wgsl.expected.wgsl rename to test/builtins/gen/dpdxFine/f401a2.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdxFine/f92fb6.wgsl b/test/builtins/gen/dpdxFine/f92fb6.wgsl similarity index 87% rename from test/intrinsics/gen/dpdxFine/f92fb6.wgsl rename to test/builtins/gen/dpdxFine/f92fb6.wgsl index 8a3b66db5c..99f58b716e 100644 --- a/test/intrinsics/gen/dpdxFine/f92fb6.wgsl +++ b/test/builtins/gen/dpdxFine/f92fb6.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdxFine/f92fb6.wgsl.expected.glsl b/test/builtins/gen/dpdxFine/f92fb6.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdxFine/f92fb6.wgsl.expected.glsl rename to test/builtins/gen/dpdxFine/f92fb6.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdxFine/f92fb6.wgsl.expected.hlsl b/test/builtins/gen/dpdxFine/f92fb6.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdxFine/f92fb6.wgsl.expected.hlsl rename to test/builtins/gen/dpdxFine/f92fb6.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdxFine/f92fb6.wgsl.expected.msl b/test/builtins/gen/dpdxFine/f92fb6.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdxFine/f92fb6.wgsl.expected.msl rename to test/builtins/gen/dpdxFine/f92fb6.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdxFine/f92fb6.wgsl.expected.spvasm b/test/builtins/gen/dpdxFine/f92fb6.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdxFine/f92fb6.wgsl.expected.spvasm rename to test/builtins/gen/dpdxFine/f92fb6.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdxFine/f92fb6.wgsl.expected.wgsl b/test/builtins/gen/dpdxFine/f92fb6.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdxFine/f92fb6.wgsl.expected.wgsl rename to test/builtins/gen/dpdxFine/f92fb6.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdy/699a05.wgsl b/test/builtins/gen/dpdy/699a05.wgsl similarity index 87% rename from test/intrinsics/gen/dpdy/699a05.wgsl rename to test/builtins/gen/dpdy/699a05.wgsl index dc14668929..6ffa8d8f66 100644 --- a/test/intrinsics/gen/dpdy/699a05.wgsl +++ b/test/builtins/gen/dpdy/699a05.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdy/699a05.wgsl.expected.glsl b/test/builtins/gen/dpdy/699a05.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdy/699a05.wgsl.expected.glsl rename to test/builtins/gen/dpdy/699a05.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdy/699a05.wgsl.expected.hlsl b/test/builtins/gen/dpdy/699a05.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdy/699a05.wgsl.expected.hlsl rename to test/builtins/gen/dpdy/699a05.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdy/699a05.wgsl.expected.msl b/test/builtins/gen/dpdy/699a05.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdy/699a05.wgsl.expected.msl rename to test/builtins/gen/dpdy/699a05.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdy/699a05.wgsl.expected.spvasm b/test/builtins/gen/dpdy/699a05.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdy/699a05.wgsl.expected.spvasm rename to test/builtins/gen/dpdy/699a05.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdy/699a05.wgsl.expected.wgsl b/test/builtins/gen/dpdy/699a05.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdy/699a05.wgsl.expected.wgsl rename to test/builtins/gen/dpdy/699a05.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdy/7f8d84.wgsl b/test/builtins/gen/dpdy/7f8d84.wgsl similarity index 86% rename from test/intrinsics/gen/dpdy/7f8d84.wgsl rename to test/builtins/gen/dpdy/7f8d84.wgsl index c468777ef2..0298c499e4 100644 --- a/test/intrinsics/gen/dpdy/7f8d84.wgsl +++ b/test/builtins/gen/dpdy/7f8d84.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdy/7f8d84.wgsl.expected.glsl b/test/builtins/gen/dpdy/7f8d84.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdy/7f8d84.wgsl.expected.glsl rename to test/builtins/gen/dpdy/7f8d84.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdy/7f8d84.wgsl.expected.hlsl b/test/builtins/gen/dpdy/7f8d84.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdy/7f8d84.wgsl.expected.hlsl rename to test/builtins/gen/dpdy/7f8d84.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdy/7f8d84.wgsl.expected.msl b/test/builtins/gen/dpdy/7f8d84.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdy/7f8d84.wgsl.expected.msl rename to test/builtins/gen/dpdy/7f8d84.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdy/7f8d84.wgsl.expected.spvasm b/test/builtins/gen/dpdy/7f8d84.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdy/7f8d84.wgsl.expected.spvasm rename to test/builtins/gen/dpdy/7f8d84.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdy/7f8d84.wgsl.expected.wgsl b/test/builtins/gen/dpdy/7f8d84.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdy/7f8d84.wgsl.expected.wgsl rename to test/builtins/gen/dpdy/7f8d84.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdy/a8b56e.wgsl b/test/builtins/gen/dpdy/a8b56e.wgsl similarity index 87% rename from test/intrinsics/gen/dpdy/a8b56e.wgsl rename to test/builtins/gen/dpdy/a8b56e.wgsl index e79bff9652..62408d5892 100644 --- a/test/intrinsics/gen/dpdy/a8b56e.wgsl +++ b/test/builtins/gen/dpdy/a8b56e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdy/a8b56e.wgsl.expected.glsl b/test/builtins/gen/dpdy/a8b56e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdy/a8b56e.wgsl.expected.glsl rename to test/builtins/gen/dpdy/a8b56e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdy/a8b56e.wgsl.expected.hlsl b/test/builtins/gen/dpdy/a8b56e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdy/a8b56e.wgsl.expected.hlsl rename to test/builtins/gen/dpdy/a8b56e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdy/a8b56e.wgsl.expected.msl b/test/builtins/gen/dpdy/a8b56e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdy/a8b56e.wgsl.expected.msl rename to test/builtins/gen/dpdy/a8b56e.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdy/a8b56e.wgsl.expected.spvasm b/test/builtins/gen/dpdy/a8b56e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdy/a8b56e.wgsl.expected.spvasm rename to test/builtins/gen/dpdy/a8b56e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdy/a8b56e.wgsl.expected.wgsl b/test/builtins/gen/dpdy/a8b56e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdy/a8b56e.wgsl.expected.wgsl rename to test/builtins/gen/dpdy/a8b56e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdy/feb40f.wgsl b/test/builtins/gen/dpdy/feb40f.wgsl similarity index 87% rename from test/intrinsics/gen/dpdy/feb40f.wgsl rename to test/builtins/gen/dpdy/feb40f.wgsl index f3afdc2db3..e6ff7201df 100644 --- a/test/intrinsics/gen/dpdy/feb40f.wgsl +++ b/test/builtins/gen/dpdy/feb40f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdy/feb40f.wgsl.expected.glsl b/test/builtins/gen/dpdy/feb40f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdy/feb40f.wgsl.expected.glsl rename to test/builtins/gen/dpdy/feb40f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdy/feb40f.wgsl.expected.hlsl b/test/builtins/gen/dpdy/feb40f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdy/feb40f.wgsl.expected.hlsl rename to test/builtins/gen/dpdy/feb40f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdy/feb40f.wgsl.expected.msl b/test/builtins/gen/dpdy/feb40f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdy/feb40f.wgsl.expected.msl rename to test/builtins/gen/dpdy/feb40f.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdy/feb40f.wgsl.expected.spvasm b/test/builtins/gen/dpdy/feb40f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdy/feb40f.wgsl.expected.spvasm rename to test/builtins/gen/dpdy/feb40f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdy/feb40f.wgsl.expected.wgsl b/test/builtins/gen/dpdy/feb40f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdy/feb40f.wgsl.expected.wgsl rename to test/builtins/gen/dpdy/feb40f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdyCoarse/3e1ab4.wgsl b/test/builtins/gen/dpdyCoarse/3e1ab4.wgsl similarity index 87% rename from test/intrinsics/gen/dpdyCoarse/3e1ab4.wgsl rename to test/builtins/gen/dpdyCoarse/3e1ab4.wgsl index 15007a3276..5817c55ff8 100644 --- a/test/intrinsics/gen/dpdyCoarse/3e1ab4.wgsl +++ b/test/builtins/gen/dpdyCoarse/3e1ab4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdyCoarse/3e1ab4.wgsl.expected.glsl b/test/builtins/gen/dpdyCoarse/3e1ab4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdyCoarse/3e1ab4.wgsl.expected.glsl rename to test/builtins/gen/dpdyCoarse/3e1ab4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdyCoarse/3e1ab4.wgsl.expected.hlsl b/test/builtins/gen/dpdyCoarse/3e1ab4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdyCoarse/3e1ab4.wgsl.expected.hlsl rename to test/builtins/gen/dpdyCoarse/3e1ab4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdyCoarse/3e1ab4.wgsl.expected.msl b/test/builtins/gen/dpdyCoarse/3e1ab4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdyCoarse/3e1ab4.wgsl.expected.msl rename to test/builtins/gen/dpdyCoarse/3e1ab4.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdyCoarse/3e1ab4.wgsl.expected.spvasm b/test/builtins/gen/dpdyCoarse/3e1ab4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdyCoarse/3e1ab4.wgsl.expected.spvasm rename to test/builtins/gen/dpdyCoarse/3e1ab4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdyCoarse/3e1ab4.wgsl.expected.wgsl b/test/builtins/gen/dpdyCoarse/3e1ab4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdyCoarse/3e1ab4.wgsl.expected.wgsl rename to test/builtins/gen/dpdyCoarse/3e1ab4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdyCoarse/445d24.wgsl b/test/builtins/gen/dpdyCoarse/445d24.wgsl similarity index 87% rename from test/intrinsics/gen/dpdyCoarse/445d24.wgsl rename to test/builtins/gen/dpdyCoarse/445d24.wgsl index b397d4e87b..9206d8f25d 100644 --- a/test/intrinsics/gen/dpdyCoarse/445d24.wgsl +++ b/test/builtins/gen/dpdyCoarse/445d24.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdyCoarse/445d24.wgsl.expected.glsl b/test/builtins/gen/dpdyCoarse/445d24.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdyCoarse/445d24.wgsl.expected.glsl rename to test/builtins/gen/dpdyCoarse/445d24.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdyCoarse/445d24.wgsl.expected.hlsl b/test/builtins/gen/dpdyCoarse/445d24.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdyCoarse/445d24.wgsl.expected.hlsl rename to test/builtins/gen/dpdyCoarse/445d24.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdyCoarse/445d24.wgsl.expected.msl b/test/builtins/gen/dpdyCoarse/445d24.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdyCoarse/445d24.wgsl.expected.msl rename to test/builtins/gen/dpdyCoarse/445d24.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdyCoarse/445d24.wgsl.expected.spvasm b/test/builtins/gen/dpdyCoarse/445d24.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdyCoarse/445d24.wgsl.expected.spvasm rename to test/builtins/gen/dpdyCoarse/445d24.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdyCoarse/445d24.wgsl.expected.wgsl b/test/builtins/gen/dpdyCoarse/445d24.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdyCoarse/445d24.wgsl.expected.wgsl rename to test/builtins/gen/dpdyCoarse/445d24.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdyCoarse/870a7e.wgsl b/test/builtins/gen/dpdyCoarse/870a7e.wgsl similarity index 87% rename from test/intrinsics/gen/dpdyCoarse/870a7e.wgsl rename to test/builtins/gen/dpdyCoarse/870a7e.wgsl index 7fc7907d5a..81f0cd2521 100644 --- a/test/intrinsics/gen/dpdyCoarse/870a7e.wgsl +++ b/test/builtins/gen/dpdyCoarse/870a7e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdyCoarse/870a7e.wgsl.expected.glsl b/test/builtins/gen/dpdyCoarse/870a7e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdyCoarse/870a7e.wgsl.expected.glsl rename to test/builtins/gen/dpdyCoarse/870a7e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdyCoarse/870a7e.wgsl.expected.hlsl b/test/builtins/gen/dpdyCoarse/870a7e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdyCoarse/870a7e.wgsl.expected.hlsl rename to test/builtins/gen/dpdyCoarse/870a7e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdyCoarse/870a7e.wgsl.expected.msl b/test/builtins/gen/dpdyCoarse/870a7e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdyCoarse/870a7e.wgsl.expected.msl rename to test/builtins/gen/dpdyCoarse/870a7e.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdyCoarse/870a7e.wgsl.expected.spvasm b/test/builtins/gen/dpdyCoarse/870a7e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdyCoarse/870a7e.wgsl.expected.spvasm rename to test/builtins/gen/dpdyCoarse/870a7e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdyCoarse/870a7e.wgsl.expected.wgsl b/test/builtins/gen/dpdyCoarse/870a7e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdyCoarse/870a7e.wgsl.expected.wgsl rename to test/builtins/gen/dpdyCoarse/870a7e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdyCoarse/ae1873.wgsl b/test/builtins/gen/dpdyCoarse/ae1873.wgsl similarity index 87% rename from test/intrinsics/gen/dpdyCoarse/ae1873.wgsl rename to test/builtins/gen/dpdyCoarse/ae1873.wgsl index b1f32ef5c0..ec0b565902 100644 --- a/test/intrinsics/gen/dpdyCoarse/ae1873.wgsl +++ b/test/builtins/gen/dpdyCoarse/ae1873.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdyCoarse/ae1873.wgsl.expected.glsl b/test/builtins/gen/dpdyCoarse/ae1873.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdyCoarse/ae1873.wgsl.expected.glsl rename to test/builtins/gen/dpdyCoarse/ae1873.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdyCoarse/ae1873.wgsl.expected.hlsl b/test/builtins/gen/dpdyCoarse/ae1873.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdyCoarse/ae1873.wgsl.expected.hlsl rename to test/builtins/gen/dpdyCoarse/ae1873.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdyCoarse/ae1873.wgsl.expected.msl b/test/builtins/gen/dpdyCoarse/ae1873.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdyCoarse/ae1873.wgsl.expected.msl rename to test/builtins/gen/dpdyCoarse/ae1873.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdyCoarse/ae1873.wgsl.expected.spvasm b/test/builtins/gen/dpdyCoarse/ae1873.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdyCoarse/ae1873.wgsl.expected.spvasm rename to test/builtins/gen/dpdyCoarse/ae1873.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdyCoarse/ae1873.wgsl.expected.wgsl b/test/builtins/gen/dpdyCoarse/ae1873.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdyCoarse/ae1873.wgsl.expected.wgsl rename to test/builtins/gen/dpdyCoarse/ae1873.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdyFine/1fb7ab.wgsl b/test/builtins/gen/dpdyFine/1fb7ab.wgsl similarity index 87% rename from test/intrinsics/gen/dpdyFine/1fb7ab.wgsl rename to test/builtins/gen/dpdyFine/1fb7ab.wgsl index 3a28460501..28d6efc0e5 100644 --- a/test/intrinsics/gen/dpdyFine/1fb7ab.wgsl +++ b/test/builtins/gen/dpdyFine/1fb7ab.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdyFine/1fb7ab.wgsl.expected.glsl b/test/builtins/gen/dpdyFine/1fb7ab.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdyFine/1fb7ab.wgsl.expected.glsl rename to test/builtins/gen/dpdyFine/1fb7ab.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdyFine/1fb7ab.wgsl.expected.hlsl b/test/builtins/gen/dpdyFine/1fb7ab.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdyFine/1fb7ab.wgsl.expected.hlsl rename to test/builtins/gen/dpdyFine/1fb7ab.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdyFine/1fb7ab.wgsl.expected.msl b/test/builtins/gen/dpdyFine/1fb7ab.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdyFine/1fb7ab.wgsl.expected.msl rename to test/builtins/gen/dpdyFine/1fb7ab.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdyFine/1fb7ab.wgsl.expected.spvasm b/test/builtins/gen/dpdyFine/1fb7ab.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdyFine/1fb7ab.wgsl.expected.spvasm rename to test/builtins/gen/dpdyFine/1fb7ab.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdyFine/1fb7ab.wgsl.expected.wgsl b/test/builtins/gen/dpdyFine/1fb7ab.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdyFine/1fb7ab.wgsl.expected.wgsl rename to test/builtins/gen/dpdyFine/1fb7ab.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdyFine/6eb673.wgsl b/test/builtins/gen/dpdyFine/6eb673.wgsl similarity index 87% rename from test/intrinsics/gen/dpdyFine/6eb673.wgsl rename to test/builtins/gen/dpdyFine/6eb673.wgsl index 9469533325..87c154a569 100644 --- a/test/intrinsics/gen/dpdyFine/6eb673.wgsl +++ b/test/builtins/gen/dpdyFine/6eb673.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdyFine/6eb673.wgsl.expected.glsl b/test/builtins/gen/dpdyFine/6eb673.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdyFine/6eb673.wgsl.expected.glsl rename to test/builtins/gen/dpdyFine/6eb673.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdyFine/6eb673.wgsl.expected.hlsl b/test/builtins/gen/dpdyFine/6eb673.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdyFine/6eb673.wgsl.expected.hlsl rename to test/builtins/gen/dpdyFine/6eb673.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdyFine/6eb673.wgsl.expected.msl b/test/builtins/gen/dpdyFine/6eb673.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdyFine/6eb673.wgsl.expected.msl rename to test/builtins/gen/dpdyFine/6eb673.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdyFine/6eb673.wgsl.expected.spvasm b/test/builtins/gen/dpdyFine/6eb673.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdyFine/6eb673.wgsl.expected.spvasm rename to test/builtins/gen/dpdyFine/6eb673.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdyFine/6eb673.wgsl.expected.wgsl b/test/builtins/gen/dpdyFine/6eb673.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdyFine/6eb673.wgsl.expected.wgsl rename to test/builtins/gen/dpdyFine/6eb673.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdyFine/d0a648.wgsl b/test/builtins/gen/dpdyFine/d0a648.wgsl similarity index 87% rename from test/intrinsics/gen/dpdyFine/d0a648.wgsl rename to test/builtins/gen/dpdyFine/d0a648.wgsl index 436f5a1821..d5477f81dd 100644 --- a/test/intrinsics/gen/dpdyFine/d0a648.wgsl +++ b/test/builtins/gen/dpdyFine/d0a648.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdyFine/d0a648.wgsl.expected.glsl b/test/builtins/gen/dpdyFine/d0a648.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdyFine/d0a648.wgsl.expected.glsl rename to test/builtins/gen/dpdyFine/d0a648.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdyFine/d0a648.wgsl.expected.hlsl b/test/builtins/gen/dpdyFine/d0a648.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdyFine/d0a648.wgsl.expected.hlsl rename to test/builtins/gen/dpdyFine/d0a648.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdyFine/d0a648.wgsl.expected.msl b/test/builtins/gen/dpdyFine/d0a648.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdyFine/d0a648.wgsl.expected.msl rename to test/builtins/gen/dpdyFine/d0a648.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdyFine/d0a648.wgsl.expected.spvasm b/test/builtins/gen/dpdyFine/d0a648.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdyFine/d0a648.wgsl.expected.spvasm rename to test/builtins/gen/dpdyFine/d0a648.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdyFine/d0a648.wgsl.expected.wgsl b/test/builtins/gen/dpdyFine/d0a648.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdyFine/d0a648.wgsl.expected.wgsl rename to test/builtins/gen/dpdyFine/d0a648.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/dpdyFine/df33aa.wgsl b/test/builtins/gen/dpdyFine/df33aa.wgsl similarity index 87% rename from test/intrinsics/gen/dpdyFine/df33aa.wgsl rename to test/builtins/gen/dpdyFine/df33aa.wgsl index fdfc9c8713..e2206efa75 100644 --- a/test/intrinsics/gen/dpdyFine/df33aa.wgsl +++ b/test/builtins/gen/dpdyFine/df33aa.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/dpdyFine/df33aa.wgsl.expected.glsl b/test/builtins/gen/dpdyFine/df33aa.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/dpdyFine/df33aa.wgsl.expected.glsl rename to test/builtins/gen/dpdyFine/df33aa.wgsl.expected.glsl diff --git a/test/intrinsics/gen/dpdyFine/df33aa.wgsl.expected.hlsl b/test/builtins/gen/dpdyFine/df33aa.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/dpdyFine/df33aa.wgsl.expected.hlsl rename to test/builtins/gen/dpdyFine/df33aa.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/dpdyFine/df33aa.wgsl.expected.msl b/test/builtins/gen/dpdyFine/df33aa.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/dpdyFine/df33aa.wgsl.expected.msl rename to test/builtins/gen/dpdyFine/df33aa.wgsl.expected.msl diff --git a/test/intrinsics/gen/dpdyFine/df33aa.wgsl.expected.spvasm b/test/builtins/gen/dpdyFine/df33aa.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/dpdyFine/df33aa.wgsl.expected.spvasm rename to test/builtins/gen/dpdyFine/df33aa.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/dpdyFine/df33aa.wgsl.expected.wgsl b/test/builtins/gen/dpdyFine/df33aa.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/dpdyFine/df33aa.wgsl.expected.wgsl rename to test/builtins/gen/dpdyFine/df33aa.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/exp/0f70eb.wgsl b/test/builtins/gen/exp/0f70eb.wgsl similarity index 88% rename from test/intrinsics/gen/exp/0f70eb.wgsl rename to test/builtins/gen/exp/0f70eb.wgsl index e65faa43d3..2798c2716e 100644 --- a/test/intrinsics/gen/exp/0f70eb.wgsl +++ b/test/builtins/gen/exp/0f70eb.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/exp/0f70eb.wgsl.expected.glsl b/test/builtins/gen/exp/0f70eb.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/exp/0f70eb.wgsl.expected.glsl rename to test/builtins/gen/exp/0f70eb.wgsl.expected.glsl diff --git a/test/intrinsics/gen/exp/0f70eb.wgsl.expected.hlsl b/test/builtins/gen/exp/0f70eb.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/exp/0f70eb.wgsl.expected.hlsl rename to test/builtins/gen/exp/0f70eb.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/exp/0f70eb.wgsl.expected.msl b/test/builtins/gen/exp/0f70eb.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/exp/0f70eb.wgsl.expected.msl rename to test/builtins/gen/exp/0f70eb.wgsl.expected.msl diff --git a/test/intrinsics/gen/exp/0f70eb.wgsl.expected.spvasm b/test/builtins/gen/exp/0f70eb.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/exp/0f70eb.wgsl.expected.spvasm rename to test/builtins/gen/exp/0f70eb.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/exp/0f70eb.wgsl.expected.wgsl b/test/builtins/gen/exp/0f70eb.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/exp/0f70eb.wgsl.expected.wgsl rename to test/builtins/gen/exp/0f70eb.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/exp/1951e7.wgsl b/test/builtins/gen/exp/1951e7.wgsl similarity index 88% rename from test/intrinsics/gen/exp/1951e7.wgsl rename to test/builtins/gen/exp/1951e7.wgsl index 6e006f3abc..085a58f685 100644 --- a/test/intrinsics/gen/exp/1951e7.wgsl +++ b/test/builtins/gen/exp/1951e7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/exp/1951e7.wgsl.expected.glsl b/test/builtins/gen/exp/1951e7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/exp/1951e7.wgsl.expected.glsl rename to test/builtins/gen/exp/1951e7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/exp/1951e7.wgsl.expected.hlsl b/test/builtins/gen/exp/1951e7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/exp/1951e7.wgsl.expected.hlsl rename to test/builtins/gen/exp/1951e7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/exp/1951e7.wgsl.expected.msl b/test/builtins/gen/exp/1951e7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/exp/1951e7.wgsl.expected.msl rename to test/builtins/gen/exp/1951e7.wgsl.expected.msl diff --git a/test/intrinsics/gen/exp/1951e7.wgsl.expected.spvasm b/test/builtins/gen/exp/1951e7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/exp/1951e7.wgsl.expected.spvasm rename to test/builtins/gen/exp/1951e7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/exp/1951e7.wgsl.expected.wgsl b/test/builtins/gen/exp/1951e7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/exp/1951e7.wgsl.expected.wgsl rename to test/builtins/gen/exp/1951e7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/exp/771fd2.wgsl b/test/builtins/gen/exp/771fd2.wgsl similarity index 88% rename from test/intrinsics/gen/exp/771fd2.wgsl rename to test/builtins/gen/exp/771fd2.wgsl index a1cb3cdbcc..f7bb800ac2 100644 --- a/test/intrinsics/gen/exp/771fd2.wgsl +++ b/test/builtins/gen/exp/771fd2.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/exp/771fd2.wgsl.expected.glsl b/test/builtins/gen/exp/771fd2.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/exp/771fd2.wgsl.expected.glsl rename to test/builtins/gen/exp/771fd2.wgsl.expected.glsl diff --git a/test/intrinsics/gen/exp/771fd2.wgsl.expected.hlsl b/test/builtins/gen/exp/771fd2.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/exp/771fd2.wgsl.expected.hlsl rename to test/builtins/gen/exp/771fd2.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/exp/771fd2.wgsl.expected.msl b/test/builtins/gen/exp/771fd2.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/exp/771fd2.wgsl.expected.msl rename to test/builtins/gen/exp/771fd2.wgsl.expected.msl diff --git a/test/intrinsics/gen/exp/771fd2.wgsl.expected.spvasm b/test/builtins/gen/exp/771fd2.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/exp/771fd2.wgsl.expected.spvasm rename to test/builtins/gen/exp/771fd2.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/exp/771fd2.wgsl.expected.wgsl b/test/builtins/gen/exp/771fd2.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/exp/771fd2.wgsl.expected.wgsl rename to test/builtins/gen/exp/771fd2.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/exp/d98450.wgsl b/test/builtins/gen/exp/d98450.wgsl similarity index 88% rename from test/intrinsics/gen/exp/d98450.wgsl rename to test/builtins/gen/exp/d98450.wgsl index 2404a177a6..caf87a5154 100644 --- a/test/intrinsics/gen/exp/d98450.wgsl +++ b/test/builtins/gen/exp/d98450.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/exp/d98450.wgsl.expected.glsl b/test/builtins/gen/exp/d98450.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/exp/d98450.wgsl.expected.glsl rename to test/builtins/gen/exp/d98450.wgsl.expected.glsl diff --git a/test/intrinsics/gen/exp/d98450.wgsl.expected.hlsl b/test/builtins/gen/exp/d98450.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/exp/d98450.wgsl.expected.hlsl rename to test/builtins/gen/exp/d98450.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/exp/d98450.wgsl.expected.msl b/test/builtins/gen/exp/d98450.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/exp/d98450.wgsl.expected.msl rename to test/builtins/gen/exp/d98450.wgsl.expected.msl diff --git a/test/intrinsics/gen/exp/d98450.wgsl.expected.spvasm b/test/builtins/gen/exp/d98450.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/exp/d98450.wgsl.expected.spvasm rename to test/builtins/gen/exp/d98450.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/exp/d98450.wgsl.expected.wgsl b/test/builtins/gen/exp/d98450.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/exp/d98450.wgsl.expected.wgsl rename to test/builtins/gen/exp/d98450.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/exp2/1f8680.wgsl b/test/builtins/gen/exp2/1f8680.wgsl similarity index 88% rename from test/intrinsics/gen/exp2/1f8680.wgsl rename to test/builtins/gen/exp2/1f8680.wgsl index 0fdaeba42f..f5f34beabb 100644 --- a/test/intrinsics/gen/exp2/1f8680.wgsl +++ b/test/builtins/gen/exp2/1f8680.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/exp2/1f8680.wgsl.expected.glsl b/test/builtins/gen/exp2/1f8680.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/exp2/1f8680.wgsl.expected.glsl rename to test/builtins/gen/exp2/1f8680.wgsl.expected.glsl diff --git a/test/intrinsics/gen/exp2/1f8680.wgsl.expected.hlsl b/test/builtins/gen/exp2/1f8680.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/exp2/1f8680.wgsl.expected.hlsl rename to test/builtins/gen/exp2/1f8680.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/exp2/1f8680.wgsl.expected.msl b/test/builtins/gen/exp2/1f8680.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/exp2/1f8680.wgsl.expected.msl rename to test/builtins/gen/exp2/1f8680.wgsl.expected.msl diff --git a/test/intrinsics/gen/exp2/1f8680.wgsl.expected.spvasm b/test/builtins/gen/exp2/1f8680.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/exp2/1f8680.wgsl.expected.spvasm rename to test/builtins/gen/exp2/1f8680.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/exp2/1f8680.wgsl.expected.wgsl b/test/builtins/gen/exp2/1f8680.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/exp2/1f8680.wgsl.expected.wgsl rename to test/builtins/gen/exp2/1f8680.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/exp2/a9d0a7.wgsl b/test/builtins/gen/exp2/a9d0a7.wgsl similarity index 88% rename from test/intrinsics/gen/exp2/a9d0a7.wgsl rename to test/builtins/gen/exp2/a9d0a7.wgsl index 46e47f7023..e827c11075 100644 --- a/test/intrinsics/gen/exp2/a9d0a7.wgsl +++ b/test/builtins/gen/exp2/a9d0a7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/exp2/a9d0a7.wgsl.expected.glsl b/test/builtins/gen/exp2/a9d0a7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/exp2/a9d0a7.wgsl.expected.glsl rename to test/builtins/gen/exp2/a9d0a7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/exp2/a9d0a7.wgsl.expected.hlsl b/test/builtins/gen/exp2/a9d0a7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/exp2/a9d0a7.wgsl.expected.hlsl rename to test/builtins/gen/exp2/a9d0a7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/exp2/a9d0a7.wgsl.expected.msl b/test/builtins/gen/exp2/a9d0a7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/exp2/a9d0a7.wgsl.expected.msl rename to test/builtins/gen/exp2/a9d0a7.wgsl.expected.msl diff --git a/test/intrinsics/gen/exp2/a9d0a7.wgsl.expected.spvasm b/test/builtins/gen/exp2/a9d0a7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/exp2/a9d0a7.wgsl.expected.spvasm rename to test/builtins/gen/exp2/a9d0a7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/exp2/a9d0a7.wgsl.expected.wgsl b/test/builtins/gen/exp2/a9d0a7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/exp2/a9d0a7.wgsl.expected.wgsl rename to test/builtins/gen/exp2/a9d0a7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/exp2/d6777c.wgsl b/test/builtins/gen/exp2/d6777c.wgsl similarity index 88% rename from test/intrinsics/gen/exp2/d6777c.wgsl rename to test/builtins/gen/exp2/d6777c.wgsl index 42933c0030..3927cc882f 100644 --- a/test/intrinsics/gen/exp2/d6777c.wgsl +++ b/test/builtins/gen/exp2/d6777c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/exp2/d6777c.wgsl.expected.glsl b/test/builtins/gen/exp2/d6777c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/exp2/d6777c.wgsl.expected.glsl rename to test/builtins/gen/exp2/d6777c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/exp2/d6777c.wgsl.expected.hlsl b/test/builtins/gen/exp2/d6777c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/exp2/d6777c.wgsl.expected.hlsl rename to test/builtins/gen/exp2/d6777c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/exp2/d6777c.wgsl.expected.msl b/test/builtins/gen/exp2/d6777c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/exp2/d6777c.wgsl.expected.msl rename to test/builtins/gen/exp2/d6777c.wgsl.expected.msl diff --git a/test/intrinsics/gen/exp2/d6777c.wgsl.expected.spvasm b/test/builtins/gen/exp2/d6777c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/exp2/d6777c.wgsl.expected.spvasm rename to test/builtins/gen/exp2/d6777c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/exp2/d6777c.wgsl.expected.wgsl b/test/builtins/gen/exp2/d6777c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/exp2/d6777c.wgsl.expected.wgsl rename to test/builtins/gen/exp2/d6777c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/exp2/dea523.wgsl b/test/builtins/gen/exp2/dea523.wgsl similarity index 88% rename from test/intrinsics/gen/exp2/dea523.wgsl rename to test/builtins/gen/exp2/dea523.wgsl index 26e836aee7..7feb8af228 100644 --- a/test/intrinsics/gen/exp2/dea523.wgsl +++ b/test/builtins/gen/exp2/dea523.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/exp2/dea523.wgsl.expected.glsl b/test/builtins/gen/exp2/dea523.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/exp2/dea523.wgsl.expected.glsl rename to test/builtins/gen/exp2/dea523.wgsl.expected.glsl diff --git a/test/intrinsics/gen/exp2/dea523.wgsl.expected.hlsl b/test/builtins/gen/exp2/dea523.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/exp2/dea523.wgsl.expected.hlsl rename to test/builtins/gen/exp2/dea523.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/exp2/dea523.wgsl.expected.msl b/test/builtins/gen/exp2/dea523.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/exp2/dea523.wgsl.expected.msl rename to test/builtins/gen/exp2/dea523.wgsl.expected.msl diff --git a/test/intrinsics/gen/exp2/dea523.wgsl.expected.spvasm b/test/builtins/gen/exp2/dea523.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/exp2/dea523.wgsl.expected.spvasm rename to test/builtins/gen/exp2/dea523.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/exp2/dea523.wgsl.expected.wgsl b/test/builtins/gen/exp2/dea523.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/exp2/dea523.wgsl.expected.wgsl rename to test/builtins/gen/exp2/dea523.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/faceForward/5afbd5.wgsl b/test/builtins/gen/faceForward/5afbd5.wgsl similarity index 89% rename from test/intrinsics/gen/faceForward/5afbd5.wgsl rename to test/builtins/gen/faceForward/5afbd5.wgsl index 3e036f3908..644b9c4520 100644 --- a/test/intrinsics/gen/faceForward/5afbd5.wgsl +++ b/test/builtins/gen/faceForward/5afbd5.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/faceForward/5afbd5.wgsl.expected.glsl b/test/builtins/gen/faceForward/5afbd5.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/faceForward/5afbd5.wgsl.expected.glsl rename to test/builtins/gen/faceForward/5afbd5.wgsl.expected.glsl diff --git a/test/intrinsics/gen/faceForward/5afbd5.wgsl.expected.hlsl b/test/builtins/gen/faceForward/5afbd5.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/faceForward/5afbd5.wgsl.expected.hlsl rename to test/builtins/gen/faceForward/5afbd5.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/faceForward/5afbd5.wgsl.expected.msl b/test/builtins/gen/faceForward/5afbd5.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/faceForward/5afbd5.wgsl.expected.msl rename to test/builtins/gen/faceForward/5afbd5.wgsl.expected.msl diff --git a/test/intrinsics/gen/faceForward/5afbd5.wgsl.expected.spvasm b/test/builtins/gen/faceForward/5afbd5.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/faceForward/5afbd5.wgsl.expected.spvasm rename to test/builtins/gen/faceForward/5afbd5.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/faceForward/5afbd5.wgsl.expected.wgsl b/test/builtins/gen/faceForward/5afbd5.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/faceForward/5afbd5.wgsl.expected.wgsl rename to test/builtins/gen/faceForward/5afbd5.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/faceForward/b316e5.wgsl b/test/builtins/gen/faceForward/b316e5.wgsl similarity index 89% rename from test/intrinsics/gen/faceForward/b316e5.wgsl rename to test/builtins/gen/faceForward/b316e5.wgsl index 2e31ca60c9..a349af9279 100644 --- a/test/intrinsics/gen/faceForward/b316e5.wgsl +++ b/test/builtins/gen/faceForward/b316e5.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/faceForward/b316e5.wgsl.expected.glsl b/test/builtins/gen/faceForward/b316e5.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/faceForward/b316e5.wgsl.expected.glsl rename to test/builtins/gen/faceForward/b316e5.wgsl.expected.glsl diff --git a/test/intrinsics/gen/faceForward/b316e5.wgsl.expected.hlsl b/test/builtins/gen/faceForward/b316e5.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/faceForward/b316e5.wgsl.expected.hlsl rename to test/builtins/gen/faceForward/b316e5.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/faceForward/b316e5.wgsl.expected.msl b/test/builtins/gen/faceForward/b316e5.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/faceForward/b316e5.wgsl.expected.msl rename to test/builtins/gen/faceForward/b316e5.wgsl.expected.msl diff --git a/test/intrinsics/gen/faceForward/b316e5.wgsl.expected.spvasm b/test/builtins/gen/faceForward/b316e5.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/faceForward/b316e5.wgsl.expected.spvasm rename to test/builtins/gen/faceForward/b316e5.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/faceForward/b316e5.wgsl.expected.wgsl b/test/builtins/gen/faceForward/b316e5.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/faceForward/b316e5.wgsl.expected.wgsl rename to test/builtins/gen/faceForward/b316e5.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/faceForward/e6908b.wgsl b/test/builtins/gen/faceForward/e6908b.wgsl similarity index 89% rename from test/intrinsics/gen/faceForward/e6908b.wgsl rename to test/builtins/gen/faceForward/e6908b.wgsl index 4c9a2be79a..d7c41ed83b 100644 --- a/test/intrinsics/gen/faceForward/e6908b.wgsl +++ b/test/builtins/gen/faceForward/e6908b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/faceForward/e6908b.wgsl.expected.glsl b/test/builtins/gen/faceForward/e6908b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/faceForward/e6908b.wgsl.expected.glsl rename to test/builtins/gen/faceForward/e6908b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/faceForward/e6908b.wgsl.expected.hlsl b/test/builtins/gen/faceForward/e6908b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/faceForward/e6908b.wgsl.expected.hlsl rename to test/builtins/gen/faceForward/e6908b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/faceForward/e6908b.wgsl.expected.msl b/test/builtins/gen/faceForward/e6908b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/faceForward/e6908b.wgsl.expected.msl rename to test/builtins/gen/faceForward/e6908b.wgsl.expected.msl diff --git a/test/intrinsics/gen/faceForward/e6908b.wgsl.expected.spvasm b/test/builtins/gen/faceForward/e6908b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/faceForward/e6908b.wgsl.expected.spvasm rename to test/builtins/gen/faceForward/e6908b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/faceForward/e6908b.wgsl.expected.wgsl b/test/builtins/gen/faceForward/e6908b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/faceForward/e6908b.wgsl.expected.wgsl rename to test/builtins/gen/faceForward/e6908b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/floor/3bccc4.wgsl b/test/builtins/gen/floor/3bccc4.wgsl similarity index 89% rename from test/intrinsics/gen/floor/3bccc4.wgsl rename to test/builtins/gen/floor/3bccc4.wgsl index 3d27b575b7..1b128eafc5 100644 --- a/test/intrinsics/gen/floor/3bccc4.wgsl +++ b/test/builtins/gen/floor/3bccc4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/floor/3bccc4.wgsl.expected.glsl b/test/builtins/gen/floor/3bccc4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/floor/3bccc4.wgsl.expected.glsl rename to test/builtins/gen/floor/3bccc4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/floor/3bccc4.wgsl.expected.hlsl b/test/builtins/gen/floor/3bccc4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/floor/3bccc4.wgsl.expected.hlsl rename to test/builtins/gen/floor/3bccc4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/floor/3bccc4.wgsl.expected.msl b/test/builtins/gen/floor/3bccc4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/floor/3bccc4.wgsl.expected.msl rename to test/builtins/gen/floor/3bccc4.wgsl.expected.msl diff --git a/test/intrinsics/gen/floor/3bccc4.wgsl.expected.spvasm b/test/builtins/gen/floor/3bccc4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/floor/3bccc4.wgsl.expected.spvasm rename to test/builtins/gen/floor/3bccc4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/floor/3bccc4.wgsl.expected.wgsl b/test/builtins/gen/floor/3bccc4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/floor/3bccc4.wgsl.expected.wgsl rename to test/builtins/gen/floor/3bccc4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/floor/5fc9ac.wgsl b/test/builtins/gen/floor/5fc9ac.wgsl similarity index 89% rename from test/intrinsics/gen/floor/5fc9ac.wgsl rename to test/builtins/gen/floor/5fc9ac.wgsl index 49afc11067..4982415d32 100644 --- a/test/intrinsics/gen/floor/5fc9ac.wgsl +++ b/test/builtins/gen/floor/5fc9ac.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/floor/5fc9ac.wgsl.expected.glsl b/test/builtins/gen/floor/5fc9ac.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/floor/5fc9ac.wgsl.expected.glsl rename to test/builtins/gen/floor/5fc9ac.wgsl.expected.glsl diff --git a/test/intrinsics/gen/floor/5fc9ac.wgsl.expected.hlsl b/test/builtins/gen/floor/5fc9ac.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/floor/5fc9ac.wgsl.expected.hlsl rename to test/builtins/gen/floor/5fc9ac.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/floor/5fc9ac.wgsl.expected.msl b/test/builtins/gen/floor/5fc9ac.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/floor/5fc9ac.wgsl.expected.msl rename to test/builtins/gen/floor/5fc9ac.wgsl.expected.msl diff --git a/test/intrinsics/gen/floor/5fc9ac.wgsl.expected.spvasm b/test/builtins/gen/floor/5fc9ac.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/floor/5fc9ac.wgsl.expected.spvasm rename to test/builtins/gen/floor/5fc9ac.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/floor/5fc9ac.wgsl.expected.wgsl b/test/builtins/gen/floor/5fc9ac.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/floor/5fc9ac.wgsl.expected.wgsl rename to test/builtins/gen/floor/5fc9ac.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/floor/60d7ea.wgsl b/test/builtins/gen/floor/60d7ea.wgsl similarity index 89% rename from test/intrinsics/gen/floor/60d7ea.wgsl rename to test/builtins/gen/floor/60d7ea.wgsl index 6e4c944ecf..6a0ab7e5c5 100644 --- a/test/intrinsics/gen/floor/60d7ea.wgsl +++ b/test/builtins/gen/floor/60d7ea.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/floor/60d7ea.wgsl.expected.glsl b/test/builtins/gen/floor/60d7ea.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/floor/60d7ea.wgsl.expected.glsl rename to test/builtins/gen/floor/60d7ea.wgsl.expected.glsl diff --git a/test/intrinsics/gen/floor/60d7ea.wgsl.expected.hlsl b/test/builtins/gen/floor/60d7ea.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/floor/60d7ea.wgsl.expected.hlsl rename to test/builtins/gen/floor/60d7ea.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/floor/60d7ea.wgsl.expected.msl b/test/builtins/gen/floor/60d7ea.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/floor/60d7ea.wgsl.expected.msl rename to test/builtins/gen/floor/60d7ea.wgsl.expected.msl diff --git a/test/intrinsics/gen/floor/60d7ea.wgsl.expected.spvasm b/test/builtins/gen/floor/60d7ea.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/floor/60d7ea.wgsl.expected.spvasm rename to test/builtins/gen/floor/60d7ea.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/floor/60d7ea.wgsl.expected.wgsl b/test/builtins/gen/floor/60d7ea.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/floor/60d7ea.wgsl.expected.wgsl rename to test/builtins/gen/floor/60d7ea.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/floor/66f154.wgsl b/test/builtins/gen/floor/66f154.wgsl similarity index 88% rename from test/intrinsics/gen/floor/66f154.wgsl rename to test/builtins/gen/floor/66f154.wgsl index 8020bf652a..c3d4592a49 100644 --- a/test/intrinsics/gen/floor/66f154.wgsl +++ b/test/builtins/gen/floor/66f154.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/floor/66f154.wgsl.expected.glsl b/test/builtins/gen/floor/66f154.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/floor/66f154.wgsl.expected.glsl rename to test/builtins/gen/floor/66f154.wgsl.expected.glsl diff --git a/test/intrinsics/gen/floor/66f154.wgsl.expected.hlsl b/test/builtins/gen/floor/66f154.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/floor/66f154.wgsl.expected.hlsl rename to test/builtins/gen/floor/66f154.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/floor/66f154.wgsl.expected.msl b/test/builtins/gen/floor/66f154.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/floor/66f154.wgsl.expected.msl rename to test/builtins/gen/floor/66f154.wgsl.expected.msl diff --git a/test/intrinsics/gen/floor/66f154.wgsl.expected.spvasm b/test/builtins/gen/floor/66f154.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/floor/66f154.wgsl.expected.spvasm rename to test/builtins/gen/floor/66f154.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/floor/66f154.wgsl.expected.wgsl b/test/builtins/gen/floor/66f154.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/floor/66f154.wgsl.expected.wgsl rename to test/builtins/gen/floor/66f154.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/fma/26a7a9.wgsl b/test/builtins/gen/fma/26a7a9.wgsl similarity index 89% rename from test/intrinsics/gen/fma/26a7a9.wgsl rename to test/builtins/gen/fma/26a7a9.wgsl index bb6f1c0c3a..2bb2903341 100644 --- a/test/intrinsics/gen/fma/26a7a9.wgsl +++ b/test/builtins/gen/fma/26a7a9.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/fma/26a7a9.wgsl.expected.glsl b/test/builtins/gen/fma/26a7a9.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/fma/26a7a9.wgsl.expected.glsl rename to test/builtins/gen/fma/26a7a9.wgsl.expected.glsl diff --git a/test/intrinsics/gen/fma/26a7a9.wgsl.expected.hlsl b/test/builtins/gen/fma/26a7a9.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/fma/26a7a9.wgsl.expected.hlsl rename to test/builtins/gen/fma/26a7a9.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/fma/26a7a9.wgsl.expected.msl b/test/builtins/gen/fma/26a7a9.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/fma/26a7a9.wgsl.expected.msl rename to test/builtins/gen/fma/26a7a9.wgsl.expected.msl diff --git a/test/intrinsics/gen/fma/26a7a9.wgsl.expected.spvasm b/test/builtins/gen/fma/26a7a9.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/fma/26a7a9.wgsl.expected.spvasm rename to test/builtins/gen/fma/26a7a9.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/fma/26a7a9.wgsl.expected.wgsl b/test/builtins/gen/fma/26a7a9.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/fma/26a7a9.wgsl.expected.wgsl rename to test/builtins/gen/fma/26a7a9.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/fma/6a3283.wgsl b/test/builtins/gen/fma/6a3283.wgsl similarity index 89% rename from test/intrinsics/gen/fma/6a3283.wgsl rename to test/builtins/gen/fma/6a3283.wgsl index 2074905d01..ad45590f59 100644 --- a/test/intrinsics/gen/fma/6a3283.wgsl +++ b/test/builtins/gen/fma/6a3283.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/fma/6a3283.wgsl.expected.glsl b/test/builtins/gen/fma/6a3283.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/fma/6a3283.wgsl.expected.glsl rename to test/builtins/gen/fma/6a3283.wgsl.expected.glsl diff --git a/test/intrinsics/gen/fma/6a3283.wgsl.expected.hlsl b/test/builtins/gen/fma/6a3283.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/fma/6a3283.wgsl.expected.hlsl rename to test/builtins/gen/fma/6a3283.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/fma/6a3283.wgsl.expected.msl b/test/builtins/gen/fma/6a3283.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/fma/6a3283.wgsl.expected.msl rename to test/builtins/gen/fma/6a3283.wgsl.expected.msl diff --git a/test/intrinsics/gen/fma/6a3283.wgsl.expected.spvasm b/test/builtins/gen/fma/6a3283.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/fma/6a3283.wgsl.expected.spvasm rename to test/builtins/gen/fma/6a3283.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/fma/6a3283.wgsl.expected.wgsl b/test/builtins/gen/fma/6a3283.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/fma/6a3283.wgsl.expected.wgsl rename to test/builtins/gen/fma/6a3283.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/fma/c10ba3.wgsl b/test/builtins/gen/fma/c10ba3.wgsl similarity index 88% rename from test/intrinsics/gen/fma/c10ba3.wgsl rename to test/builtins/gen/fma/c10ba3.wgsl index 9bd4277631..1b0b4776f1 100644 --- a/test/intrinsics/gen/fma/c10ba3.wgsl +++ b/test/builtins/gen/fma/c10ba3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/fma/c10ba3.wgsl.expected.glsl b/test/builtins/gen/fma/c10ba3.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/fma/c10ba3.wgsl.expected.glsl rename to test/builtins/gen/fma/c10ba3.wgsl.expected.glsl diff --git a/test/intrinsics/gen/fma/c10ba3.wgsl.expected.hlsl b/test/builtins/gen/fma/c10ba3.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/fma/c10ba3.wgsl.expected.hlsl rename to test/builtins/gen/fma/c10ba3.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/fma/c10ba3.wgsl.expected.msl b/test/builtins/gen/fma/c10ba3.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/fma/c10ba3.wgsl.expected.msl rename to test/builtins/gen/fma/c10ba3.wgsl.expected.msl diff --git a/test/intrinsics/gen/fma/c10ba3.wgsl.expected.spvasm b/test/builtins/gen/fma/c10ba3.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/fma/c10ba3.wgsl.expected.spvasm rename to test/builtins/gen/fma/c10ba3.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/fma/c10ba3.wgsl.expected.wgsl b/test/builtins/gen/fma/c10ba3.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/fma/c10ba3.wgsl.expected.wgsl rename to test/builtins/gen/fma/c10ba3.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/fma/e17c5c.wgsl b/test/builtins/gen/fma/e17c5c.wgsl similarity index 89% rename from test/intrinsics/gen/fma/e17c5c.wgsl rename to test/builtins/gen/fma/e17c5c.wgsl index a9adbb0fb5..ca7e621f02 100644 --- a/test/intrinsics/gen/fma/e17c5c.wgsl +++ b/test/builtins/gen/fma/e17c5c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/fma/e17c5c.wgsl.expected.glsl b/test/builtins/gen/fma/e17c5c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/fma/e17c5c.wgsl.expected.glsl rename to test/builtins/gen/fma/e17c5c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/fma/e17c5c.wgsl.expected.hlsl b/test/builtins/gen/fma/e17c5c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/fma/e17c5c.wgsl.expected.hlsl rename to test/builtins/gen/fma/e17c5c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/fma/e17c5c.wgsl.expected.msl b/test/builtins/gen/fma/e17c5c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/fma/e17c5c.wgsl.expected.msl rename to test/builtins/gen/fma/e17c5c.wgsl.expected.msl diff --git a/test/intrinsics/gen/fma/e17c5c.wgsl.expected.spvasm b/test/builtins/gen/fma/e17c5c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/fma/e17c5c.wgsl.expected.spvasm rename to test/builtins/gen/fma/e17c5c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/fma/e17c5c.wgsl.expected.wgsl b/test/builtins/gen/fma/e17c5c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/fma/e17c5c.wgsl.expected.wgsl rename to test/builtins/gen/fma/e17c5c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/fract/8bc1e9.wgsl b/test/builtins/gen/fract/8bc1e9.wgsl similarity index 89% rename from test/intrinsics/gen/fract/8bc1e9.wgsl rename to test/builtins/gen/fract/8bc1e9.wgsl index d064af2427..5e0bd12e0a 100644 --- a/test/intrinsics/gen/fract/8bc1e9.wgsl +++ b/test/builtins/gen/fract/8bc1e9.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/fract/8bc1e9.wgsl.expected.glsl b/test/builtins/gen/fract/8bc1e9.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/fract/8bc1e9.wgsl.expected.glsl rename to test/builtins/gen/fract/8bc1e9.wgsl.expected.glsl diff --git a/test/intrinsics/gen/fract/8bc1e9.wgsl.expected.hlsl b/test/builtins/gen/fract/8bc1e9.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/fract/8bc1e9.wgsl.expected.hlsl rename to test/builtins/gen/fract/8bc1e9.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/fract/8bc1e9.wgsl.expected.msl b/test/builtins/gen/fract/8bc1e9.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/fract/8bc1e9.wgsl.expected.msl rename to test/builtins/gen/fract/8bc1e9.wgsl.expected.msl diff --git a/test/intrinsics/gen/fract/8bc1e9.wgsl.expected.spvasm b/test/builtins/gen/fract/8bc1e9.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/fract/8bc1e9.wgsl.expected.spvasm rename to test/builtins/gen/fract/8bc1e9.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/fract/8bc1e9.wgsl.expected.wgsl b/test/builtins/gen/fract/8bc1e9.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/fract/8bc1e9.wgsl.expected.wgsl rename to test/builtins/gen/fract/8bc1e9.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/fract/943cb1.wgsl b/test/builtins/gen/fract/943cb1.wgsl similarity index 89% rename from test/intrinsics/gen/fract/943cb1.wgsl rename to test/builtins/gen/fract/943cb1.wgsl index 50d0038dec..b269c781c2 100644 --- a/test/intrinsics/gen/fract/943cb1.wgsl +++ b/test/builtins/gen/fract/943cb1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/fract/943cb1.wgsl.expected.glsl b/test/builtins/gen/fract/943cb1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/fract/943cb1.wgsl.expected.glsl rename to test/builtins/gen/fract/943cb1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/fract/943cb1.wgsl.expected.hlsl b/test/builtins/gen/fract/943cb1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/fract/943cb1.wgsl.expected.hlsl rename to test/builtins/gen/fract/943cb1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/fract/943cb1.wgsl.expected.msl b/test/builtins/gen/fract/943cb1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/fract/943cb1.wgsl.expected.msl rename to test/builtins/gen/fract/943cb1.wgsl.expected.msl diff --git a/test/intrinsics/gen/fract/943cb1.wgsl.expected.spvasm b/test/builtins/gen/fract/943cb1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/fract/943cb1.wgsl.expected.spvasm rename to test/builtins/gen/fract/943cb1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/fract/943cb1.wgsl.expected.wgsl b/test/builtins/gen/fract/943cb1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/fract/943cb1.wgsl.expected.wgsl rename to test/builtins/gen/fract/943cb1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/fract/a49758.wgsl b/test/builtins/gen/fract/a49758.wgsl similarity index 89% rename from test/intrinsics/gen/fract/a49758.wgsl rename to test/builtins/gen/fract/a49758.wgsl index 567a336bcd..fe560aacdf 100644 --- a/test/intrinsics/gen/fract/a49758.wgsl +++ b/test/builtins/gen/fract/a49758.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/fract/a49758.wgsl.expected.glsl b/test/builtins/gen/fract/a49758.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/fract/a49758.wgsl.expected.glsl rename to test/builtins/gen/fract/a49758.wgsl.expected.glsl diff --git a/test/intrinsics/gen/fract/a49758.wgsl.expected.hlsl b/test/builtins/gen/fract/a49758.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/fract/a49758.wgsl.expected.hlsl rename to test/builtins/gen/fract/a49758.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/fract/a49758.wgsl.expected.msl b/test/builtins/gen/fract/a49758.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/fract/a49758.wgsl.expected.msl rename to test/builtins/gen/fract/a49758.wgsl.expected.msl diff --git a/test/intrinsics/gen/fract/a49758.wgsl.expected.spvasm b/test/builtins/gen/fract/a49758.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/fract/a49758.wgsl.expected.spvasm rename to test/builtins/gen/fract/a49758.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/fract/a49758.wgsl.expected.wgsl b/test/builtins/gen/fract/a49758.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/fract/a49758.wgsl.expected.wgsl rename to test/builtins/gen/fract/a49758.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/fract/fa5c71.wgsl b/test/builtins/gen/fract/fa5c71.wgsl similarity index 88% rename from test/intrinsics/gen/fract/fa5c71.wgsl rename to test/builtins/gen/fract/fa5c71.wgsl index 35a24e1f2d..bd33eec234 100644 --- a/test/intrinsics/gen/fract/fa5c71.wgsl +++ b/test/builtins/gen/fract/fa5c71.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/fract/fa5c71.wgsl.expected.glsl b/test/builtins/gen/fract/fa5c71.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/fract/fa5c71.wgsl.expected.glsl rename to test/builtins/gen/fract/fa5c71.wgsl.expected.glsl diff --git a/test/intrinsics/gen/fract/fa5c71.wgsl.expected.hlsl b/test/builtins/gen/fract/fa5c71.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/fract/fa5c71.wgsl.expected.hlsl rename to test/builtins/gen/fract/fa5c71.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/fract/fa5c71.wgsl.expected.msl b/test/builtins/gen/fract/fa5c71.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/fract/fa5c71.wgsl.expected.msl rename to test/builtins/gen/fract/fa5c71.wgsl.expected.msl diff --git a/test/intrinsics/gen/fract/fa5c71.wgsl.expected.spvasm b/test/builtins/gen/fract/fa5c71.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/fract/fa5c71.wgsl.expected.spvasm rename to test/builtins/gen/fract/fa5c71.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/fract/fa5c71.wgsl.expected.wgsl b/test/builtins/gen/fract/fa5c71.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/fract/fa5c71.wgsl.expected.wgsl rename to test/builtins/gen/fract/fa5c71.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/frexp/368997.wgsl b/test/builtins/gen/frexp/368997.wgsl similarity index 89% rename from test/intrinsics/gen/frexp/368997.wgsl rename to test/builtins/gen/frexp/368997.wgsl index f7d9a71371..231ffdc3aa 100644 --- a/test/intrinsics/gen/frexp/368997.wgsl +++ b/test/builtins/gen/frexp/368997.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/frexp/368997.wgsl.expected.glsl b/test/builtins/gen/frexp/368997.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/frexp/368997.wgsl.expected.glsl rename to test/builtins/gen/frexp/368997.wgsl.expected.glsl diff --git a/test/intrinsics/gen/frexp/368997.wgsl.expected.hlsl b/test/builtins/gen/frexp/368997.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/frexp/368997.wgsl.expected.hlsl rename to test/builtins/gen/frexp/368997.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/frexp/368997.wgsl.expected.msl b/test/builtins/gen/frexp/368997.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/frexp/368997.wgsl.expected.msl rename to test/builtins/gen/frexp/368997.wgsl.expected.msl diff --git a/test/intrinsics/gen/frexp/368997.wgsl.expected.spvasm b/test/builtins/gen/frexp/368997.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/frexp/368997.wgsl.expected.spvasm rename to test/builtins/gen/frexp/368997.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/frexp/368997.wgsl.expected.wgsl b/test/builtins/gen/frexp/368997.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/frexp/368997.wgsl.expected.wgsl rename to test/builtins/gen/frexp/368997.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/frexp/3c4f48.wgsl b/test/builtins/gen/frexp/3c4f48.wgsl similarity index 89% rename from test/intrinsics/gen/frexp/3c4f48.wgsl rename to test/builtins/gen/frexp/3c4f48.wgsl index 2dd08497c6..cafc0f71b4 100644 --- a/test/intrinsics/gen/frexp/3c4f48.wgsl +++ b/test/builtins/gen/frexp/3c4f48.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/frexp/3c4f48.wgsl.expected.glsl b/test/builtins/gen/frexp/3c4f48.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/frexp/3c4f48.wgsl.expected.glsl rename to test/builtins/gen/frexp/3c4f48.wgsl.expected.glsl diff --git a/test/intrinsics/gen/frexp/3c4f48.wgsl.expected.hlsl b/test/builtins/gen/frexp/3c4f48.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/frexp/3c4f48.wgsl.expected.hlsl rename to test/builtins/gen/frexp/3c4f48.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/frexp/3c4f48.wgsl.expected.msl b/test/builtins/gen/frexp/3c4f48.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/frexp/3c4f48.wgsl.expected.msl rename to test/builtins/gen/frexp/3c4f48.wgsl.expected.msl diff --git a/test/intrinsics/gen/frexp/3c4f48.wgsl.expected.spvasm b/test/builtins/gen/frexp/3c4f48.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/frexp/3c4f48.wgsl.expected.spvasm rename to test/builtins/gen/frexp/3c4f48.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/frexp/3c4f48.wgsl.expected.wgsl b/test/builtins/gen/frexp/3c4f48.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/frexp/3c4f48.wgsl.expected.wgsl rename to test/builtins/gen/frexp/3c4f48.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/frexp/4bdfc7.wgsl b/test/builtins/gen/frexp/4bdfc7.wgsl similarity index 89% rename from test/intrinsics/gen/frexp/4bdfc7.wgsl rename to test/builtins/gen/frexp/4bdfc7.wgsl index eff45189c5..81504c3407 100644 --- a/test/intrinsics/gen/frexp/4bdfc7.wgsl +++ b/test/builtins/gen/frexp/4bdfc7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/frexp/4bdfc7.wgsl.expected.glsl b/test/builtins/gen/frexp/4bdfc7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/frexp/4bdfc7.wgsl.expected.glsl rename to test/builtins/gen/frexp/4bdfc7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/frexp/4bdfc7.wgsl.expected.hlsl b/test/builtins/gen/frexp/4bdfc7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/frexp/4bdfc7.wgsl.expected.hlsl rename to test/builtins/gen/frexp/4bdfc7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/frexp/4bdfc7.wgsl.expected.msl b/test/builtins/gen/frexp/4bdfc7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/frexp/4bdfc7.wgsl.expected.msl rename to test/builtins/gen/frexp/4bdfc7.wgsl.expected.msl diff --git a/test/intrinsics/gen/frexp/4bdfc7.wgsl.expected.spvasm b/test/builtins/gen/frexp/4bdfc7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/frexp/4bdfc7.wgsl.expected.spvasm rename to test/builtins/gen/frexp/4bdfc7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/frexp/4bdfc7.wgsl.expected.wgsl b/test/builtins/gen/frexp/4bdfc7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/frexp/4bdfc7.wgsl.expected.wgsl rename to test/builtins/gen/frexp/4bdfc7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/frexp/eabd40.wgsl b/test/builtins/gen/frexp/eabd40.wgsl similarity index 88% rename from test/intrinsics/gen/frexp/eabd40.wgsl rename to test/builtins/gen/frexp/eabd40.wgsl index 3f2f00d3ba..3451539e29 100644 --- a/test/intrinsics/gen/frexp/eabd40.wgsl +++ b/test/builtins/gen/frexp/eabd40.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/frexp/eabd40.wgsl.expected.glsl b/test/builtins/gen/frexp/eabd40.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/frexp/eabd40.wgsl.expected.glsl rename to test/builtins/gen/frexp/eabd40.wgsl.expected.glsl diff --git a/test/intrinsics/gen/frexp/eabd40.wgsl.expected.hlsl b/test/builtins/gen/frexp/eabd40.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/frexp/eabd40.wgsl.expected.hlsl rename to test/builtins/gen/frexp/eabd40.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/frexp/eabd40.wgsl.expected.msl b/test/builtins/gen/frexp/eabd40.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/frexp/eabd40.wgsl.expected.msl rename to test/builtins/gen/frexp/eabd40.wgsl.expected.msl diff --git a/test/intrinsics/gen/frexp/eabd40.wgsl.expected.spvasm b/test/builtins/gen/frexp/eabd40.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/frexp/eabd40.wgsl.expected.spvasm rename to test/builtins/gen/frexp/eabd40.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/frexp/eabd40.wgsl.expected.wgsl b/test/builtins/gen/frexp/eabd40.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/frexp/eabd40.wgsl.expected.wgsl rename to test/builtins/gen/frexp/eabd40.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/fwidth/5d1b39.wgsl b/test/builtins/gen/fwidth/5d1b39.wgsl similarity index 87% rename from test/intrinsics/gen/fwidth/5d1b39.wgsl rename to test/builtins/gen/fwidth/5d1b39.wgsl index 8400934257..991a417133 100644 --- a/test/intrinsics/gen/fwidth/5d1b39.wgsl +++ b/test/builtins/gen/fwidth/5d1b39.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/fwidth/5d1b39.wgsl.expected.glsl b/test/builtins/gen/fwidth/5d1b39.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/fwidth/5d1b39.wgsl.expected.glsl rename to test/builtins/gen/fwidth/5d1b39.wgsl.expected.glsl diff --git a/test/intrinsics/gen/fwidth/5d1b39.wgsl.expected.hlsl b/test/builtins/gen/fwidth/5d1b39.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/fwidth/5d1b39.wgsl.expected.hlsl rename to test/builtins/gen/fwidth/5d1b39.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/fwidth/5d1b39.wgsl.expected.msl b/test/builtins/gen/fwidth/5d1b39.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/fwidth/5d1b39.wgsl.expected.msl rename to test/builtins/gen/fwidth/5d1b39.wgsl.expected.msl diff --git a/test/intrinsics/gen/fwidth/5d1b39.wgsl.expected.spvasm b/test/builtins/gen/fwidth/5d1b39.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/fwidth/5d1b39.wgsl.expected.spvasm rename to test/builtins/gen/fwidth/5d1b39.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/fwidth/5d1b39.wgsl.expected.wgsl b/test/builtins/gen/fwidth/5d1b39.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/fwidth/5d1b39.wgsl.expected.wgsl rename to test/builtins/gen/fwidth/5d1b39.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/fwidth/b83ebb.wgsl b/test/builtins/gen/fwidth/b83ebb.wgsl similarity index 87% rename from test/intrinsics/gen/fwidth/b83ebb.wgsl rename to test/builtins/gen/fwidth/b83ebb.wgsl index 36592fd407..f616e2bb21 100644 --- a/test/intrinsics/gen/fwidth/b83ebb.wgsl +++ b/test/builtins/gen/fwidth/b83ebb.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/fwidth/b83ebb.wgsl.expected.glsl b/test/builtins/gen/fwidth/b83ebb.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/fwidth/b83ebb.wgsl.expected.glsl rename to test/builtins/gen/fwidth/b83ebb.wgsl.expected.glsl diff --git a/test/intrinsics/gen/fwidth/b83ebb.wgsl.expected.hlsl b/test/builtins/gen/fwidth/b83ebb.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/fwidth/b83ebb.wgsl.expected.hlsl rename to test/builtins/gen/fwidth/b83ebb.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/fwidth/b83ebb.wgsl.expected.msl b/test/builtins/gen/fwidth/b83ebb.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/fwidth/b83ebb.wgsl.expected.msl rename to test/builtins/gen/fwidth/b83ebb.wgsl.expected.msl diff --git a/test/intrinsics/gen/fwidth/b83ebb.wgsl.expected.spvasm b/test/builtins/gen/fwidth/b83ebb.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/fwidth/b83ebb.wgsl.expected.spvasm rename to test/builtins/gen/fwidth/b83ebb.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/fwidth/b83ebb.wgsl.expected.wgsl b/test/builtins/gen/fwidth/b83ebb.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/fwidth/b83ebb.wgsl.expected.wgsl rename to test/builtins/gen/fwidth/b83ebb.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/fwidth/d2ab9a.wgsl b/test/builtins/gen/fwidth/d2ab9a.wgsl similarity index 87% rename from test/intrinsics/gen/fwidth/d2ab9a.wgsl rename to test/builtins/gen/fwidth/d2ab9a.wgsl index 49c41ea61d..4e3e059b8b 100644 --- a/test/intrinsics/gen/fwidth/d2ab9a.wgsl +++ b/test/builtins/gen/fwidth/d2ab9a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/fwidth/d2ab9a.wgsl.expected.glsl b/test/builtins/gen/fwidth/d2ab9a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/fwidth/d2ab9a.wgsl.expected.glsl rename to test/builtins/gen/fwidth/d2ab9a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/fwidth/d2ab9a.wgsl.expected.hlsl b/test/builtins/gen/fwidth/d2ab9a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/fwidth/d2ab9a.wgsl.expected.hlsl rename to test/builtins/gen/fwidth/d2ab9a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/fwidth/d2ab9a.wgsl.expected.msl b/test/builtins/gen/fwidth/d2ab9a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/fwidth/d2ab9a.wgsl.expected.msl rename to test/builtins/gen/fwidth/d2ab9a.wgsl.expected.msl diff --git a/test/intrinsics/gen/fwidth/d2ab9a.wgsl.expected.spvasm b/test/builtins/gen/fwidth/d2ab9a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/fwidth/d2ab9a.wgsl.expected.spvasm rename to test/builtins/gen/fwidth/d2ab9a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/fwidth/d2ab9a.wgsl.expected.wgsl b/test/builtins/gen/fwidth/d2ab9a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/fwidth/d2ab9a.wgsl.expected.wgsl rename to test/builtins/gen/fwidth/d2ab9a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/fwidth/df38ef.wgsl b/test/builtins/gen/fwidth/df38ef.wgsl similarity index 86% rename from test/intrinsics/gen/fwidth/df38ef.wgsl rename to test/builtins/gen/fwidth/df38ef.wgsl index 9388812748..c38975dd9d 100644 --- a/test/intrinsics/gen/fwidth/df38ef.wgsl +++ b/test/builtins/gen/fwidth/df38ef.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/fwidth/df38ef.wgsl.expected.glsl b/test/builtins/gen/fwidth/df38ef.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/fwidth/df38ef.wgsl.expected.glsl rename to test/builtins/gen/fwidth/df38ef.wgsl.expected.glsl diff --git a/test/intrinsics/gen/fwidth/df38ef.wgsl.expected.hlsl b/test/builtins/gen/fwidth/df38ef.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/fwidth/df38ef.wgsl.expected.hlsl rename to test/builtins/gen/fwidth/df38ef.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/fwidth/df38ef.wgsl.expected.msl b/test/builtins/gen/fwidth/df38ef.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/fwidth/df38ef.wgsl.expected.msl rename to test/builtins/gen/fwidth/df38ef.wgsl.expected.msl diff --git a/test/intrinsics/gen/fwidth/df38ef.wgsl.expected.spvasm b/test/builtins/gen/fwidth/df38ef.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/fwidth/df38ef.wgsl.expected.spvasm rename to test/builtins/gen/fwidth/df38ef.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/fwidth/df38ef.wgsl.expected.wgsl b/test/builtins/gen/fwidth/df38ef.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/fwidth/df38ef.wgsl.expected.wgsl rename to test/builtins/gen/fwidth/df38ef.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/fwidthCoarse/159c8a.wgsl b/test/builtins/gen/fwidthCoarse/159c8a.wgsl similarity index 87% rename from test/intrinsics/gen/fwidthCoarse/159c8a.wgsl rename to test/builtins/gen/fwidthCoarse/159c8a.wgsl index a7c4cd361a..eebdef6740 100644 --- a/test/intrinsics/gen/fwidthCoarse/159c8a.wgsl +++ b/test/builtins/gen/fwidthCoarse/159c8a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/fwidthCoarse/159c8a.wgsl.expected.glsl b/test/builtins/gen/fwidthCoarse/159c8a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/fwidthCoarse/159c8a.wgsl.expected.glsl rename to test/builtins/gen/fwidthCoarse/159c8a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/fwidthCoarse/159c8a.wgsl.expected.hlsl b/test/builtins/gen/fwidthCoarse/159c8a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/fwidthCoarse/159c8a.wgsl.expected.hlsl rename to test/builtins/gen/fwidthCoarse/159c8a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/fwidthCoarse/159c8a.wgsl.expected.msl b/test/builtins/gen/fwidthCoarse/159c8a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/fwidthCoarse/159c8a.wgsl.expected.msl rename to test/builtins/gen/fwidthCoarse/159c8a.wgsl.expected.msl diff --git a/test/intrinsics/gen/fwidthCoarse/159c8a.wgsl.expected.spvasm b/test/builtins/gen/fwidthCoarse/159c8a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/fwidthCoarse/159c8a.wgsl.expected.spvasm rename to test/builtins/gen/fwidthCoarse/159c8a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/fwidthCoarse/159c8a.wgsl.expected.wgsl b/test/builtins/gen/fwidthCoarse/159c8a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/fwidthCoarse/159c8a.wgsl.expected.wgsl rename to test/builtins/gen/fwidthCoarse/159c8a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/fwidthCoarse/1e59d9.wgsl b/test/builtins/gen/fwidthCoarse/1e59d9.wgsl similarity index 87% rename from test/intrinsics/gen/fwidthCoarse/1e59d9.wgsl rename to test/builtins/gen/fwidthCoarse/1e59d9.wgsl index 044c58294c..7416c8ba46 100644 --- a/test/intrinsics/gen/fwidthCoarse/1e59d9.wgsl +++ b/test/builtins/gen/fwidthCoarse/1e59d9.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/fwidthCoarse/1e59d9.wgsl.expected.glsl b/test/builtins/gen/fwidthCoarse/1e59d9.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/fwidthCoarse/1e59d9.wgsl.expected.glsl rename to test/builtins/gen/fwidthCoarse/1e59d9.wgsl.expected.glsl diff --git a/test/intrinsics/gen/fwidthCoarse/1e59d9.wgsl.expected.hlsl b/test/builtins/gen/fwidthCoarse/1e59d9.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/fwidthCoarse/1e59d9.wgsl.expected.hlsl rename to test/builtins/gen/fwidthCoarse/1e59d9.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/fwidthCoarse/1e59d9.wgsl.expected.msl b/test/builtins/gen/fwidthCoarse/1e59d9.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/fwidthCoarse/1e59d9.wgsl.expected.msl rename to test/builtins/gen/fwidthCoarse/1e59d9.wgsl.expected.msl diff --git a/test/intrinsics/gen/fwidthCoarse/1e59d9.wgsl.expected.spvasm b/test/builtins/gen/fwidthCoarse/1e59d9.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/fwidthCoarse/1e59d9.wgsl.expected.spvasm rename to test/builtins/gen/fwidthCoarse/1e59d9.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/fwidthCoarse/1e59d9.wgsl.expected.wgsl b/test/builtins/gen/fwidthCoarse/1e59d9.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/fwidthCoarse/1e59d9.wgsl.expected.wgsl rename to test/builtins/gen/fwidthCoarse/1e59d9.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/fwidthCoarse/4e4fc4.wgsl b/test/builtins/gen/fwidthCoarse/4e4fc4.wgsl similarity index 87% rename from test/intrinsics/gen/fwidthCoarse/4e4fc4.wgsl rename to test/builtins/gen/fwidthCoarse/4e4fc4.wgsl index da66152061..d1cbee8d17 100644 --- a/test/intrinsics/gen/fwidthCoarse/4e4fc4.wgsl +++ b/test/builtins/gen/fwidthCoarse/4e4fc4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/fwidthCoarse/4e4fc4.wgsl.expected.glsl b/test/builtins/gen/fwidthCoarse/4e4fc4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/fwidthCoarse/4e4fc4.wgsl.expected.glsl rename to test/builtins/gen/fwidthCoarse/4e4fc4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/fwidthCoarse/4e4fc4.wgsl.expected.hlsl b/test/builtins/gen/fwidthCoarse/4e4fc4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/fwidthCoarse/4e4fc4.wgsl.expected.hlsl rename to test/builtins/gen/fwidthCoarse/4e4fc4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/fwidthCoarse/4e4fc4.wgsl.expected.msl b/test/builtins/gen/fwidthCoarse/4e4fc4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/fwidthCoarse/4e4fc4.wgsl.expected.msl rename to test/builtins/gen/fwidthCoarse/4e4fc4.wgsl.expected.msl diff --git a/test/intrinsics/gen/fwidthCoarse/4e4fc4.wgsl.expected.spvasm b/test/builtins/gen/fwidthCoarse/4e4fc4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/fwidthCoarse/4e4fc4.wgsl.expected.spvasm rename to test/builtins/gen/fwidthCoarse/4e4fc4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/fwidthCoarse/4e4fc4.wgsl.expected.wgsl b/test/builtins/gen/fwidthCoarse/4e4fc4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/fwidthCoarse/4e4fc4.wgsl.expected.wgsl rename to test/builtins/gen/fwidthCoarse/4e4fc4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/fwidthCoarse/e653f7.wgsl b/test/builtins/gen/fwidthCoarse/e653f7.wgsl similarity index 87% rename from test/intrinsics/gen/fwidthCoarse/e653f7.wgsl rename to test/builtins/gen/fwidthCoarse/e653f7.wgsl index bfd46bb2ba..573618599f 100644 --- a/test/intrinsics/gen/fwidthCoarse/e653f7.wgsl +++ b/test/builtins/gen/fwidthCoarse/e653f7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/fwidthCoarse/e653f7.wgsl.expected.glsl b/test/builtins/gen/fwidthCoarse/e653f7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/fwidthCoarse/e653f7.wgsl.expected.glsl rename to test/builtins/gen/fwidthCoarse/e653f7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/fwidthCoarse/e653f7.wgsl.expected.hlsl b/test/builtins/gen/fwidthCoarse/e653f7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/fwidthCoarse/e653f7.wgsl.expected.hlsl rename to test/builtins/gen/fwidthCoarse/e653f7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/fwidthCoarse/e653f7.wgsl.expected.msl b/test/builtins/gen/fwidthCoarse/e653f7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/fwidthCoarse/e653f7.wgsl.expected.msl rename to test/builtins/gen/fwidthCoarse/e653f7.wgsl.expected.msl diff --git a/test/intrinsics/gen/fwidthCoarse/e653f7.wgsl.expected.spvasm b/test/builtins/gen/fwidthCoarse/e653f7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/fwidthCoarse/e653f7.wgsl.expected.spvasm rename to test/builtins/gen/fwidthCoarse/e653f7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/fwidthCoarse/e653f7.wgsl.expected.wgsl b/test/builtins/gen/fwidthCoarse/e653f7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/fwidthCoarse/e653f7.wgsl.expected.wgsl rename to test/builtins/gen/fwidthCoarse/e653f7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/fwidthFine/523fdc.wgsl b/test/builtins/gen/fwidthFine/523fdc.wgsl similarity index 87% rename from test/intrinsics/gen/fwidthFine/523fdc.wgsl rename to test/builtins/gen/fwidthFine/523fdc.wgsl index d02b674609..fe89ae77fc 100644 --- a/test/intrinsics/gen/fwidthFine/523fdc.wgsl +++ b/test/builtins/gen/fwidthFine/523fdc.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/fwidthFine/523fdc.wgsl.expected.glsl b/test/builtins/gen/fwidthFine/523fdc.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/fwidthFine/523fdc.wgsl.expected.glsl rename to test/builtins/gen/fwidthFine/523fdc.wgsl.expected.glsl diff --git a/test/intrinsics/gen/fwidthFine/523fdc.wgsl.expected.hlsl b/test/builtins/gen/fwidthFine/523fdc.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/fwidthFine/523fdc.wgsl.expected.hlsl rename to test/builtins/gen/fwidthFine/523fdc.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/fwidthFine/523fdc.wgsl.expected.msl b/test/builtins/gen/fwidthFine/523fdc.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/fwidthFine/523fdc.wgsl.expected.msl rename to test/builtins/gen/fwidthFine/523fdc.wgsl.expected.msl diff --git a/test/intrinsics/gen/fwidthFine/523fdc.wgsl.expected.spvasm b/test/builtins/gen/fwidthFine/523fdc.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/fwidthFine/523fdc.wgsl.expected.spvasm rename to test/builtins/gen/fwidthFine/523fdc.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/fwidthFine/523fdc.wgsl.expected.wgsl b/test/builtins/gen/fwidthFine/523fdc.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/fwidthFine/523fdc.wgsl.expected.wgsl rename to test/builtins/gen/fwidthFine/523fdc.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/fwidthFine/68f4ef.wgsl b/test/builtins/gen/fwidthFine/68f4ef.wgsl similarity index 87% rename from test/intrinsics/gen/fwidthFine/68f4ef.wgsl rename to test/builtins/gen/fwidthFine/68f4ef.wgsl index cd641a0278..f53e145b08 100644 --- a/test/intrinsics/gen/fwidthFine/68f4ef.wgsl +++ b/test/builtins/gen/fwidthFine/68f4ef.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/fwidthFine/68f4ef.wgsl.expected.glsl b/test/builtins/gen/fwidthFine/68f4ef.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/fwidthFine/68f4ef.wgsl.expected.glsl rename to test/builtins/gen/fwidthFine/68f4ef.wgsl.expected.glsl diff --git a/test/intrinsics/gen/fwidthFine/68f4ef.wgsl.expected.hlsl b/test/builtins/gen/fwidthFine/68f4ef.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/fwidthFine/68f4ef.wgsl.expected.hlsl rename to test/builtins/gen/fwidthFine/68f4ef.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/fwidthFine/68f4ef.wgsl.expected.msl b/test/builtins/gen/fwidthFine/68f4ef.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/fwidthFine/68f4ef.wgsl.expected.msl rename to test/builtins/gen/fwidthFine/68f4ef.wgsl.expected.msl diff --git a/test/intrinsics/gen/fwidthFine/68f4ef.wgsl.expected.spvasm b/test/builtins/gen/fwidthFine/68f4ef.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/fwidthFine/68f4ef.wgsl.expected.spvasm rename to test/builtins/gen/fwidthFine/68f4ef.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/fwidthFine/68f4ef.wgsl.expected.wgsl b/test/builtins/gen/fwidthFine/68f4ef.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/fwidthFine/68f4ef.wgsl.expected.wgsl rename to test/builtins/gen/fwidthFine/68f4ef.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/fwidthFine/f1742d.wgsl b/test/builtins/gen/fwidthFine/f1742d.wgsl similarity index 87% rename from test/intrinsics/gen/fwidthFine/f1742d.wgsl rename to test/builtins/gen/fwidthFine/f1742d.wgsl index c78f9b0588..51c2e44970 100644 --- a/test/intrinsics/gen/fwidthFine/f1742d.wgsl +++ b/test/builtins/gen/fwidthFine/f1742d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/fwidthFine/f1742d.wgsl.expected.glsl b/test/builtins/gen/fwidthFine/f1742d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/fwidthFine/f1742d.wgsl.expected.glsl rename to test/builtins/gen/fwidthFine/f1742d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/fwidthFine/f1742d.wgsl.expected.hlsl b/test/builtins/gen/fwidthFine/f1742d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/fwidthFine/f1742d.wgsl.expected.hlsl rename to test/builtins/gen/fwidthFine/f1742d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/fwidthFine/f1742d.wgsl.expected.msl b/test/builtins/gen/fwidthFine/f1742d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/fwidthFine/f1742d.wgsl.expected.msl rename to test/builtins/gen/fwidthFine/f1742d.wgsl.expected.msl diff --git a/test/intrinsics/gen/fwidthFine/f1742d.wgsl.expected.spvasm b/test/builtins/gen/fwidthFine/f1742d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/fwidthFine/f1742d.wgsl.expected.spvasm rename to test/builtins/gen/fwidthFine/f1742d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/fwidthFine/f1742d.wgsl.expected.wgsl b/test/builtins/gen/fwidthFine/f1742d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/fwidthFine/f1742d.wgsl.expected.wgsl rename to test/builtins/gen/fwidthFine/f1742d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/fwidthFine/ff6aa0.wgsl b/test/builtins/gen/fwidthFine/ff6aa0.wgsl similarity index 87% rename from test/intrinsics/gen/fwidthFine/ff6aa0.wgsl rename to test/builtins/gen/fwidthFine/ff6aa0.wgsl index 4176ec26fa..c30a97a40c 100644 --- a/test/intrinsics/gen/fwidthFine/ff6aa0.wgsl +++ b/test/builtins/gen/fwidthFine/ff6aa0.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/fwidthFine/ff6aa0.wgsl.expected.glsl b/test/builtins/gen/fwidthFine/ff6aa0.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/fwidthFine/ff6aa0.wgsl.expected.glsl rename to test/builtins/gen/fwidthFine/ff6aa0.wgsl.expected.glsl diff --git a/test/intrinsics/gen/fwidthFine/ff6aa0.wgsl.expected.hlsl b/test/builtins/gen/fwidthFine/ff6aa0.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/fwidthFine/ff6aa0.wgsl.expected.hlsl rename to test/builtins/gen/fwidthFine/ff6aa0.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/fwidthFine/ff6aa0.wgsl.expected.msl b/test/builtins/gen/fwidthFine/ff6aa0.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/fwidthFine/ff6aa0.wgsl.expected.msl rename to test/builtins/gen/fwidthFine/ff6aa0.wgsl.expected.msl diff --git a/test/intrinsics/gen/fwidthFine/ff6aa0.wgsl.expected.spvasm b/test/builtins/gen/fwidthFine/ff6aa0.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/fwidthFine/ff6aa0.wgsl.expected.spvasm rename to test/builtins/gen/fwidthFine/ff6aa0.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/fwidthFine/ff6aa0.wgsl.expected.wgsl b/test/builtins/gen/fwidthFine/ff6aa0.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/fwidthFine/ff6aa0.wgsl.expected.wgsl rename to test/builtins/gen/fwidthFine/ff6aa0.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/inverseSqrt/84407e.wgsl b/test/builtins/gen/inverseSqrt/84407e.wgsl similarity index 89% rename from test/intrinsics/gen/inverseSqrt/84407e.wgsl rename to test/builtins/gen/inverseSqrt/84407e.wgsl index f6160f1b66..d46dfea178 100644 --- a/test/intrinsics/gen/inverseSqrt/84407e.wgsl +++ b/test/builtins/gen/inverseSqrt/84407e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/inverseSqrt/84407e.wgsl.expected.glsl b/test/builtins/gen/inverseSqrt/84407e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/inverseSqrt/84407e.wgsl.expected.glsl rename to test/builtins/gen/inverseSqrt/84407e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/inverseSqrt/84407e.wgsl.expected.hlsl b/test/builtins/gen/inverseSqrt/84407e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/inverseSqrt/84407e.wgsl.expected.hlsl rename to test/builtins/gen/inverseSqrt/84407e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/inverseSqrt/84407e.wgsl.expected.msl b/test/builtins/gen/inverseSqrt/84407e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/inverseSqrt/84407e.wgsl.expected.msl rename to test/builtins/gen/inverseSqrt/84407e.wgsl.expected.msl diff --git a/test/intrinsics/gen/inverseSqrt/84407e.wgsl.expected.spvasm b/test/builtins/gen/inverseSqrt/84407e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/inverseSqrt/84407e.wgsl.expected.spvasm rename to test/builtins/gen/inverseSqrt/84407e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/inverseSqrt/84407e.wgsl.expected.wgsl b/test/builtins/gen/inverseSqrt/84407e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/inverseSqrt/84407e.wgsl.expected.wgsl rename to test/builtins/gen/inverseSqrt/84407e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/inverseSqrt/8f2bd2.wgsl b/test/builtins/gen/inverseSqrt/8f2bd2.wgsl similarity index 89% rename from test/intrinsics/gen/inverseSqrt/8f2bd2.wgsl rename to test/builtins/gen/inverseSqrt/8f2bd2.wgsl index e94567ef4b..3cd7ac9fdd 100644 --- a/test/intrinsics/gen/inverseSqrt/8f2bd2.wgsl +++ b/test/builtins/gen/inverseSqrt/8f2bd2.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/inverseSqrt/8f2bd2.wgsl.expected.glsl b/test/builtins/gen/inverseSqrt/8f2bd2.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/inverseSqrt/8f2bd2.wgsl.expected.glsl rename to test/builtins/gen/inverseSqrt/8f2bd2.wgsl.expected.glsl diff --git a/test/intrinsics/gen/inverseSqrt/8f2bd2.wgsl.expected.hlsl b/test/builtins/gen/inverseSqrt/8f2bd2.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/inverseSqrt/8f2bd2.wgsl.expected.hlsl rename to test/builtins/gen/inverseSqrt/8f2bd2.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/inverseSqrt/8f2bd2.wgsl.expected.msl b/test/builtins/gen/inverseSqrt/8f2bd2.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/inverseSqrt/8f2bd2.wgsl.expected.msl rename to test/builtins/gen/inverseSqrt/8f2bd2.wgsl.expected.msl diff --git a/test/intrinsics/gen/inverseSqrt/8f2bd2.wgsl.expected.spvasm b/test/builtins/gen/inverseSqrt/8f2bd2.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/inverseSqrt/8f2bd2.wgsl.expected.spvasm rename to test/builtins/gen/inverseSqrt/8f2bd2.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/inverseSqrt/8f2bd2.wgsl.expected.wgsl b/test/builtins/gen/inverseSqrt/8f2bd2.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/inverseSqrt/8f2bd2.wgsl.expected.wgsl rename to test/builtins/gen/inverseSqrt/8f2bd2.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/inverseSqrt/b197b1.wgsl b/test/builtins/gen/inverseSqrt/b197b1.wgsl similarity index 89% rename from test/intrinsics/gen/inverseSqrt/b197b1.wgsl rename to test/builtins/gen/inverseSqrt/b197b1.wgsl index c189515017..a0615207e4 100644 --- a/test/intrinsics/gen/inverseSqrt/b197b1.wgsl +++ b/test/builtins/gen/inverseSqrt/b197b1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/inverseSqrt/b197b1.wgsl.expected.glsl b/test/builtins/gen/inverseSqrt/b197b1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/inverseSqrt/b197b1.wgsl.expected.glsl rename to test/builtins/gen/inverseSqrt/b197b1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/inverseSqrt/b197b1.wgsl.expected.hlsl b/test/builtins/gen/inverseSqrt/b197b1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/inverseSqrt/b197b1.wgsl.expected.hlsl rename to test/builtins/gen/inverseSqrt/b197b1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/inverseSqrt/b197b1.wgsl.expected.msl b/test/builtins/gen/inverseSqrt/b197b1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/inverseSqrt/b197b1.wgsl.expected.msl rename to test/builtins/gen/inverseSqrt/b197b1.wgsl.expected.msl diff --git a/test/intrinsics/gen/inverseSqrt/b197b1.wgsl.expected.spvasm b/test/builtins/gen/inverseSqrt/b197b1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/inverseSqrt/b197b1.wgsl.expected.spvasm rename to test/builtins/gen/inverseSqrt/b197b1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/inverseSqrt/b197b1.wgsl.expected.wgsl b/test/builtins/gen/inverseSqrt/b197b1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/inverseSqrt/b197b1.wgsl.expected.wgsl rename to test/builtins/gen/inverseSqrt/b197b1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/inverseSqrt/c22347.wgsl b/test/builtins/gen/inverseSqrt/c22347.wgsl similarity index 89% rename from test/intrinsics/gen/inverseSqrt/c22347.wgsl rename to test/builtins/gen/inverseSqrt/c22347.wgsl index 20e13f29f4..7a9d3685fd 100644 --- a/test/intrinsics/gen/inverseSqrt/c22347.wgsl +++ b/test/builtins/gen/inverseSqrt/c22347.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/inverseSqrt/c22347.wgsl.expected.glsl b/test/builtins/gen/inverseSqrt/c22347.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/inverseSqrt/c22347.wgsl.expected.glsl rename to test/builtins/gen/inverseSqrt/c22347.wgsl.expected.glsl diff --git a/test/intrinsics/gen/inverseSqrt/c22347.wgsl.expected.hlsl b/test/builtins/gen/inverseSqrt/c22347.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/inverseSqrt/c22347.wgsl.expected.hlsl rename to test/builtins/gen/inverseSqrt/c22347.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/inverseSqrt/c22347.wgsl.expected.msl b/test/builtins/gen/inverseSqrt/c22347.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/inverseSqrt/c22347.wgsl.expected.msl rename to test/builtins/gen/inverseSqrt/c22347.wgsl.expected.msl diff --git a/test/intrinsics/gen/inverseSqrt/c22347.wgsl.expected.spvasm b/test/builtins/gen/inverseSqrt/c22347.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/inverseSqrt/c22347.wgsl.expected.spvasm rename to test/builtins/gen/inverseSqrt/c22347.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/inverseSqrt/c22347.wgsl.expected.wgsl b/test/builtins/gen/inverseSqrt/c22347.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/inverseSqrt/c22347.wgsl.expected.wgsl rename to test/builtins/gen/inverseSqrt/c22347.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/isFinite/34d32b.wgsl b/test/builtins/gen/isFinite/34d32b.wgsl similarity index 89% rename from test/intrinsics/gen/isFinite/34d32b.wgsl rename to test/builtins/gen/isFinite/34d32b.wgsl index 20d8b328a9..ef5358dd67 100644 --- a/test/intrinsics/gen/isFinite/34d32b.wgsl +++ b/test/builtins/gen/isFinite/34d32b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.glsl b/test/builtins/gen/isFinite/34d32b.wgsl.expected.glsl similarity index 78% rename from test/intrinsics/gen/isFinite/34d32b.wgsl.expected.glsl rename to test/builtins/gen/isFinite/34d32b.wgsl.expected.glsl index e8a8c27450..6de5cd4b73 100644 --- a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.glsl +++ b/test/builtins/gen/isFinite/34d32b.wgsl.expected.glsl @@ -1,6 +1,6 @@ SKIP: FAILED -intrinsics/gen/isFinite/34d32b.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isFinite/34d32b.wgsl:28:25 warning: use of deprecated builtin var res: vec2 = isFinite(vec2()); ^^^^^^^^ @@ -24,9 +24,9 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'isfinite' : no matching overloaded function found +ERROR: 0:5: 'isfinite' : no matching overloaded function found ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 2-component vector of bool' -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -47,9 +47,9 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'isfinite' : no matching overloaded function found +ERROR: 0:5: 'isfinite' : no matching overloaded function found ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 2-component vector of bool' -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -71,9 +71,9 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'isfinite' : no matching overloaded function found +ERROR: 0:5: 'isfinite' : no matching overloaded function found ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 2-component vector of bool' -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.hlsl b/test/builtins/gen/isFinite/34d32b.wgsl.expected.hlsl similarity index 88% rename from test/intrinsics/gen/isFinite/34d32b.wgsl.expected.hlsl rename to test/builtins/gen/isFinite/34d32b.wgsl.expected.hlsl index 26da20792e..4301e88824 100644 --- a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.hlsl +++ b/test/builtins/gen/isFinite/34d32b.wgsl.expected.hlsl @@ -1,4 +1,4 @@ -intrinsics/gen/isFinite/34d32b.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isFinite/34d32b.wgsl:28:25 warning: use of deprecated builtin var res: vec2 = isFinite(vec2()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.msl b/test/builtins/gen/isFinite/34d32b.wgsl.expected.msl similarity index 88% rename from test/intrinsics/gen/isFinite/34d32b.wgsl.expected.msl rename to test/builtins/gen/isFinite/34d32b.wgsl.expected.msl index 34352c0f05..d482cc2756 100644 --- a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.msl +++ b/test/builtins/gen/isFinite/34d32b.wgsl.expected.msl @@ -1,4 +1,4 @@ -intrinsics/gen/isFinite/34d32b.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isFinite/34d32b.wgsl:28:25 warning: use of deprecated builtin var res: vec2 = isFinite(vec2()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.spvasm b/test/builtins/gen/isFinite/34d32b.wgsl.expected.spvasm similarity index 97% rename from test/intrinsics/gen/isFinite/34d32b.wgsl.expected.spvasm rename to test/builtins/gen/isFinite/34d32b.wgsl.expected.spvasm index 831fa2d29e..f33dc85fc4 100644 --- a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.spvasm +++ b/test/builtins/gen/isFinite/34d32b.wgsl.expected.spvasm @@ -1,4 +1,4 @@ -intrinsics/gen/isFinite/34d32b.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isFinite/34d32b.wgsl:28:25 warning: use of deprecated builtin var res: vec2 = isFinite(vec2()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.wgsl b/test/builtins/gen/isFinite/34d32b.wgsl.expected.wgsl similarity index 83% rename from test/intrinsics/gen/isFinite/34d32b.wgsl.expected.wgsl rename to test/builtins/gen/isFinite/34d32b.wgsl.expected.wgsl index 8b38ba94ba..17242cf087 100644 --- a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.wgsl +++ b/test/builtins/gen/isFinite/34d32b.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -intrinsics/gen/isFinite/34d32b.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isFinite/34d32b.wgsl:28:25 warning: use of deprecated builtin var res: vec2 = isFinite(vec2()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isFinite/426f9f.wgsl b/test/builtins/gen/isFinite/426f9f.wgsl similarity index 88% rename from test/intrinsics/gen/isFinite/426f9f.wgsl rename to test/builtins/gen/isFinite/426f9f.wgsl index e43f7a6872..43e240634f 100644 --- a/test/intrinsics/gen/isFinite/426f9f.wgsl +++ b/test/builtins/gen/isFinite/426f9f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.glsl b/test/builtins/gen/isFinite/426f9f.wgsl.expected.glsl similarity index 77% rename from test/intrinsics/gen/isFinite/426f9f.wgsl.expected.glsl rename to test/builtins/gen/isFinite/426f9f.wgsl.expected.glsl index 0669ad2204..51d1125a8b 100644 --- a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.glsl +++ b/test/builtins/gen/isFinite/426f9f.wgsl.expected.glsl @@ -1,6 +1,6 @@ SKIP: FAILED -intrinsics/gen/isFinite/426f9f.wgsl:28:19 warning: use of deprecated intrinsic +builtins/gen/isFinite/426f9f.wgsl:28:19 warning: use of deprecated builtin var res: bool = isFinite(1.0); ^^^^^^^^ @@ -24,9 +24,9 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'isfinite' : no matching overloaded function found +ERROR: 0:5: 'isfinite' : no matching overloaded function found ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp bool' -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -47,9 +47,9 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'isfinite' : no matching overloaded function found +ERROR: 0:5: 'isfinite' : no matching overloaded function found ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp bool' -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -71,9 +71,9 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'isfinite' : no matching overloaded function found +ERROR: 0:5: 'isfinite' : no matching overloaded function found ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp bool' -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.hlsl b/test/builtins/gen/isFinite/426f9f.wgsl.expected.hlsl similarity index 88% rename from test/intrinsics/gen/isFinite/426f9f.wgsl.expected.hlsl rename to test/builtins/gen/isFinite/426f9f.wgsl.expected.hlsl index 9e215be6b3..8ba2451d54 100644 --- a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.hlsl +++ b/test/builtins/gen/isFinite/426f9f.wgsl.expected.hlsl @@ -1,4 +1,4 @@ -intrinsics/gen/isFinite/426f9f.wgsl:28:19 warning: use of deprecated intrinsic +builtins/gen/isFinite/426f9f.wgsl:28:19 warning: use of deprecated builtin var res: bool = isFinite(1.0); ^^^^^^^^ diff --git a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.msl b/test/builtins/gen/isFinite/426f9f.wgsl.expected.msl similarity index 88% rename from test/intrinsics/gen/isFinite/426f9f.wgsl.expected.msl rename to test/builtins/gen/isFinite/426f9f.wgsl.expected.msl index 39432e0e09..eff348c83a 100644 --- a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.msl +++ b/test/builtins/gen/isFinite/426f9f.wgsl.expected.msl @@ -1,4 +1,4 @@ -intrinsics/gen/isFinite/426f9f.wgsl:28:19 warning: use of deprecated intrinsic +builtins/gen/isFinite/426f9f.wgsl:28:19 warning: use of deprecated builtin var res: bool = isFinite(1.0); ^^^^^^^^ diff --git a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.spvasm b/test/builtins/gen/isFinite/426f9f.wgsl.expected.spvasm similarity index 97% rename from test/intrinsics/gen/isFinite/426f9f.wgsl.expected.spvasm rename to test/builtins/gen/isFinite/426f9f.wgsl.expected.spvasm index 5b555627f6..6e64e7e012 100644 --- a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.spvasm +++ b/test/builtins/gen/isFinite/426f9f.wgsl.expected.spvasm @@ -1,4 +1,4 @@ -intrinsics/gen/isFinite/426f9f.wgsl:28:19 warning: use of deprecated intrinsic +builtins/gen/isFinite/426f9f.wgsl:28:19 warning: use of deprecated builtin var res: bool = isFinite(1.0); ^^^^^^^^ diff --git a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.wgsl b/test/builtins/gen/isFinite/426f9f.wgsl.expected.wgsl similarity index 82% rename from test/intrinsics/gen/isFinite/426f9f.wgsl.expected.wgsl rename to test/builtins/gen/isFinite/426f9f.wgsl.expected.wgsl index 6dd95474f4..c532c745d6 100644 --- a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.wgsl +++ b/test/builtins/gen/isFinite/426f9f.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -intrinsics/gen/isFinite/426f9f.wgsl:28:19 warning: use of deprecated intrinsic +builtins/gen/isFinite/426f9f.wgsl:28:19 warning: use of deprecated builtin var res: bool = isFinite(1.0); ^^^^^^^^ diff --git a/test/intrinsics/gen/isFinite/8a23ad.wgsl b/test/builtins/gen/isFinite/8a23ad.wgsl similarity index 89% rename from test/intrinsics/gen/isFinite/8a23ad.wgsl rename to test/builtins/gen/isFinite/8a23ad.wgsl index 24a52c0afb..7f554c354f 100644 --- a/test/intrinsics/gen/isFinite/8a23ad.wgsl +++ b/test/builtins/gen/isFinite/8a23ad.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.glsl b/test/builtins/gen/isFinite/8a23ad.wgsl.expected.glsl similarity index 78% rename from test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.glsl rename to test/builtins/gen/isFinite/8a23ad.wgsl.expected.glsl index beb55f0a8c..a4f158f001 100644 --- a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.glsl +++ b/test/builtins/gen/isFinite/8a23ad.wgsl.expected.glsl @@ -1,6 +1,6 @@ SKIP: FAILED -intrinsics/gen/isFinite/8a23ad.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isFinite/8a23ad.wgsl:28:25 warning: use of deprecated builtin var res: vec3 = isFinite(vec3()); ^^^^^^^^ @@ -24,9 +24,9 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'isfinite' : no matching overloaded function found +ERROR: 0:5: 'isfinite' : no matching overloaded function found ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 3-component vector of bool' -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -47,9 +47,9 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'isfinite' : no matching overloaded function found +ERROR: 0:5: 'isfinite' : no matching overloaded function found ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 3-component vector of bool' -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -71,9 +71,9 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'isfinite' : no matching overloaded function found +ERROR: 0:5: 'isfinite' : no matching overloaded function found ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 3-component vector of bool' -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.hlsl b/test/builtins/gen/isFinite/8a23ad.wgsl.expected.hlsl similarity index 88% rename from test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.hlsl rename to test/builtins/gen/isFinite/8a23ad.wgsl.expected.hlsl index 098b3e7156..b61ed9a6f2 100644 --- a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.hlsl +++ b/test/builtins/gen/isFinite/8a23ad.wgsl.expected.hlsl @@ -1,4 +1,4 @@ -intrinsics/gen/isFinite/8a23ad.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isFinite/8a23ad.wgsl:28:25 warning: use of deprecated builtin var res: vec3 = isFinite(vec3()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.msl b/test/builtins/gen/isFinite/8a23ad.wgsl.expected.msl similarity index 88% rename from test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.msl rename to test/builtins/gen/isFinite/8a23ad.wgsl.expected.msl index 5b9e079c9d..e95e8b4101 100644 --- a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.msl +++ b/test/builtins/gen/isFinite/8a23ad.wgsl.expected.msl @@ -1,4 +1,4 @@ -intrinsics/gen/isFinite/8a23ad.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isFinite/8a23ad.wgsl:28:25 warning: use of deprecated builtin var res: vec3 = isFinite(vec3()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.spvasm b/test/builtins/gen/isFinite/8a23ad.wgsl.expected.spvasm similarity index 97% rename from test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.spvasm rename to test/builtins/gen/isFinite/8a23ad.wgsl.expected.spvasm index d496b6e9c8..cd0fed3752 100644 --- a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.spvasm +++ b/test/builtins/gen/isFinite/8a23ad.wgsl.expected.spvasm @@ -1,4 +1,4 @@ -intrinsics/gen/isFinite/8a23ad.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isFinite/8a23ad.wgsl:28:25 warning: use of deprecated builtin var res: vec3 = isFinite(vec3()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.wgsl b/test/builtins/gen/isFinite/8a23ad.wgsl.expected.wgsl similarity index 83% rename from test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.wgsl rename to test/builtins/gen/isFinite/8a23ad.wgsl.expected.wgsl index 6aa23a5ac9..5ac53aa8c4 100644 --- a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.wgsl +++ b/test/builtins/gen/isFinite/8a23ad.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -intrinsics/gen/isFinite/8a23ad.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isFinite/8a23ad.wgsl:28:25 warning: use of deprecated builtin var res: vec3 = isFinite(vec3()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isFinite/f31987.wgsl b/test/builtins/gen/isFinite/f31987.wgsl similarity index 89% rename from test/intrinsics/gen/isFinite/f31987.wgsl rename to test/builtins/gen/isFinite/f31987.wgsl index 0a3f631fab..d2f5926005 100644 --- a/test/intrinsics/gen/isFinite/f31987.wgsl +++ b/test/builtins/gen/isFinite/f31987.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.glsl b/test/builtins/gen/isFinite/f31987.wgsl.expected.glsl similarity index 79% rename from test/intrinsics/gen/isFinite/f31987.wgsl.expected.glsl rename to test/builtins/gen/isFinite/f31987.wgsl.expected.glsl index aaf60d186f..3d49f8ed7f 100644 --- a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.glsl +++ b/test/builtins/gen/isFinite/f31987.wgsl.expected.glsl @@ -1,6 +1,6 @@ SKIP: FAILED -intrinsics/gen/isFinite/f31987.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isFinite/f31987.wgsl:28:25 warning: use of deprecated builtin var res: vec4 = isFinite(vec4()); ^^^^^^^^ @@ -24,9 +24,9 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'isfinite' : no matching overloaded function found +ERROR: 0:5: 'isfinite' : no matching overloaded function found ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 4-component vector of bool' -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -47,9 +47,9 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'isfinite' : no matching overloaded function found +ERROR: 0:5: 'isfinite' : no matching overloaded function found ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 4-component vector of bool' -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -71,9 +71,9 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'isfinite' : no matching overloaded function found +ERROR: 0:5: 'isfinite' : no matching overloaded function found ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 4-component vector of bool' -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.hlsl b/test/builtins/gen/isFinite/f31987.wgsl.expected.hlsl similarity index 89% rename from test/intrinsics/gen/isFinite/f31987.wgsl.expected.hlsl rename to test/builtins/gen/isFinite/f31987.wgsl.expected.hlsl index cb51c62d81..ae6ac328a2 100644 --- a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.hlsl +++ b/test/builtins/gen/isFinite/f31987.wgsl.expected.hlsl @@ -1,4 +1,4 @@ -intrinsics/gen/isFinite/f31987.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isFinite/f31987.wgsl:28:25 warning: use of deprecated builtin var res: vec4 = isFinite(vec4()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.msl b/test/builtins/gen/isFinite/f31987.wgsl.expected.msl similarity index 88% rename from test/intrinsics/gen/isFinite/f31987.wgsl.expected.msl rename to test/builtins/gen/isFinite/f31987.wgsl.expected.msl index 5e6c50490c..4a0ac00639 100644 --- a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.msl +++ b/test/builtins/gen/isFinite/f31987.wgsl.expected.msl @@ -1,4 +1,4 @@ -intrinsics/gen/isFinite/f31987.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isFinite/f31987.wgsl:28:25 warning: use of deprecated builtin var res: vec4 = isFinite(vec4()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.spvasm b/test/builtins/gen/isFinite/f31987.wgsl.expected.spvasm similarity index 97% rename from test/intrinsics/gen/isFinite/f31987.wgsl.expected.spvasm rename to test/builtins/gen/isFinite/f31987.wgsl.expected.spvasm index ee68c59f46..b6d6711a5b 100644 --- a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.spvasm +++ b/test/builtins/gen/isFinite/f31987.wgsl.expected.spvasm @@ -1,4 +1,4 @@ -intrinsics/gen/isFinite/f31987.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isFinite/f31987.wgsl:28:25 warning: use of deprecated builtin var res: vec4 = isFinite(vec4()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.wgsl b/test/builtins/gen/isFinite/f31987.wgsl.expected.wgsl similarity index 83% rename from test/intrinsics/gen/isFinite/f31987.wgsl.expected.wgsl rename to test/builtins/gen/isFinite/f31987.wgsl.expected.wgsl index a5e86db6a5..e13a8c924b 100644 --- a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.wgsl +++ b/test/builtins/gen/isFinite/f31987.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -intrinsics/gen/isFinite/f31987.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isFinite/f31987.wgsl:28:25 warning: use of deprecated builtin var res: vec4 = isFinite(vec4()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isInf/666f2a.wgsl b/test/builtins/gen/isInf/666f2a.wgsl similarity index 89% rename from test/intrinsics/gen/isInf/666f2a.wgsl rename to test/builtins/gen/isInf/666f2a.wgsl index 7550d277cd..c3e9927e6c 100644 --- a/test/intrinsics/gen/isInf/666f2a.wgsl +++ b/test/builtins/gen/isInf/666f2a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.glsl b/test/builtins/gen/isInf/666f2a.wgsl.expected.glsl similarity index 92% rename from test/intrinsics/gen/isInf/666f2a.wgsl.expected.glsl rename to test/builtins/gen/isInf/666f2a.wgsl.expected.glsl index 0daf17d9a7..e0830f888e 100644 --- a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.glsl +++ b/test/builtins/gen/isInf/666f2a.wgsl.expected.glsl @@ -1,4 +1,4 @@ -intrinsics/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated builtin var res: vec3 = isInf(vec3()); ^^^^^ diff --git a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.hlsl b/test/builtins/gen/isInf/666f2a.wgsl.expected.hlsl similarity index 88% rename from test/intrinsics/gen/isInf/666f2a.wgsl.expected.hlsl rename to test/builtins/gen/isInf/666f2a.wgsl.expected.hlsl index cb815e179c..8890a79c09 100644 --- a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.hlsl +++ b/test/builtins/gen/isInf/666f2a.wgsl.expected.hlsl @@ -1,4 +1,4 @@ -intrinsics/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated builtin var res: vec3 = isInf(vec3()); ^^^^^ diff --git a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.msl b/test/builtins/gen/isInf/666f2a.wgsl.expected.msl similarity index 88% rename from test/intrinsics/gen/isInf/666f2a.wgsl.expected.msl rename to test/builtins/gen/isInf/666f2a.wgsl.expected.msl index fa37ad708a..4b65427870 100644 --- a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.msl +++ b/test/builtins/gen/isInf/666f2a.wgsl.expected.msl @@ -1,4 +1,4 @@ -intrinsics/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated builtin var res: vec3 = isInf(vec3()); ^^^^^ diff --git a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.spvasm b/test/builtins/gen/isInf/666f2a.wgsl.expected.spvasm similarity index 97% rename from test/intrinsics/gen/isInf/666f2a.wgsl.expected.spvasm rename to test/builtins/gen/isInf/666f2a.wgsl.expected.spvasm index 42db2c18e2..6cea7ae2ee 100644 --- a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.spvasm +++ b/test/builtins/gen/isInf/666f2a.wgsl.expected.spvasm @@ -1,4 +1,4 @@ -intrinsics/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated builtin var res: vec3 = isInf(vec3()); ^^^^^ diff --git a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.wgsl b/test/builtins/gen/isInf/666f2a.wgsl.expected.wgsl similarity index 83% rename from test/intrinsics/gen/isInf/666f2a.wgsl.expected.wgsl rename to test/builtins/gen/isInf/666f2a.wgsl.expected.wgsl index 4fa25cbcf9..a3f6c553cb 100644 --- a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.wgsl +++ b/test/builtins/gen/isInf/666f2a.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -intrinsics/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated builtin var res: vec3 = isInf(vec3()); ^^^^^ diff --git a/test/intrinsics/gen/isInf/7bd98f.wgsl b/test/builtins/gen/isInf/7bd98f.wgsl similarity index 88% rename from test/intrinsics/gen/isInf/7bd98f.wgsl rename to test/builtins/gen/isInf/7bd98f.wgsl index eaea74dbac..ce3683df0e 100644 --- a/test/intrinsics/gen/isInf/7bd98f.wgsl +++ b/test/builtins/gen/isInf/7bd98f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.glsl b/test/builtins/gen/isInf/7bd98f.wgsl.expected.glsl similarity index 91% rename from test/intrinsics/gen/isInf/7bd98f.wgsl.expected.glsl rename to test/builtins/gen/isInf/7bd98f.wgsl.expected.glsl index b4790ba1af..09b1082bac 100644 --- a/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.glsl +++ b/test/builtins/gen/isInf/7bd98f.wgsl.expected.glsl @@ -1,4 +1,4 @@ -intrinsics/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated intrinsic +builtins/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated builtin var res: bool = isInf(1.0); ^^^^^ diff --git a/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.hlsl b/test/builtins/gen/isInf/7bd98f.wgsl.expected.hlsl similarity index 88% rename from test/intrinsics/gen/isInf/7bd98f.wgsl.expected.hlsl rename to test/builtins/gen/isInf/7bd98f.wgsl.expected.hlsl index 710b925fdf..bfff65b8b6 100644 --- a/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.hlsl +++ b/test/builtins/gen/isInf/7bd98f.wgsl.expected.hlsl @@ -1,4 +1,4 @@ -intrinsics/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated intrinsic +builtins/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated builtin var res: bool = isInf(1.0); ^^^^^ diff --git a/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.msl b/test/builtins/gen/isInf/7bd98f.wgsl.expected.msl similarity index 88% rename from test/intrinsics/gen/isInf/7bd98f.wgsl.expected.msl rename to test/builtins/gen/isInf/7bd98f.wgsl.expected.msl index c2a807b974..d5894d20ed 100644 --- a/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.msl +++ b/test/builtins/gen/isInf/7bd98f.wgsl.expected.msl @@ -1,4 +1,4 @@ -intrinsics/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated intrinsic +builtins/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated builtin var res: bool = isInf(1.0); ^^^^^ diff --git a/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.spvasm b/test/builtins/gen/isInf/7bd98f.wgsl.expected.spvasm similarity index 97% rename from test/intrinsics/gen/isInf/7bd98f.wgsl.expected.spvasm rename to test/builtins/gen/isInf/7bd98f.wgsl.expected.spvasm index b04b2b117a..b1f68c1d95 100644 --- a/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.spvasm +++ b/test/builtins/gen/isInf/7bd98f.wgsl.expected.spvasm @@ -1,4 +1,4 @@ -intrinsics/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated intrinsic +builtins/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated builtin var res: bool = isInf(1.0); ^^^^^ diff --git a/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.wgsl b/test/builtins/gen/isInf/7bd98f.wgsl.expected.wgsl similarity index 82% rename from test/intrinsics/gen/isInf/7bd98f.wgsl.expected.wgsl rename to test/builtins/gen/isInf/7bd98f.wgsl.expected.wgsl index 82deb30f9c..c15326957e 100644 --- a/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.wgsl +++ b/test/builtins/gen/isInf/7bd98f.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -intrinsics/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated intrinsic +builtins/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated builtin var res: bool = isInf(1.0); ^^^^^ diff --git a/test/intrinsics/gen/isInf/7e81b5.wgsl b/test/builtins/gen/isInf/7e81b5.wgsl similarity index 89% rename from test/intrinsics/gen/isInf/7e81b5.wgsl rename to test/builtins/gen/isInf/7e81b5.wgsl index 0a967531a5..4b077bd1ac 100644 --- a/test/intrinsics/gen/isInf/7e81b5.wgsl +++ b/test/builtins/gen/isInf/7e81b5.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.glsl b/test/builtins/gen/isInf/7e81b5.wgsl.expected.glsl similarity index 92% rename from test/intrinsics/gen/isInf/7e81b5.wgsl.expected.glsl rename to test/builtins/gen/isInf/7e81b5.wgsl.expected.glsl index 0ed29fdd05..b2e3c8721f 100644 --- a/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.glsl +++ b/test/builtins/gen/isInf/7e81b5.wgsl.expected.glsl @@ -1,4 +1,4 @@ -intrinsics/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated builtin var res: vec4 = isInf(vec4()); ^^^^^ diff --git a/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.hlsl b/test/builtins/gen/isInf/7e81b5.wgsl.expected.hlsl similarity index 89% rename from test/intrinsics/gen/isInf/7e81b5.wgsl.expected.hlsl rename to test/builtins/gen/isInf/7e81b5.wgsl.expected.hlsl index f04d9c0764..4078ead8ee 100644 --- a/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.hlsl +++ b/test/builtins/gen/isInf/7e81b5.wgsl.expected.hlsl @@ -1,4 +1,4 @@ -intrinsics/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated builtin var res: vec4 = isInf(vec4()); ^^^^^ diff --git a/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.msl b/test/builtins/gen/isInf/7e81b5.wgsl.expected.msl similarity index 88% rename from test/intrinsics/gen/isInf/7e81b5.wgsl.expected.msl rename to test/builtins/gen/isInf/7e81b5.wgsl.expected.msl index de416fb481..e41bafae5f 100644 --- a/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.msl +++ b/test/builtins/gen/isInf/7e81b5.wgsl.expected.msl @@ -1,4 +1,4 @@ -intrinsics/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated builtin var res: vec4 = isInf(vec4()); ^^^^^ diff --git a/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.spvasm b/test/builtins/gen/isInf/7e81b5.wgsl.expected.spvasm similarity index 97% rename from test/intrinsics/gen/isInf/7e81b5.wgsl.expected.spvasm rename to test/builtins/gen/isInf/7e81b5.wgsl.expected.spvasm index c8a1781a9a..304a9805c1 100644 --- a/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.spvasm +++ b/test/builtins/gen/isInf/7e81b5.wgsl.expected.spvasm @@ -1,4 +1,4 @@ -intrinsics/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated builtin var res: vec4 = isInf(vec4()); ^^^^^ diff --git a/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.wgsl b/test/builtins/gen/isInf/7e81b5.wgsl.expected.wgsl similarity index 83% rename from test/intrinsics/gen/isInf/7e81b5.wgsl.expected.wgsl rename to test/builtins/gen/isInf/7e81b5.wgsl.expected.wgsl index 3fced5afc3..44f63a9a08 100644 --- a/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.wgsl +++ b/test/builtins/gen/isInf/7e81b5.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -intrinsics/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated builtin var res: vec4 = isInf(vec4()); ^^^^^ diff --git a/test/intrinsics/gen/isInf/a46d6f.wgsl b/test/builtins/gen/isInf/a46d6f.wgsl similarity index 89% rename from test/intrinsics/gen/isInf/a46d6f.wgsl rename to test/builtins/gen/isInf/a46d6f.wgsl index 5841a4116e..0d08ca27d1 100644 --- a/test/intrinsics/gen/isInf/a46d6f.wgsl +++ b/test/builtins/gen/isInf/a46d6f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.glsl b/test/builtins/gen/isInf/a46d6f.wgsl.expected.glsl similarity index 92% rename from test/intrinsics/gen/isInf/a46d6f.wgsl.expected.glsl rename to test/builtins/gen/isInf/a46d6f.wgsl.expected.glsl index 78a4a3affe..d10642795f 100644 --- a/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.glsl +++ b/test/builtins/gen/isInf/a46d6f.wgsl.expected.glsl @@ -1,4 +1,4 @@ -intrinsics/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated builtin var res: vec2 = isInf(vec2()); ^^^^^ diff --git a/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.hlsl b/test/builtins/gen/isInf/a46d6f.wgsl.expected.hlsl similarity index 88% rename from test/intrinsics/gen/isInf/a46d6f.wgsl.expected.hlsl rename to test/builtins/gen/isInf/a46d6f.wgsl.expected.hlsl index bb064136dc..c1d2bf2dc5 100644 --- a/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.hlsl +++ b/test/builtins/gen/isInf/a46d6f.wgsl.expected.hlsl @@ -1,4 +1,4 @@ -intrinsics/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated builtin var res: vec2 = isInf(vec2()); ^^^^^ diff --git a/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.msl b/test/builtins/gen/isInf/a46d6f.wgsl.expected.msl similarity index 88% rename from test/intrinsics/gen/isInf/a46d6f.wgsl.expected.msl rename to test/builtins/gen/isInf/a46d6f.wgsl.expected.msl index f4c90324a6..50474b5375 100644 --- a/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.msl +++ b/test/builtins/gen/isInf/a46d6f.wgsl.expected.msl @@ -1,4 +1,4 @@ -intrinsics/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated builtin var res: vec2 = isInf(vec2()); ^^^^^ diff --git a/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.spvasm b/test/builtins/gen/isInf/a46d6f.wgsl.expected.spvasm similarity index 97% rename from test/intrinsics/gen/isInf/a46d6f.wgsl.expected.spvasm rename to test/builtins/gen/isInf/a46d6f.wgsl.expected.spvasm index 52b4ee8177..c0a8d726c1 100644 --- a/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.spvasm +++ b/test/builtins/gen/isInf/a46d6f.wgsl.expected.spvasm @@ -1,4 +1,4 @@ -intrinsics/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated builtin var res: vec2 = isInf(vec2()); ^^^^^ diff --git a/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.wgsl b/test/builtins/gen/isInf/a46d6f.wgsl.expected.wgsl similarity index 83% rename from test/intrinsics/gen/isInf/a46d6f.wgsl.expected.wgsl rename to test/builtins/gen/isInf/a46d6f.wgsl.expected.wgsl index 3fa68d912a..d9b764d5c7 100644 --- a/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.wgsl +++ b/test/builtins/gen/isInf/a46d6f.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -intrinsics/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated builtin var res: vec2 = isInf(vec2()); ^^^^^ diff --git a/test/intrinsics/gen/isNan/1280ab.wgsl b/test/builtins/gen/isNan/1280ab.wgsl similarity index 89% rename from test/intrinsics/gen/isNan/1280ab.wgsl rename to test/builtins/gen/isNan/1280ab.wgsl index fb5e25c983..7495a295a0 100644 --- a/test/intrinsics/gen/isNan/1280ab.wgsl +++ b/test/builtins/gen/isNan/1280ab.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/isNan/1280ab.wgsl.expected.glsl b/test/builtins/gen/isNan/1280ab.wgsl.expected.glsl similarity index 92% rename from test/intrinsics/gen/isNan/1280ab.wgsl.expected.glsl rename to test/builtins/gen/isNan/1280ab.wgsl.expected.glsl index 3ca91afc2e..4336d6846c 100644 --- a/test/intrinsics/gen/isNan/1280ab.wgsl.expected.glsl +++ b/test/builtins/gen/isNan/1280ab.wgsl.expected.glsl @@ -1,4 +1,4 @@ -intrinsics/gen/isNan/1280ab.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNan/1280ab.wgsl:28:25 warning: use of deprecated builtin var res: vec3 = isNan(vec3()); ^^^^^ diff --git a/test/intrinsics/gen/isNan/1280ab.wgsl.expected.hlsl b/test/builtins/gen/isNan/1280ab.wgsl.expected.hlsl similarity index 88% rename from test/intrinsics/gen/isNan/1280ab.wgsl.expected.hlsl rename to test/builtins/gen/isNan/1280ab.wgsl.expected.hlsl index 55394cc79d..142d86d5ef 100644 --- a/test/intrinsics/gen/isNan/1280ab.wgsl.expected.hlsl +++ b/test/builtins/gen/isNan/1280ab.wgsl.expected.hlsl @@ -1,4 +1,4 @@ -intrinsics/gen/isNan/1280ab.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNan/1280ab.wgsl:28:25 warning: use of deprecated builtin var res: vec3 = isNan(vec3()); ^^^^^ diff --git a/test/intrinsics/gen/isNan/1280ab.wgsl.expected.msl b/test/builtins/gen/isNan/1280ab.wgsl.expected.msl similarity index 88% rename from test/intrinsics/gen/isNan/1280ab.wgsl.expected.msl rename to test/builtins/gen/isNan/1280ab.wgsl.expected.msl index 7a8c6dd6fe..ea4a1241e8 100644 --- a/test/intrinsics/gen/isNan/1280ab.wgsl.expected.msl +++ b/test/builtins/gen/isNan/1280ab.wgsl.expected.msl @@ -1,4 +1,4 @@ -intrinsics/gen/isNan/1280ab.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNan/1280ab.wgsl:28:25 warning: use of deprecated builtin var res: vec3 = isNan(vec3()); ^^^^^ diff --git a/test/intrinsics/gen/isNan/1280ab.wgsl.expected.spvasm b/test/builtins/gen/isNan/1280ab.wgsl.expected.spvasm similarity index 97% rename from test/intrinsics/gen/isNan/1280ab.wgsl.expected.spvasm rename to test/builtins/gen/isNan/1280ab.wgsl.expected.spvasm index 91bdbc9bc2..e12a0507cc 100644 --- a/test/intrinsics/gen/isNan/1280ab.wgsl.expected.spvasm +++ b/test/builtins/gen/isNan/1280ab.wgsl.expected.spvasm @@ -1,4 +1,4 @@ -intrinsics/gen/isNan/1280ab.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNan/1280ab.wgsl:28:25 warning: use of deprecated builtin var res: vec3 = isNan(vec3()); ^^^^^ diff --git a/test/intrinsics/gen/isNan/1280ab.wgsl.expected.wgsl b/test/builtins/gen/isNan/1280ab.wgsl.expected.wgsl similarity index 83% rename from test/intrinsics/gen/isNan/1280ab.wgsl.expected.wgsl rename to test/builtins/gen/isNan/1280ab.wgsl.expected.wgsl index ec27bcdbf1..17dd2873e4 100644 --- a/test/intrinsics/gen/isNan/1280ab.wgsl.expected.wgsl +++ b/test/builtins/gen/isNan/1280ab.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -intrinsics/gen/isNan/1280ab.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNan/1280ab.wgsl:28:25 warning: use of deprecated builtin var res: vec3 = isNan(vec3()); ^^^^^ diff --git a/test/intrinsics/gen/isNan/4d280d.wgsl b/test/builtins/gen/isNan/4d280d.wgsl similarity index 89% rename from test/intrinsics/gen/isNan/4d280d.wgsl rename to test/builtins/gen/isNan/4d280d.wgsl index 330440dfd1..a7797099de 100644 --- a/test/intrinsics/gen/isNan/4d280d.wgsl +++ b/test/builtins/gen/isNan/4d280d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/isNan/4d280d.wgsl.expected.glsl b/test/builtins/gen/isNan/4d280d.wgsl.expected.glsl similarity index 92% rename from test/intrinsics/gen/isNan/4d280d.wgsl.expected.glsl rename to test/builtins/gen/isNan/4d280d.wgsl.expected.glsl index 61f66001c9..ee19e9deea 100644 --- a/test/intrinsics/gen/isNan/4d280d.wgsl.expected.glsl +++ b/test/builtins/gen/isNan/4d280d.wgsl.expected.glsl @@ -1,4 +1,4 @@ -intrinsics/gen/isNan/4d280d.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNan/4d280d.wgsl:28:25 warning: use of deprecated builtin var res: vec4 = isNan(vec4()); ^^^^^ diff --git a/test/intrinsics/gen/isNan/4d280d.wgsl.expected.hlsl b/test/builtins/gen/isNan/4d280d.wgsl.expected.hlsl similarity index 89% rename from test/intrinsics/gen/isNan/4d280d.wgsl.expected.hlsl rename to test/builtins/gen/isNan/4d280d.wgsl.expected.hlsl index 18a17d58b4..724ec548dc 100644 --- a/test/intrinsics/gen/isNan/4d280d.wgsl.expected.hlsl +++ b/test/builtins/gen/isNan/4d280d.wgsl.expected.hlsl @@ -1,4 +1,4 @@ -intrinsics/gen/isNan/4d280d.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNan/4d280d.wgsl:28:25 warning: use of deprecated builtin var res: vec4 = isNan(vec4()); ^^^^^ diff --git a/test/intrinsics/gen/isNan/4d280d.wgsl.expected.msl b/test/builtins/gen/isNan/4d280d.wgsl.expected.msl similarity index 88% rename from test/intrinsics/gen/isNan/4d280d.wgsl.expected.msl rename to test/builtins/gen/isNan/4d280d.wgsl.expected.msl index e8c2d9cc09..3aeb8717a0 100644 --- a/test/intrinsics/gen/isNan/4d280d.wgsl.expected.msl +++ b/test/builtins/gen/isNan/4d280d.wgsl.expected.msl @@ -1,4 +1,4 @@ -intrinsics/gen/isNan/4d280d.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNan/4d280d.wgsl:28:25 warning: use of deprecated builtin var res: vec4 = isNan(vec4()); ^^^^^ diff --git a/test/intrinsics/gen/isNan/4d280d.wgsl.expected.spvasm b/test/builtins/gen/isNan/4d280d.wgsl.expected.spvasm similarity index 97% rename from test/intrinsics/gen/isNan/4d280d.wgsl.expected.spvasm rename to test/builtins/gen/isNan/4d280d.wgsl.expected.spvasm index ee5a96e38d..1fe2d27237 100644 --- a/test/intrinsics/gen/isNan/4d280d.wgsl.expected.spvasm +++ b/test/builtins/gen/isNan/4d280d.wgsl.expected.spvasm @@ -1,4 +1,4 @@ -intrinsics/gen/isNan/4d280d.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNan/4d280d.wgsl:28:25 warning: use of deprecated builtin var res: vec4 = isNan(vec4()); ^^^^^ diff --git a/test/intrinsics/gen/isNan/4d280d.wgsl.expected.wgsl b/test/builtins/gen/isNan/4d280d.wgsl.expected.wgsl similarity index 83% rename from test/intrinsics/gen/isNan/4d280d.wgsl.expected.wgsl rename to test/builtins/gen/isNan/4d280d.wgsl.expected.wgsl index 57ba354b47..61f41d43c9 100644 --- a/test/intrinsics/gen/isNan/4d280d.wgsl.expected.wgsl +++ b/test/builtins/gen/isNan/4d280d.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -intrinsics/gen/isNan/4d280d.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNan/4d280d.wgsl:28:25 warning: use of deprecated builtin var res: vec4 = isNan(vec4()); ^^^^^ diff --git a/test/intrinsics/gen/isNan/67ecd3.wgsl b/test/builtins/gen/isNan/67ecd3.wgsl similarity index 89% rename from test/intrinsics/gen/isNan/67ecd3.wgsl rename to test/builtins/gen/isNan/67ecd3.wgsl index 9b082ec3af..6fa16a6882 100644 --- a/test/intrinsics/gen/isNan/67ecd3.wgsl +++ b/test/builtins/gen/isNan/67ecd3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.glsl b/test/builtins/gen/isNan/67ecd3.wgsl.expected.glsl similarity index 92% rename from test/intrinsics/gen/isNan/67ecd3.wgsl.expected.glsl rename to test/builtins/gen/isNan/67ecd3.wgsl.expected.glsl index d0a67e5ce3..d2b833b424 100644 --- a/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.glsl +++ b/test/builtins/gen/isNan/67ecd3.wgsl.expected.glsl @@ -1,4 +1,4 @@ -intrinsics/gen/isNan/67ecd3.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNan/67ecd3.wgsl:28:25 warning: use of deprecated builtin var res: vec2 = isNan(vec2()); ^^^^^ diff --git a/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.hlsl b/test/builtins/gen/isNan/67ecd3.wgsl.expected.hlsl similarity index 88% rename from test/intrinsics/gen/isNan/67ecd3.wgsl.expected.hlsl rename to test/builtins/gen/isNan/67ecd3.wgsl.expected.hlsl index c83f79dfe6..f18e86af27 100644 --- a/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.hlsl +++ b/test/builtins/gen/isNan/67ecd3.wgsl.expected.hlsl @@ -1,4 +1,4 @@ -intrinsics/gen/isNan/67ecd3.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNan/67ecd3.wgsl:28:25 warning: use of deprecated builtin var res: vec2 = isNan(vec2()); ^^^^^ diff --git a/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.msl b/test/builtins/gen/isNan/67ecd3.wgsl.expected.msl similarity index 88% rename from test/intrinsics/gen/isNan/67ecd3.wgsl.expected.msl rename to test/builtins/gen/isNan/67ecd3.wgsl.expected.msl index 901c4cabba..b992e745a3 100644 --- a/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.msl +++ b/test/builtins/gen/isNan/67ecd3.wgsl.expected.msl @@ -1,4 +1,4 @@ -intrinsics/gen/isNan/67ecd3.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNan/67ecd3.wgsl:28:25 warning: use of deprecated builtin var res: vec2 = isNan(vec2()); ^^^^^ diff --git a/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.spvasm b/test/builtins/gen/isNan/67ecd3.wgsl.expected.spvasm similarity index 97% rename from test/intrinsics/gen/isNan/67ecd3.wgsl.expected.spvasm rename to test/builtins/gen/isNan/67ecd3.wgsl.expected.spvasm index 575cb561c5..fd0ed88161 100644 --- a/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.spvasm +++ b/test/builtins/gen/isNan/67ecd3.wgsl.expected.spvasm @@ -1,4 +1,4 @@ -intrinsics/gen/isNan/67ecd3.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNan/67ecd3.wgsl:28:25 warning: use of deprecated builtin var res: vec2 = isNan(vec2()); ^^^^^ diff --git a/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.wgsl b/test/builtins/gen/isNan/67ecd3.wgsl.expected.wgsl similarity index 83% rename from test/intrinsics/gen/isNan/67ecd3.wgsl.expected.wgsl rename to test/builtins/gen/isNan/67ecd3.wgsl.expected.wgsl index 2f9573dc72..59069abe0b 100644 --- a/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.wgsl +++ b/test/builtins/gen/isNan/67ecd3.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -intrinsics/gen/isNan/67ecd3.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNan/67ecd3.wgsl:28:25 warning: use of deprecated builtin var res: vec2 = isNan(vec2()); ^^^^^ diff --git a/test/intrinsics/gen/isNan/e4978e.wgsl b/test/builtins/gen/isNan/e4978e.wgsl similarity index 88% rename from test/intrinsics/gen/isNan/e4978e.wgsl rename to test/builtins/gen/isNan/e4978e.wgsl index f28a7d143c..458f6c1bec 100644 --- a/test/intrinsics/gen/isNan/e4978e.wgsl +++ b/test/builtins/gen/isNan/e4978e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/isNan/e4978e.wgsl.expected.glsl b/test/builtins/gen/isNan/e4978e.wgsl.expected.glsl similarity index 91% rename from test/intrinsics/gen/isNan/e4978e.wgsl.expected.glsl rename to test/builtins/gen/isNan/e4978e.wgsl.expected.glsl index 9f74dfead1..a7f4eadfa2 100644 --- a/test/intrinsics/gen/isNan/e4978e.wgsl.expected.glsl +++ b/test/builtins/gen/isNan/e4978e.wgsl.expected.glsl @@ -1,4 +1,4 @@ -intrinsics/gen/isNan/e4978e.wgsl:28:19 warning: use of deprecated intrinsic +builtins/gen/isNan/e4978e.wgsl:28:19 warning: use of deprecated builtin var res: bool = isNan(1.0); ^^^^^ diff --git a/test/intrinsics/gen/isNan/e4978e.wgsl.expected.hlsl b/test/builtins/gen/isNan/e4978e.wgsl.expected.hlsl similarity index 88% rename from test/intrinsics/gen/isNan/e4978e.wgsl.expected.hlsl rename to test/builtins/gen/isNan/e4978e.wgsl.expected.hlsl index 99d53a5646..6e0a1fd0eb 100644 --- a/test/intrinsics/gen/isNan/e4978e.wgsl.expected.hlsl +++ b/test/builtins/gen/isNan/e4978e.wgsl.expected.hlsl @@ -1,4 +1,4 @@ -intrinsics/gen/isNan/e4978e.wgsl:28:19 warning: use of deprecated intrinsic +builtins/gen/isNan/e4978e.wgsl:28:19 warning: use of deprecated builtin var res: bool = isNan(1.0); ^^^^^ diff --git a/test/intrinsics/gen/isNan/e4978e.wgsl.expected.msl b/test/builtins/gen/isNan/e4978e.wgsl.expected.msl similarity index 88% rename from test/intrinsics/gen/isNan/e4978e.wgsl.expected.msl rename to test/builtins/gen/isNan/e4978e.wgsl.expected.msl index 89f76403e6..8ebb00d700 100644 --- a/test/intrinsics/gen/isNan/e4978e.wgsl.expected.msl +++ b/test/builtins/gen/isNan/e4978e.wgsl.expected.msl @@ -1,4 +1,4 @@ -intrinsics/gen/isNan/e4978e.wgsl:28:19 warning: use of deprecated intrinsic +builtins/gen/isNan/e4978e.wgsl:28:19 warning: use of deprecated builtin var res: bool = isNan(1.0); ^^^^^ diff --git a/test/intrinsics/gen/isNan/e4978e.wgsl.expected.spvasm b/test/builtins/gen/isNan/e4978e.wgsl.expected.spvasm similarity index 97% rename from test/intrinsics/gen/isNan/e4978e.wgsl.expected.spvasm rename to test/builtins/gen/isNan/e4978e.wgsl.expected.spvasm index 08f50a764b..0d70048cf7 100644 --- a/test/intrinsics/gen/isNan/e4978e.wgsl.expected.spvasm +++ b/test/builtins/gen/isNan/e4978e.wgsl.expected.spvasm @@ -1,4 +1,4 @@ -intrinsics/gen/isNan/e4978e.wgsl:28:19 warning: use of deprecated intrinsic +builtins/gen/isNan/e4978e.wgsl:28:19 warning: use of deprecated builtin var res: bool = isNan(1.0); ^^^^^ diff --git a/test/intrinsics/gen/isNan/e4978e.wgsl.expected.wgsl b/test/builtins/gen/isNan/e4978e.wgsl.expected.wgsl similarity index 82% rename from test/intrinsics/gen/isNan/e4978e.wgsl.expected.wgsl rename to test/builtins/gen/isNan/e4978e.wgsl.expected.wgsl index 0e27431832..840f21a6eb 100644 --- a/test/intrinsics/gen/isNan/e4978e.wgsl.expected.wgsl +++ b/test/builtins/gen/isNan/e4978e.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -intrinsics/gen/isNan/e4978e.wgsl:28:19 warning: use of deprecated intrinsic +builtins/gen/isNan/e4978e.wgsl:28:19 warning: use of deprecated builtin var res: bool = isNan(1.0); ^^^^^ diff --git a/test/intrinsics/gen/isNormal/863dcd.wgsl b/test/builtins/gen/isNormal/863dcd.wgsl similarity index 89% rename from test/intrinsics/gen/isNormal/863dcd.wgsl rename to test/builtins/gen/isNormal/863dcd.wgsl index a814ddbd53..207f3b65e8 100644 --- a/test/intrinsics/gen/isNormal/863dcd.wgsl +++ b/test/builtins/gen/isNormal/863dcd.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.glsl b/test/builtins/gen/isNormal/863dcd.wgsl.expected.glsl similarity index 83% rename from test/intrinsics/gen/isNormal/863dcd.wgsl.expected.glsl rename to test/builtins/gen/isNormal/863dcd.wgsl.expected.glsl index 45a8806d97..c33bf3e10a 100644 --- a/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.glsl +++ b/test/builtins/gen/isNormal/863dcd.wgsl.expected.glsl @@ -1,6 +1,6 @@ SKIP: FAILED -intrinsics/gen/isNormal/863dcd.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNormal/863dcd.wgsl:28:25 warning: use of deprecated builtin var res: vec4 = isNormal(vec4()); ^^^^^^^^ @@ -31,8 +31,8 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'uint4' : undeclared identifier -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: 'uint4' : undeclared identifier +ERROR: 0:5: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -60,8 +60,8 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'uint4' : undeclared identifier -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: 'uint4' : undeclared identifier +ERROR: 0:5: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -90,8 +90,8 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'uint4' : undeclared identifier -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: 'uint4' : undeclared identifier +ERROR: 0:5: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.hlsl b/test/builtins/gen/isNormal/863dcd.wgsl.expected.hlsl similarity index 91% rename from test/intrinsics/gen/isNormal/863dcd.wgsl.expected.hlsl rename to test/builtins/gen/isNormal/863dcd.wgsl.expected.hlsl index 978aed2862..8573bd51d7 100644 --- a/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.hlsl +++ b/test/builtins/gen/isNormal/863dcd.wgsl.expected.hlsl @@ -1,4 +1,4 @@ -intrinsics/gen/isNormal/863dcd.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNormal/863dcd.wgsl:28:25 warning: use of deprecated builtin var res: vec4 = isNormal(vec4()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.msl b/test/builtins/gen/isNormal/863dcd.wgsl.expected.msl similarity index 88% rename from test/intrinsics/gen/isNormal/863dcd.wgsl.expected.msl rename to test/builtins/gen/isNormal/863dcd.wgsl.expected.msl index aa872917b6..5844ab9ede 100644 --- a/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.msl +++ b/test/builtins/gen/isNormal/863dcd.wgsl.expected.msl @@ -1,4 +1,4 @@ -intrinsics/gen/isNormal/863dcd.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNormal/863dcd.wgsl:28:25 warning: use of deprecated builtin var res: vec4 = isNormal(vec4()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.spvasm b/test/builtins/gen/isNormal/863dcd.wgsl.expected.spvasm similarity index 97% rename from test/intrinsics/gen/isNormal/863dcd.wgsl.expected.spvasm rename to test/builtins/gen/isNormal/863dcd.wgsl.expected.spvasm index b901c91ff9..d776969027 100644 --- a/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.spvasm +++ b/test/builtins/gen/isNormal/863dcd.wgsl.expected.spvasm @@ -1,4 +1,4 @@ -intrinsics/gen/isNormal/863dcd.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNormal/863dcd.wgsl:28:25 warning: use of deprecated builtin var res: vec4 = isNormal(vec4()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.wgsl b/test/builtins/gen/isNormal/863dcd.wgsl.expected.wgsl similarity index 83% rename from test/intrinsics/gen/isNormal/863dcd.wgsl.expected.wgsl rename to test/builtins/gen/isNormal/863dcd.wgsl.expected.wgsl index 79f02614e9..d5c77bf12c 100644 --- a/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.wgsl +++ b/test/builtins/gen/isNormal/863dcd.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -intrinsics/gen/isNormal/863dcd.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNormal/863dcd.wgsl:28:25 warning: use of deprecated builtin var res: vec4 = isNormal(vec4()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isNormal/b00ab1.wgsl b/test/builtins/gen/isNormal/b00ab1.wgsl similarity index 89% rename from test/intrinsics/gen/isNormal/b00ab1.wgsl rename to test/builtins/gen/isNormal/b00ab1.wgsl index 7113dcc2b4..3820c633da 100644 --- a/test/intrinsics/gen/isNormal/b00ab1.wgsl +++ b/test/builtins/gen/isNormal/b00ab1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.glsl b/test/builtins/gen/isNormal/b00ab1.wgsl.expected.glsl similarity index 83% rename from test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.glsl rename to test/builtins/gen/isNormal/b00ab1.wgsl.expected.glsl index 038cf35478..ed74f8e140 100644 --- a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.glsl +++ b/test/builtins/gen/isNormal/b00ab1.wgsl.expected.glsl @@ -1,6 +1,6 @@ SKIP: FAILED -intrinsics/gen/isNormal/b00ab1.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNormal/b00ab1.wgsl:28:25 warning: use of deprecated builtin var res: vec2 = isNormal(vec2()); ^^^^^^^^ @@ -31,8 +31,8 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'uint2' : undeclared identifier -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: 'uint2' : undeclared identifier +ERROR: 0:5: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -60,8 +60,8 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'uint2' : undeclared identifier -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: 'uint2' : undeclared identifier +ERROR: 0:5: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -90,8 +90,8 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'uint2' : undeclared identifier -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: 'uint2' : undeclared identifier +ERROR: 0:5: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.hlsl b/test/builtins/gen/isNormal/b00ab1.wgsl.expected.hlsl similarity index 91% rename from test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.hlsl rename to test/builtins/gen/isNormal/b00ab1.wgsl.expected.hlsl index 226bf93541..5bcbdb2b2c 100644 --- a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.hlsl +++ b/test/builtins/gen/isNormal/b00ab1.wgsl.expected.hlsl @@ -1,4 +1,4 @@ -intrinsics/gen/isNormal/b00ab1.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNormal/b00ab1.wgsl:28:25 warning: use of deprecated builtin var res: vec2 = isNormal(vec2()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.msl b/test/builtins/gen/isNormal/b00ab1.wgsl.expected.msl similarity index 88% rename from test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.msl rename to test/builtins/gen/isNormal/b00ab1.wgsl.expected.msl index d51f774347..1203fa9438 100644 --- a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.msl +++ b/test/builtins/gen/isNormal/b00ab1.wgsl.expected.msl @@ -1,4 +1,4 @@ -intrinsics/gen/isNormal/b00ab1.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNormal/b00ab1.wgsl:28:25 warning: use of deprecated builtin var res: vec2 = isNormal(vec2()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.spvasm b/test/builtins/gen/isNormal/b00ab1.wgsl.expected.spvasm similarity index 97% rename from test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.spvasm rename to test/builtins/gen/isNormal/b00ab1.wgsl.expected.spvasm index 92ba069aee..01b0b5242b 100644 --- a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.spvasm +++ b/test/builtins/gen/isNormal/b00ab1.wgsl.expected.spvasm @@ -1,4 +1,4 @@ -intrinsics/gen/isNormal/b00ab1.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNormal/b00ab1.wgsl:28:25 warning: use of deprecated builtin var res: vec2 = isNormal(vec2()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.wgsl b/test/builtins/gen/isNormal/b00ab1.wgsl.expected.wgsl similarity index 83% rename from test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.wgsl rename to test/builtins/gen/isNormal/b00ab1.wgsl.expected.wgsl index c6b748c8b1..cc9832b9ed 100644 --- a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.wgsl +++ b/test/builtins/gen/isNormal/b00ab1.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -intrinsics/gen/isNormal/b00ab1.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNormal/b00ab1.wgsl:28:25 warning: use of deprecated builtin var res: vec2 = isNormal(vec2()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isNormal/c286b7.wgsl b/test/builtins/gen/isNormal/c286b7.wgsl similarity index 89% rename from test/intrinsics/gen/isNormal/c286b7.wgsl rename to test/builtins/gen/isNormal/c286b7.wgsl index b44cb1f370..b7cecad828 100644 --- a/test/intrinsics/gen/isNormal/c286b7.wgsl +++ b/test/builtins/gen/isNormal/c286b7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.glsl b/test/builtins/gen/isNormal/c286b7.wgsl.expected.glsl similarity index 83% rename from test/intrinsics/gen/isNormal/c286b7.wgsl.expected.glsl rename to test/builtins/gen/isNormal/c286b7.wgsl.expected.glsl index 4215a0e1ca..79e52f62a8 100644 --- a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.glsl +++ b/test/builtins/gen/isNormal/c286b7.wgsl.expected.glsl @@ -1,6 +1,6 @@ SKIP: FAILED -intrinsics/gen/isNormal/c286b7.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNormal/c286b7.wgsl:28:25 warning: use of deprecated builtin var res: vec3 = isNormal(vec3()); ^^^^^^^^ @@ -31,8 +31,8 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'uint3' : undeclared identifier -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: 'uint3' : undeclared identifier +ERROR: 0:5: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -60,8 +60,8 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'uint3' : undeclared identifier -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: 'uint3' : undeclared identifier +ERROR: 0:5: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -90,8 +90,8 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'uint3' : undeclared identifier -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: 'uint3' : undeclared identifier +ERROR: 0:5: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.hlsl b/test/builtins/gen/isNormal/c286b7.wgsl.expected.hlsl similarity index 91% rename from test/intrinsics/gen/isNormal/c286b7.wgsl.expected.hlsl rename to test/builtins/gen/isNormal/c286b7.wgsl.expected.hlsl index eeb5d556bc..a9061f3052 100644 --- a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.hlsl +++ b/test/builtins/gen/isNormal/c286b7.wgsl.expected.hlsl @@ -1,4 +1,4 @@ -intrinsics/gen/isNormal/c286b7.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNormal/c286b7.wgsl:28:25 warning: use of deprecated builtin var res: vec3 = isNormal(vec3()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.msl b/test/builtins/gen/isNormal/c286b7.wgsl.expected.msl similarity index 88% rename from test/intrinsics/gen/isNormal/c286b7.wgsl.expected.msl rename to test/builtins/gen/isNormal/c286b7.wgsl.expected.msl index 3717571153..e34416152a 100644 --- a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.msl +++ b/test/builtins/gen/isNormal/c286b7.wgsl.expected.msl @@ -1,4 +1,4 @@ -intrinsics/gen/isNormal/c286b7.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNormal/c286b7.wgsl:28:25 warning: use of deprecated builtin var res: vec3 = isNormal(vec3()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.spvasm b/test/builtins/gen/isNormal/c286b7.wgsl.expected.spvasm similarity index 97% rename from test/intrinsics/gen/isNormal/c286b7.wgsl.expected.spvasm rename to test/builtins/gen/isNormal/c286b7.wgsl.expected.spvasm index b1a08060bf..2323fa5adf 100644 --- a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.spvasm +++ b/test/builtins/gen/isNormal/c286b7.wgsl.expected.spvasm @@ -1,4 +1,4 @@ -intrinsics/gen/isNormal/c286b7.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNormal/c286b7.wgsl:28:25 warning: use of deprecated builtin var res: vec3 = isNormal(vec3()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.wgsl b/test/builtins/gen/isNormal/c286b7.wgsl.expected.wgsl similarity index 83% rename from test/intrinsics/gen/isNormal/c286b7.wgsl.expected.wgsl rename to test/builtins/gen/isNormal/c286b7.wgsl.expected.wgsl index ca46949e35..cc6882912b 100644 --- a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.wgsl +++ b/test/builtins/gen/isNormal/c286b7.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -intrinsics/gen/isNormal/c286b7.wgsl:28:25 warning: use of deprecated intrinsic +builtins/gen/isNormal/c286b7.wgsl:28:25 warning: use of deprecated builtin var res: vec3 = isNormal(vec3()); ^^^^^^^^ diff --git a/test/intrinsics/gen/isNormal/c6e880.wgsl b/test/builtins/gen/isNormal/c6e880.wgsl similarity index 88% rename from test/intrinsics/gen/isNormal/c6e880.wgsl rename to test/builtins/gen/isNormal/c6e880.wgsl index a5d839055e..25053e5e1a 100644 --- a/test/intrinsics/gen/isNormal/c6e880.wgsl +++ b/test/builtins/gen/isNormal/c6e880.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.glsl b/test/builtins/gen/isNormal/c6e880.wgsl.expected.glsl similarity index 82% rename from test/intrinsics/gen/isNormal/c6e880.wgsl.expected.glsl rename to test/builtins/gen/isNormal/c6e880.wgsl.expected.glsl index 03618514bb..ef28761f1a 100644 --- a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.glsl +++ b/test/builtins/gen/isNormal/c6e880.wgsl.expected.glsl @@ -1,6 +1,6 @@ SKIP: FAILED -intrinsics/gen/isNormal/c6e880.wgsl:28:19 warning: use of deprecated intrinsic +builtins/gen/isNormal/c6e880.wgsl:28:19 warning: use of deprecated builtin var res: bool = isNormal(1.0); ^^^^^^^^ @@ -31,9 +31,9 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'asuint' : no matching overloaded function found +ERROR: 0:5: 'asuint' : no matching overloaded function found ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp uint' -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -61,9 +61,9 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'asuint' : no matching overloaded function found +ERROR: 0:5: 'asuint' : no matching overloaded function found ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump uint' -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -92,9 +92,9 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'asuint' : no matching overloaded function found +ERROR: 0:5: 'asuint' : no matching overloaded function found ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp uint' -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.hlsl b/test/builtins/gen/isNormal/c6e880.wgsl.expected.hlsl similarity index 90% rename from test/intrinsics/gen/isNormal/c6e880.wgsl.expected.hlsl rename to test/builtins/gen/isNormal/c6e880.wgsl.expected.hlsl index 5ef69b6389..c54510c992 100644 --- a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.hlsl +++ b/test/builtins/gen/isNormal/c6e880.wgsl.expected.hlsl @@ -1,4 +1,4 @@ -intrinsics/gen/isNormal/c6e880.wgsl:28:19 warning: use of deprecated intrinsic +builtins/gen/isNormal/c6e880.wgsl:28:19 warning: use of deprecated builtin var res: bool = isNormal(1.0); ^^^^^^^^ diff --git a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.msl b/test/builtins/gen/isNormal/c6e880.wgsl.expected.msl similarity index 88% rename from test/intrinsics/gen/isNormal/c6e880.wgsl.expected.msl rename to test/builtins/gen/isNormal/c6e880.wgsl.expected.msl index 148fa0a733..94dd83f300 100644 --- a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.msl +++ b/test/builtins/gen/isNormal/c6e880.wgsl.expected.msl @@ -1,4 +1,4 @@ -intrinsics/gen/isNormal/c6e880.wgsl:28:19 warning: use of deprecated intrinsic +builtins/gen/isNormal/c6e880.wgsl:28:19 warning: use of deprecated builtin var res: bool = isNormal(1.0); ^^^^^^^^ diff --git a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.spvasm b/test/builtins/gen/isNormal/c6e880.wgsl.expected.spvasm similarity index 97% rename from test/intrinsics/gen/isNormal/c6e880.wgsl.expected.spvasm rename to test/builtins/gen/isNormal/c6e880.wgsl.expected.spvasm index 98da25d944..9e1e207f37 100644 --- a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.spvasm +++ b/test/builtins/gen/isNormal/c6e880.wgsl.expected.spvasm @@ -1,4 +1,4 @@ -intrinsics/gen/isNormal/c6e880.wgsl:28:19 warning: use of deprecated intrinsic +builtins/gen/isNormal/c6e880.wgsl:28:19 warning: use of deprecated builtin var res: bool = isNormal(1.0); ^^^^^^^^ diff --git a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.wgsl b/test/builtins/gen/isNormal/c6e880.wgsl.expected.wgsl similarity index 82% rename from test/intrinsics/gen/isNormal/c6e880.wgsl.expected.wgsl rename to test/builtins/gen/isNormal/c6e880.wgsl.expected.wgsl index 1dc6685813..2f156b5e3a 100644 --- a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.wgsl +++ b/test/builtins/gen/isNormal/c6e880.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -intrinsics/gen/isNormal/c6e880.wgsl:28:19 warning: use of deprecated intrinsic +builtins/gen/isNormal/c6e880.wgsl:28:19 warning: use of deprecated builtin var res: bool = isNormal(1.0); ^^^^^^^^ diff --git a/test/intrinsics/gen/ldexp/a31cdc.wgsl b/test/builtins/gen/ldexp/a31cdc.wgsl similarity index 89% rename from test/intrinsics/gen/ldexp/a31cdc.wgsl rename to test/builtins/gen/ldexp/a31cdc.wgsl index 2994d5fad8..575bccad69 100644 --- a/test/intrinsics/gen/ldexp/a31cdc.wgsl +++ b/test/builtins/gen/ldexp/a31cdc.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/ldexp/a31cdc.wgsl.expected.glsl b/test/builtins/gen/ldexp/a31cdc.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/ldexp/a31cdc.wgsl.expected.glsl rename to test/builtins/gen/ldexp/a31cdc.wgsl.expected.glsl diff --git a/test/intrinsics/gen/ldexp/a31cdc.wgsl.expected.hlsl b/test/builtins/gen/ldexp/a31cdc.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/ldexp/a31cdc.wgsl.expected.hlsl rename to test/builtins/gen/ldexp/a31cdc.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/ldexp/a31cdc.wgsl.expected.msl b/test/builtins/gen/ldexp/a31cdc.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/ldexp/a31cdc.wgsl.expected.msl rename to test/builtins/gen/ldexp/a31cdc.wgsl.expected.msl diff --git a/test/intrinsics/gen/ldexp/a31cdc.wgsl.expected.spvasm b/test/builtins/gen/ldexp/a31cdc.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/ldexp/a31cdc.wgsl.expected.spvasm rename to test/builtins/gen/ldexp/a31cdc.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/ldexp/a31cdc.wgsl.expected.wgsl b/test/builtins/gen/ldexp/a31cdc.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/ldexp/a31cdc.wgsl.expected.wgsl rename to test/builtins/gen/ldexp/a31cdc.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/ldexp/abd718.wgsl b/test/builtins/gen/ldexp/abd718.wgsl similarity index 89% rename from test/intrinsics/gen/ldexp/abd718.wgsl rename to test/builtins/gen/ldexp/abd718.wgsl index 5fec17846b..9d03bd8537 100644 --- a/test/intrinsics/gen/ldexp/abd718.wgsl +++ b/test/builtins/gen/ldexp/abd718.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/ldexp/abd718.wgsl.expected.glsl b/test/builtins/gen/ldexp/abd718.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/ldexp/abd718.wgsl.expected.glsl rename to test/builtins/gen/ldexp/abd718.wgsl.expected.glsl diff --git a/test/intrinsics/gen/ldexp/abd718.wgsl.expected.hlsl b/test/builtins/gen/ldexp/abd718.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/ldexp/abd718.wgsl.expected.hlsl rename to test/builtins/gen/ldexp/abd718.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/ldexp/abd718.wgsl.expected.msl b/test/builtins/gen/ldexp/abd718.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/ldexp/abd718.wgsl.expected.msl rename to test/builtins/gen/ldexp/abd718.wgsl.expected.msl diff --git a/test/intrinsics/gen/ldexp/abd718.wgsl.expected.spvasm b/test/builtins/gen/ldexp/abd718.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/ldexp/abd718.wgsl.expected.spvasm rename to test/builtins/gen/ldexp/abd718.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/ldexp/abd718.wgsl.expected.wgsl b/test/builtins/gen/ldexp/abd718.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/ldexp/abd718.wgsl.expected.wgsl rename to test/builtins/gen/ldexp/abd718.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/ldexp/cc9cde.wgsl b/test/builtins/gen/ldexp/cc9cde.wgsl similarity index 89% rename from test/intrinsics/gen/ldexp/cc9cde.wgsl rename to test/builtins/gen/ldexp/cc9cde.wgsl index 9f4702e4af..aaed15c5d3 100644 --- a/test/intrinsics/gen/ldexp/cc9cde.wgsl +++ b/test/builtins/gen/ldexp/cc9cde.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/ldexp/cc9cde.wgsl.expected.glsl b/test/builtins/gen/ldexp/cc9cde.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/ldexp/cc9cde.wgsl.expected.glsl rename to test/builtins/gen/ldexp/cc9cde.wgsl.expected.glsl diff --git a/test/intrinsics/gen/ldexp/cc9cde.wgsl.expected.hlsl b/test/builtins/gen/ldexp/cc9cde.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/ldexp/cc9cde.wgsl.expected.hlsl rename to test/builtins/gen/ldexp/cc9cde.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/ldexp/cc9cde.wgsl.expected.msl b/test/builtins/gen/ldexp/cc9cde.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/ldexp/cc9cde.wgsl.expected.msl rename to test/builtins/gen/ldexp/cc9cde.wgsl.expected.msl diff --git a/test/intrinsics/gen/ldexp/cc9cde.wgsl.expected.spvasm b/test/builtins/gen/ldexp/cc9cde.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/ldexp/cc9cde.wgsl.expected.spvasm rename to test/builtins/gen/ldexp/cc9cde.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/ldexp/cc9cde.wgsl.expected.wgsl b/test/builtins/gen/ldexp/cc9cde.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/ldexp/cc9cde.wgsl.expected.wgsl rename to test/builtins/gen/ldexp/cc9cde.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/ldexp/db8b49.wgsl b/test/builtins/gen/ldexp/db8b49.wgsl similarity index 88% rename from test/intrinsics/gen/ldexp/db8b49.wgsl rename to test/builtins/gen/ldexp/db8b49.wgsl index f0f29a1792..18a79ea826 100644 --- a/test/intrinsics/gen/ldexp/db8b49.wgsl +++ b/test/builtins/gen/ldexp/db8b49.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/ldexp/db8b49.wgsl.expected.glsl b/test/builtins/gen/ldexp/db8b49.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/ldexp/db8b49.wgsl.expected.glsl rename to test/builtins/gen/ldexp/db8b49.wgsl.expected.glsl diff --git a/test/intrinsics/gen/ldexp/db8b49.wgsl.expected.hlsl b/test/builtins/gen/ldexp/db8b49.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/ldexp/db8b49.wgsl.expected.hlsl rename to test/builtins/gen/ldexp/db8b49.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/ldexp/db8b49.wgsl.expected.msl b/test/builtins/gen/ldexp/db8b49.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/ldexp/db8b49.wgsl.expected.msl rename to test/builtins/gen/ldexp/db8b49.wgsl.expected.msl diff --git a/test/intrinsics/gen/ldexp/db8b49.wgsl.expected.spvasm b/test/builtins/gen/ldexp/db8b49.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/ldexp/db8b49.wgsl.expected.spvasm rename to test/builtins/gen/ldexp/db8b49.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/ldexp/db8b49.wgsl.expected.wgsl b/test/builtins/gen/ldexp/db8b49.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/ldexp/db8b49.wgsl.expected.wgsl rename to test/builtins/gen/ldexp/db8b49.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/length/056071.wgsl b/test/builtins/gen/length/056071.wgsl similarity index 88% rename from test/intrinsics/gen/length/056071.wgsl rename to test/builtins/gen/length/056071.wgsl index 46dfdfeaf1..dab742f05f 100644 --- a/test/intrinsics/gen/length/056071.wgsl +++ b/test/builtins/gen/length/056071.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/length/056071.wgsl.expected.glsl b/test/builtins/gen/length/056071.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/length/056071.wgsl.expected.glsl rename to test/builtins/gen/length/056071.wgsl.expected.glsl diff --git a/test/intrinsics/gen/length/056071.wgsl.expected.hlsl b/test/builtins/gen/length/056071.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/length/056071.wgsl.expected.hlsl rename to test/builtins/gen/length/056071.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/length/056071.wgsl.expected.msl b/test/builtins/gen/length/056071.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/length/056071.wgsl.expected.msl rename to test/builtins/gen/length/056071.wgsl.expected.msl diff --git a/test/intrinsics/gen/length/056071.wgsl.expected.spvasm b/test/builtins/gen/length/056071.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/length/056071.wgsl.expected.spvasm rename to test/builtins/gen/length/056071.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/length/056071.wgsl.expected.wgsl b/test/builtins/gen/length/056071.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/length/056071.wgsl.expected.wgsl rename to test/builtins/gen/length/056071.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/length/602a17.wgsl b/test/builtins/gen/length/602a17.wgsl similarity index 88% rename from test/intrinsics/gen/length/602a17.wgsl rename to test/builtins/gen/length/602a17.wgsl index 4458a540a9..092a024c7e 100644 --- a/test/intrinsics/gen/length/602a17.wgsl +++ b/test/builtins/gen/length/602a17.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/length/602a17.wgsl.expected.glsl b/test/builtins/gen/length/602a17.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/length/602a17.wgsl.expected.glsl rename to test/builtins/gen/length/602a17.wgsl.expected.glsl diff --git a/test/intrinsics/gen/length/602a17.wgsl.expected.hlsl b/test/builtins/gen/length/602a17.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/length/602a17.wgsl.expected.hlsl rename to test/builtins/gen/length/602a17.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/length/602a17.wgsl.expected.msl b/test/builtins/gen/length/602a17.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/length/602a17.wgsl.expected.msl rename to test/builtins/gen/length/602a17.wgsl.expected.msl diff --git a/test/intrinsics/gen/length/602a17.wgsl.expected.spvasm b/test/builtins/gen/length/602a17.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/length/602a17.wgsl.expected.spvasm rename to test/builtins/gen/length/602a17.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/length/602a17.wgsl.expected.wgsl b/test/builtins/gen/length/602a17.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/length/602a17.wgsl.expected.wgsl rename to test/builtins/gen/length/602a17.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/length/afde8b.wgsl b/test/builtins/gen/length/afde8b.wgsl similarity index 88% rename from test/intrinsics/gen/length/afde8b.wgsl rename to test/builtins/gen/length/afde8b.wgsl index 0e7faf2d4b..eb77530446 100644 --- a/test/intrinsics/gen/length/afde8b.wgsl +++ b/test/builtins/gen/length/afde8b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/length/afde8b.wgsl.expected.glsl b/test/builtins/gen/length/afde8b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/length/afde8b.wgsl.expected.glsl rename to test/builtins/gen/length/afde8b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/length/afde8b.wgsl.expected.hlsl b/test/builtins/gen/length/afde8b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/length/afde8b.wgsl.expected.hlsl rename to test/builtins/gen/length/afde8b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/length/afde8b.wgsl.expected.msl b/test/builtins/gen/length/afde8b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/length/afde8b.wgsl.expected.msl rename to test/builtins/gen/length/afde8b.wgsl.expected.msl diff --git a/test/intrinsics/gen/length/afde8b.wgsl.expected.spvasm b/test/builtins/gen/length/afde8b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/length/afde8b.wgsl.expected.spvasm rename to test/builtins/gen/length/afde8b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/length/afde8b.wgsl.expected.wgsl b/test/builtins/gen/length/afde8b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/length/afde8b.wgsl.expected.wgsl rename to test/builtins/gen/length/afde8b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/length/becebf.wgsl b/test/builtins/gen/length/becebf.wgsl similarity index 88% rename from test/intrinsics/gen/length/becebf.wgsl rename to test/builtins/gen/length/becebf.wgsl index 5029412f16..ca992f12da 100644 --- a/test/intrinsics/gen/length/becebf.wgsl +++ b/test/builtins/gen/length/becebf.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/length/becebf.wgsl.expected.glsl b/test/builtins/gen/length/becebf.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/length/becebf.wgsl.expected.glsl rename to test/builtins/gen/length/becebf.wgsl.expected.glsl diff --git a/test/intrinsics/gen/length/becebf.wgsl.expected.hlsl b/test/builtins/gen/length/becebf.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/length/becebf.wgsl.expected.hlsl rename to test/builtins/gen/length/becebf.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/length/becebf.wgsl.expected.msl b/test/builtins/gen/length/becebf.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/length/becebf.wgsl.expected.msl rename to test/builtins/gen/length/becebf.wgsl.expected.msl diff --git a/test/intrinsics/gen/length/becebf.wgsl.expected.spvasm b/test/builtins/gen/length/becebf.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/length/becebf.wgsl.expected.spvasm rename to test/builtins/gen/length/becebf.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/length/becebf.wgsl.expected.wgsl b/test/builtins/gen/length/becebf.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/length/becebf.wgsl.expected.wgsl rename to test/builtins/gen/length/becebf.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/log/3da25a.wgsl b/test/builtins/gen/log/3da25a.wgsl similarity index 88% rename from test/intrinsics/gen/log/3da25a.wgsl rename to test/builtins/gen/log/3da25a.wgsl index 12e9fe34aa..6504dc19c7 100644 --- a/test/intrinsics/gen/log/3da25a.wgsl +++ b/test/builtins/gen/log/3da25a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/log/3da25a.wgsl.expected.glsl b/test/builtins/gen/log/3da25a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/log/3da25a.wgsl.expected.glsl rename to test/builtins/gen/log/3da25a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/log/3da25a.wgsl.expected.hlsl b/test/builtins/gen/log/3da25a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/log/3da25a.wgsl.expected.hlsl rename to test/builtins/gen/log/3da25a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/log/3da25a.wgsl.expected.msl b/test/builtins/gen/log/3da25a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/log/3da25a.wgsl.expected.msl rename to test/builtins/gen/log/3da25a.wgsl.expected.msl diff --git a/test/intrinsics/gen/log/3da25a.wgsl.expected.spvasm b/test/builtins/gen/log/3da25a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/log/3da25a.wgsl.expected.spvasm rename to test/builtins/gen/log/3da25a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/log/3da25a.wgsl.expected.wgsl b/test/builtins/gen/log/3da25a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/log/3da25a.wgsl.expected.wgsl rename to test/builtins/gen/log/3da25a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/log/7114a6.wgsl b/test/builtins/gen/log/7114a6.wgsl similarity index 88% rename from test/intrinsics/gen/log/7114a6.wgsl rename to test/builtins/gen/log/7114a6.wgsl index 0332f5b484..d37f9f9391 100644 --- a/test/intrinsics/gen/log/7114a6.wgsl +++ b/test/builtins/gen/log/7114a6.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/log/7114a6.wgsl.expected.glsl b/test/builtins/gen/log/7114a6.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/log/7114a6.wgsl.expected.glsl rename to test/builtins/gen/log/7114a6.wgsl.expected.glsl diff --git a/test/intrinsics/gen/log/7114a6.wgsl.expected.hlsl b/test/builtins/gen/log/7114a6.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/log/7114a6.wgsl.expected.hlsl rename to test/builtins/gen/log/7114a6.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/log/7114a6.wgsl.expected.msl b/test/builtins/gen/log/7114a6.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/log/7114a6.wgsl.expected.msl rename to test/builtins/gen/log/7114a6.wgsl.expected.msl diff --git a/test/intrinsics/gen/log/7114a6.wgsl.expected.spvasm b/test/builtins/gen/log/7114a6.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/log/7114a6.wgsl.expected.spvasm rename to test/builtins/gen/log/7114a6.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/log/7114a6.wgsl.expected.wgsl b/test/builtins/gen/log/7114a6.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/log/7114a6.wgsl.expected.wgsl rename to test/builtins/gen/log/7114a6.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/log/b2ce28.wgsl b/test/builtins/gen/log/b2ce28.wgsl similarity index 88% rename from test/intrinsics/gen/log/b2ce28.wgsl rename to test/builtins/gen/log/b2ce28.wgsl index be0a07bea1..38e21d5c9f 100644 --- a/test/intrinsics/gen/log/b2ce28.wgsl +++ b/test/builtins/gen/log/b2ce28.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/log/b2ce28.wgsl.expected.glsl b/test/builtins/gen/log/b2ce28.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/log/b2ce28.wgsl.expected.glsl rename to test/builtins/gen/log/b2ce28.wgsl.expected.glsl diff --git a/test/intrinsics/gen/log/b2ce28.wgsl.expected.hlsl b/test/builtins/gen/log/b2ce28.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/log/b2ce28.wgsl.expected.hlsl rename to test/builtins/gen/log/b2ce28.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/log/b2ce28.wgsl.expected.msl b/test/builtins/gen/log/b2ce28.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/log/b2ce28.wgsl.expected.msl rename to test/builtins/gen/log/b2ce28.wgsl.expected.msl diff --git a/test/intrinsics/gen/log/b2ce28.wgsl.expected.spvasm b/test/builtins/gen/log/b2ce28.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/log/b2ce28.wgsl.expected.spvasm rename to test/builtins/gen/log/b2ce28.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/log/b2ce28.wgsl.expected.wgsl b/test/builtins/gen/log/b2ce28.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/log/b2ce28.wgsl.expected.wgsl rename to test/builtins/gen/log/b2ce28.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/log/f4c570.wgsl b/test/builtins/gen/log/f4c570.wgsl similarity index 88% rename from test/intrinsics/gen/log/f4c570.wgsl rename to test/builtins/gen/log/f4c570.wgsl index e705146812..62edf1307c 100644 --- a/test/intrinsics/gen/log/f4c570.wgsl +++ b/test/builtins/gen/log/f4c570.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/log/f4c570.wgsl.expected.glsl b/test/builtins/gen/log/f4c570.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/log/f4c570.wgsl.expected.glsl rename to test/builtins/gen/log/f4c570.wgsl.expected.glsl diff --git a/test/intrinsics/gen/log/f4c570.wgsl.expected.hlsl b/test/builtins/gen/log/f4c570.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/log/f4c570.wgsl.expected.hlsl rename to test/builtins/gen/log/f4c570.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/log/f4c570.wgsl.expected.msl b/test/builtins/gen/log/f4c570.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/log/f4c570.wgsl.expected.msl rename to test/builtins/gen/log/f4c570.wgsl.expected.msl diff --git a/test/intrinsics/gen/log/f4c570.wgsl.expected.spvasm b/test/builtins/gen/log/f4c570.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/log/f4c570.wgsl.expected.spvasm rename to test/builtins/gen/log/f4c570.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/log/f4c570.wgsl.expected.wgsl b/test/builtins/gen/log/f4c570.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/log/f4c570.wgsl.expected.wgsl rename to test/builtins/gen/log/f4c570.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/log2/4036ed.wgsl b/test/builtins/gen/log2/4036ed.wgsl similarity index 88% rename from test/intrinsics/gen/log2/4036ed.wgsl rename to test/builtins/gen/log2/4036ed.wgsl index 0932fb4dfd..9f08fb0340 100644 --- a/test/intrinsics/gen/log2/4036ed.wgsl +++ b/test/builtins/gen/log2/4036ed.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/log2/4036ed.wgsl.expected.glsl b/test/builtins/gen/log2/4036ed.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/log2/4036ed.wgsl.expected.glsl rename to test/builtins/gen/log2/4036ed.wgsl.expected.glsl diff --git a/test/intrinsics/gen/log2/4036ed.wgsl.expected.hlsl b/test/builtins/gen/log2/4036ed.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/log2/4036ed.wgsl.expected.hlsl rename to test/builtins/gen/log2/4036ed.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/log2/4036ed.wgsl.expected.msl b/test/builtins/gen/log2/4036ed.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/log2/4036ed.wgsl.expected.msl rename to test/builtins/gen/log2/4036ed.wgsl.expected.msl diff --git a/test/intrinsics/gen/log2/4036ed.wgsl.expected.spvasm b/test/builtins/gen/log2/4036ed.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/log2/4036ed.wgsl.expected.spvasm rename to test/builtins/gen/log2/4036ed.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/log2/4036ed.wgsl.expected.wgsl b/test/builtins/gen/log2/4036ed.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/log2/4036ed.wgsl.expected.wgsl rename to test/builtins/gen/log2/4036ed.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/log2/902988.wgsl b/test/builtins/gen/log2/902988.wgsl similarity index 88% rename from test/intrinsics/gen/log2/902988.wgsl rename to test/builtins/gen/log2/902988.wgsl index 83325a292b..e3ed97fe13 100644 --- a/test/intrinsics/gen/log2/902988.wgsl +++ b/test/builtins/gen/log2/902988.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/log2/902988.wgsl.expected.glsl b/test/builtins/gen/log2/902988.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/log2/902988.wgsl.expected.glsl rename to test/builtins/gen/log2/902988.wgsl.expected.glsl diff --git a/test/intrinsics/gen/log2/902988.wgsl.expected.hlsl b/test/builtins/gen/log2/902988.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/log2/902988.wgsl.expected.hlsl rename to test/builtins/gen/log2/902988.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/log2/902988.wgsl.expected.msl b/test/builtins/gen/log2/902988.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/log2/902988.wgsl.expected.msl rename to test/builtins/gen/log2/902988.wgsl.expected.msl diff --git a/test/intrinsics/gen/log2/902988.wgsl.expected.spvasm b/test/builtins/gen/log2/902988.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/log2/902988.wgsl.expected.spvasm rename to test/builtins/gen/log2/902988.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/log2/902988.wgsl.expected.wgsl b/test/builtins/gen/log2/902988.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/log2/902988.wgsl.expected.wgsl rename to test/builtins/gen/log2/902988.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/log2/adb233.wgsl b/test/builtins/gen/log2/adb233.wgsl similarity index 88% rename from test/intrinsics/gen/log2/adb233.wgsl rename to test/builtins/gen/log2/adb233.wgsl index f231a4a114..07ea6c1fca 100644 --- a/test/intrinsics/gen/log2/adb233.wgsl +++ b/test/builtins/gen/log2/adb233.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/log2/adb233.wgsl.expected.glsl b/test/builtins/gen/log2/adb233.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/log2/adb233.wgsl.expected.glsl rename to test/builtins/gen/log2/adb233.wgsl.expected.glsl diff --git a/test/intrinsics/gen/log2/adb233.wgsl.expected.hlsl b/test/builtins/gen/log2/adb233.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/log2/adb233.wgsl.expected.hlsl rename to test/builtins/gen/log2/adb233.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/log2/adb233.wgsl.expected.msl b/test/builtins/gen/log2/adb233.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/log2/adb233.wgsl.expected.msl rename to test/builtins/gen/log2/adb233.wgsl.expected.msl diff --git a/test/intrinsics/gen/log2/adb233.wgsl.expected.spvasm b/test/builtins/gen/log2/adb233.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/log2/adb233.wgsl.expected.spvasm rename to test/builtins/gen/log2/adb233.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/log2/adb233.wgsl.expected.wgsl b/test/builtins/gen/log2/adb233.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/log2/adb233.wgsl.expected.wgsl rename to test/builtins/gen/log2/adb233.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/log2/aea659.wgsl b/test/builtins/gen/log2/aea659.wgsl similarity index 88% rename from test/intrinsics/gen/log2/aea659.wgsl rename to test/builtins/gen/log2/aea659.wgsl index d87451184b..6b91da26a2 100644 --- a/test/intrinsics/gen/log2/aea659.wgsl +++ b/test/builtins/gen/log2/aea659.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/log2/aea659.wgsl.expected.glsl b/test/builtins/gen/log2/aea659.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/log2/aea659.wgsl.expected.glsl rename to test/builtins/gen/log2/aea659.wgsl.expected.glsl diff --git a/test/intrinsics/gen/log2/aea659.wgsl.expected.hlsl b/test/builtins/gen/log2/aea659.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/log2/aea659.wgsl.expected.hlsl rename to test/builtins/gen/log2/aea659.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/log2/aea659.wgsl.expected.msl b/test/builtins/gen/log2/aea659.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/log2/aea659.wgsl.expected.msl rename to test/builtins/gen/log2/aea659.wgsl.expected.msl diff --git a/test/intrinsics/gen/log2/aea659.wgsl.expected.spvasm b/test/builtins/gen/log2/aea659.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/log2/aea659.wgsl.expected.spvasm rename to test/builtins/gen/log2/aea659.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/log2/aea659.wgsl.expected.wgsl b/test/builtins/gen/log2/aea659.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/log2/aea659.wgsl.expected.wgsl rename to test/builtins/gen/log2/aea659.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/max/0c0aae.wgsl b/test/builtins/gen/max/0c0aae.wgsl similarity index 88% rename from test/intrinsics/gen/max/0c0aae.wgsl rename to test/builtins/gen/max/0c0aae.wgsl index 1dcd5e80ca..0f8c1333ef 100644 --- a/test/intrinsics/gen/max/0c0aae.wgsl +++ b/test/builtins/gen/max/0c0aae.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/max/0c0aae.wgsl.expected.glsl b/test/builtins/gen/max/0c0aae.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/max/0c0aae.wgsl.expected.glsl rename to test/builtins/gen/max/0c0aae.wgsl.expected.glsl diff --git a/test/intrinsics/gen/max/0c0aae.wgsl.expected.hlsl b/test/builtins/gen/max/0c0aae.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/max/0c0aae.wgsl.expected.hlsl rename to test/builtins/gen/max/0c0aae.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/max/0c0aae.wgsl.expected.msl b/test/builtins/gen/max/0c0aae.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/max/0c0aae.wgsl.expected.msl rename to test/builtins/gen/max/0c0aae.wgsl.expected.msl diff --git a/test/intrinsics/gen/max/0c0aae.wgsl.expected.spvasm b/test/builtins/gen/max/0c0aae.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/max/0c0aae.wgsl.expected.spvasm rename to test/builtins/gen/max/0c0aae.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/max/0c0aae.wgsl.expected.wgsl b/test/builtins/gen/max/0c0aae.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/max/0c0aae.wgsl.expected.wgsl rename to test/builtins/gen/max/0c0aae.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/max/25eafe.wgsl b/test/builtins/gen/max/25eafe.wgsl similarity index 89% rename from test/intrinsics/gen/max/25eafe.wgsl rename to test/builtins/gen/max/25eafe.wgsl index 238cba1f28..ecc90be0e1 100644 --- a/test/intrinsics/gen/max/25eafe.wgsl +++ b/test/builtins/gen/max/25eafe.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/max/25eafe.wgsl.expected.glsl b/test/builtins/gen/max/25eafe.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/max/25eafe.wgsl.expected.glsl rename to test/builtins/gen/max/25eafe.wgsl.expected.glsl diff --git a/test/intrinsics/gen/max/25eafe.wgsl.expected.hlsl b/test/builtins/gen/max/25eafe.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/max/25eafe.wgsl.expected.hlsl rename to test/builtins/gen/max/25eafe.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/max/25eafe.wgsl.expected.msl b/test/builtins/gen/max/25eafe.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/max/25eafe.wgsl.expected.msl rename to test/builtins/gen/max/25eafe.wgsl.expected.msl diff --git a/test/intrinsics/gen/max/25eafe.wgsl.expected.spvasm b/test/builtins/gen/max/25eafe.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/max/25eafe.wgsl.expected.spvasm rename to test/builtins/gen/max/25eafe.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/max/25eafe.wgsl.expected.wgsl b/test/builtins/gen/max/25eafe.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/max/25eafe.wgsl.expected.wgsl rename to test/builtins/gen/max/25eafe.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/max/320815.wgsl b/test/builtins/gen/max/320815.wgsl similarity index 89% rename from test/intrinsics/gen/max/320815.wgsl rename to test/builtins/gen/max/320815.wgsl index e4b11d1b36..c9e83eb872 100644 --- a/test/intrinsics/gen/max/320815.wgsl +++ b/test/builtins/gen/max/320815.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/max/320815.wgsl.expected.glsl b/test/builtins/gen/max/320815.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/max/320815.wgsl.expected.glsl rename to test/builtins/gen/max/320815.wgsl.expected.glsl diff --git a/test/intrinsics/gen/max/320815.wgsl.expected.hlsl b/test/builtins/gen/max/320815.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/max/320815.wgsl.expected.hlsl rename to test/builtins/gen/max/320815.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/max/320815.wgsl.expected.msl b/test/builtins/gen/max/320815.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/max/320815.wgsl.expected.msl rename to test/builtins/gen/max/320815.wgsl.expected.msl diff --git a/test/intrinsics/gen/max/320815.wgsl.expected.spvasm b/test/builtins/gen/max/320815.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/max/320815.wgsl.expected.spvasm rename to test/builtins/gen/max/320815.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/max/320815.wgsl.expected.wgsl b/test/builtins/gen/max/320815.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/max/320815.wgsl.expected.wgsl rename to test/builtins/gen/max/320815.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/max/44a39d.wgsl b/test/builtins/gen/max/44a39d.wgsl similarity index 88% rename from test/intrinsics/gen/max/44a39d.wgsl rename to test/builtins/gen/max/44a39d.wgsl index 9af6704e5e..882e4e3e1d 100644 --- a/test/intrinsics/gen/max/44a39d.wgsl +++ b/test/builtins/gen/max/44a39d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/max/44a39d.wgsl.expected.glsl b/test/builtins/gen/max/44a39d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/max/44a39d.wgsl.expected.glsl rename to test/builtins/gen/max/44a39d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/max/44a39d.wgsl.expected.hlsl b/test/builtins/gen/max/44a39d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/max/44a39d.wgsl.expected.hlsl rename to test/builtins/gen/max/44a39d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/max/44a39d.wgsl.expected.msl b/test/builtins/gen/max/44a39d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/max/44a39d.wgsl.expected.msl rename to test/builtins/gen/max/44a39d.wgsl.expected.msl diff --git a/test/intrinsics/gen/max/44a39d.wgsl.expected.spvasm b/test/builtins/gen/max/44a39d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/max/44a39d.wgsl.expected.spvasm rename to test/builtins/gen/max/44a39d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/max/44a39d.wgsl.expected.wgsl b/test/builtins/gen/max/44a39d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/max/44a39d.wgsl.expected.wgsl rename to test/builtins/gen/max/44a39d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/max/453e04.wgsl b/test/builtins/gen/max/453e04.wgsl similarity index 89% rename from test/intrinsics/gen/max/453e04.wgsl rename to test/builtins/gen/max/453e04.wgsl index b3813d96a4..8b62913d32 100644 --- a/test/intrinsics/gen/max/453e04.wgsl +++ b/test/builtins/gen/max/453e04.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/max/453e04.wgsl.expected.glsl b/test/builtins/gen/max/453e04.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/max/453e04.wgsl.expected.glsl rename to test/builtins/gen/max/453e04.wgsl.expected.glsl diff --git a/test/intrinsics/gen/max/453e04.wgsl.expected.hlsl b/test/builtins/gen/max/453e04.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/max/453e04.wgsl.expected.hlsl rename to test/builtins/gen/max/453e04.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/max/453e04.wgsl.expected.msl b/test/builtins/gen/max/453e04.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/max/453e04.wgsl.expected.msl rename to test/builtins/gen/max/453e04.wgsl.expected.msl diff --git a/test/intrinsics/gen/max/453e04.wgsl.expected.spvasm b/test/builtins/gen/max/453e04.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/max/453e04.wgsl.expected.spvasm rename to test/builtins/gen/max/453e04.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/max/453e04.wgsl.expected.wgsl b/test/builtins/gen/max/453e04.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/max/453e04.wgsl.expected.wgsl rename to test/builtins/gen/max/453e04.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/max/462050.wgsl b/test/builtins/gen/max/462050.wgsl similarity index 89% rename from test/intrinsics/gen/max/462050.wgsl rename to test/builtins/gen/max/462050.wgsl index 03523b97ad..2e2bcaf0c1 100644 --- a/test/intrinsics/gen/max/462050.wgsl +++ b/test/builtins/gen/max/462050.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/max/462050.wgsl.expected.glsl b/test/builtins/gen/max/462050.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/max/462050.wgsl.expected.glsl rename to test/builtins/gen/max/462050.wgsl.expected.glsl diff --git a/test/intrinsics/gen/max/462050.wgsl.expected.hlsl b/test/builtins/gen/max/462050.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/max/462050.wgsl.expected.hlsl rename to test/builtins/gen/max/462050.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/max/462050.wgsl.expected.msl b/test/builtins/gen/max/462050.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/max/462050.wgsl.expected.msl rename to test/builtins/gen/max/462050.wgsl.expected.msl diff --git a/test/intrinsics/gen/max/462050.wgsl.expected.spvasm b/test/builtins/gen/max/462050.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/max/462050.wgsl.expected.spvasm rename to test/builtins/gen/max/462050.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/max/462050.wgsl.expected.wgsl b/test/builtins/gen/max/462050.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/max/462050.wgsl.expected.wgsl rename to test/builtins/gen/max/462050.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/max/4883ac.wgsl b/test/builtins/gen/max/4883ac.wgsl similarity index 89% rename from test/intrinsics/gen/max/4883ac.wgsl rename to test/builtins/gen/max/4883ac.wgsl index a0244ea1b5..b574471d89 100644 --- a/test/intrinsics/gen/max/4883ac.wgsl +++ b/test/builtins/gen/max/4883ac.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/max/4883ac.wgsl.expected.glsl b/test/builtins/gen/max/4883ac.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/max/4883ac.wgsl.expected.glsl rename to test/builtins/gen/max/4883ac.wgsl.expected.glsl diff --git a/test/intrinsics/gen/max/4883ac.wgsl.expected.hlsl b/test/builtins/gen/max/4883ac.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/max/4883ac.wgsl.expected.hlsl rename to test/builtins/gen/max/4883ac.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/max/4883ac.wgsl.expected.msl b/test/builtins/gen/max/4883ac.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/max/4883ac.wgsl.expected.msl rename to test/builtins/gen/max/4883ac.wgsl.expected.msl diff --git a/test/intrinsics/gen/max/4883ac.wgsl.expected.spvasm b/test/builtins/gen/max/4883ac.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/max/4883ac.wgsl.expected.spvasm rename to test/builtins/gen/max/4883ac.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/max/4883ac.wgsl.expected.wgsl b/test/builtins/gen/max/4883ac.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/max/4883ac.wgsl.expected.wgsl rename to test/builtins/gen/max/4883ac.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/max/85e6bc.wgsl b/test/builtins/gen/max/85e6bc.wgsl similarity index 89% rename from test/intrinsics/gen/max/85e6bc.wgsl rename to test/builtins/gen/max/85e6bc.wgsl index 5e8f666afc..c46eededab 100644 --- a/test/intrinsics/gen/max/85e6bc.wgsl +++ b/test/builtins/gen/max/85e6bc.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/max/85e6bc.wgsl.expected.glsl b/test/builtins/gen/max/85e6bc.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/max/85e6bc.wgsl.expected.glsl rename to test/builtins/gen/max/85e6bc.wgsl.expected.glsl diff --git a/test/intrinsics/gen/max/85e6bc.wgsl.expected.hlsl b/test/builtins/gen/max/85e6bc.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/max/85e6bc.wgsl.expected.hlsl rename to test/builtins/gen/max/85e6bc.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/max/85e6bc.wgsl.expected.msl b/test/builtins/gen/max/85e6bc.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/max/85e6bc.wgsl.expected.msl rename to test/builtins/gen/max/85e6bc.wgsl.expected.msl diff --git a/test/intrinsics/gen/max/85e6bc.wgsl.expected.spvasm b/test/builtins/gen/max/85e6bc.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/max/85e6bc.wgsl.expected.spvasm rename to test/builtins/gen/max/85e6bc.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/max/85e6bc.wgsl.expected.wgsl b/test/builtins/gen/max/85e6bc.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/max/85e6bc.wgsl.expected.wgsl rename to test/builtins/gen/max/85e6bc.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/max/a93419.wgsl b/test/builtins/gen/max/a93419.wgsl similarity index 89% rename from test/intrinsics/gen/max/a93419.wgsl rename to test/builtins/gen/max/a93419.wgsl index 4dc296afb3..a3c3d0d617 100644 --- a/test/intrinsics/gen/max/a93419.wgsl +++ b/test/builtins/gen/max/a93419.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/max/a93419.wgsl.expected.glsl b/test/builtins/gen/max/a93419.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/max/a93419.wgsl.expected.glsl rename to test/builtins/gen/max/a93419.wgsl.expected.glsl diff --git a/test/intrinsics/gen/max/a93419.wgsl.expected.hlsl b/test/builtins/gen/max/a93419.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/max/a93419.wgsl.expected.hlsl rename to test/builtins/gen/max/a93419.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/max/a93419.wgsl.expected.msl b/test/builtins/gen/max/a93419.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/max/a93419.wgsl.expected.msl rename to test/builtins/gen/max/a93419.wgsl.expected.msl diff --git a/test/intrinsics/gen/max/a93419.wgsl.expected.spvasm b/test/builtins/gen/max/a93419.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/max/a93419.wgsl.expected.spvasm rename to test/builtins/gen/max/a93419.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/max/a93419.wgsl.expected.wgsl b/test/builtins/gen/max/a93419.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/max/a93419.wgsl.expected.wgsl rename to test/builtins/gen/max/a93419.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/max/b1b73a.wgsl b/test/builtins/gen/max/b1b73a.wgsl similarity index 89% rename from test/intrinsics/gen/max/b1b73a.wgsl rename to test/builtins/gen/max/b1b73a.wgsl index 17a9808ce4..40cc26cffe 100644 --- a/test/intrinsics/gen/max/b1b73a.wgsl +++ b/test/builtins/gen/max/b1b73a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/max/b1b73a.wgsl.expected.glsl b/test/builtins/gen/max/b1b73a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/max/b1b73a.wgsl.expected.glsl rename to test/builtins/gen/max/b1b73a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/max/b1b73a.wgsl.expected.hlsl b/test/builtins/gen/max/b1b73a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/max/b1b73a.wgsl.expected.hlsl rename to test/builtins/gen/max/b1b73a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/max/b1b73a.wgsl.expected.msl b/test/builtins/gen/max/b1b73a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/max/b1b73a.wgsl.expected.msl rename to test/builtins/gen/max/b1b73a.wgsl.expected.msl diff --git a/test/intrinsics/gen/max/b1b73a.wgsl.expected.spvasm b/test/builtins/gen/max/b1b73a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/max/b1b73a.wgsl.expected.spvasm rename to test/builtins/gen/max/b1b73a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/max/b1b73a.wgsl.expected.wgsl b/test/builtins/gen/max/b1b73a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/max/b1b73a.wgsl.expected.wgsl rename to test/builtins/gen/max/b1b73a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/max/ce7c30.wgsl b/test/builtins/gen/max/ce7c30.wgsl similarity index 88% rename from test/intrinsics/gen/max/ce7c30.wgsl rename to test/builtins/gen/max/ce7c30.wgsl index 167bd6c915..6673713ddc 100644 --- a/test/intrinsics/gen/max/ce7c30.wgsl +++ b/test/builtins/gen/max/ce7c30.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/max/ce7c30.wgsl.expected.glsl b/test/builtins/gen/max/ce7c30.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/max/ce7c30.wgsl.expected.glsl rename to test/builtins/gen/max/ce7c30.wgsl.expected.glsl diff --git a/test/intrinsics/gen/max/ce7c30.wgsl.expected.hlsl b/test/builtins/gen/max/ce7c30.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/max/ce7c30.wgsl.expected.hlsl rename to test/builtins/gen/max/ce7c30.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/max/ce7c30.wgsl.expected.msl b/test/builtins/gen/max/ce7c30.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/max/ce7c30.wgsl.expected.msl rename to test/builtins/gen/max/ce7c30.wgsl.expected.msl diff --git a/test/intrinsics/gen/max/ce7c30.wgsl.expected.spvasm b/test/builtins/gen/max/ce7c30.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/max/ce7c30.wgsl.expected.spvasm rename to test/builtins/gen/max/ce7c30.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/max/ce7c30.wgsl.expected.wgsl b/test/builtins/gen/max/ce7c30.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/max/ce7c30.wgsl.expected.wgsl rename to test/builtins/gen/max/ce7c30.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/max/e8192f.wgsl b/test/builtins/gen/max/e8192f.wgsl similarity index 89% rename from test/intrinsics/gen/max/e8192f.wgsl rename to test/builtins/gen/max/e8192f.wgsl index 3691990882..cd111e3d37 100644 --- a/test/intrinsics/gen/max/e8192f.wgsl +++ b/test/builtins/gen/max/e8192f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/max/e8192f.wgsl.expected.glsl b/test/builtins/gen/max/e8192f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/max/e8192f.wgsl.expected.glsl rename to test/builtins/gen/max/e8192f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/max/e8192f.wgsl.expected.hlsl b/test/builtins/gen/max/e8192f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/max/e8192f.wgsl.expected.hlsl rename to test/builtins/gen/max/e8192f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/max/e8192f.wgsl.expected.msl b/test/builtins/gen/max/e8192f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/max/e8192f.wgsl.expected.msl rename to test/builtins/gen/max/e8192f.wgsl.expected.msl diff --git a/test/intrinsics/gen/max/e8192f.wgsl.expected.spvasm b/test/builtins/gen/max/e8192f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/max/e8192f.wgsl.expected.spvasm rename to test/builtins/gen/max/e8192f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/max/e8192f.wgsl.expected.wgsl b/test/builtins/gen/max/e8192f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/max/e8192f.wgsl.expected.wgsl rename to test/builtins/gen/max/e8192f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/min/03c7e3.wgsl b/test/builtins/gen/min/03c7e3.wgsl similarity index 89% rename from test/intrinsics/gen/min/03c7e3.wgsl rename to test/builtins/gen/min/03c7e3.wgsl index ed5cb3d8e4..7a2690f7fd 100644 --- a/test/intrinsics/gen/min/03c7e3.wgsl +++ b/test/builtins/gen/min/03c7e3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/min/03c7e3.wgsl.expected.glsl b/test/builtins/gen/min/03c7e3.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/min/03c7e3.wgsl.expected.glsl rename to test/builtins/gen/min/03c7e3.wgsl.expected.glsl diff --git a/test/intrinsics/gen/min/03c7e3.wgsl.expected.hlsl b/test/builtins/gen/min/03c7e3.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/min/03c7e3.wgsl.expected.hlsl rename to test/builtins/gen/min/03c7e3.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/min/03c7e3.wgsl.expected.msl b/test/builtins/gen/min/03c7e3.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/min/03c7e3.wgsl.expected.msl rename to test/builtins/gen/min/03c7e3.wgsl.expected.msl diff --git a/test/intrinsics/gen/min/03c7e3.wgsl.expected.spvasm b/test/builtins/gen/min/03c7e3.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/min/03c7e3.wgsl.expected.spvasm rename to test/builtins/gen/min/03c7e3.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/min/03c7e3.wgsl.expected.wgsl b/test/builtins/gen/min/03c7e3.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/min/03c7e3.wgsl.expected.wgsl rename to test/builtins/gen/min/03c7e3.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/min/0dc614.wgsl b/test/builtins/gen/min/0dc614.wgsl similarity index 89% rename from test/intrinsics/gen/min/0dc614.wgsl rename to test/builtins/gen/min/0dc614.wgsl index 976011ec94..4b937bc8d5 100644 --- a/test/intrinsics/gen/min/0dc614.wgsl +++ b/test/builtins/gen/min/0dc614.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/min/0dc614.wgsl.expected.glsl b/test/builtins/gen/min/0dc614.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/min/0dc614.wgsl.expected.glsl rename to test/builtins/gen/min/0dc614.wgsl.expected.glsl diff --git a/test/intrinsics/gen/min/0dc614.wgsl.expected.hlsl b/test/builtins/gen/min/0dc614.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/min/0dc614.wgsl.expected.hlsl rename to test/builtins/gen/min/0dc614.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/min/0dc614.wgsl.expected.msl b/test/builtins/gen/min/0dc614.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/min/0dc614.wgsl.expected.msl rename to test/builtins/gen/min/0dc614.wgsl.expected.msl diff --git a/test/intrinsics/gen/min/0dc614.wgsl.expected.spvasm b/test/builtins/gen/min/0dc614.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/min/0dc614.wgsl.expected.spvasm rename to test/builtins/gen/min/0dc614.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/min/0dc614.wgsl.expected.wgsl b/test/builtins/gen/min/0dc614.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/min/0dc614.wgsl.expected.wgsl rename to test/builtins/gen/min/0dc614.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/min/3941e1.wgsl b/test/builtins/gen/min/3941e1.wgsl similarity index 89% rename from test/intrinsics/gen/min/3941e1.wgsl rename to test/builtins/gen/min/3941e1.wgsl index b45498fbc8..2e263fe847 100644 --- a/test/intrinsics/gen/min/3941e1.wgsl +++ b/test/builtins/gen/min/3941e1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/min/3941e1.wgsl.expected.glsl b/test/builtins/gen/min/3941e1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/min/3941e1.wgsl.expected.glsl rename to test/builtins/gen/min/3941e1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/min/3941e1.wgsl.expected.hlsl b/test/builtins/gen/min/3941e1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/min/3941e1.wgsl.expected.hlsl rename to test/builtins/gen/min/3941e1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/min/3941e1.wgsl.expected.msl b/test/builtins/gen/min/3941e1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/min/3941e1.wgsl.expected.msl rename to test/builtins/gen/min/3941e1.wgsl.expected.msl diff --git a/test/intrinsics/gen/min/3941e1.wgsl.expected.spvasm b/test/builtins/gen/min/3941e1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/min/3941e1.wgsl.expected.spvasm rename to test/builtins/gen/min/3941e1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/min/3941e1.wgsl.expected.wgsl b/test/builtins/gen/min/3941e1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/min/3941e1.wgsl.expected.wgsl rename to test/builtins/gen/min/3941e1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/min/46c5d3.wgsl b/test/builtins/gen/min/46c5d3.wgsl similarity index 88% rename from test/intrinsics/gen/min/46c5d3.wgsl rename to test/builtins/gen/min/46c5d3.wgsl index b3d871093e..730fe948e6 100644 --- a/test/intrinsics/gen/min/46c5d3.wgsl +++ b/test/builtins/gen/min/46c5d3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/min/46c5d3.wgsl.expected.glsl b/test/builtins/gen/min/46c5d3.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/min/46c5d3.wgsl.expected.glsl rename to test/builtins/gen/min/46c5d3.wgsl.expected.glsl diff --git a/test/intrinsics/gen/min/46c5d3.wgsl.expected.hlsl b/test/builtins/gen/min/46c5d3.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/min/46c5d3.wgsl.expected.hlsl rename to test/builtins/gen/min/46c5d3.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/min/46c5d3.wgsl.expected.msl b/test/builtins/gen/min/46c5d3.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/min/46c5d3.wgsl.expected.msl rename to test/builtins/gen/min/46c5d3.wgsl.expected.msl diff --git a/test/intrinsics/gen/min/46c5d3.wgsl.expected.spvasm b/test/builtins/gen/min/46c5d3.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/min/46c5d3.wgsl.expected.spvasm rename to test/builtins/gen/min/46c5d3.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/min/46c5d3.wgsl.expected.wgsl b/test/builtins/gen/min/46c5d3.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/min/46c5d3.wgsl.expected.wgsl rename to test/builtins/gen/min/46c5d3.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/min/82b28f.wgsl b/test/builtins/gen/min/82b28f.wgsl similarity index 89% rename from test/intrinsics/gen/min/82b28f.wgsl rename to test/builtins/gen/min/82b28f.wgsl index 01dfafdffc..def0748961 100644 --- a/test/intrinsics/gen/min/82b28f.wgsl +++ b/test/builtins/gen/min/82b28f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/min/82b28f.wgsl.expected.glsl b/test/builtins/gen/min/82b28f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/min/82b28f.wgsl.expected.glsl rename to test/builtins/gen/min/82b28f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/min/82b28f.wgsl.expected.hlsl b/test/builtins/gen/min/82b28f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/min/82b28f.wgsl.expected.hlsl rename to test/builtins/gen/min/82b28f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/min/82b28f.wgsl.expected.msl b/test/builtins/gen/min/82b28f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/min/82b28f.wgsl.expected.msl rename to test/builtins/gen/min/82b28f.wgsl.expected.msl diff --git a/test/intrinsics/gen/min/82b28f.wgsl.expected.spvasm b/test/builtins/gen/min/82b28f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/min/82b28f.wgsl.expected.spvasm rename to test/builtins/gen/min/82b28f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/min/82b28f.wgsl.expected.wgsl b/test/builtins/gen/min/82b28f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/min/82b28f.wgsl.expected.wgsl rename to test/builtins/gen/min/82b28f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/min/93cfc4.wgsl b/test/builtins/gen/min/93cfc4.wgsl similarity index 89% rename from test/intrinsics/gen/min/93cfc4.wgsl rename to test/builtins/gen/min/93cfc4.wgsl index 91bc5af640..66c46b78b6 100644 --- a/test/intrinsics/gen/min/93cfc4.wgsl +++ b/test/builtins/gen/min/93cfc4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/min/93cfc4.wgsl.expected.glsl b/test/builtins/gen/min/93cfc4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/min/93cfc4.wgsl.expected.glsl rename to test/builtins/gen/min/93cfc4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/min/93cfc4.wgsl.expected.hlsl b/test/builtins/gen/min/93cfc4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/min/93cfc4.wgsl.expected.hlsl rename to test/builtins/gen/min/93cfc4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/min/93cfc4.wgsl.expected.msl b/test/builtins/gen/min/93cfc4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/min/93cfc4.wgsl.expected.msl rename to test/builtins/gen/min/93cfc4.wgsl.expected.msl diff --git a/test/intrinsics/gen/min/93cfc4.wgsl.expected.spvasm b/test/builtins/gen/min/93cfc4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/min/93cfc4.wgsl.expected.spvasm rename to test/builtins/gen/min/93cfc4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/min/93cfc4.wgsl.expected.wgsl b/test/builtins/gen/min/93cfc4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/min/93cfc4.wgsl.expected.wgsl rename to test/builtins/gen/min/93cfc4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/min/a45171.wgsl b/test/builtins/gen/min/a45171.wgsl similarity index 89% rename from test/intrinsics/gen/min/a45171.wgsl rename to test/builtins/gen/min/a45171.wgsl index 01b49b44c4..eb640de6a7 100644 --- a/test/intrinsics/gen/min/a45171.wgsl +++ b/test/builtins/gen/min/a45171.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/min/a45171.wgsl.expected.glsl b/test/builtins/gen/min/a45171.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/min/a45171.wgsl.expected.glsl rename to test/builtins/gen/min/a45171.wgsl.expected.glsl diff --git a/test/intrinsics/gen/min/a45171.wgsl.expected.hlsl b/test/builtins/gen/min/a45171.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/min/a45171.wgsl.expected.hlsl rename to test/builtins/gen/min/a45171.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/min/a45171.wgsl.expected.msl b/test/builtins/gen/min/a45171.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/min/a45171.wgsl.expected.msl rename to test/builtins/gen/min/a45171.wgsl.expected.msl diff --git a/test/intrinsics/gen/min/a45171.wgsl.expected.spvasm b/test/builtins/gen/min/a45171.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/min/a45171.wgsl.expected.spvasm rename to test/builtins/gen/min/a45171.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/min/a45171.wgsl.expected.wgsl b/test/builtins/gen/min/a45171.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/min/a45171.wgsl.expected.wgsl rename to test/builtins/gen/min/a45171.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/min/aa28ad.wgsl b/test/builtins/gen/min/aa28ad.wgsl similarity index 89% rename from test/intrinsics/gen/min/aa28ad.wgsl rename to test/builtins/gen/min/aa28ad.wgsl index cd9775f98e..9242dece18 100644 --- a/test/intrinsics/gen/min/aa28ad.wgsl +++ b/test/builtins/gen/min/aa28ad.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/min/aa28ad.wgsl.expected.glsl b/test/builtins/gen/min/aa28ad.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/min/aa28ad.wgsl.expected.glsl rename to test/builtins/gen/min/aa28ad.wgsl.expected.glsl diff --git a/test/intrinsics/gen/min/aa28ad.wgsl.expected.hlsl b/test/builtins/gen/min/aa28ad.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/min/aa28ad.wgsl.expected.hlsl rename to test/builtins/gen/min/aa28ad.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/min/aa28ad.wgsl.expected.msl b/test/builtins/gen/min/aa28ad.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/min/aa28ad.wgsl.expected.msl rename to test/builtins/gen/min/aa28ad.wgsl.expected.msl diff --git a/test/intrinsics/gen/min/aa28ad.wgsl.expected.spvasm b/test/builtins/gen/min/aa28ad.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/min/aa28ad.wgsl.expected.spvasm rename to test/builtins/gen/min/aa28ad.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/min/aa28ad.wgsl.expected.wgsl b/test/builtins/gen/min/aa28ad.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/min/aa28ad.wgsl.expected.wgsl rename to test/builtins/gen/min/aa28ad.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/min/af326d.wgsl b/test/builtins/gen/min/af326d.wgsl similarity index 88% rename from test/intrinsics/gen/min/af326d.wgsl rename to test/builtins/gen/min/af326d.wgsl index 0a1cde9d6f..d603bcb882 100644 --- a/test/intrinsics/gen/min/af326d.wgsl +++ b/test/builtins/gen/min/af326d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/min/af326d.wgsl.expected.glsl b/test/builtins/gen/min/af326d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/min/af326d.wgsl.expected.glsl rename to test/builtins/gen/min/af326d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/min/af326d.wgsl.expected.hlsl b/test/builtins/gen/min/af326d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/min/af326d.wgsl.expected.hlsl rename to test/builtins/gen/min/af326d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/min/af326d.wgsl.expected.msl b/test/builtins/gen/min/af326d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/min/af326d.wgsl.expected.msl rename to test/builtins/gen/min/af326d.wgsl.expected.msl diff --git a/test/intrinsics/gen/min/af326d.wgsl.expected.spvasm b/test/builtins/gen/min/af326d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/min/af326d.wgsl.expected.spvasm rename to test/builtins/gen/min/af326d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/min/af326d.wgsl.expected.wgsl b/test/builtins/gen/min/af326d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/min/af326d.wgsl.expected.wgsl rename to test/builtins/gen/min/af326d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/min/c70bb7.wgsl b/test/builtins/gen/min/c70bb7.wgsl similarity index 89% rename from test/intrinsics/gen/min/c70bb7.wgsl rename to test/builtins/gen/min/c70bb7.wgsl index 20d33ea845..5440784545 100644 --- a/test/intrinsics/gen/min/c70bb7.wgsl +++ b/test/builtins/gen/min/c70bb7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/min/c70bb7.wgsl.expected.glsl b/test/builtins/gen/min/c70bb7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/min/c70bb7.wgsl.expected.glsl rename to test/builtins/gen/min/c70bb7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/min/c70bb7.wgsl.expected.hlsl b/test/builtins/gen/min/c70bb7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/min/c70bb7.wgsl.expected.hlsl rename to test/builtins/gen/min/c70bb7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/min/c70bb7.wgsl.expected.msl b/test/builtins/gen/min/c70bb7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/min/c70bb7.wgsl.expected.msl rename to test/builtins/gen/min/c70bb7.wgsl.expected.msl diff --git a/test/intrinsics/gen/min/c70bb7.wgsl.expected.spvasm b/test/builtins/gen/min/c70bb7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/min/c70bb7.wgsl.expected.spvasm rename to test/builtins/gen/min/c70bb7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/min/c70bb7.wgsl.expected.wgsl b/test/builtins/gen/min/c70bb7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/min/c70bb7.wgsl.expected.wgsl rename to test/builtins/gen/min/c70bb7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/min/c73147.wgsl b/test/builtins/gen/min/c73147.wgsl similarity index 88% rename from test/intrinsics/gen/min/c73147.wgsl rename to test/builtins/gen/min/c73147.wgsl index 25b6ce253f..bb48303f5a 100644 --- a/test/intrinsics/gen/min/c73147.wgsl +++ b/test/builtins/gen/min/c73147.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/min/c73147.wgsl.expected.glsl b/test/builtins/gen/min/c73147.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/min/c73147.wgsl.expected.glsl rename to test/builtins/gen/min/c73147.wgsl.expected.glsl diff --git a/test/intrinsics/gen/min/c73147.wgsl.expected.hlsl b/test/builtins/gen/min/c73147.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/min/c73147.wgsl.expected.hlsl rename to test/builtins/gen/min/c73147.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/min/c73147.wgsl.expected.msl b/test/builtins/gen/min/c73147.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/min/c73147.wgsl.expected.msl rename to test/builtins/gen/min/c73147.wgsl.expected.msl diff --git a/test/intrinsics/gen/min/c73147.wgsl.expected.spvasm b/test/builtins/gen/min/c73147.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/min/c73147.wgsl.expected.spvasm rename to test/builtins/gen/min/c73147.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/min/c73147.wgsl.expected.wgsl b/test/builtins/gen/min/c73147.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/min/c73147.wgsl.expected.wgsl rename to test/builtins/gen/min/c73147.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/min/c76fa6.wgsl b/test/builtins/gen/min/c76fa6.wgsl similarity index 89% rename from test/intrinsics/gen/min/c76fa6.wgsl rename to test/builtins/gen/min/c76fa6.wgsl index 367f8f5d46..d4a831adff 100644 --- a/test/intrinsics/gen/min/c76fa6.wgsl +++ b/test/builtins/gen/min/c76fa6.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/min/c76fa6.wgsl.expected.glsl b/test/builtins/gen/min/c76fa6.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/min/c76fa6.wgsl.expected.glsl rename to test/builtins/gen/min/c76fa6.wgsl.expected.glsl diff --git a/test/intrinsics/gen/min/c76fa6.wgsl.expected.hlsl b/test/builtins/gen/min/c76fa6.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/min/c76fa6.wgsl.expected.hlsl rename to test/builtins/gen/min/c76fa6.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/min/c76fa6.wgsl.expected.msl b/test/builtins/gen/min/c76fa6.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/min/c76fa6.wgsl.expected.msl rename to test/builtins/gen/min/c76fa6.wgsl.expected.msl diff --git a/test/intrinsics/gen/min/c76fa6.wgsl.expected.spvasm b/test/builtins/gen/min/c76fa6.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/min/c76fa6.wgsl.expected.spvasm rename to test/builtins/gen/min/c76fa6.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/min/c76fa6.wgsl.expected.wgsl b/test/builtins/gen/min/c76fa6.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/min/c76fa6.wgsl.expected.wgsl rename to test/builtins/gen/min/c76fa6.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/mix/0c8c33.wgsl b/test/builtins/gen/mix/0c8c33.wgsl similarity index 89% rename from test/intrinsics/gen/mix/0c8c33.wgsl rename to test/builtins/gen/mix/0c8c33.wgsl index c2ba55d2d1..16f9a647ba 100644 --- a/test/intrinsics/gen/mix/0c8c33.wgsl +++ b/test/builtins/gen/mix/0c8c33.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/mix/0c8c33.wgsl.expected.glsl b/test/builtins/gen/mix/0c8c33.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/mix/0c8c33.wgsl.expected.glsl rename to test/builtins/gen/mix/0c8c33.wgsl.expected.glsl diff --git a/test/intrinsics/gen/mix/0c8c33.wgsl.expected.hlsl b/test/builtins/gen/mix/0c8c33.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/mix/0c8c33.wgsl.expected.hlsl rename to test/builtins/gen/mix/0c8c33.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/mix/0c8c33.wgsl.expected.msl b/test/builtins/gen/mix/0c8c33.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/mix/0c8c33.wgsl.expected.msl rename to test/builtins/gen/mix/0c8c33.wgsl.expected.msl diff --git a/test/intrinsics/gen/mix/0c8c33.wgsl.expected.spvasm b/test/builtins/gen/mix/0c8c33.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/mix/0c8c33.wgsl.expected.spvasm rename to test/builtins/gen/mix/0c8c33.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/mix/0c8c33.wgsl.expected.wgsl b/test/builtins/gen/mix/0c8c33.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/mix/0c8c33.wgsl.expected.wgsl rename to test/builtins/gen/mix/0c8c33.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/mix/1faeb1.wgsl b/test/builtins/gen/mix/1faeb1.wgsl similarity index 89% rename from test/intrinsics/gen/mix/1faeb1.wgsl rename to test/builtins/gen/mix/1faeb1.wgsl index 948163bb75..4777805a4d 100644 --- a/test/intrinsics/gen/mix/1faeb1.wgsl +++ b/test/builtins/gen/mix/1faeb1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/mix/1faeb1.wgsl.expected.glsl b/test/builtins/gen/mix/1faeb1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/mix/1faeb1.wgsl.expected.glsl rename to test/builtins/gen/mix/1faeb1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/mix/1faeb1.wgsl.expected.hlsl b/test/builtins/gen/mix/1faeb1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/mix/1faeb1.wgsl.expected.hlsl rename to test/builtins/gen/mix/1faeb1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/mix/1faeb1.wgsl.expected.msl b/test/builtins/gen/mix/1faeb1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/mix/1faeb1.wgsl.expected.msl rename to test/builtins/gen/mix/1faeb1.wgsl.expected.msl diff --git a/test/intrinsics/gen/mix/1faeb1.wgsl.expected.spvasm b/test/builtins/gen/mix/1faeb1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/mix/1faeb1.wgsl.expected.spvasm rename to test/builtins/gen/mix/1faeb1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/mix/1faeb1.wgsl.expected.wgsl b/test/builtins/gen/mix/1faeb1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/mix/1faeb1.wgsl.expected.wgsl rename to test/builtins/gen/mix/1faeb1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/mix/2fadab.wgsl b/test/builtins/gen/mix/2fadab.wgsl similarity index 89% rename from test/intrinsics/gen/mix/2fadab.wgsl rename to test/builtins/gen/mix/2fadab.wgsl index 94551f9519..a89fb8367b 100644 --- a/test/intrinsics/gen/mix/2fadab.wgsl +++ b/test/builtins/gen/mix/2fadab.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/mix/2fadab.wgsl.expected.glsl b/test/builtins/gen/mix/2fadab.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/mix/2fadab.wgsl.expected.glsl rename to test/builtins/gen/mix/2fadab.wgsl.expected.glsl diff --git a/test/intrinsics/gen/mix/2fadab.wgsl.expected.hlsl b/test/builtins/gen/mix/2fadab.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/mix/2fadab.wgsl.expected.hlsl rename to test/builtins/gen/mix/2fadab.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/mix/2fadab.wgsl.expected.msl b/test/builtins/gen/mix/2fadab.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/mix/2fadab.wgsl.expected.msl rename to test/builtins/gen/mix/2fadab.wgsl.expected.msl diff --git a/test/intrinsics/gen/mix/2fadab.wgsl.expected.spvasm b/test/builtins/gen/mix/2fadab.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/mix/2fadab.wgsl.expected.spvasm rename to test/builtins/gen/mix/2fadab.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/mix/2fadab.wgsl.expected.wgsl b/test/builtins/gen/mix/2fadab.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/mix/2fadab.wgsl.expected.wgsl rename to test/builtins/gen/mix/2fadab.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/mix/315264.wgsl b/test/builtins/gen/mix/315264.wgsl similarity index 89% rename from test/intrinsics/gen/mix/315264.wgsl rename to test/builtins/gen/mix/315264.wgsl index 3c8a0509a3..ae2dca3607 100644 --- a/test/intrinsics/gen/mix/315264.wgsl +++ b/test/builtins/gen/mix/315264.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/mix/315264.wgsl.expected.glsl b/test/builtins/gen/mix/315264.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/mix/315264.wgsl.expected.glsl rename to test/builtins/gen/mix/315264.wgsl.expected.glsl diff --git a/test/intrinsics/gen/mix/315264.wgsl.expected.hlsl b/test/builtins/gen/mix/315264.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/mix/315264.wgsl.expected.hlsl rename to test/builtins/gen/mix/315264.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/mix/315264.wgsl.expected.msl b/test/builtins/gen/mix/315264.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/mix/315264.wgsl.expected.msl rename to test/builtins/gen/mix/315264.wgsl.expected.msl diff --git a/test/intrinsics/gen/mix/315264.wgsl.expected.spvasm b/test/builtins/gen/mix/315264.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/mix/315264.wgsl.expected.spvasm rename to test/builtins/gen/mix/315264.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/mix/315264.wgsl.expected.wgsl b/test/builtins/gen/mix/315264.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/mix/315264.wgsl.expected.wgsl rename to test/builtins/gen/mix/315264.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/mix/4f0b5e.wgsl b/test/builtins/gen/mix/4f0b5e.wgsl similarity index 88% rename from test/intrinsics/gen/mix/4f0b5e.wgsl rename to test/builtins/gen/mix/4f0b5e.wgsl index 327cd1fc3b..22eea637c6 100644 --- a/test/intrinsics/gen/mix/4f0b5e.wgsl +++ b/test/builtins/gen/mix/4f0b5e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/mix/4f0b5e.wgsl.expected.glsl b/test/builtins/gen/mix/4f0b5e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/mix/4f0b5e.wgsl.expected.glsl rename to test/builtins/gen/mix/4f0b5e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/mix/4f0b5e.wgsl.expected.hlsl b/test/builtins/gen/mix/4f0b5e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/mix/4f0b5e.wgsl.expected.hlsl rename to test/builtins/gen/mix/4f0b5e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/mix/4f0b5e.wgsl.expected.msl b/test/builtins/gen/mix/4f0b5e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/mix/4f0b5e.wgsl.expected.msl rename to test/builtins/gen/mix/4f0b5e.wgsl.expected.msl diff --git a/test/intrinsics/gen/mix/4f0b5e.wgsl.expected.spvasm b/test/builtins/gen/mix/4f0b5e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/mix/4f0b5e.wgsl.expected.spvasm rename to test/builtins/gen/mix/4f0b5e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/mix/4f0b5e.wgsl.expected.wgsl b/test/builtins/gen/mix/4f0b5e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/mix/4f0b5e.wgsl.expected.wgsl rename to test/builtins/gen/mix/4f0b5e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/mix/6f8adc.wgsl b/test/builtins/gen/mix/6f8adc.wgsl similarity index 89% rename from test/intrinsics/gen/mix/6f8adc.wgsl rename to test/builtins/gen/mix/6f8adc.wgsl index ed6872f642..a024424bfd 100644 --- a/test/intrinsics/gen/mix/6f8adc.wgsl +++ b/test/builtins/gen/mix/6f8adc.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/mix/6f8adc.wgsl.expected.glsl b/test/builtins/gen/mix/6f8adc.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/mix/6f8adc.wgsl.expected.glsl rename to test/builtins/gen/mix/6f8adc.wgsl.expected.glsl diff --git a/test/intrinsics/gen/mix/6f8adc.wgsl.expected.hlsl b/test/builtins/gen/mix/6f8adc.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/mix/6f8adc.wgsl.expected.hlsl rename to test/builtins/gen/mix/6f8adc.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/mix/6f8adc.wgsl.expected.msl b/test/builtins/gen/mix/6f8adc.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/mix/6f8adc.wgsl.expected.msl rename to test/builtins/gen/mix/6f8adc.wgsl.expected.msl diff --git a/test/intrinsics/gen/mix/6f8adc.wgsl.expected.spvasm b/test/builtins/gen/mix/6f8adc.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/mix/6f8adc.wgsl.expected.spvasm rename to test/builtins/gen/mix/6f8adc.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/mix/6f8adc.wgsl.expected.wgsl b/test/builtins/gen/mix/6f8adc.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/mix/6f8adc.wgsl.expected.wgsl rename to test/builtins/gen/mix/6f8adc.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/mix/c37ede.wgsl b/test/builtins/gen/mix/c37ede.wgsl similarity index 89% rename from test/intrinsics/gen/mix/c37ede.wgsl rename to test/builtins/gen/mix/c37ede.wgsl index 59185cf2fd..47aa83adfb 100644 --- a/test/intrinsics/gen/mix/c37ede.wgsl +++ b/test/builtins/gen/mix/c37ede.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/mix/c37ede.wgsl.expected.glsl b/test/builtins/gen/mix/c37ede.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/mix/c37ede.wgsl.expected.glsl rename to test/builtins/gen/mix/c37ede.wgsl.expected.glsl diff --git a/test/intrinsics/gen/mix/c37ede.wgsl.expected.hlsl b/test/builtins/gen/mix/c37ede.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/mix/c37ede.wgsl.expected.hlsl rename to test/builtins/gen/mix/c37ede.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/mix/c37ede.wgsl.expected.msl b/test/builtins/gen/mix/c37ede.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/mix/c37ede.wgsl.expected.msl rename to test/builtins/gen/mix/c37ede.wgsl.expected.msl diff --git a/test/intrinsics/gen/mix/c37ede.wgsl.expected.spvasm b/test/builtins/gen/mix/c37ede.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/mix/c37ede.wgsl.expected.spvasm rename to test/builtins/gen/mix/c37ede.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/mix/c37ede.wgsl.expected.wgsl b/test/builtins/gen/mix/c37ede.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/mix/c37ede.wgsl.expected.wgsl rename to test/builtins/gen/mix/c37ede.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/modf/180fed.wgsl b/test/builtins/gen/modf/180fed.wgsl similarity index 88% rename from test/intrinsics/gen/modf/180fed.wgsl rename to test/builtins/gen/modf/180fed.wgsl index c9ad6609e3..2280611464 100644 --- a/test/intrinsics/gen/modf/180fed.wgsl +++ b/test/builtins/gen/modf/180fed.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/modf/180fed.wgsl.expected.glsl b/test/builtins/gen/modf/180fed.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/modf/180fed.wgsl.expected.glsl rename to test/builtins/gen/modf/180fed.wgsl.expected.glsl diff --git a/test/intrinsics/gen/modf/180fed.wgsl.expected.hlsl b/test/builtins/gen/modf/180fed.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/modf/180fed.wgsl.expected.hlsl rename to test/builtins/gen/modf/180fed.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/modf/180fed.wgsl.expected.msl b/test/builtins/gen/modf/180fed.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/modf/180fed.wgsl.expected.msl rename to test/builtins/gen/modf/180fed.wgsl.expected.msl diff --git a/test/intrinsics/gen/modf/180fed.wgsl.expected.spvasm b/test/builtins/gen/modf/180fed.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/modf/180fed.wgsl.expected.spvasm rename to test/builtins/gen/modf/180fed.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/modf/180fed.wgsl.expected.wgsl b/test/builtins/gen/modf/180fed.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/modf/180fed.wgsl.expected.wgsl rename to test/builtins/gen/modf/180fed.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/modf/9b75f7.wgsl b/test/builtins/gen/modf/9b75f7.wgsl similarity index 88% rename from test/intrinsics/gen/modf/9b75f7.wgsl rename to test/builtins/gen/modf/9b75f7.wgsl index 982a75c658..f18546cd42 100644 --- a/test/intrinsics/gen/modf/9b75f7.wgsl +++ b/test/builtins/gen/modf/9b75f7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/modf/9b75f7.wgsl.expected.glsl b/test/builtins/gen/modf/9b75f7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/modf/9b75f7.wgsl.expected.glsl rename to test/builtins/gen/modf/9b75f7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/modf/9b75f7.wgsl.expected.hlsl b/test/builtins/gen/modf/9b75f7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/modf/9b75f7.wgsl.expected.hlsl rename to test/builtins/gen/modf/9b75f7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/modf/9b75f7.wgsl.expected.msl b/test/builtins/gen/modf/9b75f7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/modf/9b75f7.wgsl.expected.msl rename to test/builtins/gen/modf/9b75f7.wgsl.expected.msl diff --git a/test/intrinsics/gen/modf/9b75f7.wgsl.expected.spvasm b/test/builtins/gen/modf/9b75f7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/modf/9b75f7.wgsl.expected.spvasm rename to test/builtins/gen/modf/9b75f7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/modf/9b75f7.wgsl.expected.wgsl b/test/builtins/gen/modf/9b75f7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/modf/9b75f7.wgsl.expected.wgsl rename to test/builtins/gen/modf/9b75f7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/modf/ec2dbc.wgsl b/test/builtins/gen/modf/ec2dbc.wgsl similarity index 88% rename from test/intrinsics/gen/modf/ec2dbc.wgsl rename to test/builtins/gen/modf/ec2dbc.wgsl index 8de77ad972..da66827212 100644 --- a/test/intrinsics/gen/modf/ec2dbc.wgsl +++ b/test/builtins/gen/modf/ec2dbc.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/modf/ec2dbc.wgsl.expected.glsl b/test/builtins/gen/modf/ec2dbc.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/modf/ec2dbc.wgsl.expected.glsl rename to test/builtins/gen/modf/ec2dbc.wgsl.expected.glsl diff --git a/test/intrinsics/gen/modf/ec2dbc.wgsl.expected.hlsl b/test/builtins/gen/modf/ec2dbc.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/modf/ec2dbc.wgsl.expected.hlsl rename to test/builtins/gen/modf/ec2dbc.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/modf/ec2dbc.wgsl.expected.msl b/test/builtins/gen/modf/ec2dbc.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/modf/ec2dbc.wgsl.expected.msl rename to test/builtins/gen/modf/ec2dbc.wgsl.expected.msl diff --git a/test/intrinsics/gen/modf/ec2dbc.wgsl.expected.spvasm b/test/builtins/gen/modf/ec2dbc.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/modf/ec2dbc.wgsl.expected.spvasm rename to test/builtins/gen/modf/ec2dbc.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/modf/ec2dbc.wgsl.expected.wgsl b/test/builtins/gen/modf/ec2dbc.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/modf/ec2dbc.wgsl.expected.wgsl rename to test/builtins/gen/modf/ec2dbc.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/modf/f5f20d.wgsl b/test/builtins/gen/modf/f5f20d.wgsl similarity index 88% rename from test/intrinsics/gen/modf/f5f20d.wgsl rename to test/builtins/gen/modf/f5f20d.wgsl index 0a0dcf562d..1070fb7fc0 100644 --- a/test/intrinsics/gen/modf/f5f20d.wgsl +++ b/test/builtins/gen/modf/f5f20d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/modf/f5f20d.wgsl.expected.glsl b/test/builtins/gen/modf/f5f20d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/modf/f5f20d.wgsl.expected.glsl rename to test/builtins/gen/modf/f5f20d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/modf/f5f20d.wgsl.expected.hlsl b/test/builtins/gen/modf/f5f20d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/modf/f5f20d.wgsl.expected.hlsl rename to test/builtins/gen/modf/f5f20d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/modf/f5f20d.wgsl.expected.msl b/test/builtins/gen/modf/f5f20d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/modf/f5f20d.wgsl.expected.msl rename to test/builtins/gen/modf/f5f20d.wgsl.expected.msl diff --git a/test/intrinsics/gen/modf/f5f20d.wgsl.expected.spvasm b/test/builtins/gen/modf/f5f20d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/modf/f5f20d.wgsl.expected.spvasm rename to test/builtins/gen/modf/f5f20d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/modf/f5f20d.wgsl.expected.wgsl b/test/builtins/gen/modf/f5f20d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/modf/f5f20d.wgsl.expected.wgsl rename to test/builtins/gen/modf/f5f20d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/normalize/64d8c0.wgsl b/test/builtins/gen/normalize/64d8c0.wgsl similarity index 89% rename from test/intrinsics/gen/normalize/64d8c0.wgsl rename to test/builtins/gen/normalize/64d8c0.wgsl index 2109b6137a..0c32b91c06 100644 --- a/test/intrinsics/gen/normalize/64d8c0.wgsl +++ b/test/builtins/gen/normalize/64d8c0.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/normalize/64d8c0.wgsl.expected.glsl b/test/builtins/gen/normalize/64d8c0.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/normalize/64d8c0.wgsl.expected.glsl rename to test/builtins/gen/normalize/64d8c0.wgsl.expected.glsl diff --git a/test/intrinsics/gen/normalize/64d8c0.wgsl.expected.hlsl b/test/builtins/gen/normalize/64d8c0.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/normalize/64d8c0.wgsl.expected.hlsl rename to test/builtins/gen/normalize/64d8c0.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/normalize/64d8c0.wgsl.expected.msl b/test/builtins/gen/normalize/64d8c0.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/normalize/64d8c0.wgsl.expected.msl rename to test/builtins/gen/normalize/64d8c0.wgsl.expected.msl diff --git a/test/intrinsics/gen/normalize/64d8c0.wgsl.expected.spvasm b/test/builtins/gen/normalize/64d8c0.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/normalize/64d8c0.wgsl.expected.spvasm rename to test/builtins/gen/normalize/64d8c0.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/normalize/64d8c0.wgsl.expected.wgsl b/test/builtins/gen/normalize/64d8c0.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/normalize/64d8c0.wgsl.expected.wgsl rename to test/builtins/gen/normalize/64d8c0.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/normalize/9a0aab.wgsl b/test/builtins/gen/normalize/9a0aab.wgsl similarity index 89% rename from test/intrinsics/gen/normalize/9a0aab.wgsl rename to test/builtins/gen/normalize/9a0aab.wgsl index 12bf4ac8e1..5560b20565 100644 --- a/test/intrinsics/gen/normalize/9a0aab.wgsl +++ b/test/builtins/gen/normalize/9a0aab.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/normalize/9a0aab.wgsl.expected.glsl b/test/builtins/gen/normalize/9a0aab.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/normalize/9a0aab.wgsl.expected.glsl rename to test/builtins/gen/normalize/9a0aab.wgsl.expected.glsl diff --git a/test/intrinsics/gen/normalize/9a0aab.wgsl.expected.hlsl b/test/builtins/gen/normalize/9a0aab.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/normalize/9a0aab.wgsl.expected.hlsl rename to test/builtins/gen/normalize/9a0aab.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/normalize/9a0aab.wgsl.expected.msl b/test/builtins/gen/normalize/9a0aab.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/normalize/9a0aab.wgsl.expected.msl rename to test/builtins/gen/normalize/9a0aab.wgsl.expected.msl diff --git a/test/intrinsics/gen/normalize/9a0aab.wgsl.expected.spvasm b/test/builtins/gen/normalize/9a0aab.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/normalize/9a0aab.wgsl.expected.spvasm rename to test/builtins/gen/normalize/9a0aab.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/normalize/9a0aab.wgsl.expected.wgsl b/test/builtins/gen/normalize/9a0aab.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/normalize/9a0aab.wgsl.expected.wgsl rename to test/builtins/gen/normalize/9a0aab.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/normalize/fc2ef1.wgsl b/test/builtins/gen/normalize/fc2ef1.wgsl similarity index 89% rename from test/intrinsics/gen/normalize/fc2ef1.wgsl rename to test/builtins/gen/normalize/fc2ef1.wgsl index 0c11b89e9e..2c70e6d263 100644 --- a/test/intrinsics/gen/normalize/fc2ef1.wgsl +++ b/test/builtins/gen/normalize/fc2ef1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/normalize/fc2ef1.wgsl.expected.glsl b/test/builtins/gen/normalize/fc2ef1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/normalize/fc2ef1.wgsl.expected.glsl rename to test/builtins/gen/normalize/fc2ef1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/normalize/fc2ef1.wgsl.expected.hlsl b/test/builtins/gen/normalize/fc2ef1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/normalize/fc2ef1.wgsl.expected.hlsl rename to test/builtins/gen/normalize/fc2ef1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/normalize/fc2ef1.wgsl.expected.msl b/test/builtins/gen/normalize/fc2ef1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/normalize/fc2ef1.wgsl.expected.msl rename to test/builtins/gen/normalize/fc2ef1.wgsl.expected.msl diff --git a/test/intrinsics/gen/normalize/fc2ef1.wgsl.expected.spvasm b/test/builtins/gen/normalize/fc2ef1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/normalize/fc2ef1.wgsl.expected.spvasm rename to test/builtins/gen/normalize/fc2ef1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/normalize/fc2ef1.wgsl.expected.wgsl b/test/builtins/gen/normalize/fc2ef1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/normalize/fc2ef1.wgsl.expected.wgsl rename to test/builtins/gen/normalize/fc2ef1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/pack2x16float/0e97b3.wgsl b/test/builtins/gen/pack2x16float/0e97b3.wgsl similarity index 89% rename from test/intrinsics/gen/pack2x16float/0e97b3.wgsl rename to test/builtins/gen/pack2x16float/0e97b3.wgsl index ae2610c742..92252efc1b 100644 --- a/test/intrinsics/gen/pack2x16float/0e97b3.wgsl +++ b/test/builtins/gen/pack2x16float/0e97b3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/pack2x16float/0e97b3.wgsl.expected.glsl b/test/builtins/gen/pack2x16float/0e97b3.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/pack2x16float/0e97b3.wgsl.expected.glsl rename to test/builtins/gen/pack2x16float/0e97b3.wgsl.expected.glsl diff --git a/test/intrinsics/gen/pack2x16float/0e97b3.wgsl.expected.hlsl b/test/builtins/gen/pack2x16float/0e97b3.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/pack2x16float/0e97b3.wgsl.expected.hlsl rename to test/builtins/gen/pack2x16float/0e97b3.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/pack2x16float/0e97b3.wgsl.expected.msl b/test/builtins/gen/pack2x16float/0e97b3.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/pack2x16float/0e97b3.wgsl.expected.msl rename to test/builtins/gen/pack2x16float/0e97b3.wgsl.expected.msl diff --git a/test/intrinsics/gen/pack2x16float/0e97b3.wgsl.expected.spvasm b/test/builtins/gen/pack2x16float/0e97b3.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/pack2x16float/0e97b3.wgsl.expected.spvasm rename to test/builtins/gen/pack2x16float/0e97b3.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/pack2x16float/0e97b3.wgsl.expected.wgsl b/test/builtins/gen/pack2x16float/0e97b3.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/pack2x16float/0e97b3.wgsl.expected.wgsl rename to test/builtins/gen/pack2x16float/0e97b3.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/pack2x16snorm/6c169b.wgsl b/test/builtins/gen/pack2x16snorm/6c169b.wgsl similarity index 89% rename from test/intrinsics/gen/pack2x16snorm/6c169b.wgsl rename to test/builtins/gen/pack2x16snorm/6c169b.wgsl index 7d0aeb354b..ce748f8a57 100644 --- a/test/intrinsics/gen/pack2x16snorm/6c169b.wgsl +++ b/test/builtins/gen/pack2x16snorm/6c169b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/pack2x16snorm/6c169b.wgsl.expected.glsl b/test/builtins/gen/pack2x16snorm/6c169b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/pack2x16snorm/6c169b.wgsl.expected.glsl rename to test/builtins/gen/pack2x16snorm/6c169b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/pack2x16snorm/6c169b.wgsl.expected.hlsl b/test/builtins/gen/pack2x16snorm/6c169b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/pack2x16snorm/6c169b.wgsl.expected.hlsl rename to test/builtins/gen/pack2x16snorm/6c169b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/pack2x16snorm/6c169b.wgsl.expected.msl b/test/builtins/gen/pack2x16snorm/6c169b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/pack2x16snorm/6c169b.wgsl.expected.msl rename to test/builtins/gen/pack2x16snorm/6c169b.wgsl.expected.msl diff --git a/test/intrinsics/gen/pack2x16snorm/6c169b.wgsl.expected.spvasm b/test/builtins/gen/pack2x16snorm/6c169b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/pack2x16snorm/6c169b.wgsl.expected.spvasm rename to test/builtins/gen/pack2x16snorm/6c169b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/pack2x16snorm/6c169b.wgsl.expected.wgsl b/test/builtins/gen/pack2x16snorm/6c169b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/pack2x16snorm/6c169b.wgsl.expected.wgsl rename to test/builtins/gen/pack2x16snorm/6c169b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/pack2x16unorm/0f08e4.wgsl b/test/builtins/gen/pack2x16unorm/0f08e4.wgsl similarity index 89% rename from test/intrinsics/gen/pack2x16unorm/0f08e4.wgsl rename to test/builtins/gen/pack2x16unorm/0f08e4.wgsl index 022aaa6576..9f582576ba 100644 --- a/test/intrinsics/gen/pack2x16unorm/0f08e4.wgsl +++ b/test/builtins/gen/pack2x16unorm/0f08e4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/pack2x16unorm/0f08e4.wgsl.expected.glsl b/test/builtins/gen/pack2x16unorm/0f08e4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/pack2x16unorm/0f08e4.wgsl.expected.glsl rename to test/builtins/gen/pack2x16unorm/0f08e4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/pack2x16unorm/0f08e4.wgsl.expected.hlsl b/test/builtins/gen/pack2x16unorm/0f08e4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/pack2x16unorm/0f08e4.wgsl.expected.hlsl rename to test/builtins/gen/pack2x16unorm/0f08e4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/pack2x16unorm/0f08e4.wgsl.expected.msl b/test/builtins/gen/pack2x16unorm/0f08e4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/pack2x16unorm/0f08e4.wgsl.expected.msl rename to test/builtins/gen/pack2x16unorm/0f08e4.wgsl.expected.msl diff --git a/test/intrinsics/gen/pack2x16unorm/0f08e4.wgsl.expected.spvasm b/test/builtins/gen/pack2x16unorm/0f08e4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/pack2x16unorm/0f08e4.wgsl.expected.spvasm rename to test/builtins/gen/pack2x16unorm/0f08e4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/pack2x16unorm/0f08e4.wgsl.expected.wgsl b/test/builtins/gen/pack2x16unorm/0f08e4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/pack2x16unorm/0f08e4.wgsl.expected.wgsl rename to test/builtins/gen/pack2x16unorm/0f08e4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/pack4x8snorm/4d22e7.wgsl b/test/builtins/gen/pack4x8snorm/4d22e7.wgsl similarity index 89% rename from test/intrinsics/gen/pack4x8snorm/4d22e7.wgsl rename to test/builtins/gen/pack4x8snorm/4d22e7.wgsl index 6495f5e9ff..cebba85823 100644 --- a/test/intrinsics/gen/pack4x8snorm/4d22e7.wgsl +++ b/test/builtins/gen/pack4x8snorm/4d22e7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/pack4x8snorm/4d22e7.wgsl.expected.glsl b/test/builtins/gen/pack4x8snorm/4d22e7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/pack4x8snorm/4d22e7.wgsl.expected.glsl rename to test/builtins/gen/pack4x8snorm/4d22e7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/pack4x8snorm/4d22e7.wgsl.expected.hlsl b/test/builtins/gen/pack4x8snorm/4d22e7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/pack4x8snorm/4d22e7.wgsl.expected.hlsl rename to test/builtins/gen/pack4x8snorm/4d22e7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/pack4x8snorm/4d22e7.wgsl.expected.msl b/test/builtins/gen/pack4x8snorm/4d22e7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/pack4x8snorm/4d22e7.wgsl.expected.msl rename to test/builtins/gen/pack4x8snorm/4d22e7.wgsl.expected.msl diff --git a/test/intrinsics/gen/pack4x8snorm/4d22e7.wgsl.expected.spvasm b/test/builtins/gen/pack4x8snorm/4d22e7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/pack4x8snorm/4d22e7.wgsl.expected.spvasm rename to test/builtins/gen/pack4x8snorm/4d22e7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/pack4x8snorm/4d22e7.wgsl.expected.wgsl b/test/builtins/gen/pack4x8snorm/4d22e7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/pack4x8snorm/4d22e7.wgsl.expected.wgsl rename to test/builtins/gen/pack4x8snorm/4d22e7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/pack4x8unorm/95c456.wgsl b/test/builtins/gen/pack4x8unorm/95c456.wgsl similarity index 89% rename from test/intrinsics/gen/pack4x8unorm/95c456.wgsl rename to test/builtins/gen/pack4x8unorm/95c456.wgsl index d76e0755ca..f7f20ab0a6 100644 --- a/test/intrinsics/gen/pack4x8unorm/95c456.wgsl +++ b/test/builtins/gen/pack4x8unorm/95c456.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/pack4x8unorm/95c456.wgsl.expected.glsl b/test/builtins/gen/pack4x8unorm/95c456.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/pack4x8unorm/95c456.wgsl.expected.glsl rename to test/builtins/gen/pack4x8unorm/95c456.wgsl.expected.glsl diff --git a/test/intrinsics/gen/pack4x8unorm/95c456.wgsl.expected.hlsl b/test/builtins/gen/pack4x8unorm/95c456.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/pack4x8unorm/95c456.wgsl.expected.hlsl rename to test/builtins/gen/pack4x8unorm/95c456.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/pack4x8unorm/95c456.wgsl.expected.msl b/test/builtins/gen/pack4x8unorm/95c456.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/pack4x8unorm/95c456.wgsl.expected.msl rename to test/builtins/gen/pack4x8unorm/95c456.wgsl.expected.msl diff --git a/test/intrinsics/gen/pack4x8unorm/95c456.wgsl.expected.spvasm b/test/builtins/gen/pack4x8unorm/95c456.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/pack4x8unorm/95c456.wgsl.expected.spvasm rename to test/builtins/gen/pack4x8unorm/95c456.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/pack4x8unorm/95c456.wgsl.expected.wgsl b/test/builtins/gen/pack4x8unorm/95c456.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/pack4x8unorm/95c456.wgsl.expected.wgsl rename to test/builtins/gen/pack4x8unorm/95c456.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/pow/04a908.wgsl b/test/builtins/gen/pow/04a908.wgsl similarity index 89% rename from test/intrinsics/gen/pow/04a908.wgsl rename to test/builtins/gen/pow/04a908.wgsl index cc17d35d95..87e649b274 100644 --- a/test/intrinsics/gen/pow/04a908.wgsl +++ b/test/builtins/gen/pow/04a908.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/pow/04a908.wgsl.expected.glsl b/test/builtins/gen/pow/04a908.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/pow/04a908.wgsl.expected.glsl rename to test/builtins/gen/pow/04a908.wgsl.expected.glsl diff --git a/test/intrinsics/gen/pow/04a908.wgsl.expected.hlsl b/test/builtins/gen/pow/04a908.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/pow/04a908.wgsl.expected.hlsl rename to test/builtins/gen/pow/04a908.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/pow/04a908.wgsl.expected.msl b/test/builtins/gen/pow/04a908.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/pow/04a908.wgsl.expected.msl rename to test/builtins/gen/pow/04a908.wgsl.expected.msl diff --git a/test/intrinsics/gen/pow/04a908.wgsl.expected.spvasm b/test/builtins/gen/pow/04a908.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/pow/04a908.wgsl.expected.spvasm rename to test/builtins/gen/pow/04a908.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/pow/04a908.wgsl.expected.wgsl b/test/builtins/gen/pow/04a908.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/pow/04a908.wgsl.expected.wgsl rename to test/builtins/gen/pow/04a908.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/pow/46e029.wgsl b/test/builtins/gen/pow/46e029.wgsl similarity index 88% rename from test/intrinsics/gen/pow/46e029.wgsl rename to test/builtins/gen/pow/46e029.wgsl index 7366f03ad7..030f08734b 100644 --- a/test/intrinsics/gen/pow/46e029.wgsl +++ b/test/builtins/gen/pow/46e029.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/pow/46e029.wgsl.expected.glsl b/test/builtins/gen/pow/46e029.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/pow/46e029.wgsl.expected.glsl rename to test/builtins/gen/pow/46e029.wgsl.expected.glsl diff --git a/test/intrinsics/gen/pow/46e029.wgsl.expected.hlsl b/test/builtins/gen/pow/46e029.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/pow/46e029.wgsl.expected.hlsl rename to test/builtins/gen/pow/46e029.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/pow/46e029.wgsl.expected.msl b/test/builtins/gen/pow/46e029.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/pow/46e029.wgsl.expected.msl rename to test/builtins/gen/pow/46e029.wgsl.expected.msl diff --git a/test/intrinsics/gen/pow/46e029.wgsl.expected.spvasm b/test/builtins/gen/pow/46e029.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/pow/46e029.wgsl.expected.spvasm rename to test/builtins/gen/pow/46e029.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/pow/46e029.wgsl.expected.wgsl b/test/builtins/gen/pow/46e029.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/pow/46e029.wgsl.expected.wgsl rename to test/builtins/gen/pow/46e029.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/pow/4a46c9.wgsl b/test/builtins/gen/pow/4a46c9.wgsl similarity index 89% rename from test/intrinsics/gen/pow/4a46c9.wgsl rename to test/builtins/gen/pow/4a46c9.wgsl index c6e5af08ef..8d31659955 100644 --- a/test/intrinsics/gen/pow/4a46c9.wgsl +++ b/test/builtins/gen/pow/4a46c9.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/pow/4a46c9.wgsl.expected.glsl b/test/builtins/gen/pow/4a46c9.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/pow/4a46c9.wgsl.expected.glsl rename to test/builtins/gen/pow/4a46c9.wgsl.expected.glsl diff --git a/test/intrinsics/gen/pow/4a46c9.wgsl.expected.hlsl b/test/builtins/gen/pow/4a46c9.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/pow/4a46c9.wgsl.expected.hlsl rename to test/builtins/gen/pow/4a46c9.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/pow/4a46c9.wgsl.expected.msl b/test/builtins/gen/pow/4a46c9.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/pow/4a46c9.wgsl.expected.msl rename to test/builtins/gen/pow/4a46c9.wgsl.expected.msl diff --git a/test/intrinsics/gen/pow/4a46c9.wgsl.expected.spvasm b/test/builtins/gen/pow/4a46c9.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/pow/4a46c9.wgsl.expected.spvasm rename to test/builtins/gen/pow/4a46c9.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/pow/4a46c9.wgsl.expected.wgsl b/test/builtins/gen/pow/4a46c9.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/pow/4a46c9.wgsl.expected.wgsl rename to test/builtins/gen/pow/4a46c9.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/pow/e60ea5.wgsl b/test/builtins/gen/pow/e60ea5.wgsl similarity index 89% rename from test/intrinsics/gen/pow/e60ea5.wgsl rename to test/builtins/gen/pow/e60ea5.wgsl index e2080cb484..266bc05e30 100644 --- a/test/intrinsics/gen/pow/e60ea5.wgsl +++ b/test/builtins/gen/pow/e60ea5.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/pow/e60ea5.wgsl.expected.glsl b/test/builtins/gen/pow/e60ea5.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/pow/e60ea5.wgsl.expected.glsl rename to test/builtins/gen/pow/e60ea5.wgsl.expected.glsl diff --git a/test/intrinsics/gen/pow/e60ea5.wgsl.expected.hlsl b/test/builtins/gen/pow/e60ea5.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/pow/e60ea5.wgsl.expected.hlsl rename to test/builtins/gen/pow/e60ea5.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/pow/e60ea5.wgsl.expected.msl b/test/builtins/gen/pow/e60ea5.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/pow/e60ea5.wgsl.expected.msl rename to test/builtins/gen/pow/e60ea5.wgsl.expected.msl diff --git a/test/intrinsics/gen/pow/e60ea5.wgsl.expected.spvasm b/test/builtins/gen/pow/e60ea5.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/pow/e60ea5.wgsl.expected.spvasm rename to test/builtins/gen/pow/e60ea5.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/pow/e60ea5.wgsl.expected.wgsl b/test/builtins/gen/pow/e60ea5.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/pow/e60ea5.wgsl.expected.wgsl rename to test/builtins/gen/pow/e60ea5.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/radians/09b7fc.wgsl b/test/builtins/gen/radians/09b7fc.wgsl similarity index 89% rename from test/intrinsics/gen/radians/09b7fc.wgsl rename to test/builtins/gen/radians/09b7fc.wgsl index e397d3a4ed..d0617db84d 100644 --- a/test/intrinsics/gen/radians/09b7fc.wgsl +++ b/test/builtins/gen/radians/09b7fc.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/radians/09b7fc.wgsl.expected.glsl b/test/builtins/gen/radians/09b7fc.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/radians/09b7fc.wgsl.expected.glsl rename to test/builtins/gen/radians/09b7fc.wgsl.expected.glsl diff --git a/test/intrinsics/gen/radians/09b7fc.wgsl.expected.hlsl b/test/builtins/gen/radians/09b7fc.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/radians/09b7fc.wgsl.expected.hlsl rename to test/builtins/gen/radians/09b7fc.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/radians/09b7fc.wgsl.expected.msl b/test/builtins/gen/radians/09b7fc.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/radians/09b7fc.wgsl.expected.msl rename to test/builtins/gen/radians/09b7fc.wgsl.expected.msl diff --git a/test/intrinsics/gen/radians/09b7fc.wgsl.expected.spvasm b/test/builtins/gen/radians/09b7fc.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/radians/09b7fc.wgsl.expected.spvasm rename to test/builtins/gen/radians/09b7fc.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/radians/09b7fc.wgsl.expected.wgsl b/test/builtins/gen/radians/09b7fc.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/radians/09b7fc.wgsl.expected.wgsl rename to test/builtins/gen/radians/09b7fc.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/radians/61687a.wgsl b/test/builtins/gen/radians/61687a.wgsl similarity index 89% rename from test/intrinsics/gen/radians/61687a.wgsl rename to test/builtins/gen/radians/61687a.wgsl index 9ff856097f..d1e80df95e 100644 --- a/test/intrinsics/gen/radians/61687a.wgsl +++ b/test/builtins/gen/radians/61687a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/radians/61687a.wgsl.expected.glsl b/test/builtins/gen/radians/61687a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/radians/61687a.wgsl.expected.glsl rename to test/builtins/gen/radians/61687a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/radians/61687a.wgsl.expected.hlsl b/test/builtins/gen/radians/61687a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/radians/61687a.wgsl.expected.hlsl rename to test/builtins/gen/radians/61687a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/radians/61687a.wgsl.expected.msl b/test/builtins/gen/radians/61687a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/radians/61687a.wgsl.expected.msl rename to test/builtins/gen/radians/61687a.wgsl.expected.msl diff --git a/test/intrinsics/gen/radians/61687a.wgsl.expected.spvasm b/test/builtins/gen/radians/61687a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/radians/61687a.wgsl.expected.spvasm rename to test/builtins/gen/radians/61687a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/radians/61687a.wgsl.expected.wgsl b/test/builtins/gen/radians/61687a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/radians/61687a.wgsl.expected.wgsl rename to test/builtins/gen/radians/61687a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/radians/6b0ff2.wgsl b/test/builtins/gen/radians/6b0ff2.wgsl similarity index 88% rename from test/intrinsics/gen/radians/6b0ff2.wgsl rename to test/builtins/gen/radians/6b0ff2.wgsl index 8ceaeb2bbe..4ba79422d5 100644 --- a/test/intrinsics/gen/radians/6b0ff2.wgsl +++ b/test/builtins/gen/radians/6b0ff2.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/radians/6b0ff2.wgsl.expected.glsl b/test/builtins/gen/radians/6b0ff2.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/radians/6b0ff2.wgsl.expected.glsl rename to test/builtins/gen/radians/6b0ff2.wgsl.expected.glsl diff --git a/test/intrinsics/gen/radians/6b0ff2.wgsl.expected.hlsl b/test/builtins/gen/radians/6b0ff2.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/radians/6b0ff2.wgsl.expected.hlsl rename to test/builtins/gen/radians/6b0ff2.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/radians/6b0ff2.wgsl.expected.msl b/test/builtins/gen/radians/6b0ff2.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/radians/6b0ff2.wgsl.expected.msl rename to test/builtins/gen/radians/6b0ff2.wgsl.expected.msl diff --git a/test/intrinsics/gen/radians/6b0ff2.wgsl.expected.spvasm b/test/builtins/gen/radians/6b0ff2.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/radians/6b0ff2.wgsl.expected.spvasm rename to test/builtins/gen/radians/6b0ff2.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/radians/6b0ff2.wgsl.expected.wgsl b/test/builtins/gen/radians/6b0ff2.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/radians/6b0ff2.wgsl.expected.wgsl rename to test/builtins/gen/radians/6b0ff2.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/radians/f96258.wgsl b/test/builtins/gen/radians/f96258.wgsl similarity index 89% rename from test/intrinsics/gen/radians/f96258.wgsl rename to test/builtins/gen/radians/f96258.wgsl index bca54a5321..5f963357b8 100644 --- a/test/intrinsics/gen/radians/f96258.wgsl +++ b/test/builtins/gen/radians/f96258.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/radians/f96258.wgsl.expected.glsl b/test/builtins/gen/radians/f96258.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/radians/f96258.wgsl.expected.glsl rename to test/builtins/gen/radians/f96258.wgsl.expected.glsl diff --git a/test/intrinsics/gen/radians/f96258.wgsl.expected.hlsl b/test/builtins/gen/radians/f96258.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/radians/f96258.wgsl.expected.hlsl rename to test/builtins/gen/radians/f96258.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/radians/f96258.wgsl.expected.msl b/test/builtins/gen/radians/f96258.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/radians/f96258.wgsl.expected.msl rename to test/builtins/gen/radians/f96258.wgsl.expected.msl diff --git a/test/intrinsics/gen/radians/f96258.wgsl.expected.spvasm b/test/builtins/gen/radians/f96258.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/radians/f96258.wgsl.expected.spvasm rename to test/builtins/gen/radians/f96258.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/radians/f96258.wgsl.expected.wgsl b/test/builtins/gen/radians/f96258.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/radians/f96258.wgsl.expected.wgsl rename to test/builtins/gen/radians/f96258.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/reflect/05357e.wgsl b/test/builtins/gen/reflect/05357e.wgsl similarity index 89% rename from test/intrinsics/gen/reflect/05357e.wgsl rename to test/builtins/gen/reflect/05357e.wgsl index 97aaac741f..cbf045d8b7 100644 --- a/test/intrinsics/gen/reflect/05357e.wgsl +++ b/test/builtins/gen/reflect/05357e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/reflect/05357e.wgsl.expected.glsl b/test/builtins/gen/reflect/05357e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/reflect/05357e.wgsl.expected.glsl rename to test/builtins/gen/reflect/05357e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/reflect/05357e.wgsl.expected.hlsl b/test/builtins/gen/reflect/05357e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/reflect/05357e.wgsl.expected.hlsl rename to test/builtins/gen/reflect/05357e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/reflect/05357e.wgsl.expected.msl b/test/builtins/gen/reflect/05357e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/reflect/05357e.wgsl.expected.msl rename to test/builtins/gen/reflect/05357e.wgsl.expected.msl diff --git a/test/intrinsics/gen/reflect/05357e.wgsl.expected.spvasm b/test/builtins/gen/reflect/05357e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/reflect/05357e.wgsl.expected.spvasm rename to test/builtins/gen/reflect/05357e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/reflect/05357e.wgsl.expected.wgsl b/test/builtins/gen/reflect/05357e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/reflect/05357e.wgsl.expected.wgsl rename to test/builtins/gen/reflect/05357e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/reflect/b61e10.wgsl b/test/builtins/gen/reflect/b61e10.wgsl similarity index 89% rename from test/intrinsics/gen/reflect/b61e10.wgsl rename to test/builtins/gen/reflect/b61e10.wgsl index 124022ba7d..15e1ec7a08 100644 --- a/test/intrinsics/gen/reflect/b61e10.wgsl +++ b/test/builtins/gen/reflect/b61e10.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/reflect/b61e10.wgsl.expected.glsl b/test/builtins/gen/reflect/b61e10.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/reflect/b61e10.wgsl.expected.glsl rename to test/builtins/gen/reflect/b61e10.wgsl.expected.glsl diff --git a/test/intrinsics/gen/reflect/b61e10.wgsl.expected.hlsl b/test/builtins/gen/reflect/b61e10.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/reflect/b61e10.wgsl.expected.hlsl rename to test/builtins/gen/reflect/b61e10.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/reflect/b61e10.wgsl.expected.msl b/test/builtins/gen/reflect/b61e10.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/reflect/b61e10.wgsl.expected.msl rename to test/builtins/gen/reflect/b61e10.wgsl.expected.msl diff --git a/test/intrinsics/gen/reflect/b61e10.wgsl.expected.spvasm b/test/builtins/gen/reflect/b61e10.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/reflect/b61e10.wgsl.expected.spvasm rename to test/builtins/gen/reflect/b61e10.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/reflect/b61e10.wgsl.expected.wgsl b/test/builtins/gen/reflect/b61e10.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/reflect/b61e10.wgsl.expected.wgsl rename to test/builtins/gen/reflect/b61e10.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/reflect/f47fdb.wgsl b/test/builtins/gen/reflect/f47fdb.wgsl similarity index 89% rename from test/intrinsics/gen/reflect/f47fdb.wgsl rename to test/builtins/gen/reflect/f47fdb.wgsl index 3048fe03f7..86290aa372 100644 --- a/test/intrinsics/gen/reflect/f47fdb.wgsl +++ b/test/builtins/gen/reflect/f47fdb.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/reflect/f47fdb.wgsl.expected.glsl b/test/builtins/gen/reflect/f47fdb.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/reflect/f47fdb.wgsl.expected.glsl rename to test/builtins/gen/reflect/f47fdb.wgsl.expected.glsl diff --git a/test/intrinsics/gen/reflect/f47fdb.wgsl.expected.hlsl b/test/builtins/gen/reflect/f47fdb.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/reflect/f47fdb.wgsl.expected.hlsl rename to test/builtins/gen/reflect/f47fdb.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/reflect/f47fdb.wgsl.expected.msl b/test/builtins/gen/reflect/f47fdb.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/reflect/f47fdb.wgsl.expected.msl rename to test/builtins/gen/reflect/f47fdb.wgsl.expected.msl diff --git a/test/intrinsics/gen/reflect/f47fdb.wgsl.expected.spvasm b/test/builtins/gen/reflect/f47fdb.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/reflect/f47fdb.wgsl.expected.spvasm rename to test/builtins/gen/reflect/f47fdb.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/reflect/f47fdb.wgsl.expected.wgsl b/test/builtins/gen/reflect/f47fdb.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/reflect/f47fdb.wgsl.expected.wgsl rename to test/builtins/gen/reflect/f47fdb.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/refract/7e02e6.wgsl b/test/builtins/gen/refract/7e02e6.wgsl similarity index 89% rename from test/intrinsics/gen/refract/7e02e6.wgsl rename to test/builtins/gen/refract/7e02e6.wgsl index ff464115bc..e49ccde8c3 100644 --- a/test/intrinsics/gen/refract/7e02e6.wgsl +++ b/test/builtins/gen/refract/7e02e6.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/refract/7e02e6.wgsl.expected.glsl b/test/builtins/gen/refract/7e02e6.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/refract/7e02e6.wgsl.expected.glsl rename to test/builtins/gen/refract/7e02e6.wgsl.expected.glsl diff --git a/test/intrinsics/gen/refract/7e02e6.wgsl.expected.hlsl b/test/builtins/gen/refract/7e02e6.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/refract/7e02e6.wgsl.expected.hlsl rename to test/builtins/gen/refract/7e02e6.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/refract/7e02e6.wgsl.expected.msl b/test/builtins/gen/refract/7e02e6.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/refract/7e02e6.wgsl.expected.msl rename to test/builtins/gen/refract/7e02e6.wgsl.expected.msl diff --git a/test/intrinsics/gen/refract/7e02e6.wgsl.expected.spvasm b/test/builtins/gen/refract/7e02e6.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/refract/7e02e6.wgsl.expected.spvasm rename to test/builtins/gen/refract/7e02e6.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/refract/7e02e6.wgsl.expected.wgsl b/test/builtins/gen/refract/7e02e6.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/refract/7e02e6.wgsl.expected.wgsl rename to test/builtins/gen/refract/7e02e6.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/refract/cbc1d2.wgsl b/test/builtins/gen/refract/cbc1d2.wgsl similarity index 89% rename from test/intrinsics/gen/refract/cbc1d2.wgsl rename to test/builtins/gen/refract/cbc1d2.wgsl index 40c0531544..6abdc6eac3 100644 --- a/test/intrinsics/gen/refract/cbc1d2.wgsl +++ b/test/builtins/gen/refract/cbc1d2.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/refract/cbc1d2.wgsl.expected.glsl b/test/builtins/gen/refract/cbc1d2.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/refract/cbc1d2.wgsl.expected.glsl rename to test/builtins/gen/refract/cbc1d2.wgsl.expected.glsl diff --git a/test/intrinsics/gen/refract/cbc1d2.wgsl.expected.hlsl b/test/builtins/gen/refract/cbc1d2.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/refract/cbc1d2.wgsl.expected.hlsl rename to test/builtins/gen/refract/cbc1d2.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/refract/cbc1d2.wgsl.expected.msl b/test/builtins/gen/refract/cbc1d2.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/refract/cbc1d2.wgsl.expected.msl rename to test/builtins/gen/refract/cbc1d2.wgsl.expected.msl diff --git a/test/intrinsics/gen/refract/cbc1d2.wgsl.expected.spvasm b/test/builtins/gen/refract/cbc1d2.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/refract/cbc1d2.wgsl.expected.spvasm rename to test/builtins/gen/refract/cbc1d2.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/refract/cbc1d2.wgsl.expected.wgsl b/test/builtins/gen/refract/cbc1d2.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/refract/cbc1d2.wgsl.expected.wgsl rename to test/builtins/gen/refract/cbc1d2.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/refract/cd905f.wgsl b/test/builtins/gen/refract/cd905f.wgsl similarity index 89% rename from test/intrinsics/gen/refract/cd905f.wgsl rename to test/builtins/gen/refract/cd905f.wgsl index 9c9e3fdb79..44d4e1b968 100644 --- a/test/intrinsics/gen/refract/cd905f.wgsl +++ b/test/builtins/gen/refract/cd905f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/refract/cd905f.wgsl.expected.glsl b/test/builtins/gen/refract/cd905f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/refract/cd905f.wgsl.expected.glsl rename to test/builtins/gen/refract/cd905f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/refract/cd905f.wgsl.expected.hlsl b/test/builtins/gen/refract/cd905f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/refract/cd905f.wgsl.expected.hlsl rename to test/builtins/gen/refract/cd905f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/refract/cd905f.wgsl.expected.msl b/test/builtins/gen/refract/cd905f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/refract/cd905f.wgsl.expected.msl rename to test/builtins/gen/refract/cd905f.wgsl.expected.msl diff --git a/test/intrinsics/gen/refract/cd905f.wgsl.expected.spvasm b/test/builtins/gen/refract/cd905f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/refract/cd905f.wgsl.expected.spvasm rename to test/builtins/gen/refract/cd905f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/refract/cd905f.wgsl.expected.wgsl b/test/builtins/gen/refract/cd905f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/refract/cd905f.wgsl.expected.wgsl rename to test/builtins/gen/refract/cd905f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/reverseBits/222177.wgsl b/test/builtins/gen/reverseBits/222177.wgsl similarity index 89% rename from test/intrinsics/gen/reverseBits/222177.wgsl rename to test/builtins/gen/reverseBits/222177.wgsl index bdbba4a5aa..467bc9fdf8 100644 --- a/test/intrinsics/gen/reverseBits/222177.wgsl +++ b/test/builtins/gen/reverseBits/222177.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/reverseBits/222177.wgsl.expected.glsl b/test/builtins/gen/reverseBits/222177.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/reverseBits/222177.wgsl.expected.glsl rename to test/builtins/gen/reverseBits/222177.wgsl.expected.glsl diff --git a/test/intrinsics/gen/reverseBits/222177.wgsl.expected.hlsl b/test/builtins/gen/reverseBits/222177.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/reverseBits/222177.wgsl.expected.hlsl rename to test/builtins/gen/reverseBits/222177.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/reverseBits/222177.wgsl.expected.msl b/test/builtins/gen/reverseBits/222177.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/reverseBits/222177.wgsl.expected.msl rename to test/builtins/gen/reverseBits/222177.wgsl.expected.msl diff --git a/test/intrinsics/gen/reverseBits/222177.wgsl.expected.spvasm b/test/builtins/gen/reverseBits/222177.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/reverseBits/222177.wgsl.expected.spvasm rename to test/builtins/gen/reverseBits/222177.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/reverseBits/222177.wgsl.expected.wgsl b/test/builtins/gen/reverseBits/222177.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/reverseBits/222177.wgsl.expected.wgsl rename to test/builtins/gen/reverseBits/222177.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/reverseBits/35fea9.wgsl b/test/builtins/gen/reverseBits/35fea9.wgsl similarity index 89% rename from test/intrinsics/gen/reverseBits/35fea9.wgsl rename to test/builtins/gen/reverseBits/35fea9.wgsl index 319f6d2039..61ba5392bd 100644 --- a/test/intrinsics/gen/reverseBits/35fea9.wgsl +++ b/test/builtins/gen/reverseBits/35fea9.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/reverseBits/35fea9.wgsl.expected.glsl b/test/builtins/gen/reverseBits/35fea9.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/reverseBits/35fea9.wgsl.expected.glsl rename to test/builtins/gen/reverseBits/35fea9.wgsl.expected.glsl diff --git a/test/intrinsics/gen/reverseBits/35fea9.wgsl.expected.hlsl b/test/builtins/gen/reverseBits/35fea9.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/reverseBits/35fea9.wgsl.expected.hlsl rename to test/builtins/gen/reverseBits/35fea9.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/reverseBits/35fea9.wgsl.expected.msl b/test/builtins/gen/reverseBits/35fea9.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/reverseBits/35fea9.wgsl.expected.msl rename to test/builtins/gen/reverseBits/35fea9.wgsl.expected.msl diff --git a/test/intrinsics/gen/reverseBits/35fea9.wgsl.expected.spvasm b/test/builtins/gen/reverseBits/35fea9.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/reverseBits/35fea9.wgsl.expected.spvasm rename to test/builtins/gen/reverseBits/35fea9.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/reverseBits/35fea9.wgsl.expected.wgsl b/test/builtins/gen/reverseBits/35fea9.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/reverseBits/35fea9.wgsl.expected.wgsl rename to test/builtins/gen/reverseBits/35fea9.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/reverseBits/4dbd6f.wgsl b/test/builtins/gen/reverseBits/4dbd6f.wgsl similarity index 89% rename from test/intrinsics/gen/reverseBits/4dbd6f.wgsl rename to test/builtins/gen/reverseBits/4dbd6f.wgsl index 09ab61f0ac..ff3d4f8e8f 100644 --- a/test/intrinsics/gen/reverseBits/4dbd6f.wgsl +++ b/test/builtins/gen/reverseBits/4dbd6f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/reverseBits/4dbd6f.wgsl.expected.glsl b/test/builtins/gen/reverseBits/4dbd6f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/reverseBits/4dbd6f.wgsl.expected.glsl rename to test/builtins/gen/reverseBits/4dbd6f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/reverseBits/4dbd6f.wgsl.expected.hlsl b/test/builtins/gen/reverseBits/4dbd6f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/reverseBits/4dbd6f.wgsl.expected.hlsl rename to test/builtins/gen/reverseBits/4dbd6f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/reverseBits/4dbd6f.wgsl.expected.msl b/test/builtins/gen/reverseBits/4dbd6f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/reverseBits/4dbd6f.wgsl.expected.msl rename to test/builtins/gen/reverseBits/4dbd6f.wgsl.expected.msl diff --git a/test/intrinsics/gen/reverseBits/4dbd6f.wgsl.expected.spvasm b/test/builtins/gen/reverseBits/4dbd6f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/reverseBits/4dbd6f.wgsl.expected.spvasm rename to test/builtins/gen/reverseBits/4dbd6f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/reverseBits/4dbd6f.wgsl.expected.wgsl b/test/builtins/gen/reverseBits/4dbd6f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/reverseBits/4dbd6f.wgsl.expected.wgsl rename to test/builtins/gen/reverseBits/4dbd6f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/reverseBits/7c4269.wgsl b/test/builtins/gen/reverseBits/7c4269.wgsl similarity index 89% rename from test/intrinsics/gen/reverseBits/7c4269.wgsl rename to test/builtins/gen/reverseBits/7c4269.wgsl index 6be3409cbc..699344a521 100644 --- a/test/intrinsics/gen/reverseBits/7c4269.wgsl +++ b/test/builtins/gen/reverseBits/7c4269.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/reverseBits/7c4269.wgsl.expected.glsl b/test/builtins/gen/reverseBits/7c4269.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/reverseBits/7c4269.wgsl.expected.glsl rename to test/builtins/gen/reverseBits/7c4269.wgsl.expected.glsl diff --git a/test/intrinsics/gen/reverseBits/7c4269.wgsl.expected.hlsl b/test/builtins/gen/reverseBits/7c4269.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/reverseBits/7c4269.wgsl.expected.hlsl rename to test/builtins/gen/reverseBits/7c4269.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/reverseBits/7c4269.wgsl.expected.msl b/test/builtins/gen/reverseBits/7c4269.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/reverseBits/7c4269.wgsl.expected.msl rename to test/builtins/gen/reverseBits/7c4269.wgsl.expected.msl diff --git a/test/intrinsics/gen/reverseBits/7c4269.wgsl.expected.spvasm b/test/builtins/gen/reverseBits/7c4269.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/reverseBits/7c4269.wgsl.expected.spvasm rename to test/builtins/gen/reverseBits/7c4269.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/reverseBits/7c4269.wgsl.expected.wgsl b/test/builtins/gen/reverseBits/7c4269.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/reverseBits/7c4269.wgsl.expected.wgsl rename to test/builtins/gen/reverseBits/7c4269.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/reverseBits/a6ccd4.wgsl b/test/builtins/gen/reverseBits/a6ccd4.wgsl similarity index 89% rename from test/intrinsics/gen/reverseBits/a6ccd4.wgsl rename to test/builtins/gen/reverseBits/a6ccd4.wgsl index 35599044b9..6b1c244d17 100644 --- a/test/intrinsics/gen/reverseBits/a6ccd4.wgsl +++ b/test/builtins/gen/reverseBits/a6ccd4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/reverseBits/a6ccd4.wgsl.expected.glsl b/test/builtins/gen/reverseBits/a6ccd4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/reverseBits/a6ccd4.wgsl.expected.glsl rename to test/builtins/gen/reverseBits/a6ccd4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/reverseBits/a6ccd4.wgsl.expected.hlsl b/test/builtins/gen/reverseBits/a6ccd4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/reverseBits/a6ccd4.wgsl.expected.hlsl rename to test/builtins/gen/reverseBits/a6ccd4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/reverseBits/a6ccd4.wgsl.expected.msl b/test/builtins/gen/reverseBits/a6ccd4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/reverseBits/a6ccd4.wgsl.expected.msl rename to test/builtins/gen/reverseBits/a6ccd4.wgsl.expected.msl diff --git a/test/intrinsics/gen/reverseBits/a6ccd4.wgsl.expected.spvasm b/test/builtins/gen/reverseBits/a6ccd4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/reverseBits/a6ccd4.wgsl.expected.spvasm rename to test/builtins/gen/reverseBits/a6ccd4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/reverseBits/a6ccd4.wgsl.expected.wgsl b/test/builtins/gen/reverseBits/a6ccd4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/reverseBits/a6ccd4.wgsl.expected.wgsl rename to test/builtins/gen/reverseBits/a6ccd4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/reverseBits/c21bc1.wgsl b/test/builtins/gen/reverseBits/c21bc1.wgsl similarity index 89% rename from test/intrinsics/gen/reverseBits/c21bc1.wgsl rename to test/builtins/gen/reverseBits/c21bc1.wgsl index 985e64ab0f..cb6f8e3bb9 100644 --- a/test/intrinsics/gen/reverseBits/c21bc1.wgsl +++ b/test/builtins/gen/reverseBits/c21bc1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/reverseBits/c21bc1.wgsl.expected.glsl b/test/builtins/gen/reverseBits/c21bc1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/reverseBits/c21bc1.wgsl.expected.glsl rename to test/builtins/gen/reverseBits/c21bc1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/reverseBits/c21bc1.wgsl.expected.hlsl b/test/builtins/gen/reverseBits/c21bc1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/reverseBits/c21bc1.wgsl.expected.hlsl rename to test/builtins/gen/reverseBits/c21bc1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/reverseBits/c21bc1.wgsl.expected.msl b/test/builtins/gen/reverseBits/c21bc1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/reverseBits/c21bc1.wgsl.expected.msl rename to test/builtins/gen/reverseBits/c21bc1.wgsl.expected.msl diff --git a/test/intrinsics/gen/reverseBits/c21bc1.wgsl.expected.spvasm b/test/builtins/gen/reverseBits/c21bc1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/reverseBits/c21bc1.wgsl.expected.spvasm rename to test/builtins/gen/reverseBits/c21bc1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/reverseBits/c21bc1.wgsl.expected.wgsl b/test/builtins/gen/reverseBits/c21bc1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/reverseBits/c21bc1.wgsl.expected.wgsl rename to test/builtins/gen/reverseBits/c21bc1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/reverseBits/e1f4c1.wgsl b/test/builtins/gen/reverseBits/e1f4c1.wgsl similarity index 89% rename from test/intrinsics/gen/reverseBits/e1f4c1.wgsl rename to test/builtins/gen/reverseBits/e1f4c1.wgsl index d186157d24..5076c6f6a5 100644 --- a/test/intrinsics/gen/reverseBits/e1f4c1.wgsl +++ b/test/builtins/gen/reverseBits/e1f4c1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/reverseBits/e1f4c1.wgsl.expected.glsl b/test/builtins/gen/reverseBits/e1f4c1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/reverseBits/e1f4c1.wgsl.expected.glsl rename to test/builtins/gen/reverseBits/e1f4c1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/reverseBits/e1f4c1.wgsl.expected.hlsl b/test/builtins/gen/reverseBits/e1f4c1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/reverseBits/e1f4c1.wgsl.expected.hlsl rename to test/builtins/gen/reverseBits/e1f4c1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/reverseBits/e1f4c1.wgsl.expected.msl b/test/builtins/gen/reverseBits/e1f4c1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/reverseBits/e1f4c1.wgsl.expected.msl rename to test/builtins/gen/reverseBits/e1f4c1.wgsl.expected.msl diff --git a/test/intrinsics/gen/reverseBits/e1f4c1.wgsl.expected.spvasm b/test/builtins/gen/reverseBits/e1f4c1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/reverseBits/e1f4c1.wgsl.expected.spvasm rename to test/builtins/gen/reverseBits/e1f4c1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/reverseBits/e1f4c1.wgsl.expected.wgsl b/test/builtins/gen/reverseBits/e1f4c1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/reverseBits/e1f4c1.wgsl.expected.wgsl rename to test/builtins/gen/reverseBits/e1f4c1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/reverseBits/e31adf.wgsl b/test/builtins/gen/reverseBits/e31adf.wgsl similarity index 89% rename from test/intrinsics/gen/reverseBits/e31adf.wgsl rename to test/builtins/gen/reverseBits/e31adf.wgsl index c32c738ed9..3b31baed00 100644 --- a/test/intrinsics/gen/reverseBits/e31adf.wgsl +++ b/test/builtins/gen/reverseBits/e31adf.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/reverseBits/e31adf.wgsl.expected.glsl b/test/builtins/gen/reverseBits/e31adf.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/reverseBits/e31adf.wgsl.expected.glsl rename to test/builtins/gen/reverseBits/e31adf.wgsl.expected.glsl diff --git a/test/intrinsics/gen/reverseBits/e31adf.wgsl.expected.hlsl b/test/builtins/gen/reverseBits/e31adf.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/reverseBits/e31adf.wgsl.expected.hlsl rename to test/builtins/gen/reverseBits/e31adf.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/reverseBits/e31adf.wgsl.expected.msl b/test/builtins/gen/reverseBits/e31adf.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/reverseBits/e31adf.wgsl.expected.msl rename to test/builtins/gen/reverseBits/e31adf.wgsl.expected.msl diff --git a/test/intrinsics/gen/reverseBits/e31adf.wgsl.expected.spvasm b/test/builtins/gen/reverseBits/e31adf.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/reverseBits/e31adf.wgsl.expected.spvasm rename to test/builtins/gen/reverseBits/e31adf.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/reverseBits/e31adf.wgsl.expected.wgsl b/test/builtins/gen/reverseBits/e31adf.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/reverseBits/e31adf.wgsl.expected.wgsl rename to test/builtins/gen/reverseBits/e31adf.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/round/106c0b.wgsl b/test/builtins/gen/round/106c0b.wgsl similarity index 89% rename from test/intrinsics/gen/round/106c0b.wgsl rename to test/builtins/gen/round/106c0b.wgsl index 52ebd56e2b..5d684cefaa 100644 --- a/test/intrinsics/gen/round/106c0b.wgsl +++ b/test/builtins/gen/round/106c0b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/round/106c0b.wgsl.expected.glsl b/test/builtins/gen/round/106c0b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/round/106c0b.wgsl.expected.glsl rename to test/builtins/gen/round/106c0b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/round/106c0b.wgsl.expected.hlsl b/test/builtins/gen/round/106c0b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/round/106c0b.wgsl.expected.hlsl rename to test/builtins/gen/round/106c0b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/round/106c0b.wgsl.expected.msl b/test/builtins/gen/round/106c0b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/round/106c0b.wgsl.expected.msl rename to test/builtins/gen/round/106c0b.wgsl.expected.msl diff --git a/test/intrinsics/gen/round/106c0b.wgsl.expected.spvasm b/test/builtins/gen/round/106c0b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/round/106c0b.wgsl.expected.spvasm rename to test/builtins/gen/round/106c0b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/round/106c0b.wgsl.expected.wgsl b/test/builtins/gen/round/106c0b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/round/106c0b.wgsl.expected.wgsl rename to test/builtins/gen/round/106c0b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/round/1c7897.wgsl b/test/builtins/gen/round/1c7897.wgsl similarity index 89% rename from test/intrinsics/gen/round/1c7897.wgsl rename to test/builtins/gen/round/1c7897.wgsl index c0f13aeadf..8e9898ba7d 100644 --- a/test/intrinsics/gen/round/1c7897.wgsl +++ b/test/builtins/gen/round/1c7897.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/round/1c7897.wgsl.expected.glsl b/test/builtins/gen/round/1c7897.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/round/1c7897.wgsl.expected.glsl rename to test/builtins/gen/round/1c7897.wgsl.expected.glsl diff --git a/test/intrinsics/gen/round/1c7897.wgsl.expected.hlsl b/test/builtins/gen/round/1c7897.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/round/1c7897.wgsl.expected.hlsl rename to test/builtins/gen/round/1c7897.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/round/1c7897.wgsl.expected.msl b/test/builtins/gen/round/1c7897.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/round/1c7897.wgsl.expected.msl rename to test/builtins/gen/round/1c7897.wgsl.expected.msl diff --git a/test/intrinsics/gen/round/1c7897.wgsl.expected.spvasm b/test/builtins/gen/round/1c7897.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/round/1c7897.wgsl.expected.spvasm rename to test/builtins/gen/round/1c7897.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/round/1c7897.wgsl.expected.wgsl b/test/builtins/gen/round/1c7897.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/round/1c7897.wgsl.expected.wgsl rename to test/builtins/gen/round/1c7897.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/round/52c84d.wgsl b/test/builtins/gen/round/52c84d.wgsl similarity index 89% rename from test/intrinsics/gen/round/52c84d.wgsl rename to test/builtins/gen/round/52c84d.wgsl index 385bb5ebec..f3bc8bfb08 100644 --- a/test/intrinsics/gen/round/52c84d.wgsl +++ b/test/builtins/gen/round/52c84d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/round/52c84d.wgsl.expected.glsl b/test/builtins/gen/round/52c84d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/round/52c84d.wgsl.expected.glsl rename to test/builtins/gen/round/52c84d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/round/52c84d.wgsl.expected.hlsl b/test/builtins/gen/round/52c84d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/round/52c84d.wgsl.expected.hlsl rename to test/builtins/gen/round/52c84d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/round/52c84d.wgsl.expected.msl b/test/builtins/gen/round/52c84d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/round/52c84d.wgsl.expected.msl rename to test/builtins/gen/round/52c84d.wgsl.expected.msl diff --git a/test/intrinsics/gen/round/52c84d.wgsl.expected.spvasm b/test/builtins/gen/round/52c84d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/round/52c84d.wgsl.expected.spvasm rename to test/builtins/gen/round/52c84d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/round/52c84d.wgsl.expected.wgsl b/test/builtins/gen/round/52c84d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/round/52c84d.wgsl.expected.wgsl rename to test/builtins/gen/round/52c84d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/round/9edc38.wgsl b/test/builtins/gen/round/9edc38.wgsl similarity index 88% rename from test/intrinsics/gen/round/9edc38.wgsl rename to test/builtins/gen/round/9edc38.wgsl index e4fd1767e4..010071b39d 100644 --- a/test/intrinsics/gen/round/9edc38.wgsl +++ b/test/builtins/gen/round/9edc38.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/round/9edc38.wgsl.expected.glsl b/test/builtins/gen/round/9edc38.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/round/9edc38.wgsl.expected.glsl rename to test/builtins/gen/round/9edc38.wgsl.expected.glsl diff --git a/test/intrinsics/gen/round/9edc38.wgsl.expected.hlsl b/test/builtins/gen/round/9edc38.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/round/9edc38.wgsl.expected.hlsl rename to test/builtins/gen/round/9edc38.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/round/9edc38.wgsl.expected.msl b/test/builtins/gen/round/9edc38.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/round/9edc38.wgsl.expected.msl rename to test/builtins/gen/round/9edc38.wgsl.expected.msl diff --git a/test/intrinsics/gen/round/9edc38.wgsl.expected.spvasm b/test/builtins/gen/round/9edc38.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/round/9edc38.wgsl.expected.spvasm rename to test/builtins/gen/round/9edc38.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/round/9edc38.wgsl.expected.wgsl b/test/builtins/gen/round/9edc38.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/round/9edc38.wgsl.expected.wgsl rename to test/builtins/gen/round/9edc38.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/00b848.wgsl b/test/builtins/gen/select/00b848.wgsl similarity index 89% rename from test/intrinsics/gen/select/00b848.wgsl rename to test/builtins/gen/select/00b848.wgsl index a1f4834a91..32c7ffb550 100644 --- a/test/intrinsics/gen/select/00b848.wgsl +++ b/test/builtins/gen/select/00b848.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/00b848.wgsl.expected.glsl b/test/builtins/gen/select/00b848.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/00b848.wgsl.expected.glsl rename to test/builtins/gen/select/00b848.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/00b848.wgsl.expected.hlsl b/test/builtins/gen/select/00b848.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/00b848.wgsl.expected.hlsl rename to test/builtins/gen/select/00b848.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/00b848.wgsl.expected.msl b/test/builtins/gen/select/00b848.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/00b848.wgsl.expected.msl rename to test/builtins/gen/select/00b848.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/00b848.wgsl.expected.spvasm b/test/builtins/gen/select/00b848.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/00b848.wgsl.expected.spvasm rename to test/builtins/gen/select/00b848.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/00b848.wgsl.expected.wgsl b/test/builtins/gen/select/00b848.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/00b848.wgsl.expected.wgsl rename to test/builtins/gen/select/00b848.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/01e2cd.wgsl b/test/builtins/gen/select/01e2cd.wgsl similarity index 89% rename from test/intrinsics/gen/select/01e2cd.wgsl rename to test/builtins/gen/select/01e2cd.wgsl index c8e04087bd..771586005f 100644 --- a/test/intrinsics/gen/select/01e2cd.wgsl +++ b/test/builtins/gen/select/01e2cd.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/01e2cd.wgsl.expected.glsl b/test/builtins/gen/select/01e2cd.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/01e2cd.wgsl.expected.glsl rename to test/builtins/gen/select/01e2cd.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/01e2cd.wgsl.expected.hlsl b/test/builtins/gen/select/01e2cd.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/01e2cd.wgsl.expected.hlsl rename to test/builtins/gen/select/01e2cd.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/01e2cd.wgsl.expected.msl b/test/builtins/gen/select/01e2cd.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/01e2cd.wgsl.expected.msl rename to test/builtins/gen/select/01e2cd.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/01e2cd.wgsl.expected.spvasm b/test/builtins/gen/select/01e2cd.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/01e2cd.wgsl.expected.spvasm rename to test/builtins/gen/select/01e2cd.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/01e2cd.wgsl.expected.wgsl b/test/builtins/gen/select/01e2cd.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/01e2cd.wgsl.expected.wgsl rename to test/builtins/gen/select/01e2cd.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/087ea4.wgsl b/test/builtins/gen/select/087ea4.wgsl similarity index 89% rename from test/intrinsics/gen/select/087ea4.wgsl rename to test/builtins/gen/select/087ea4.wgsl index f8f79245ac..a2fcf56734 100644 --- a/test/intrinsics/gen/select/087ea4.wgsl +++ b/test/builtins/gen/select/087ea4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/087ea4.wgsl.expected.glsl b/test/builtins/gen/select/087ea4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/087ea4.wgsl.expected.glsl rename to test/builtins/gen/select/087ea4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/087ea4.wgsl.expected.hlsl b/test/builtins/gen/select/087ea4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/087ea4.wgsl.expected.hlsl rename to test/builtins/gen/select/087ea4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/087ea4.wgsl.expected.msl b/test/builtins/gen/select/087ea4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/087ea4.wgsl.expected.msl rename to test/builtins/gen/select/087ea4.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/087ea4.wgsl.expected.spvasm b/test/builtins/gen/select/087ea4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/087ea4.wgsl.expected.spvasm rename to test/builtins/gen/select/087ea4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/087ea4.wgsl.expected.wgsl b/test/builtins/gen/select/087ea4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/087ea4.wgsl.expected.wgsl rename to test/builtins/gen/select/087ea4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/1e960b.wgsl b/test/builtins/gen/select/1e960b.wgsl similarity index 89% rename from test/intrinsics/gen/select/1e960b.wgsl rename to test/builtins/gen/select/1e960b.wgsl index 92c0df6ee7..6594ce163c 100644 --- a/test/intrinsics/gen/select/1e960b.wgsl +++ b/test/builtins/gen/select/1e960b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/1e960b.wgsl.expected.glsl b/test/builtins/gen/select/1e960b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/1e960b.wgsl.expected.glsl rename to test/builtins/gen/select/1e960b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/1e960b.wgsl.expected.hlsl b/test/builtins/gen/select/1e960b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/1e960b.wgsl.expected.hlsl rename to test/builtins/gen/select/1e960b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/1e960b.wgsl.expected.msl b/test/builtins/gen/select/1e960b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/1e960b.wgsl.expected.msl rename to test/builtins/gen/select/1e960b.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/1e960b.wgsl.expected.spvasm b/test/builtins/gen/select/1e960b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/1e960b.wgsl.expected.spvasm rename to test/builtins/gen/select/1e960b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/1e960b.wgsl.expected.wgsl b/test/builtins/gen/select/1e960b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/1e960b.wgsl.expected.wgsl rename to test/builtins/gen/select/1e960b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/266aff.wgsl b/test/builtins/gen/select/266aff.wgsl similarity index 89% rename from test/intrinsics/gen/select/266aff.wgsl rename to test/builtins/gen/select/266aff.wgsl index 6faee8aaf2..56e311ac0b 100644 --- a/test/intrinsics/gen/select/266aff.wgsl +++ b/test/builtins/gen/select/266aff.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/266aff.wgsl.expected.glsl b/test/builtins/gen/select/266aff.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/266aff.wgsl.expected.glsl rename to test/builtins/gen/select/266aff.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/266aff.wgsl.expected.hlsl b/test/builtins/gen/select/266aff.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/266aff.wgsl.expected.hlsl rename to test/builtins/gen/select/266aff.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/266aff.wgsl.expected.msl b/test/builtins/gen/select/266aff.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/266aff.wgsl.expected.msl rename to test/builtins/gen/select/266aff.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/266aff.wgsl.expected.spvasm b/test/builtins/gen/select/266aff.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/266aff.wgsl.expected.spvasm rename to test/builtins/gen/select/266aff.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/266aff.wgsl.expected.wgsl b/test/builtins/gen/select/266aff.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/266aff.wgsl.expected.wgsl rename to test/builtins/gen/select/266aff.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/28a27e.wgsl b/test/builtins/gen/select/28a27e.wgsl similarity index 89% rename from test/intrinsics/gen/select/28a27e.wgsl rename to test/builtins/gen/select/28a27e.wgsl index cc515a98c4..42151b56f0 100644 --- a/test/intrinsics/gen/select/28a27e.wgsl +++ b/test/builtins/gen/select/28a27e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/28a27e.wgsl.expected.glsl b/test/builtins/gen/select/28a27e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/28a27e.wgsl.expected.glsl rename to test/builtins/gen/select/28a27e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/28a27e.wgsl.expected.hlsl b/test/builtins/gen/select/28a27e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/28a27e.wgsl.expected.hlsl rename to test/builtins/gen/select/28a27e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/28a27e.wgsl.expected.msl b/test/builtins/gen/select/28a27e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/28a27e.wgsl.expected.msl rename to test/builtins/gen/select/28a27e.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/28a27e.wgsl.expected.spvasm b/test/builtins/gen/select/28a27e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/28a27e.wgsl.expected.spvasm rename to test/builtins/gen/select/28a27e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/28a27e.wgsl.expected.wgsl b/test/builtins/gen/select/28a27e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/28a27e.wgsl.expected.wgsl rename to test/builtins/gen/select/28a27e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/3c25ce.wgsl b/test/builtins/gen/select/3c25ce.wgsl similarity index 89% rename from test/intrinsics/gen/select/3c25ce.wgsl rename to test/builtins/gen/select/3c25ce.wgsl index 85d68b14c4..3670bd6e90 100644 --- a/test/intrinsics/gen/select/3c25ce.wgsl +++ b/test/builtins/gen/select/3c25ce.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/3c25ce.wgsl.expected.glsl b/test/builtins/gen/select/3c25ce.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/3c25ce.wgsl.expected.glsl rename to test/builtins/gen/select/3c25ce.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/3c25ce.wgsl.expected.hlsl b/test/builtins/gen/select/3c25ce.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/3c25ce.wgsl.expected.hlsl rename to test/builtins/gen/select/3c25ce.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/3c25ce.wgsl.expected.msl b/test/builtins/gen/select/3c25ce.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/3c25ce.wgsl.expected.msl rename to test/builtins/gen/select/3c25ce.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/3c25ce.wgsl.expected.spvasm b/test/builtins/gen/select/3c25ce.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/3c25ce.wgsl.expected.spvasm rename to test/builtins/gen/select/3c25ce.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/3c25ce.wgsl.expected.wgsl b/test/builtins/gen/select/3c25ce.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/3c25ce.wgsl.expected.wgsl rename to test/builtins/gen/select/3c25ce.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/416e14.wgsl b/test/builtins/gen/select/416e14.wgsl similarity index 89% rename from test/intrinsics/gen/select/416e14.wgsl rename to test/builtins/gen/select/416e14.wgsl index c69cd17882..78d799d7a6 100644 --- a/test/intrinsics/gen/select/416e14.wgsl +++ b/test/builtins/gen/select/416e14.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/416e14.wgsl.expected.glsl b/test/builtins/gen/select/416e14.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/416e14.wgsl.expected.glsl rename to test/builtins/gen/select/416e14.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/416e14.wgsl.expected.hlsl b/test/builtins/gen/select/416e14.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/416e14.wgsl.expected.hlsl rename to test/builtins/gen/select/416e14.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/416e14.wgsl.expected.msl b/test/builtins/gen/select/416e14.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/416e14.wgsl.expected.msl rename to test/builtins/gen/select/416e14.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/416e14.wgsl.expected.spvasm b/test/builtins/gen/select/416e14.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/416e14.wgsl.expected.spvasm rename to test/builtins/gen/select/416e14.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/416e14.wgsl.expected.wgsl b/test/builtins/gen/select/416e14.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/416e14.wgsl.expected.wgsl rename to test/builtins/gen/select/416e14.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/51b047.wgsl b/test/builtins/gen/select/51b047.wgsl similarity index 89% rename from test/intrinsics/gen/select/51b047.wgsl rename to test/builtins/gen/select/51b047.wgsl index f774d3f9b6..63c6e77fd6 100644 --- a/test/intrinsics/gen/select/51b047.wgsl +++ b/test/builtins/gen/select/51b047.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/51b047.wgsl.expected.glsl b/test/builtins/gen/select/51b047.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/51b047.wgsl.expected.glsl rename to test/builtins/gen/select/51b047.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/51b047.wgsl.expected.hlsl b/test/builtins/gen/select/51b047.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/51b047.wgsl.expected.hlsl rename to test/builtins/gen/select/51b047.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/51b047.wgsl.expected.msl b/test/builtins/gen/select/51b047.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/51b047.wgsl.expected.msl rename to test/builtins/gen/select/51b047.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/51b047.wgsl.expected.spvasm b/test/builtins/gen/select/51b047.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/51b047.wgsl.expected.spvasm rename to test/builtins/gen/select/51b047.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/51b047.wgsl.expected.wgsl b/test/builtins/gen/select/51b047.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/51b047.wgsl.expected.wgsl rename to test/builtins/gen/select/51b047.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/713567.wgsl b/test/builtins/gen/select/713567.wgsl similarity index 89% rename from test/intrinsics/gen/select/713567.wgsl rename to test/builtins/gen/select/713567.wgsl index 9dad142ef7..1e3b6467a2 100644 --- a/test/intrinsics/gen/select/713567.wgsl +++ b/test/builtins/gen/select/713567.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/713567.wgsl.expected.glsl b/test/builtins/gen/select/713567.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/713567.wgsl.expected.glsl rename to test/builtins/gen/select/713567.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/713567.wgsl.expected.hlsl b/test/builtins/gen/select/713567.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/713567.wgsl.expected.hlsl rename to test/builtins/gen/select/713567.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/713567.wgsl.expected.msl b/test/builtins/gen/select/713567.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/713567.wgsl.expected.msl rename to test/builtins/gen/select/713567.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/713567.wgsl.expected.spvasm b/test/builtins/gen/select/713567.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/713567.wgsl.expected.spvasm rename to test/builtins/gen/select/713567.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/713567.wgsl.expected.wgsl b/test/builtins/gen/select/713567.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/713567.wgsl.expected.wgsl rename to test/builtins/gen/select/713567.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/78be5f.wgsl b/test/builtins/gen/select/78be5f.wgsl similarity index 89% rename from test/intrinsics/gen/select/78be5f.wgsl rename to test/builtins/gen/select/78be5f.wgsl index 363cb618e1..59b5f04d7a 100644 --- a/test/intrinsics/gen/select/78be5f.wgsl +++ b/test/builtins/gen/select/78be5f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/78be5f.wgsl.expected.glsl b/test/builtins/gen/select/78be5f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/78be5f.wgsl.expected.glsl rename to test/builtins/gen/select/78be5f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/78be5f.wgsl.expected.hlsl b/test/builtins/gen/select/78be5f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/78be5f.wgsl.expected.hlsl rename to test/builtins/gen/select/78be5f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/78be5f.wgsl.expected.msl b/test/builtins/gen/select/78be5f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/78be5f.wgsl.expected.msl rename to test/builtins/gen/select/78be5f.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/78be5f.wgsl.expected.spvasm b/test/builtins/gen/select/78be5f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/78be5f.wgsl.expected.spvasm rename to test/builtins/gen/select/78be5f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/78be5f.wgsl.expected.wgsl b/test/builtins/gen/select/78be5f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/78be5f.wgsl.expected.wgsl rename to test/builtins/gen/select/78be5f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/80a9a9.wgsl b/test/builtins/gen/select/80a9a9.wgsl similarity index 89% rename from test/intrinsics/gen/select/80a9a9.wgsl rename to test/builtins/gen/select/80a9a9.wgsl index 970d4b0163..5e1fc6c7e6 100644 --- a/test/intrinsics/gen/select/80a9a9.wgsl +++ b/test/builtins/gen/select/80a9a9.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/80a9a9.wgsl.expected.glsl b/test/builtins/gen/select/80a9a9.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/80a9a9.wgsl.expected.glsl rename to test/builtins/gen/select/80a9a9.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/80a9a9.wgsl.expected.hlsl b/test/builtins/gen/select/80a9a9.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/80a9a9.wgsl.expected.hlsl rename to test/builtins/gen/select/80a9a9.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/80a9a9.wgsl.expected.msl b/test/builtins/gen/select/80a9a9.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/80a9a9.wgsl.expected.msl rename to test/builtins/gen/select/80a9a9.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/80a9a9.wgsl.expected.spvasm b/test/builtins/gen/select/80a9a9.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/80a9a9.wgsl.expected.spvasm rename to test/builtins/gen/select/80a9a9.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/80a9a9.wgsl.expected.wgsl b/test/builtins/gen/select/80a9a9.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/80a9a9.wgsl.expected.wgsl rename to test/builtins/gen/select/80a9a9.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/8fa62c.wgsl b/test/builtins/gen/select/8fa62c.wgsl similarity index 89% rename from test/intrinsics/gen/select/8fa62c.wgsl rename to test/builtins/gen/select/8fa62c.wgsl index 6fd149a7c0..97a8fe7d11 100644 --- a/test/intrinsics/gen/select/8fa62c.wgsl +++ b/test/builtins/gen/select/8fa62c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/8fa62c.wgsl.expected.glsl b/test/builtins/gen/select/8fa62c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/8fa62c.wgsl.expected.glsl rename to test/builtins/gen/select/8fa62c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/8fa62c.wgsl.expected.hlsl b/test/builtins/gen/select/8fa62c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/8fa62c.wgsl.expected.hlsl rename to test/builtins/gen/select/8fa62c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/8fa62c.wgsl.expected.msl b/test/builtins/gen/select/8fa62c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/8fa62c.wgsl.expected.msl rename to test/builtins/gen/select/8fa62c.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/8fa62c.wgsl.expected.spvasm b/test/builtins/gen/select/8fa62c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/8fa62c.wgsl.expected.spvasm rename to test/builtins/gen/select/8fa62c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/8fa62c.wgsl.expected.wgsl b/test/builtins/gen/select/8fa62c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/8fa62c.wgsl.expected.wgsl rename to test/builtins/gen/select/8fa62c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/99f883.wgsl b/test/builtins/gen/select/99f883.wgsl similarity index 89% rename from test/intrinsics/gen/select/99f883.wgsl rename to test/builtins/gen/select/99f883.wgsl index 25c5a2591f..7fd93b3aff 100644 --- a/test/intrinsics/gen/select/99f883.wgsl +++ b/test/builtins/gen/select/99f883.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/99f883.wgsl.expected.glsl b/test/builtins/gen/select/99f883.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/99f883.wgsl.expected.glsl rename to test/builtins/gen/select/99f883.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/99f883.wgsl.expected.hlsl b/test/builtins/gen/select/99f883.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/99f883.wgsl.expected.hlsl rename to test/builtins/gen/select/99f883.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/99f883.wgsl.expected.msl b/test/builtins/gen/select/99f883.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/99f883.wgsl.expected.msl rename to test/builtins/gen/select/99f883.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/99f883.wgsl.expected.spvasm b/test/builtins/gen/select/99f883.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/99f883.wgsl.expected.spvasm rename to test/builtins/gen/select/99f883.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/99f883.wgsl.expected.wgsl b/test/builtins/gen/select/99f883.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/99f883.wgsl.expected.wgsl rename to test/builtins/gen/select/99f883.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/a2860e.wgsl b/test/builtins/gen/select/a2860e.wgsl similarity index 89% rename from test/intrinsics/gen/select/a2860e.wgsl rename to test/builtins/gen/select/a2860e.wgsl index 6b3b0b2037..f8085037f0 100644 --- a/test/intrinsics/gen/select/a2860e.wgsl +++ b/test/builtins/gen/select/a2860e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/a2860e.wgsl.expected.glsl b/test/builtins/gen/select/a2860e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/a2860e.wgsl.expected.glsl rename to test/builtins/gen/select/a2860e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/a2860e.wgsl.expected.hlsl b/test/builtins/gen/select/a2860e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/a2860e.wgsl.expected.hlsl rename to test/builtins/gen/select/a2860e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/a2860e.wgsl.expected.msl b/test/builtins/gen/select/a2860e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/a2860e.wgsl.expected.msl rename to test/builtins/gen/select/a2860e.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/a2860e.wgsl.expected.spvasm b/test/builtins/gen/select/a2860e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/a2860e.wgsl.expected.spvasm rename to test/builtins/gen/select/a2860e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/a2860e.wgsl.expected.wgsl b/test/builtins/gen/select/a2860e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/a2860e.wgsl.expected.wgsl rename to test/builtins/gen/select/a2860e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/ab069f.wgsl b/test/builtins/gen/select/ab069f.wgsl similarity index 89% rename from test/intrinsics/gen/select/ab069f.wgsl rename to test/builtins/gen/select/ab069f.wgsl index a55fa79c35..e9d766ae45 100644 --- a/test/intrinsics/gen/select/ab069f.wgsl +++ b/test/builtins/gen/select/ab069f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/ab069f.wgsl.expected.glsl b/test/builtins/gen/select/ab069f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/ab069f.wgsl.expected.glsl rename to test/builtins/gen/select/ab069f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/ab069f.wgsl.expected.hlsl b/test/builtins/gen/select/ab069f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/ab069f.wgsl.expected.hlsl rename to test/builtins/gen/select/ab069f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/ab069f.wgsl.expected.msl b/test/builtins/gen/select/ab069f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/ab069f.wgsl.expected.msl rename to test/builtins/gen/select/ab069f.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/ab069f.wgsl.expected.spvasm b/test/builtins/gen/select/ab069f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/ab069f.wgsl.expected.spvasm rename to test/builtins/gen/select/ab069f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/ab069f.wgsl.expected.wgsl b/test/builtins/gen/select/ab069f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/ab069f.wgsl.expected.wgsl rename to test/builtins/gen/select/ab069f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/b04721.wgsl b/test/builtins/gen/select/b04721.wgsl similarity index 89% rename from test/intrinsics/gen/select/b04721.wgsl rename to test/builtins/gen/select/b04721.wgsl index 1de67395b9..2d3f476ea2 100644 --- a/test/intrinsics/gen/select/b04721.wgsl +++ b/test/builtins/gen/select/b04721.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/b04721.wgsl.expected.glsl b/test/builtins/gen/select/b04721.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/b04721.wgsl.expected.glsl rename to test/builtins/gen/select/b04721.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/b04721.wgsl.expected.hlsl b/test/builtins/gen/select/b04721.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/b04721.wgsl.expected.hlsl rename to test/builtins/gen/select/b04721.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/b04721.wgsl.expected.msl b/test/builtins/gen/select/b04721.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/b04721.wgsl.expected.msl rename to test/builtins/gen/select/b04721.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/b04721.wgsl.expected.spvasm b/test/builtins/gen/select/b04721.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/b04721.wgsl.expected.spvasm rename to test/builtins/gen/select/b04721.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/b04721.wgsl.expected.wgsl b/test/builtins/gen/select/b04721.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/b04721.wgsl.expected.wgsl rename to test/builtins/gen/select/b04721.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/bb447f.wgsl b/test/builtins/gen/select/bb447f.wgsl similarity index 89% rename from test/intrinsics/gen/select/bb447f.wgsl rename to test/builtins/gen/select/bb447f.wgsl index f15929a07c..fe721095a3 100644 --- a/test/intrinsics/gen/select/bb447f.wgsl +++ b/test/builtins/gen/select/bb447f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/bb447f.wgsl.expected.glsl b/test/builtins/gen/select/bb447f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/bb447f.wgsl.expected.glsl rename to test/builtins/gen/select/bb447f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/bb447f.wgsl.expected.hlsl b/test/builtins/gen/select/bb447f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/bb447f.wgsl.expected.hlsl rename to test/builtins/gen/select/bb447f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/bb447f.wgsl.expected.msl b/test/builtins/gen/select/bb447f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/bb447f.wgsl.expected.msl rename to test/builtins/gen/select/bb447f.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/bb447f.wgsl.expected.spvasm b/test/builtins/gen/select/bb447f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/bb447f.wgsl.expected.spvasm rename to test/builtins/gen/select/bb447f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/bb447f.wgsl.expected.wgsl b/test/builtins/gen/select/bb447f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/bb447f.wgsl.expected.wgsl rename to test/builtins/gen/select/bb447f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/bb8aae.wgsl b/test/builtins/gen/select/bb8aae.wgsl similarity index 89% rename from test/intrinsics/gen/select/bb8aae.wgsl rename to test/builtins/gen/select/bb8aae.wgsl index 786f619004..18b8a09c3a 100644 --- a/test/intrinsics/gen/select/bb8aae.wgsl +++ b/test/builtins/gen/select/bb8aae.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/bb8aae.wgsl.expected.glsl b/test/builtins/gen/select/bb8aae.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/bb8aae.wgsl.expected.glsl rename to test/builtins/gen/select/bb8aae.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/bb8aae.wgsl.expected.hlsl b/test/builtins/gen/select/bb8aae.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/bb8aae.wgsl.expected.hlsl rename to test/builtins/gen/select/bb8aae.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/bb8aae.wgsl.expected.msl b/test/builtins/gen/select/bb8aae.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/bb8aae.wgsl.expected.msl rename to test/builtins/gen/select/bb8aae.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/bb8aae.wgsl.expected.spvasm b/test/builtins/gen/select/bb8aae.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/bb8aae.wgsl.expected.spvasm rename to test/builtins/gen/select/bb8aae.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/bb8aae.wgsl.expected.wgsl b/test/builtins/gen/select/bb8aae.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/bb8aae.wgsl.expected.wgsl rename to test/builtins/gen/select/bb8aae.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/bf3d29.wgsl b/test/builtins/gen/select/bf3d29.wgsl similarity index 89% rename from test/intrinsics/gen/select/bf3d29.wgsl rename to test/builtins/gen/select/bf3d29.wgsl index db8e8559af..571a586a24 100644 --- a/test/intrinsics/gen/select/bf3d29.wgsl +++ b/test/builtins/gen/select/bf3d29.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/bf3d29.wgsl.expected.glsl b/test/builtins/gen/select/bf3d29.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/bf3d29.wgsl.expected.glsl rename to test/builtins/gen/select/bf3d29.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/bf3d29.wgsl.expected.hlsl b/test/builtins/gen/select/bf3d29.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/bf3d29.wgsl.expected.hlsl rename to test/builtins/gen/select/bf3d29.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/bf3d29.wgsl.expected.msl b/test/builtins/gen/select/bf3d29.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/bf3d29.wgsl.expected.msl rename to test/builtins/gen/select/bf3d29.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/bf3d29.wgsl.expected.spvasm b/test/builtins/gen/select/bf3d29.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/bf3d29.wgsl.expected.spvasm rename to test/builtins/gen/select/bf3d29.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/bf3d29.wgsl.expected.wgsl b/test/builtins/gen/select/bf3d29.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/bf3d29.wgsl.expected.wgsl rename to test/builtins/gen/select/bf3d29.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/c31f9e.wgsl b/test/builtins/gen/select/c31f9e.wgsl similarity index 89% rename from test/intrinsics/gen/select/c31f9e.wgsl rename to test/builtins/gen/select/c31f9e.wgsl index 3f04796763..1239a04618 100644 --- a/test/intrinsics/gen/select/c31f9e.wgsl +++ b/test/builtins/gen/select/c31f9e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/c31f9e.wgsl.expected.glsl b/test/builtins/gen/select/c31f9e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/c31f9e.wgsl.expected.glsl rename to test/builtins/gen/select/c31f9e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/c31f9e.wgsl.expected.hlsl b/test/builtins/gen/select/c31f9e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/c31f9e.wgsl.expected.hlsl rename to test/builtins/gen/select/c31f9e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/c31f9e.wgsl.expected.msl b/test/builtins/gen/select/c31f9e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/c31f9e.wgsl.expected.msl rename to test/builtins/gen/select/c31f9e.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/c31f9e.wgsl.expected.spvasm b/test/builtins/gen/select/c31f9e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/c31f9e.wgsl.expected.spvasm rename to test/builtins/gen/select/c31f9e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/c31f9e.wgsl.expected.wgsl b/test/builtins/gen/select/c31f9e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/c31f9e.wgsl.expected.wgsl rename to test/builtins/gen/select/c31f9e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/c41bd1.wgsl b/test/builtins/gen/select/c41bd1.wgsl similarity index 89% rename from test/intrinsics/gen/select/c41bd1.wgsl rename to test/builtins/gen/select/c41bd1.wgsl index a4a0143bae..1f5405e41e 100644 --- a/test/intrinsics/gen/select/c41bd1.wgsl +++ b/test/builtins/gen/select/c41bd1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/c41bd1.wgsl.expected.glsl b/test/builtins/gen/select/c41bd1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/c41bd1.wgsl.expected.glsl rename to test/builtins/gen/select/c41bd1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/c41bd1.wgsl.expected.hlsl b/test/builtins/gen/select/c41bd1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/c41bd1.wgsl.expected.hlsl rename to test/builtins/gen/select/c41bd1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/c41bd1.wgsl.expected.msl b/test/builtins/gen/select/c41bd1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/c41bd1.wgsl.expected.msl rename to test/builtins/gen/select/c41bd1.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/c41bd1.wgsl.expected.spvasm b/test/builtins/gen/select/c41bd1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/c41bd1.wgsl.expected.spvasm rename to test/builtins/gen/select/c41bd1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/c41bd1.wgsl.expected.wgsl b/test/builtins/gen/select/c41bd1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/c41bd1.wgsl.expected.wgsl rename to test/builtins/gen/select/c41bd1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/c4a4ef.wgsl b/test/builtins/gen/select/c4a4ef.wgsl similarity index 89% rename from test/intrinsics/gen/select/c4a4ef.wgsl rename to test/builtins/gen/select/c4a4ef.wgsl index 5826ca053b..2c799272c7 100644 --- a/test/intrinsics/gen/select/c4a4ef.wgsl +++ b/test/builtins/gen/select/c4a4ef.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/c4a4ef.wgsl.expected.glsl b/test/builtins/gen/select/c4a4ef.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/c4a4ef.wgsl.expected.glsl rename to test/builtins/gen/select/c4a4ef.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/c4a4ef.wgsl.expected.hlsl b/test/builtins/gen/select/c4a4ef.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/c4a4ef.wgsl.expected.hlsl rename to test/builtins/gen/select/c4a4ef.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/c4a4ef.wgsl.expected.msl b/test/builtins/gen/select/c4a4ef.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/c4a4ef.wgsl.expected.msl rename to test/builtins/gen/select/c4a4ef.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/c4a4ef.wgsl.expected.spvasm b/test/builtins/gen/select/c4a4ef.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/c4a4ef.wgsl.expected.spvasm rename to test/builtins/gen/select/c4a4ef.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/c4a4ef.wgsl.expected.wgsl b/test/builtins/gen/select/c4a4ef.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/c4a4ef.wgsl.expected.wgsl rename to test/builtins/gen/select/c4a4ef.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/cb9301.wgsl b/test/builtins/gen/select/cb9301.wgsl similarity index 89% rename from test/intrinsics/gen/select/cb9301.wgsl rename to test/builtins/gen/select/cb9301.wgsl index 1de0ad19de..5f2a238df0 100644 --- a/test/intrinsics/gen/select/cb9301.wgsl +++ b/test/builtins/gen/select/cb9301.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/cb9301.wgsl.expected.glsl b/test/builtins/gen/select/cb9301.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/cb9301.wgsl.expected.glsl rename to test/builtins/gen/select/cb9301.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/cb9301.wgsl.expected.hlsl b/test/builtins/gen/select/cb9301.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/cb9301.wgsl.expected.hlsl rename to test/builtins/gen/select/cb9301.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/cb9301.wgsl.expected.msl b/test/builtins/gen/select/cb9301.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/cb9301.wgsl.expected.msl rename to test/builtins/gen/select/cb9301.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/cb9301.wgsl.expected.spvasm b/test/builtins/gen/select/cb9301.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/cb9301.wgsl.expected.spvasm rename to test/builtins/gen/select/cb9301.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/cb9301.wgsl.expected.wgsl b/test/builtins/gen/select/cb9301.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/cb9301.wgsl.expected.wgsl rename to test/builtins/gen/select/cb9301.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/e3e028.wgsl b/test/builtins/gen/select/e3e028.wgsl similarity index 89% rename from test/intrinsics/gen/select/e3e028.wgsl rename to test/builtins/gen/select/e3e028.wgsl index 7d286667f6..157715ba8b 100644 --- a/test/intrinsics/gen/select/e3e028.wgsl +++ b/test/builtins/gen/select/e3e028.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/e3e028.wgsl.expected.glsl b/test/builtins/gen/select/e3e028.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/e3e028.wgsl.expected.glsl rename to test/builtins/gen/select/e3e028.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/e3e028.wgsl.expected.hlsl b/test/builtins/gen/select/e3e028.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/e3e028.wgsl.expected.hlsl rename to test/builtins/gen/select/e3e028.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/e3e028.wgsl.expected.msl b/test/builtins/gen/select/e3e028.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/e3e028.wgsl.expected.msl rename to test/builtins/gen/select/e3e028.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/e3e028.wgsl.expected.spvasm b/test/builtins/gen/select/e3e028.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/e3e028.wgsl.expected.spvasm rename to test/builtins/gen/select/e3e028.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/e3e028.wgsl.expected.wgsl b/test/builtins/gen/select/e3e028.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/e3e028.wgsl.expected.wgsl rename to test/builtins/gen/select/e3e028.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/ebfea2.wgsl b/test/builtins/gen/select/ebfea2.wgsl similarity index 89% rename from test/intrinsics/gen/select/ebfea2.wgsl rename to test/builtins/gen/select/ebfea2.wgsl index bd572c58eb..a67374c933 100644 --- a/test/intrinsics/gen/select/ebfea2.wgsl +++ b/test/builtins/gen/select/ebfea2.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/ebfea2.wgsl.expected.glsl b/test/builtins/gen/select/ebfea2.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/ebfea2.wgsl.expected.glsl rename to test/builtins/gen/select/ebfea2.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/ebfea2.wgsl.expected.hlsl b/test/builtins/gen/select/ebfea2.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/ebfea2.wgsl.expected.hlsl rename to test/builtins/gen/select/ebfea2.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/ebfea2.wgsl.expected.msl b/test/builtins/gen/select/ebfea2.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/ebfea2.wgsl.expected.msl rename to test/builtins/gen/select/ebfea2.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/ebfea2.wgsl.expected.spvasm b/test/builtins/gen/select/ebfea2.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/ebfea2.wgsl.expected.spvasm rename to test/builtins/gen/select/ebfea2.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/ebfea2.wgsl.expected.wgsl b/test/builtins/gen/select/ebfea2.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/ebfea2.wgsl.expected.wgsl rename to test/builtins/gen/select/ebfea2.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/ed8a15.wgsl b/test/builtins/gen/select/ed8a15.wgsl similarity index 89% rename from test/intrinsics/gen/select/ed8a15.wgsl rename to test/builtins/gen/select/ed8a15.wgsl index df1f6ad259..4821ffe935 100644 --- a/test/intrinsics/gen/select/ed8a15.wgsl +++ b/test/builtins/gen/select/ed8a15.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/ed8a15.wgsl.expected.glsl b/test/builtins/gen/select/ed8a15.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/ed8a15.wgsl.expected.glsl rename to test/builtins/gen/select/ed8a15.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/ed8a15.wgsl.expected.hlsl b/test/builtins/gen/select/ed8a15.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/ed8a15.wgsl.expected.hlsl rename to test/builtins/gen/select/ed8a15.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/ed8a15.wgsl.expected.msl b/test/builtins/gen/select/ed8a15.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/ed8a15.wgsl.expected.msl rename to test/builtins/gen/select/ed8a15.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/ed8a15.wgsl.expected.spvasm b/test/builtins/gen/select/ed8a15.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/ed8a15.wgsl.expected.spvasm rename to test/builtins/gen/select/ed8a15.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/ed8a15.wgsl.expected.wgsl b/test/builtins/gen/select/ed8a15.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/ed8a15.wgsl.expected.wgsl rename to test/builtins/gen/select/ed8a15.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/select/fb7e53.wgsl b/test/builtins/gen/select/fb7e53.wgsl similarity index 89% rename from test/intrinsics/gen/select/fb7e53.wgsl rename to test/builtins/gen/select/fb7e53.wgsl index 92d50f3c50..de66cf2562 100644 --- a/test/intrinsics/gen/select/fb7e53.wgsl +++ b/test/builtins/gen/select/fb7e53.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/select/fb7e53.wgsl.expected.glsl b/test/builtins/gen/select/fb7e53.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/select/fb7e53.wgsl.expected.glsl rename to test/builtins/gen/select/fb7e53.wgsl.expected.glsl diff --git a/test/intrinsics/gen/select/fb7e53.wgsl.expected.hlsl b/test/builtins/gen/select/fb7e53.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/select/fb7e53.wgsl.expected.hlsl rename to test/builtins/gen/select/fb7e53.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/select/fb7e53.wgsl.expected.msl b/test/builtins/gen/select/fb7e53.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/select/fb7e53.wgsl.expected.msl rename to test/builtins/gen/select/fb7e53.wgsl.expected.msl diff --git a/test/intrinsics/gen/select/fb7e53.wgsl.expected.spvasm b/test/builtins/gen/select/fb7e53.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/select/fb7e53.wgsl.expected.spvasm rename to test/builtins/gen/select/fb7e53.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/select/fb7e53.wgsl.expected.wgsl b/test/builtins/gen/select/fb7e53.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/select/fb7e53.wgsl.expected.wgsl rename to test/builtins/gen/select/fb7e53.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/sign/159665.wgsl b/test/builtins/gen/sign/159665.wgsl similarity index 88% rename from test/intrinsics/gen/sign/159665.wgsl rename to test/builtins/gen/sign/159665.wgsl index a3d87a4e55..adb28ab36a 100644 --- a/test/intrinsics/gen/sign/159665.wgsl +++ b/test/builtins/gen/sign/159665.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/sign/159665.wgsl.expected.glsl b/test/builtins/gen/sign/159665.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/sign/159665.wgsl.expected.glsl rename to test/builtins/gen/sign/159665.wgsl.expected.glsl diff --git a/test/intrinsics/gen/sign/159665.wgsl.expected.hlsl b/test/builtins/gen/sign/159665.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/sign/159665.wgsl.expected.hlsl rename to test/builtins/gen/sign/159665.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/sign/159665.wgsl.expected.msl b/test/builtins/gen/sign/159665.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/sign/159665.wgsl.expected.msl rename to test/builtins/gen/sign/159665.wgsl.expected.msl diff --git a/test/intrinsics/gen/sign/159665.wgsl.expected.spvasm b/test/builtins/gen/sign/159665.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/sign/159665.wgsl.expected.spvasm rename to test/builtins/gen/sign/159665.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/sign/159665.wgsl.expected.wgsl b/test/builtins/gen/sign/159665.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/sign/159665.wgsl.expected.wgsl rename to test/builtins/gen/sign/159665.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/sign/b8f634.wgsl b/test/builtins/gen/sign/b8f634.wgsl similarity index 88% rename from test/intrinsics/gen/sign/b8f634.wgsl rename to test/builtins/gen/sign/b8f634.wgsl index c8ced09aad..e308a0b4b7 100644 --- a/test/intrinsics/gen/sign/b8f634.wgsl +++ b/test/builtins/gen/sign/b8f634.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/sign/b8f634.wgsl.expected.glsl b/test/builtins/gen/sign/b8f634.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/sign/b8f634.wgsl.expected.glsl rename to test/builtins/gen/sign/b8f634.wgsl.expected.glsl diff --git a/test/intrinsics/gen/sign/b8f634.wgsl.expected.hlsl b/test/builtins/gen/sign/b8f634.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/sign/b8f634.wgsl.expected.hlsl rename to test/builtins/gen/sign/b8f634.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/sign/b8f634.wgsl.expected.msl b/test/builtins/gen/sign/b8f634.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/sign/b8f634.wgsl.expected.msl rename to test/builtins/gen/sign/b8f634.wgsl.expected.msl diff --git a/test/intrinsics/gen/sign/b8f634.wgsl.expected.spvasm b/test/builtins/gen/sign/b8f634.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/sign/b8f634.wgsl.expected.spvasm rename to test/builtins/gen/sign/b8f634.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/sign/b8f634.wgsl.expected.wgsl b/test/builtins/gen/sign/b8f634.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/sign/b8f634.wgsl.expected.wgsl rename to test/builtins/gen/sign/b8f634.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/sign/d065d8.wgsl b/test/builtins/gen/sign/d065d8.wgsl similarity index 88% rename from test/intrinsics/gen/sign/d065d8.wgsl rename to test/builtins/gen/sign/d065d8.wgsl index 98d6b5e33d..4efd33fc44 100644 --- a/test/intrinsics/gen/sign/d065d8.wgsl +++ b/test/builtins/gen/sign/d065d8.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/sign/d065d8.wgsl.expected.glsl b/test/builtins/gen/sign/d065d8.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/sign/d065d8.wgsl.expected.glsl rename to test/builtins/gen/sign/d065d8.wgsl.expected.glsl diff --git a/test/intrinsics/gen/sign/d065d8.wgsl.expected.hlsl b/test/builtins/gen/sign/d065d8.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/sign/d065d8.wgsl.expected.hlsl rename to test/builtins/gen/sign/d065d8.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/sign/d065d8.wgsl.expected.msl b/test/builtins/gen/sign/d065d8.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/sign/d065d8.wgsl.expected.msl rename to test/builtins/gen/sign/d065d8.wgsl.expected.msl diff --git a/test/intrinsics/gen/sign/d065d8.wgsl.expected.spvasm b/test/builtins/gen/sign/d065d8.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/sign/d065d8.wgsl.expected.spvasm rename to test/builtins/gen/sign/d065d8.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/sign/d065d8.wgsl.expected.wgsl b/test/builtins/gen/sign/d065d8.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/sign/d065d8.wgsl.expected.wgsl rename to test/builtins/gen/sign/d065d8.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/sign/dd790e.wgsl b/test/builtins/gen/sign/dd790e.wgsl similarity index 88% rename from test/intrinsics/gen/sign/dd790e.wgsl rename to test/builtins/gen/sign/dd790e.wgsl index 7765ea307e..6a065f3946 100644 --- a/test/intrinsics/gen/sign/dd790e.wgsl +++ b/test/builtins/gen/sign/dd790e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/sign/dd790e.wgsl.expected.glsl b/test/builtins/gen/sign/dd790e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/sign/dd790e.wgsl.expected.glsl rename to test/builtins/gen/sign/dd790e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/sign/dd790e.wgsl.expected.hlsl b/test/builtins/gen/sign/dd790e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/sign/dd790e.wgsl.expected.hlsl rename to test/builtins/gen/sign/dd790e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/sign/dd790e.wgsl.expected.msl b/test/builtins/gen/sign/dd790e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/sign/dd790e.wgsl.expected.msl rename to test/builtins/gen/sign/dd790e.wgsl.expected.msl diff --git a/test/intrinsics/gen/sign/dd790e.wgsl.expected.spvasm b/test/builtins/gen/sign/dd790e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/sign/dd790e.wgsl.expected.spvasm rename to test/builtins/gen/sign/dd790e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/sign/dd790e.wgsl.expected.wgsl b/test/builtins/gen/sign/dd790e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/sign/dd790e.wgsl.expected.wgsl rename to test/builtins/gen/sign/dd790e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/sin/01f241.wgsl b/test/builtins/gen/sin/01f241.wgsl similarity index 88% rename from test/intrinsics/gen/sin/01f241.wgsl rename to test/builtins/gen/sin/01f241.wgsl index 58c1794148..4d78c4a939 100644 --- a/test/intrinsics/gen/sin/01f241.wgsl +++ b/test/builtins/gen/sin/01f241.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/sin/01f241.wgsl.expected.glsl b/test/builtins/gen/sin/01f241.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/sin/01f241.wgsl.expected.glsl rename to test/builtins/gen/sin/01f241.wgsl.expected.glsl diff --git a/test/intrinsics/gen/sin/01f241.wgsl.expected.hlsl b/test/builtins/gen/sin/01f241.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/sin/01f241.wgsl.expected.hlsl rename to test/builtins/gen/sin/01f241.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/sin/01f241.wgsl.expected.msl b/test/builtins/gen/sin/01f241.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/sin/01f241.wgsl.expected.msl rename to test/builtins/gen/sin/01f241.wgsl.expected.msl diff --git a/test/intrinsics/gen/sin/01f241.wgsl.expected.spvasm b/test/builtins/gen/sin/01f241.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/sin/01f241.wgsl.expected.spvasm rename to test/builtins/gen/sin/01f241.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/sin/01f241.wgsl.expected.wgsl b/test/builtins/gen/sin/01f241.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/sin/01f241.wgsl.expected.wgsl rename to test/builtins/gen/sin/01f241.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/sin/4e3979.wgsl b/test/builtins/gen/sin/4e3979.wgsl similarity index 88% rename from test/intrinsics/gen/sin/4e3979.wgsl rename to test/builtins/gen/sin/4e3979.wgsl index ae447d2db1..4bfeed56cc 100644 --- a/test/intrinsics/gen/sin/4e3979.wgsl +++ b/test/builtins/gen/sin/4e3979.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/sin/4e3979.wgsl.expected.glsl b/test/builtins/gen/sin/4e3979.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/sin/4e3979.wgsl.expected.glsl rename to test/builtins/gen/sin/4e3979.wgsl.expected.glsl diff --git a/test/intrinsics/gen/sin/4e3979.wgsl.expected.hlsl b/test/builtins/gen/sin/4e3979.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/sin/4e3979.wgsl.expected.hlsl rename to test/builtins/gen/sin/4e3979.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/sin/4e3979.wgsl.expected.msl b/test/builtins/gen/sin/4e3979.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/sin/4e3979.wgsl.expected.msl rename to test/builtins/gen/sin/4e3979.wgsl.expected.msl diff --git a/test/intrinsics/gen/sin/4e3979.wgsl.expected.spvasm b/test/builtins/gen/sin/4e3979.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/sin/4e3979.wgsl.expected.spvasm rename to test/builtins/gen/sin/4e3979.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/sin/4e3979.wgsl.expected.wgsl b/test/builtins/gen/sin/4e3979.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/sin/4e3979.wgsl.expected.wgsl rename to test/builtins/gen/sin/4e3979.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/sin/b78c91.wgsl b/test/builtins/gen/sin/b78c91.wgsl similarity index 88% rename from test/intrinsics/gen/sin/b78c91.wgsl rename to test/builtins/gen/sin/b78c91.wgsl index d8ecd403ea..83d02dd9be 100644 --- a/test/intrinsics/gen/sin/b78c91.wgsl +++ b/test/builtins/gen/sin/b78c91.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/sin/b78c91.wgsl.expected.glsl b/test/builtins/gen/sin/b78c91.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/sin/b78c91.wgsl.expected.glsl rename to test/builtins/gen/sin/b78c91.wgsl.expected.glsl diff --git a/test/intrinsics/gen/sin/b78c91.wgsl.expected.hlsl b/test/builtins/gen/sin/b78c91.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/sin/b78c91.wgsl.expected.hlsl rename to test/builtins/gen/sin/b78c91.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/sin/b78c91.wgsl.expected.msl b/test/builtins/gen/sin/b78c91.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/sin/b78c91.wgsl.expected.msl rename to test/builtins/gen/sin/b78c91.wgsl.expected.msl diff --git a/test/intrinsics/gen/sin/b78c91.wgsl.expected.spvasm b/test/builtins/gen/sin/b78c91.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/sin/b78c91.wgsl.expected.spvasm rename to test/builtins/gen/sin/b78c91.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/sin/b78c91.wgsl.expected.wgsl b/test/builtins/gen/sin/b78c91.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/sin/b78c91.wgsl.expected.wgsl rename to test/builtins/gen/sin/b78c91.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/sin/fc8bc4.wgsl b/test/builtins/gen/sin/fc8bc4.wgsl similarity index 88% rename from test/intrinsics/gen/sin/fc8bc4.wgsl rename to test/builtins/gen/sin/fc8bc4.wgsl index b828689a6d..154c7d0fe7 100644 --- a/test/intrinsics/gen/sin/fc8bc4.wgsl +++ b/test/builtins/gen/sin/fc8bc4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/sin/fc8bc4.wgsl.expected.glsl b/test/builtins/gen/sin/fc8bc4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/sin/fc8bc4.wgsl.expected.glsl rename to test/builtins/gen/sin/fc8bc4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/sin/fc8bc4.wgsl.expected.hlsl b/test/builtins/gen/sin/fc8bc4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/sin/fc8bc4.wgsl.expected.hlsl rename to test/builtins/gen/sin/fc8bc4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/sin/fc8bc4.wgsl.expected.msl b/test/builtins/gen/sin/fc8bc4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/sin/fc8bc4.wgsl.expected.msl rename to test/builtins/gen/sin/fc8bc4.wgsl.expected.msl diff --git a/test/intrinsics/gen/sin/fc8bc4.wgsl.expected.spvasm b/test/builtins/gen/sin/fc8bc4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/sin/fc8bc4.wgsl.expected.spvasm rename to test/builtins/gen/sin/fc8bc4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/sin/fc8bc4.wgsl.expected.wgsl b/test/builtins/gen/sin/fc8bc4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/sin/fc8bc4.wgsl.expected.wgsl rename to test/builtins/gen/sin/fc8bc4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/sinh/445e33.wgsl b/test/builtins/gen/sinh/445e33.wgsl similarity index 88% rename from test/intrinsics/gen/sinh/445e33.wgsl rename to test/builtins/gen/sinh/445e33.wgsl index 2bb1e20387..21c0c8f519 100644 --- a/test/intrinsics/gen/sinh/445e33.wgsl +++ b/test/builtins/gen/sinh/445e33.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/sinh/445e33.wgsl.expected.glsl b/test/builtins/gen/sinh/445e33.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/sinh/445e33.wgsl.expected.glsl rename to test/builtins/gen/sinh/445e33.wgsl.expected.glsl diff --git a/test/intrinsics/gen/sinh/445e33.wgsl.expected.hlsl b/test/builtins/gen/sinh/445e33.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/sinh/445e33.wgsl.expected.hlsl rename to test/builtins/gen/sinh/445e33.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/sinh/445e33.wgsl.expected.msl b/test/builtins/gen/sinh/445e33.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/sinh/445e33.wgsl.expected.msl rename to test/builtins/gen/sinh/445e33.wgsl.expected.msl diff --git a/test/intrinsics/gen/sinh/445e33.wgsl.expected.spvasm b/test/builtins/gen/sinh/445e33.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/sinh/445e33.wgsl.expected.spvasm rename to test/builtins/gen/sinh/445e33.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/sinh/445e33.wgsl.expected.wgsl b/test/builtins/gen/sinh/445e33.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/sinh/445e33.wgsl.expected.wgsl rename to test/builtins/gen/sinh/445e33.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/sinh/7bb598.wgsl b/test/builtins/gen/sinh/7bb598.wgsl similarity index 88% rename from test/intrinsics/gen/sinh/7bb598.wgsl rename to test/builtins/gen/sinh/7bb598.wgsl index 872b87b42b..b0dc7623b2 100644 --- a/test/intrinsics/gen/sinh/7bb598.wgsl +++ b/test/builtins/gen/sinh/7bb598.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/sinh/7bb598.wgsl.expected.glsl b/test/builtins/gen/sinh/7bb598.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/sinh/7bb598.wgsl.expected.glsl rename to test/builtins/gen/sinh/7bb598.wgsl.expected.glsl diff --git a/test/intrinsics/gen/sinh/7bb598.wgsl.expected.hlsl b/test/builtins/gen/sinh/7bb598.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/sinh/7bb598.wgsl.expected.hlsl rename to test/builtins/gen/sinh/7bb598.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/sinh/7bb598.wgsl.expected.msl b/test/builtins/gen/sinh/7bb598.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/sinh/7bb598.wgsl.expected.msl rename to test/builtins/gen/sinh/7bb598.wgsl.expected.msl diff --git a/test/intrinsics/gen/sinh/7bb598.wgsl.expected.spvasm b/test/builtins/gen/sinh/7bb598.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/sinh/7bb598.wgsl.expected.spvasm rename to test/builtins/gen/sinh/7bb598.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/sinh/7bb598.wgsl.expected.wgsl b/test/builtins/gen/sinh/7bb598.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/sinh/7bb598.wgsl.expected.wgsl rename to test/builtins/gen/sinh/7bb598.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/sinh/b9860e.wgsl b/test/builtins/gen/sinh/b9860e.wgsl similarity index 88% rename from test/intrinsics/gen/sinh/b9860e.wgsl rename to test/builtins/gen/sinh/b9860e.wgsl index 3039b48173..11bf85b143 100644 --- a/test/intrinsics/gen/sinh/b9860e.wgsl +++ b/test/builtins/gen/sinh/b9860e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/sinh/b9860e.wgsl.expected.glsl b/test/builtins/gen/sinh/b9860e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/sinh/b9860e.wgsl.expected.glsl rename to test/builtins/gen/sinh/b9860e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/sinh/b9860e.wgsl.expected.hlsl b/test/builtins/gen/sinh/b9860e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/sinh/b9860e.wgsl.expected.hlsl rename to test/builtins/gen/sinh/b9860e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/sinh/b9860e.wgsl.expected.msl b/test/builtins/gen/sinh/b9860e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/sinh/b9860e.wgsl.expected.msl rename to test/builtins/gen/sinh/b9860e.wgsl.expected.msl diff --git a/test/intrinsics/gen/sinh/b9860e.wgsl.expected.spvasm b/test/builtins/gen/sinh/b9860e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/sinh/b9860e.wgsl.expected.spvasm rename to test/builtins/gen/sinh/b9860e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/sinh/b9860e.wgsl.expected.wgsl b/test/builtins/gen/sinh/b9860e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/sinh/b9860e.wgsl.expected.wgsl rename to test/builtins/gen/sinh/b9860e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/sinh/c9a5eb.wgsl b/test/builtins/gen/sinh/c9a5eb.wgsl similarity index 88% rename from test/intrinsics/gen/sinh/c9a5eb.wgsl rename to test/builtins/gen/sinh/c9a5eb.wgsl index 9c79e98d3e..ada47922ed 100644 --- a/test/intrinsics/gen/sinh/c9a5eb.wgsl +++ b/test/builtins/gen/sinh/c9a5eb.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/sinh/c9a5eb.wgsl.expected.glsl b/test/builtins/gen/sinh/c9a5eb.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/sinh/c9a5eb.wgsl.expected.glsl rename to test/builtins/gen/sinh/c9a5eb.wgsl.expected.glsl diff --git a/test/intrinsics/gen/sinh/c9a5eb.wgsl.expected.hlsl b/test/builtins/gen/sinh/c9a5eb.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/sinh/c9a5eb.wgsl.expected.hlsl rename to test/builtins/gen/sinh/c9a5eb.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/sinh/c9a5eb.wgsl.expected.msl b/test/builtins/gen/sinh/c9a5eb.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/sinh/c9a5eb.wgsl.expected.msl rename to test/builtins/gen/sinh/c9a5eb.wgsl.expected.msl diff --git a/test/intrinsics/gen/sinh/c9a5eb.wgsl.expected.spvasm b/test/builtins/gen/sinh/c9a5eb.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/sinh/c9a5eb.wgsl.expected.spvasm rename to test/builtins/gen/sinh/c9a5eb.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/sinh/c9a5eb.wgsl.expected.wgsl b/test/builtins/gen/sinh/c9a5eb.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/sinh/c9a5eb.wgsl.expected.wgsl rename to test/builtins/gen/sinh/c9a5eb.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/smoothStep/5f615b.wgsl b/test/builtins/gen/smoothStep/5f615b.wgsl similarity index 89% rename from test/intrinsics/gen/smoothStep/5f615b.wgsl rename to test/builtins/gen/smoothStep/5f615b.wgsl index 4b1a4aba1a..2a74908d39 100644 --- a/test/intrinsics/gen/smoothStep/5f615b.wgsl +++ b/test/builtins/gen/smoothStep/5f615b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/smoothStep/5f615b.wgsl.expected.glsl b/test/builtins/gen/smoothStep/5f615b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/smoothStep/5f615b.wgsl.expected.glsl rename to test/builtins/gen/smoothStep/5f615b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/smoothStep/5f615b.wgsl.expected.hlsl b/test/builtins/gen/smoothStep/5f615b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/smoothStep/5f615b.wgsl.expected.hlsl rename to test/builtins/gen/smoothStep/5f615b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/smoothStep/5f615b.wgsl.expected.msl b/test/builtins/gen/smoothStep/5f615b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/smoothStep/5f615b.wgsl.expected.msl rename to test/builtins/gen/smoothStep/5f615b.wgsl.expected.msl diff --git a/test/intrinsics/gen/smoothStep/5f615b.wgsl.expected.spvasm b/test/builtins/gen/smoothStep/5f615b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/smoothStep/5f615b.wgsl.expected.spvasm rename to test/builtins/gen/smoothStep/5f615b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/smoothStep/5f615b.wgsl.expected.wgsl b/test/builtins/gen/smoothStep/5f615b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/smoothStep/5f615b.wgsl.expected.wgsl rename to test/builtins/gen/smoothStep/5f615b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/smoothStep/658be3.wgsl b/test/builtins/gen/smoothStep/658be3.wgsl similarity index 89% rename from test/intrinsics/gen/smoothStep/658be3.wgsl rename to test/builtins/gen/smoothStep/658be3.wgsl index 8e3936459b..65f4011bc5 100644 --- a/test/intrinsics/gen/smoothStep/658be3.wgsl +++ b/test/builtins/gen/smoothStep/658be3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/smoothStep/658be3.wgsl.expected.glsl b/test/builtins/gen/smoothStep/658be3.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/smoothStep/658be3.wgsl.expected.glsl rename to test/builtins/gen/smoothStep/658be3.wgsl.expected.glsl diff --git a/test/intrinsics/gen/smoothStep/658be3.wgsl.expected.hlsl b/test/builtins/gen/smoothStep/658be3.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/smoothStep/658be3.wgsl.expected.hlsl rename to test/builtins/gen/smoothStep/658be3.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/smoothStep/658be3.wgsl.expected.msl b/test/builtins/gen/smoothStep/658be3.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/smoothStep/658be3.wgsl.expected.msl rename to test/builtins/gen/smoothStep/658be3.wgsl.expected.msl diff --git a/test/intrinsics/gen/smoothStep/658be3.wgsl.expected.spvasm b/test/builtins/gen/smoothStep/658be3.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/smoothStep/658be3.wgsl.expected.spvasm rename to test/builtins/gen/smoothStep/658be3.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/smoothStep/658be3.wgsl.expected.wgsl b/test/builtins/gen/smoothStep/658be3.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/smoothStep/658be3.wgsl.expected.wgsl rename to test/builtins/gen/smoothStep/658be3.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/smoothStep/c11eef.wgsl b/test/builtins/gen/smoothStep/c11eef.wgsl similarity index 89% rename from test/intrinsics/gen/smoothStep/c11eef.wgsl rename to test/builtins/gen/smoothStep/c11eef.wgsl index 7839f09149..3953e370d8 100644 --- a/test/intrinsics/gen/smoothStep/c11eef.wgsl +++ b/test/builtins/gen/smoothStep/c11eef.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/smoothStep/c11eef.wgsl.expected.glsl b/test/builtins/gen/smoothStep/c11eef.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/smoothStep/c11eef.wgsl.expected.glsl rename to test/builtins/gen/smoothStep/c11eef.wgsl.expected.glsl diff --git a/test/intrinsics/gen/smoothStep/c11eef.wgsl.expected.hlsl b/test/builtins/gen/smoothStep/c11eef.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/smoothStep/c11eef.wgsl.expected.hlsl rename to test/builtins/gen/smoothStep/c11eef.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/smoothStep/c11eef.wgsl.expected.msl b/test/builtins/gen/smoothStep/c11eef.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/smoothStep/c11eef.wgsl.expected.msl rename to test/builtins/gen/smoothStep/c11eef.wgsl.expected.msl diff --git a/test/intrinsics/gen/smoothStep/c11eef.wgsl.expected.spvasm b/test/builtins/gen/smoothStep/c11eef.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/smoothStep/c11eef.wgsl.expected.spvasm rename to test/builtins/gen/smoothStep/c11eef.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/smoothStep/c11eef.wgsl.expected.wgsl b/test/builtins/gen/smoothStep/c11eef.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/smoothStep/c11eef.wgsl.expected.wgsl rename to test/builtins/gen/smoothStep/c11eef.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/smoothStep/cb0bfb.wgsl b/test/builtins/gen/smoothStep/cb0bfb.wgsl similarity index 89% rename from test/intrinsics/gen/smoothStep/cb0bfb.wgsl rename to test/builtins/gen/smoothStep/cb0bfb.wgsl index 5c6c8c21ac..ff81a88edc 100644 --- a/test/intrinsics/gen/smoothStep/cb0bfb.wgsl +++ b/test/builtins/gen/smoothStep/cb0bfb.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/smoothStep/cb0bfb.wgsl.expected.glsl b/test/builtins/gen/smoothStep/cb0bfb.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/smoothStep/cb0bfb.wgsl.expected.glsl rename to test/builtins/gen/smoothStep/cb0bfb.wgsl.expected.glsl diff --git a/test/intrinsics/gen/smoothStep/cb0bfb.wgsl.expected.hlsl b/test/builtins/gen/smoothStep/cb0bfb.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/smoothStep/cb0bfb.wgsl.expected.hlsl rename to test/builtins/gen/smoothStep/cb0bfb.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/smoothStep/cb0bfb.wgsl.expected.msl b/test/builtins/gen/smoothStep/cb0bfb.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/smoothStep/cb0bfb.wgsl.expected.msl rename to test/builtins/gen/smoothStep/cb0bfb.wgsl.expected.msl diff --git a/test/intrinsics/gen/smoothStep/cb0bfb.wgsl.expected.spvasm b/test/builtins/gen/smoothStep/cb0bfb.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/smoothStep/cb0bfb.wgsl.expected.spvasm rename to test/builtins/gen/smoothStep/cb0bfb.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/smoothStep/cb0bfb.wgsl.expected.wgsl b/test/builtins/gen/smoothStep/cb0bfb.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/smoothStep/cb0bfb.wgsl.expected.wgsl rename to test/builtins/gen/smoothStep/cb0bfb.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/sqrt/20c74e.wgsl b/test/builtins/gen/sqrt/20c74e.wgsl similarity index 88% rename from test/intrinsics/gen/sqrt/20c74e.wgsl rename to test/builtins/gen/sqrt/20c74e.wgsl index b954397b85..b4ce20fc73 100644 --- a/test/intrinsics/gen/sqrt/20c74e.wgsl +++ b/test/builtins/gen/sqrt/20c74e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/sqrt/20c74e.wgsl.expected.glsl b/test/builtins/gen/sqrt/20c74e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/sqrt/20c74e.wgsl.expected.glsl rename to test/builtins/gen/sqrt/20c74e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/sqrt/20c74e.wgsl.expected.hlsl b/test/builtins/gen/sqrt/20c74e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/sqrt/20c74e.wgsl.expected.hlsl rename to test/builtins/gen/sqrt/20c74e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/sqrt/20c74e.wgsl.expected.msl b/test/builtins/gen/sqrt/20c74e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/sqrt/20c74e.wgsl.expected.msl rename to test/builtins/gen/sqrt/20c74e.wgsl.expected.msl diff --git a/test/intrinsics/gen/sqrt/20c74e.wgsl.expected.spvasm b/test/builtins/gen/sqrt/20c74e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/sqrt/20c74e.wgsl.expected.spvasm rename to test/builtins/gen/sqrt/20c74e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/sqrt/20c74e.wgsl.expected.wgsl b/test/builtins/gen/sqrt/20c74e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/sqrt/20c74e.wgsl.expected.wgsl rename to test/builtins/gen/sqrt/20c74e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/sqrt/8c7024.wgsl b/test/builtins/gen/sqrt/8c7024.wgsl similarity index 88% rename from test/intrinsics/gen/sqrt/8c7024.wgsl rename to test/builtins/gen/sqrt/8c7024.wgsl index 4e929d6360..96bea1075d 100644 --- a/test/intrinsics/gen/sqrt/8c7024.wgsl +++ b/test/builtins/gen/sqrt/8c7024.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/sqrt/8c7024.wgsl.expected.glsl b/test/builtins/gen/sqrt/8c7024.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/sqrt/8c7024.wgsl.expected.glsl rename to test/builtins/gen/sqrt/8c7024.wgsl.expected.glsl diff --git a/test/intrinsics/gen/sqrt/8c7024.wgsl.expected.hlsl b/test/builtins/gen/sqrt/8c7024.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/sqrt/8c7024.wgsl.expected.hlsl rename to test/builtins/gen/sqrt/8c7024.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/sqrt/8c7024.wgsl.expected.msl b/test/builtins/gen/sqrt/8c7024.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/sqrt/8c7024.wgsl.expected.msl rename to test/builtins/gen/sqrt/8c7024.wgsl.expected.msl diff --git a/test/intrinsics/gen/sqrt/8c7024.wgsl.expected.spvasm b/test/builtins/gen/sqrt/8c7024.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/sqrt/8c7024.wgsl.expected.spvasm rename to test/builtins/gen/sqrt/8c7024.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/sqrt/8c7024.wgsl.expected.wgsl b/test/builtins/gen/sqrt/8c7024.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/sqrt/8c7024.wgsl.expected.wgsl rename to test/builtins/gen/sqrt/8c7024.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/sqrt/aa0d7a.wgsl b/test/builtins/gen/sqrt/aa0d7a.wgsl similarity index 88% rename from test/intrinsics/gen/sqrt/aa0d7a.wgsl rename to test/builtins/gen/sqrt/aa0d7a.wgsl index e15b17039d..4848c54ec2 100644 --- a/test/intrinsics/gen/sqrt/aa0d7a.wgsl +++ b/test/builtins/gen/sqrt/aa0d7a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/sqrt/aa0d7a.wgsl.expected.glsl b/test/builtins/gen/sqrt/aa0d7a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/sqrt/aa0d7a.wgsl.expected.glsl rename to test/builtins/gen/sqrt/aa0d7a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/sqrt/aa0d7a.wgsl.expected.hlsl b/test/builtins/gen/sqrt/aa0d7a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/sqrt/aa0d7a.wgsl.expected.hlsl rename to test/builtins/gen/sqrt/aa0d7a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/sqrt/aa0d7a.wgsl.expected.msl b/test/builtins/gen/sqrt/aa0d7a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/sqrt/aa0d7a.wgsl.expected.msl rename to test/builtins/gen/sqrt/aa0d7a.wgsl.expected.msl diff --git a/test/intrinsics/gen/sqrt/aa0d7a.wgsl.expected.spvasm b/test/builtins/gen/sqrt/aa0d7a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/sqrt/aa0d7a.wgsl.expected.spvasm rename to test/builtins/gen/sqrt/aa0d7a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/sqrt/aa0d7a.wgsl.expected.wgsl b/test/builtins/gen/sqrt/aa0d7a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/sqrt/aa0d7a.wgsl.expected.wgsl rename to test/builtins/gen/sqrt/aa0d7a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/sqrt/f8c59a.wgsl b/test/builtins/gen/sqrt/f8c59a.wgsl similarity index 88% rename from test/intrinsics/gen/sqrt/f8c59a.wgsl rename to test/builtins/gen/sqrt/f8c59a.wgsl index 5916a9fc89..b4aeefd72b 100644 --- a/test/intrinsics/gen/sqrt/f8c59a.wgsl +++ b/test/builtins/gen/sqrt/f8c59a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/sqrt/f8c59a.wgsl.expected.glsl b/test/builtins/gen/sqrt/f8c59a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/sqrt/f8c59a.wgsl.expected.glsl rename to test/builtins/gen/sqrt/f8c59a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/sqrt/f8c59a.wgsl.expected.hlsl b/test/builtins/gen/sqrt/f8c59a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/sqrt/f8c59a.wgsl.expected.hlsl rename to test/builtins/gen/sqrt/f8c59a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/sqrt/f8c59a.wgsl.expected.msl b/test/builtins/gen/sqrt/f8c59a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/sqrt/f8c59a.wgsl.expected.msl rename to test/builtins/gen/sqrt/f8c59a.wgsl.expected.msl diff --git a/test/intrinsics/gen/sqrt/f8c59a.wgsl.expected.spvasm b/test/builtins/gen/sqrt/f8c59a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/sqrt/f8c59a.wgsl.expected.spvasm rename to test/builtins/gen/sqrt/f8c59a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/sqrt/f8c59a.wgsl.expected.wgsl b/test/builtins/gen/sqrt/f8c59a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/sqrt/f8c59a.wgsl.expected.wgsl rename to test/builtins/gen/sqrt/f8c59a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/step/0b073b.wgsl b/test/builtins/gen/step/0b073b.wgsl similarity index 88% rename from test/intrinsics/gen/step/0b073b.wgsl rename to test/builtins/gen/step/0b073b.wgsl index 5d88c864c8..f1006d667d 100644 --- a/test/intrinsics/gen/step/0b073b.wgsl +++ b/test/builtins/gen/step/0b073b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/step/0b073b.wgsl.expected.glsl b/test/builtins/gen/step/0b073b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/step/0b073b.wgsl.expected.glsl rename to test/builtins/gen/step/0b073b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/step/0b073b.wgsl.expected.hlsl b/test/builtins/gen/step/0b073b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/step/0b073b.wgsl.expected.hlsl rename to test/builtins/gen/step/0b073b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/step/0b073b.wgsl.expected.msl b/test/builtins/gen/step/0b073b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/step/0b073b.wgsl.expected.msl rename to test/builtins/gen/step/0b073b.wgsl.expected.msl diff --git a/test/intrinsics/gen/step/0b073b.wgsl.expected.spvasm b/test/builtins/gen/step/0b073b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/step/0b073b.wgsl.expected.spvasm rename to test/builtins/gen/step/0b073b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/step/0b073b.wgsl.expected.wgsl b/test/builtins/gen/step/0b073b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/step/0b073b.wgsl.expected.wgsl rename to test/builtins/gen/step/0b073b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/step/19accd.wgsl b/test/builtins/gen/step/19accd.wgsl similarity index 89% rename from test/intrinsics/gen/step/19accd.wgsl rename to test/builtins/gen/step/19accd.wgsl index 9493036cb7..5e6276d922 100644 --- a/test/intrinsics/gen/step/19accd.wgsl +++ b/test/builtins/gen/step/19accd.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/step/19accd.wgsl.expected.glsl b/test/builtins/gen/step/19accd.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/step/19accd.wgsl.expected.glsl rename to test/builtins/gen/step/19accd.wgsl.expected.glsl diff --git a/test/intrinsics/gen/step/19accd.wgsl.expected.hlsl b/test/builtins/gen/step/19accd.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/step/19accd.wgsl.expected.hlsl rename to test/builtins/gen/step/19accd.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/step/19accd.wgsl.expected.msl b/test/builtins/gen/step/19accd.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/step/19accd.wgsl.expected.msl rename to test/builtins/gen/step/19accd.wgsl.expected.msl diff --git a/test/intrinsics/gen/step/19accd.wgsl.expected.spvasm b/test/builtins/gen/step/19accd.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/step/19accd.wgsl.expected.spvasm rename to test/builtins/gen/step/19accd.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/step/19accd.wgsl.expected.wgsl b/test/builtins/gen/step/19accd.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/step/19accd.wgsl.expected.wgsl rename to test/builtins/gen/step/19accd.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/step/334303.wgsl b/test/builtins/gen/step/334303.wgsl similarity index 89% rename from test/intrinsics/gen/step/334303.wgsl rename to test/builtins/gen/step/334303.wgsl index 63d3ead5fb..3b53acee55 100644 --- a/test/intrinsics/gen/step/334303.wgsl +++ b/test/builtins/gen/step/334303.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/step/334303.wgsl.expected.glsl b/test/builtins/gen/step/334303.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/step/334303.wgsl.expected.glsl rename to test/builtins/gen/step/334303.wgsl.expected.glsl diff --git a/test/intrinsics/gen/step/334303.wgsl.expected.hlsl b/test/builtins/gen/step/334303.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/step/334303.wgsl.expected.hlsl rename to test/builtins/gen/step/334303.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/step/334303.wgsl.expected.msl b/test/builtins/gen/step/334303.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/step/334303.wgsl.expected.msl rename to test/builtins/gen/step/334303.wgsl.expected.msl diff --git a/test/intrinsics/gen/step/334303.wgsl.expected.spvasm b/test/builtins/gen/step/334303.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/step/334303.wgsl.expected.spvasm rename to test/builtins/gen/step/334303.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/step/334303.wgsl.expected.wgsl b/test/builtins/gen/step/334303.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/step/334303.wgsl.expected.wgsl rename to test/builtins/gen/step/334303.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/step/e2b337.wgsl b/test/builtins/gen/step/e2b337.wgsl similarity index 89% rename from test/intrinsics/gen/step/e2b337.wgsl rename to test/builtins/gen/step/e2b337.wgsl index e6911303a1..bf13f3c12a 100644 --- a/test/intrinsics/gen/step/e2b337.wgsl +++ b/test/builtins/gen/step/e2b337.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/step/e2b337.wgsl.expected.glsl b/test/builtins/gen/step/e2b337.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/step/e2b337.wgsl.expected.glsl rename to test/builtins/gen/step/e2b337.wgsl.expected.glsl diff --git a/test/intrinsics/gen/step/e2b337.wgsl.expected.hlsl b/test/builtins/gen/step/e2b337.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/step/e2b337.wgsl.expected.hlsl rename to test/builtins/gen/step/e2b337.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/step/e2b337.wgsl.expected.msl b/test/builtins/gen/step/e2b337.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/step/e2b337.wgsl.expected.msl rename to test/builtins/gen/step/e2b337.wgsl.expected.msl diff --git a/test/intrinsics/gen/step/e2b337.wgsl.expected.spvasm b/test/builtins/gen/step/e2b337.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/step/e2b337.wgsl.expected.spvasm rename to test/builtins/gen/step/e2b337.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/step/e2b337.wgsl.expected.wgsl b/test/builtins/gen/step/e2b337.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/step/e2b337.wgsl.expected.wgsl rename to test/builtins/gen/step/e2b337.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/storageBarrier/d87211.wgsl b/test/builtins/gen/storageBarrier/d87211.wgsl similarity index 87% rename from test/intrinsics/gen/storageBarrier/d87211.wgsl rename to test/builtins/gen/storageBarrier/d87211.wgsl index 293117455d..2620443e53 100644 --- a/test/intrinsics/gen/storageBarrier/d87211.wgsl +++ b/test/builtins/gen/storageBarrier/d87211.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/storageBarrier/d87211.wgsl.expected.glsl b/test/builtins/gen/storageBarrier/d87211.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/storageBarrier/d87211.wgsl.expected.glsl rename to test/builtins/gen/storageBarrier/d87211.wgsl.expected.glsl diff --git a/test/intrinsics/gen/storageBarrier/d87211.wgsl.expected.hlsl b/test/builtins/gen/storageBarrier/d87211.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/storageBarrier/d87211.wgsl.expected.hlsl rename to test/builtins/gen/storageBarrier/d87211.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/storageBarrier/d87211.wgsl.expected.msl b/test/builtins/gen/storageBarrier/d87211.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/storageBarrier/d87211.wgsl.expected.msl rename to test/builtins/gen/storageBarrier/d87211.wgsl.expected.msl diff --git a/test/intrinsics/gen/storageBarrier/d87211.wgsl.expected.spvasm b/test/builtins/gen/storageBarrier/d87211.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/storageBarrier/d87211.wgsl.expected.spvasm rename to test/builtins/gen/storageBarrier/d87211.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/storageBarrier/d87211.wgsl.expected.wgsl b/test/builtins/gen/storageBarrier/d87211.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/storageBarrier/d87211.wgsl.expected.wgsl rename to test/builtins/gen/storageBarrier/d87211.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/tan/244e2a.wgsl b/test/builtins/gen/tan/244e2a.wgsl similarity index 88% rename from test/intrinsics/gen/tan/244e2a.wgsl rename to test/builtins/gen/tan/244e2a.wgsl index 599499f46e..24eed7b239 100644 --- a/test/intrinsics/gen/tan/244e2a.wgsl +++ b/test/builtins/gen/tan/244e2a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/tan/244e2a.wgsl.expected.glsl b/test/builtins/gen/tan/244e2a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/tan/244e2a.wgsl.expected.glsl rename to test/builtins/gen/tan/244e2a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/tan/244e2a.wgsl.expected.hlsl b/test/builtins/gen/tan/244e2a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/tan/244e2a.wgsl.expected.hlsl rename to test/builtins/gen/tan/244e2a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/tan/244e2a.wgsl.expected.msl b/test/builtins/gen/tan/244e2a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/tan/244e2a.wgsl.expected.msl rename to test/builtins/gen/tan/244e2a.wgsl.expected.msl diff --git a/test/intrinsics/gen/tan/244e2a.wgsl.expected.spvasm b/test/builtins/gen/tan/244e2a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/tan/244e2a.wgsl.expected.spvasm rename to test/builtins/gen/tan/244e2a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/tan/244e2a.wgsl.expected.wgsl b/test/builtins/gen/tan/244e2a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/tan/244e2a.wgsl.expected.wgsl rename to test/builtins/gen/tan/244e2a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/tan/2f030e.wgsl b/test/builtins/gen/tan/2f030e.wgsl similarity index 88% rename from test/intrinsics/gen/tan/2f030e.wgsl rename to test/builtins/gen/tan/2f030e.wgsl index 3ee8e7277c..cb7ecc933c 100644 --- a/test/intrinsics/gen/tan/2f030e.wgsl +++ b/test/builtins/gen/tan/2f030e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/tan/2f030e.wgsl.expected.glsl b/test/builtins/gen/tan/2f030e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/tan/2f030e.wgsl.expected.glsl rename to test/builtins/gen/tan/2f030e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/tan/2f030e.wgsl.expected.hlsl b/test/builtins/gen/tan/2f030e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/tan/2f030e.wgsl.expected.hlsl rename to test/builtins/gen/tan/2f030e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/tan/2f030e.wgsl.expected.msl b/test/builtins/gen/tan/2f030e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/tan/2f030e.wgsl.expected.msl rename to test/builtins/gen/tan/2f030e.wgsl.expected.msl diff --git a/test/intrinsics/gen/tan/2f030e.wgsl.expected.spvasm b/test/builtins/gen/tan/2f030e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/tan/2f030e.wgsl.expected.spvasm rename to test/builtins/gen/tan/2f030e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/tan/2f030e.wgsl.expected.wgsl b/test/builtins/gen/tan/2f030e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/tan/2f030e.wgsl.expected.wgsl rename to test/builtins/gen/tan/2f030e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/tan/7ea104.wgsl b/test/builtins/gen/tan/7ea104.wgsl similarity index 88% rename from test/intrinsics/gen/tan/7ea104.wgsl rename to test/builtins/gen/tan/7ea104.wgsl index 6250daab60..caf5f9952d 100644 --- a/test/intrinsics/gen/tan/7ea104.wgsl +++ b/test/builtins/gen/tan/7ea104.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/tan/7ea104.wgsl.expected.glsl b/test/builtins/gen/tan/7ea104.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/tan/7ea104.wgsl.expected.glsl rename to test/builtins/gen/tan/7ea104.wgsl.expected.glsl diff --git a/test/intrinsics/gen/tan/7ea104.wgsl.expected.hlsl b/test/builtins/gen/tan/7ea104.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/tan/7ea104.wgsl.expected.hlsl rename to test/builtins/gen/tan/7ea104.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/tan/7ea104.wgsl.expected.msl b/test/builtins/gen/tan/7ea104.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/tan/7ea104.wgsl.expected.msl rename to test/builtins/gen/tan/7ea104.wgsl.expected.msl diff --git a/test/intrinsics/gen/tan/7ea104.wgsl.expected.spvasm b/test/builtins/gen/tan/7ea104.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/tan/7ea104.wgsl.expected.spvasm rename to test/builtins/gen/tan/7ea104.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/tan/7ea104.wgsl.expected.wgsl b/test/builtins/gen/tan/7ea104.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/tan/7ea104.wgsl.expected.wgsl rename to test/builtins/gen/tan/7ea104.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/tan/8ce3e9.wgsl b/test/builtins/gen/tan/8ce3e9.wgsl similarity index 88% rename from test/intrinsics/gen/tan/8ce3e9.wgsl rename to test/builtins/gen/tan/8ce3e9.wgsl index 85765f1e46..d4a3663df3 100644 --- a/test/intrinsics/gen/tan/8ce3e9.wgsl +++ b/test/builtins/gen/tan/8ce3e9.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/tan/8ce3e9.wgsl.expected.glsl b/test/builtins/gen/tan/8ce3e9.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/tan/8ce3e9.wgsl.expected.glsl rename to test/builtins/gen/tan/8ce3e9.wgsl.expected.glsl diff --git a/test/intrinsics/gen/tan/8ce3e9.wgsl.expected.hlsl b/test/builtins/gen/tan/8ce3e9.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/tan/8ce3e9.wgsl.expected.hlsl rename to test/builtins/gen/tan/8ce3e9.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/tan/8ce3e9.wgsl.expected.msl b/test/builtins/gen/tan/8ce3e9.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/tan/8ce3e9.wgsl.expected.msl rename to test/builtins/gen/tan/8ce3e9.wgsl.expected.msl diff --git a/test/intrinsics/gen/tan/8ce3e9.wgsl.expected.spvasm b/test/builtins/gen/tan/8ce3e9.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/tan/8ce3e9.wgsl.expected.spvasm rename to test/builtins/gen/tan/8ce3e9.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/tan/8ce3e9.wgsl.expected.wgsl b/test/builtins/gen/tan/8ce3e9.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/tan/8ce3e9.wgsl.expected.wgsl rename to test/builtins/gen/tan/8ce3e9.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/tanh/5663c5.wgsl b/test/builtins/gen/tanh/5663c5.wgsl similarity index 88% rename from test/intrinsics/gen/tanh/5663c5.wgsl rename to test/builtins/gen/tanh/5663c5.wgsl index 96b2fdb4ca..f752060dd7 100644 --- a/test/intrinsics/gen/tanh/5663c5.wgsl +++ b/test/builtins/gen/tanh/5663c5.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/tanh/5663c5.wgsl.expected.glsl b/test/builtins/gen/tanh/5663c5.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/tanh/5663c5.wgsl.expected.glsl rename to test/builtins/gen/tanh/5663c5.wgsl.expected.glsl diff --git a/test/intrinsics/gen/tanh/5663c5.wgsl.expected.hlsl b/test/builtins/gen/tanh/5663c5.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/tanh/5663c5.wgsl.expected.hlsl rename to test/builtins/gen/tanh/5663c5.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/tanh/5663c5.wgsl.expected.msl b/test/builtins/gen/tanh/5663c5.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/tanh/5663c5.wgsl.expected.msl rename to test/builtins/gen/tanh/5663c5.wgsl.expected.msl diff --git a/test/intrinsics/gen/tanh/5663c5.wgsl.expected.spvasm b/test/builtins/gen/tanh/5663c5.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/tanh/5663c5.wgsl.expected.spvasm rename to test/builtins/gen/tanh/5663c5.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/tanh/5663c5.wgsl.expected.wgsl b/test/builtins/gen/tanh/5663c5.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/tanh/5663c5.wgsl.expected.wgsl rename to test/builtins/gen/tanh/5663c5.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/tanh/5724b3.wgsl b/test/builtins/gen/tanh/5724b3.wgsl similarity index 88% rename from test/intrinsics/gen/tanh/5724b3.wgsl rename to test/builtins/gen/tanh/5724b3.wgsl index c0f3509894..95f5807d4f 100644 --- a/test/intrinsics/gen/tanh/5724b3.wgsl +++ b/test/builtins/gen/tanh/5724b3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/tanh/5724b3.wgsl.expected.glsl b/test/builtins/gen/tanh/5724b3.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/tanh/5724b3.wgsl.expected.glsl rename to test/builtins/gen/tanh/5724b3.wgsl.expected.glsl diff --git a/test/intrinsics/gen/tanh/5724b3.wgsl.expected.hlsl b/test/builtins/gen/tanh/5724b3.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/tanh/5724b3.wgsl.expected.hlsl rename to test/builtins/gen/tanh/5724b3.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/tanh/5724b3.wgsl.expected.msl b/test/builtins/gen/tanh/5724b3.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/tanh/5724b3.wgsl.expected.msl rename to test/builtins/gen/tanh/5724b3.wgsl.expected.msl diff --git a/test/intrinsics/gen/tanh/5724b3.wgsl.expected.spvasm b/test/builtins/gen/tanh/5724b3.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/tanh/5724b3.wgsl.expected.spvasm rename to test/builtins/gen/tanh/5724b3.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/tanh/5724b3.wgsl.expected.wgsl b/test/builtins/gen/tanh/5724b3.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/tanh/5724b3.wgsl.expected.wgsl rename to test/builtins/gen/tanh/5724b3.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/tanh/9f9fb9.wgsl b/test/builtins/gen/tanh/9f9fb9.wgsl similarity index 88% rename from test/intrinsics/gen/tanh/9f9fb9.wgsl rename to test/builtins/gen/tanh/9f9fb9.wgsl index e83ed57e42..d8530dc840 100644 --- a/test/intrinsics/gen/tanh/9f9fb9.wgsl +++ b/test/builtins/gen/tanh/9f9fb9.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/tanh/9f9fb9.wgsl.expected.glsl b/test/builtins/gen/tanh/9f9fb9.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/tanh/9f9fb9.wgsl.expected.glsl rename to test/builtins/gen/tanh/9f9fb9.wgsl.expected.glsl diff --git a/test/intrinsics/gen/tanh/9f9fb9.wgsl.expected.hlsl b/test/builtins/gen/tanh/9f9fb9.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/tanh/9f9fb9.wgsl.expected.hlsl rename to test/builtins/gen/tanh/9f9fb9.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/tanh/9f9fb9.wgsl.expected.msl b/test/builtins/gen/tanh/9f9fb9.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/tanh/9f9fb9.wgsl.expected.msl rename to test/builtins/gen/tanh/9f9fb9.wgsl.expected.msl diff --git a/test/intrinsics/gen/tanh/9f9fb9.wgsl.expected.spvasm b/test/builtins/gen/tanh/9f9fb9.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/tanh/9f9fb9.wgsl.expected.spvasm rename to test/builtins/gen/tanh/9f9fb9.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/tanh/9f9fb9.wgsl.expected.wgsl b/test/builtins/gen/tanh/9f9fb9.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/tanh/9f9fb9.wgsl.expected.wgsl rename to test/builtins/gen/tanh/9f9fb9.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/tanh/c15fdb.wgsl b/test/builtins/gen/tanh/c15fdb.wgsl similarity index 88% rename from test/intrinsics/gen/tanh/c15fdb.wgsl rename to test/builtins/gen/tanh/c15fdb.wgsl index 20c69fdd2d..e9b0c19b7d 100644 --- a/test/intrinsics/gen/tanh/c15fdb.wgsl +++ b/test/builtins/gen/tanh/c15fdb.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/tanh/c15fdb.wgsl.expected.glsl b/test/builtins/gen/tanh/c15fdb.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/tanh/c15fdb.wgsl.expected.glsl rename to test/builtins/gen/tanh/c15fdb.wgsl.expected.glsl diff --git a/test/intrinsics/gen/tanh/c15fdb.wgsl.expected.hlsl b/test/builtins/gen/tanh/c15fdb.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/tanh/c15fdb.wgsl.expected.hlsl rename to test/builtins/gen/tanh/c15fdb.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/tanh/c15fdb.wgsl.expected.msl b/test/builtins/gen/tanh/c15fdb.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/tanh/c15fdb.wgsl.expected.msl rename to test/builtins/gen/tanh/c15fdb.wgsl.expected.msl diff --git a/test/intrinsics/gen/tanh/c15fdb.wgsl.expected.spvasm b/test/builtins/gen/tanh/c15fdb.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/tanh/c15fdb.wgsl.expected.spvasm rename to test/builtins/gen/tanh/c15fdb.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/tanh/c15fdb.wgsl.expected.wgsl b/test/builtins/gen/tanh/c15fdb.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/tanh/c15fdb.wgsl.expected.wgsl rename to test/builtins/gen/tanh/c15fdb.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/002b2a.wgsl b/test/builtins/gen/textureDimensions/002b2a.wgsl similarity index 89% rename from test/intrinsics/gen/textureDimensions/002b2a.wgsl rename to test/builtins/gen/textureDimensions/002b2a.wgsl index 96f16b23c6..abdf125d3e 100644 --- a/test/intrinsics/gen/textureDimensions/002b2a.wgsl +++ b/test/builtins/gen/textureDimensions/002b2a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/002b2a.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/002b2a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/002b2a.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/002b2a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/002b2a.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/002b2a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/002b2a.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/002b2a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/002b2a.wgsl.expected.msl b/test/builtins/gen/textureDimensions/002b2a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/002b2a.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/002b2a.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/002b2a.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/002b2a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/002b2a.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/002b2a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/002b2a.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/002b2a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/002b2a.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/002b2a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/012b82.wgsl b/test/builtins/gen/textureDimensions/012b82.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/012b82.wgsl rename to test/builtins/gen/textureDimensions/012b82.wgsl index b1697be83d..92bdad0bce 100644 --- a/test/intrinsics/gen/textureDimensions/012b82.wgsl +++ b/test/builtins/gen/textureDimensions/012b82.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/012b82.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/012b82.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/012b82.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/012b82.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/012b82.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/012b82.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/012b82.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/012b82.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/012b82.wgsl.expected.msl b/test/builtins/gen/textureDimensions/012b82.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/012b82.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/012b82.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/012b82.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/012b82.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/012b82.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/012b82.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/012b82.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/012b82.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/012b82.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/012b82.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/08753d.wgsl b/test/builtins/gen/textureDimensions/08753d.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/08753d.wgsl rename to test/builtins/gen/textureDimensions/08753d.wgsl index 05fcbdd628..08e10f1b9e 100644 --- a/test/intrinsics/gen/textureDimensions/08753d.wgsl +++ b/test/builtins/gen/textureDimensions/08753d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/08753d.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/08753d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/08753d.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/08753d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/08753d.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/08753d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/08753d.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/08753d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/08753d.wgsl.expected.msl b/test/builtins/gen/textureDimensions/08753d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/08753d.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/08753d.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/08753d.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/08753d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/08753d.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/08753d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/08753d.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/08753d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/08753d.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/08753d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/0c4772.wgsl b/test/builtins/gen/textureDimensions/0c4772.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/0c4772.wgsl rename to test/builtins/gen/textureDimensions/0c4772.wgsl index daad04270d..8e2fdc548d 100644 --- a/test/intrinsics/gen/textureDimensions/0c4772.wgsl +++ b/test/builtins/gen/textureDimensions/0c4772.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/0c4772.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/0c4772.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0c4772.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/0c4772.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/0c4772.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/0c4772.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0c4772.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/0c4772.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/0c4772.wgsl.expected.msl b/test/builtins/gen/textureDimensions/0c4772.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0c4772.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/0c4772.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/0c4772.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/0c4772.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/0c4772.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/0c4772.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/0c4772.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/0c4772.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0c4772.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/0c4772.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/0cce40.wgsl b/test/builtins/gen/textureDimensions/0cce40.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/0cce40.wgsl rename to test/builtins/gen/textureDimensions/0cce40.wgsl index a9ae1338d8..f3718fcad1 100644 --- a/test/intrinsics/gen/textureDimensions/0cce40.wgsl +++ b/test/builtins/gen/textureDimensions/0cce40.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/0cce40.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/0cce40.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0cce40.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/0cce40.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/0cce40.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/0cce40.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0cce40.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/0cce40.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/0cce40.wgsl.expected.msl b/test/builtins/gen/textureDimensions/0cce40.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0cce40.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/0cce40.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/0cce40.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/0cce40.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/0cce40.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/0cce40.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/0cce40.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/0cce40.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0cce40.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/0cce40.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/0cf2ff.wgsl b/test/builtins/gen/textureDimensions/0cf2ff.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/0cf2ff.wgsl rename to test/builtins/gen/textureDimensions/0cf2ff.wgsl index 1fef317e9e..2cd31ca501 100644 --- a/test/intrinsics/gen/textureDimensions/0cf2ff.wgsl +++ b/test/builtins/gen/textureDimensions/0cf2ff.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/0cf2ff.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/0cf2ff.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0cf2ff.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/0cf2ff.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/0cf2ff.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/0cf2ff.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0cf2ff.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/0cf2ff.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/0cf2ff.wgsl.expected.msl b/test/builtins/gen/textureDimensions/0cf2ff.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0cf2ff.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/0cf2ff.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/0cf2ff.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/0cf2ff.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/0cf2ff.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/0cf2ff.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/0cf2ff.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/0cf2ff.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0cf2ff.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/0cf2ff.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/0d8b7e.wgsl b/test/builtins/gen/textureDimensions/0d8b7e.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/0d8b7e.wgsl rename to test/builtins/gen/textureDimensions/0d8b7e.wgsl index 255f1eedd6..c287d5cef6 100644 --- a/test/intrinsics/gen/textureDimensions/0d8b7e.wgsl +++ b/test/builtins/gen/textureDimensions/0d8b7e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/0d8b7e.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/0d8b7e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0d8b7e.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/0d8b7e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/0d8b7e.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/0d8b7e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0d8b7e.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/0d8b7e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/0d8b7e.wgsl.expected.msl b/test/builtins/gen/textureDimensions/0d8b7e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0d8b7e.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/0d8b7e.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/0d8b7e.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/0d8b7e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/0d8b7e.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/0d8b7e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/0d8b7e.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/0d8b7e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0d8b7e.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/0d8b7e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/0e32ee.wgsl b/test/builtins/gen/textureDimensions/0e32ee.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/0e32ee.wgsl rename to test/builtins/gen/textureDimensions/0e32ee.wgsl index be5b433144..b0bd5349f4 100644 --- a/test/intrinsics/gen/textureDimensions/0e32ee.wgsl +++ b/test/builtins/gen/textureDimensions/0e32ee.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/0e32ee.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/0e32ee.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0e32ee.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/0e32ee.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/0e32ee.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/0e32ee.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0e32ee.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/0e32ee.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/0e32ee.wgsl.expected.msl b/test/builtins/gen/textureDimensions/0e32ee.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0e32ee.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/0e32ee.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/0e32ee.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/0e32ee.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/0e32ee.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/0e32ee.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/0e32ee.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/0e32ee.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0e32ee.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/0e32ee.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/0f3c50.wgsl b/test/builtins/gen/textureDimensions/0f3c50.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/0f3c50.wgsl rename to test/builtins/gen/textureDimensions/0f3c50.wgsl index 2cc8fece11..c5c653b487 100644 --- a/test/intrinsics/gen/textureDimensions/0f3c50.wgsl +++ b/test/builtins/gen/textureDimensions/0f3c50.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/0f3c50.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/0f3c50.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0f3c50.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/0f3c50.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/0f3c50.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/0f3c50.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0f3c50.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/0f3c50.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/0f3c50.wgsl.expected.msl b/test/builtins/gen/textureDimensions/0f3c50.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0f3c50.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/0f3c50.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/0f3c50.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/0f3c50.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/0f3c50.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/0f3c50.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/0f3c50.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/0f3c50.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/0f3c50.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/0f3c50.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/1191a5.wgsl b/test/builtins/gen/textureDimensions/1191a5.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/1191a5.wgsl rename to test/builtins/gen/textureDimensions/1191a5.wgsl index 6b0382b47b..8b27fb3055 100644 --- a/test/intrinsics/gen/textureDimensions/1191a5.wgsl +++ b/test/builtins/gen/textureDimensions/1191a5.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/1191a5.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/1191a5.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/1191a5.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/1191a5.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/1191a5.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/1191a5.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/1191a5.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/1191a5.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/1191a5.wgsl.expected.msl b/test/builtins/gen/textureDimensions/1191a5.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/1191a5.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/1191a5.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/1191a5.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/1191a5.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/1191a5.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/1191a5.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/1191a5.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/1191a5.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/1191a5.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/1191a5.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/12c9bb.wgsl b/test/builtins/gen/textureDimensions/12c9bb.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/12c9bb.wgsl rename to test/builtins/gen/textureDimensions/12c9bb.wgsl index b2fa3efe21..78ced162aa 100644 --- a/test/intrinsics/gen/textureDimensions/12c9bb.wgsl +++ b/test/builtins/gen/textureDimensions/12c9bb.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/12c9bb.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/12c9bb.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/12c9bb.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/12c9bb.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/12c9bb.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/12c9bb.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/12c9bb.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/12c9bb.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/12c9bb.wgsl.expected.msl b/test/builtins/gen/textureDimensions/12c9bb.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/12c9bb.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/12c9bb.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/12c9bb.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/12c9bb.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/12c9bb.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/12c9bb.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/12c9bb.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/12c9bb.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/12c9bb.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/12c9bb.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/147998.wgsl b/test/builtins/gen/textureDimensions/147998.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/147998.wgsl rename to test/builtins/gen/textureDimensions/147998.wgsl index 41ebd8158c..8b386d99e7 100644 --- a/test/intrinsics/gen/textureDimensions/147998.wgsl +++ b/test/builtins/gen/textureDimensions/147998.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/147998.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/147998.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/147998.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/147998.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/147998.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/147998.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/147998.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/147998.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/147998.wgsl.expected.msl b/test/builtins/gen/textureDimensions/147998.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/147998.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/147998.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/147998.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/147998.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/147998.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/147998.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/147998.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/147998.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/147998.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/147998.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/16036c.wgsl b/test/builtins/gen/textureDimensions/16036c.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/16036c.wgsl rename to test/builtins/gen/textureDimensions/16036c.wgsl index c231cc4676..44057b8a96 100644 --- a/test/intrinsics/gen/textureDimensions/16036c.wgsl +++ b/test/builtins/gen/textureDimensions/16036c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/16036c.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/16036c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/16036c.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/16036c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/16036c.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/16036c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/16036c.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/16036c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/16036c.wgsl.expected.msl b/test/builtins/gen/textureDimensions/16036c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/16036c.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/16036c.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/16036c.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/16036c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/16036c.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/16036c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/16036c.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/16036c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/16036c.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/16036c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/1b71f0.wgsl b/test/builtins/gen/textureDimensions/1b71f0.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/1b71f0.wgsl rename to test/builtins/gen/textureDimensions/1b71f0.wgsl index 558f3e3662..f7a1e04bcb 100644 --- a/test/intrinsics/gen/textureDimensions/1b71f0.wgsl +++ b/test/builtins/gen/textureDimensions/1b71f0.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/1b71f0.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/1b71f0.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/1b71f0.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/1b71f0.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/1b71f0.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/1b71f0.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/1b71f0.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/1b71f0.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/1b71f0.wgsl.expected.msl b/test/builtins/gen/textureDimensions/1b71f0.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/1b71f0.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/1b71f0.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/1b71f0.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/1b71f0.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/1b71f0.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/1b71f0.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/1b71f0.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/1b71f0.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/1b71f0.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/1b71f0.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/1d6c26.wgsl b/test/builtins/gen/textureDimensions/1d6c26.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/1d6c26.wgsl rename to test/builtins/gen/textureDimensions/1d6c26.wgsl index d2d2980ac6..592b9ea73e 100644 --- a/test/intrinsics/gen/textureDimensions/1d6c26.wgsl +++ b/test/builtins/gen/textureDimensions/1d6c26.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/1d6c26.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/1d6c26.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/1d6c26.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/1d6c26.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/1d6c26.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/1d6c26.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/1d6c26.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/1d6c26.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/1d6c26.wgsl.expected.msl b/test/builtins/gen/textureDimensions/1d6c26.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/1d6c26.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/1d6c26.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/1d6c26.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/1d6c26.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/1d6c26.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/1d6c26.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/1d6c26.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/1d6c26.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/1d6c26.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/1d6c26.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/1e9e39.wgsl b/test/builtins/gen/textureDimensions/1e9e39.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/1e9e39.wgsl rename to test/builtins/gen/textureDimensions/1e9e39.wgsl index a30fbe0416..e848f69800 100644 --- a/test/intrinsics/gen/textureDimensions/1e9e39.wgsl +++ b/test/builtins/gen/textureDimensions/1e9e39.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/1e9e39.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/1e9e39.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/1e9e39.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/1e9e39.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/1e9e39.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/1e9e39.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/1e9e39.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/1e9e39.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/1e9e39.wgsl.expected.msl b/test/builtins/gen/textureDimensions/1e9e39.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/1e9e39.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/1e9e39.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/1e9e39.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/1e9e39.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/1e9e39.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/1e9e39.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/1e9e39.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/1e9e39.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/1e9e39.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/1e9e39.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/1f20c5.wgsl b/test/builtins/gen/textureDimensions/1f20c5.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/1f20c5.wgsl rename to test/builtins/gen/textureDimensions/1f20c5.wgsl index 0e4971756a..57dc1eee14 100644 --- a/test/intrinsics/gen/textureDimensions/1f20c5.wgsl +++ b/test/builtins/gen/textureDimensions/1f20c5.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/1f20c5.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/1f20c5.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/1f20c5.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/1f20c5.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/1f20c5.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/1f20c5.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/1f20c5.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/1f20c5.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/1f20c5.wgsl.expected.msl b/test/builtins/gen/textureDimensions/1f20c5.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/1f20c5.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/1f20c5.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/1f20c5.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/1f20c5.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/1f20c5.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/1f20c5.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/1f20c5.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/1f20c5.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/1f20c5.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/1f20c5.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/214dd4.wgsl b/test/builtins/gen/textureDimensions/214dd4.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/214dd4.wgsl rename to test/builtins/gen/textureDimensions/214dd4.wgsl index 27c2d8a12b..ac2815d55e 100644 --- a/test/intrinsics/gen/textureDimensions/214dd4.wgsl +++ b/test/builtins/gen/textureDimensions/214dd4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/214dd4.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/214dd4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/214dd4.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/214dd4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/214dd4.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/214dd4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/214dd4.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/214dd4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/214dd4.wgsl.expected.msl b/test/builtins/gen/textureDimensions/214dd4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/214dd4.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/214dd4.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/214dd4.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/214dd4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/214dd4.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/214dd4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/214dd4.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/214dd4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/214dd4.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/214dd4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/221f22.wgsl b/test/builtins/gen/textureDimensions/221f22.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/221f22.wgsl rename to test/builtins/gen/textureDimensions/221f22.wgsl index 70098d7b63..14d0237583 100644 --- a/test/intrinsics/gen/textureDimensions/221f22.wgsl +++ b/test/builtins/gen/textureDimensions/221f22.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/221f22.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/221f22.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/221f22.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/221f22.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/221f22.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/221f22.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/221f22.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/221f22.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/221f22.wgsl.expected.msl b/test/builtins/gen/textureDimensions/221f22.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/221f22.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/221f22.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/221f22.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/221f22.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/221f22.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/221f22.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/221f22.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/221f22.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/221f22.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/221f22.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/267788.wgsl b/test/builtins/gen/textureDimensions/267788.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/267788.wgsl rename to test/builtins/gen/textureDimensions/267788.wgsl index d431dc77f0..373e44ebb3 100644 --- a/test/intrinsics/gen/textureDimensions/267788.wgsl +++ b/test/builtins/gen/textureDimensions/267788.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/267788.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/267788.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/267788.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/267788.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/267788.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/267788.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/267788.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/267788.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/267788.wgsl.expected.msl b/test/builtins/gen/textureDimensions/267788.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/267788.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/267788.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/267788.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/267788.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/267788.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/267788.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/267788.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/267788.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/267788.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/267788.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/26bdfa.wgsl b/test/builtins/gen/textureDimensions/26bdfa.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/26bdfa.wgsl rename to test/builtins/gen/textureDimensions/26bdfa.wgsl index 4100047e76..7921095a78 100644 --- a/test/intrinsics/gen/textureDimensions/26bdfa.wgsl +++ b/test/builtins/gen/textureDimensions/26bdfa.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/26bdfa.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/26bdfa.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/26bdfa.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/26bdfa.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/26bdfa.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/26bdfa.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/26bdfa.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/26bdfa.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/26bdfa.wgsl.expected.msl b/test/builtins/gen/textureDimensions/26bdfa.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/26bdfa.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/26bdfa.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/26bdfa.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/26bdfa.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/26bdfa.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/26bdfa.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/26bdfa.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/26bdfa.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/26bdfa.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/26bdfa.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/26ef6c.wgsl b/test/builtins/gen/textureDimensions/26ef6c.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/26ef6c.wgsl rename to test/builtins/gen/textureDimensions/26ef6c.wgsl index ec36468153..a09c30b546 100644 --- a/test/intrinsics/gen/textureDimensions/26ef6c.wgsl +++ b/test/builtins/gen/textureDimensions/26ef6c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/26ef6c.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/26ef6c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/26ef6c.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/26ef6c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/26ef6c.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/26ef6c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/26ef6c.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/26ef6c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/26ef6c.wgsl.expected.msl b/test/builtins/gen/textureDimensions/26ef6c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/26ef6c.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/26ef6c.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/26ef6c.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/26ef6c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/26ef6c.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/26ef6c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/26ef6c.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/26ef6c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/26ef6c.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/26ef6c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/2ad087.wgsl b/test/builtins/gen/textureDimensions/2ad087.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/2ad087.wgsl rename to test/builtins/gen/textureDimensions/2ad087.wgsl index 74ab99e4e5..fe036cd88c 100644 --- a/test/intrinsics/gen/textureDimensions/2ad087.wgsl +++ b/test/builtins/gen/textureDimensions/2ad087.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/2ad087.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/2ad087.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/2ad087.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/2ad087.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/2ad087.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/2ad087.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/2ad087.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/2ad087.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/2ad087.wgsl.expected.msl b/test/builtins/gen/textureDimensions/2ad087.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/2ad087.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/2ad087.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/2ad087.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/2ad087.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/2ad087.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/2ad087.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/2ad087.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/2ad087.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/2ad087.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/2ad087.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/2efa05.wgsl b/test/builtins/gen/textureDimensions/2efa05.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/2efa05.wgsl rename to test/builtins/gen/textureDimensions/2efa05.wgsl index b5da2061c3..ad39eb2eb6 100644 --- a/test/intrinsics/gen/textureDimensions/2efa05.wgsl +++ b/test/builtins/gen/textureDimensions/2efa05.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/2efa05.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/2efa05.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/2efa05.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/2efa05.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/2efa05.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/2efa05.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/2efa05.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/2efa05.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/2efa05.wgsl.expected.msl b/test/builtins/gen/textureDimensions/2efa05.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/2efa05.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/2efa05.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/2efa05.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/2efa05.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/2efa05.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/2efa05.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/2efa05.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/2efa05.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/2efa05.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/2efa05.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/2f289f.wgsl b/test/builtins/gen/textureDimensions/2f289f.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/2f289f.wgsl rename to test/builtins/gen/textureDimensions/2f289f.wgsl index 0ac6e35bb9..b7bd4c9d61 100644 --- a/test/intrinsics/gen/textureDimensions/2f289f.wgsl +++ b/test/builtins/gen/textureDimensions/2f289f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/2f289f.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/2f289f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/2f289f.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/2f289f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/2f289f.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/2f289f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/2f289f.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/2f289f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/2f289f.wgsl.expected.msl b/test/builtins/gen/textureDimensions/2f289f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/2f289f.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/2f289f.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/2f289f.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/2f289f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/2f289f.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/2f289f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/2f289f.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/2f289f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/2f289f.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/2f289f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/2fe1cc.wgsl b/test/builtins/gen/textureDimensions/2fe1cc.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/2fe1cc.wgsl rename to test/builtins/gen/textureDimensions/2fe1cc.wgsl index 0bd62a0c66..b069814372 100644 --- a/test/intrinsics/gen/textureDimensions/2fe1cc.wgsl +++ b/test/builtins/gen/textureDimensions/2fe1cc.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/2fe1cc.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/2fe1cc.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/2fe1cc.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/2fe1cc.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/2fe1cc.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/2fe1cc.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/2fe1cc.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/2fe1cc.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/2fe1cc.wgsl.expected.msl b/test/builtins/gen/textureDimensions/2fe1cc.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/2fe1cc.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/2fe1cc.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/2fe1cc.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/2fe1cc.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/2fe1cc.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/2fe1cc.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/2fe1cc.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/2fe1cc.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/2fe1cc.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/2fe1cc.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/318ecc.wgsl b/test/builtins/gen/textureDimensions/318ecc.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/318ecc.wgsl rename to test/builtins/gen/textureDimensions/318ecc.wgsl index 015839ceae..94f6e05cdc 100644 --- a/test/intrinsics/gen/textureDimensions/318ecc.wgsl +++ b/test/builtins/gen/textureDimensions/318ecc.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/318ecc.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/318ecc.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/318ecc.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/318ecc.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/318ecc.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/318ecc.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/318ecc.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/318ecc.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/318ecc.wgsl.expected.msl b/test/builtins/gen/textureDimensions/318ecc.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/318ecc.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/318ecc.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/318ecc.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/318ecc.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/318ecc.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/318ecc.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/318ecc.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/318ecc.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/318ecc.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/318ecc.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/340d06.wgsl b/test/builtins/gen/textureDimensions/340d06.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/340d06.wgsl rename to test/builtins/gen/textureDimensions/340d06.wgsl index 71af9d0be3..96fb75ca01 100644 --- a/test/intrinsics/gen/textureDimensions/340d06.wgsl +++ b/test/builtins/gen/textureDimensions/340d06.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/340d06.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/340d06.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/340d06.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/340d06.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/340d06.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/340d06.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/340d06.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/340d06.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/340d06.wgsl.expected.msl b/test/builtins/gen/textureDimensions/340d06.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/340d06.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/340d06.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/340d06.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/340d06.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/340d06.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/340d06.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/340d06.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/340d06.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/340d06.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/340d06.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/398e30.wgsl b/test/builtins/gen/textureDimensions/398e30.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/398e30.wgsl rename to test/builtins/gen/textureDimensions/398e30.wgsl index 0bdd487a38..578d684f07 100644 --- a/test/intrinsics/gen/textureDimensions/398e30.wgsl +++ b/test/builtins/gen/textureDimensions/398e30.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/398e30.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/398e30.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/398e30.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/398e30.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/398e30.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/398e30.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/398e30.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/398e30.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/398e30.wgsl.expected.msl b/test/builtins/gen/textureDimensions/398e30.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/398e30.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/398e30.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/398e30.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/398e30.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/398e30.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/398e30.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/398e30.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/398e30.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/398e30.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/398e30.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/3a94ea.wgsl b/test/builtins/gen/textureDimensions/3a94ea.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/3a94ea.wgsl rename to test/builtins/gen/textureDimensions/3a94ea.wgsl index eb60d1edbe..a55d87291f 100644 --- a/test/intrinsics/gen/textureDimensions/3a94ea.wgsl +++ b/test/builtins/gen/textureDimensions/3a94ea.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/3a94ea.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/3a94ea.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/3a94ea.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/3a94ea.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/3a94ea.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/3a94ea.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/3a94ea.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/3a94ea.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/3a94ea.wgsl.expected.msl b/test/builtins/gen/textureDimensions/3a94ea.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/3a94ea.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/3a94ea.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/3a94ea.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/3a94ea.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/3a94ea.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/3a94ea.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/3a94ea.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/3a94ea.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/3a94ea.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/3a94ea.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/3aca08.wgsl b/test/builtins/gen/textureDimensions/3aca08.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/3aca08.wgsl rename to test/builtins/gen/textureDimensions/3aca08.wgsl index 3d96944139..015a10d6ae 100644 --- a/test/intrinsics/gen/textureDimensions/3aca08.wgsl +++ b/test/builtins/gen/textureDimensions/3aca08.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/3aca08.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/3aca08.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/3aca08.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/3aca08.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/3aca08.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/3aca08.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/3aca08.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/3aca08.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/3aca08.wgsl.expected.msl b/test/builtins/gen/textureDimensions/3aca08.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/3aca08.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/3aca08.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/3aca08.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/3aca08.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/3aca08.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/3aca08.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/3aca08.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/3aca08.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/3aca08.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/3aca08.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/3c5ad8.wgsl b/test/builtins/gen/textureDimensions/3c5ad8.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/3c5ad8.wgsl rename to test/builtins/gen/textureDimensions/3c5ad8.wgsl index e3837a8c72..4c834960ff 100644 --- a/test/intrinsics/gen/textureDimensions/3c5ad8.wgsl +++ b/test/builtins/gen/textureDimensions/3c5ad8.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/3c5ad8.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/3c5ad8.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/3c5ad8.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/3c5ad8.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/3c5ad8.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/3c5ad8.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/3c5ad8.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/3c5ad8.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/3c5ad8.wgsl.expected.msl b/test/builtins/gen/textureDimensions/3c5ad8.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/3c5ad8.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/3c5ad8.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/3c5ad8.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/3c5ad8.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/3c5ad8.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/3c5ad8.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/3c5ad8.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/3c5ad8.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/3c5ad8.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/3c5ad8.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/4152a6.wgsl b/test/builtins/gen/textureDimensions/4152a6.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/4152a6.wgsl rename to test/builtins/gen/textureDimensions/4152a6.wgsl index f13d3ce789..cdb068464f 100644 --- a/test/intrinsics/gen/textureDimensions/4152a6.wgsl +++ b/test/builtins/gen/textureDimensions/4152a6.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/4152a6.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/4152a6.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/4152a6.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/4152a6.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/4152a6.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/4152a6.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/4152a6.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/4152a6.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/4152a6.wgsl.expected.msl b/test/builtins/gen/textureDimensions/4152a6.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/4152a6.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/4152a6.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/4152a6.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/4152a6.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/4152a6.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/4152a6.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/4152a6.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/4152a6.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/4152a6.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/4152a6.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/423f99.wgsl b/test/builtins/gen/textureDimensions/423f99.wgsl similarity index 89% rename from test/intrinsics/gen/textureDimensions/423f99.wgsl rename to test/builtins/gen/textureDimensions/423f99.wgsl index d76008debb..b2534a39a7 100644 --- a/test/intrinsics/gen/textureDimensions/423f99.wgsl +++ b/test/builtins/gen/textureDimensions/423f99.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/423f99.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/423f99.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/423f99.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/423f99.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/423f99.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/423f99.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/423f99.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/423f99.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/423f99.wgsl.expected.msl b/test/builtins/gen/textureDimensions/423f99.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/423f99.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/423f99.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/423f99.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/423f99.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/423f99.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/423f99.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/423f99.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/423f99.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/423f99.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/423f99.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/4267ee.wgsl b/test/builtins/gen/textureDimensions/4267ee.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/4267ee.wgsl rename to test/builtins/gen/textureDimensions/4267ee.wgsl index 77143ecbab..00391833e3 100644 --- a/test/intrinsics/gen/textureDimensions/4267ee.wgsl +++ b/test/builtins/gen/textureDimensions/4267ee.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/4267ee.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/4267ee.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/4267ee.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/4267ee.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/4267ee.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/4267ee.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/4267ee.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/4267ee.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/4267ee.wgsl.expected.msl b/test/builtins/gen/textureDimensions/4267ee.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/4267ee.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/4267ee.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/4267ee.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/4267ee.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/4267ee.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/4267ee.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/4267ee.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/4267ee.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/4267ee.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/4267ee.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/42d4e6.wgsl b/test/builtins/gen/textureDimensions/42d4e6.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/42d4e6.wgsl rename to test/builtins/gen/textureDimensions/42d4e6.wgsl index 8638394832..9db52bc033 100644 --- a/test/intrinsics/gen/textureDimensions/42d4e6.wgsl +++ b/test/builtins/gen/textureDimensions/42d4e6.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/42d4e6.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/42d4e6.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/42d4e6.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/42d4e6.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/42d4e6.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/42d4e6.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/42d4e6.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/42d4e6.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/42d4e6.wgsl.expected.msl b/test/builtins/gen/textureDimensions/42d4e6.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/42d4e6.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/42d4e6.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/42d4e6.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/42d4e6.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/42d4e6.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/42d4e6.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/42d4e6.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/42d4e6.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/42d4e6.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/42d4e6.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/48cb89.wgsl b/test/builtins/gen/textureDimensions/48cb89.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/48cb89.wgsl rename to test/builtins/gen/textureDimensions/48cb89.wgsl index 12414cd810..d6b5e93631 100644 --- a/test/intrinsics/gen/textureDimensions/48cb89.wgsl +++ b/test/builtins/gen/textureDimensions/48cb89.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/48cb89.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/48cb89.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/48cb89.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/48cb89.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/48cb89.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/48cb89.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/48cb89.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/48cb89.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/48cb89.wgsl.expected.msl b/test/builtins/gen/textureDimensions/48cb89.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/48cb89.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/48cb89.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/48cb89.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/48cb89.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/48cb89.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/48cb89.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/48cb89.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/48cb89.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/48cb89.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/48cb89.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/49d274.wgsl b/test/builtins/gen/textureDimensions/49d274.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/49d274.wgsl rename to test/builtins/gen/textureDimensions/49d274.wgsl index b4569f083f..365b4d95ce 100644 --- a/test/intrinsics/gen/textureDimensions/49d274.wgsl +++ b/test/builtins/gen/textureDimensions/49d274.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/49d274.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/49d274.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/49d274.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/49d274.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/49d274.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/49d274.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/49d274.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/49d274.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/49d274.wgsl.expected.msl b/test/builtins/gen/textureDimensions/49d274.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/49d274.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/49d274.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/49d274.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/49d274.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/49d274.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/49d274.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/49d274.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/49d274.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/49d274.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/49d274.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/4df9a8.wgsl b/test/builtins/gen/textureDimensions/4df9a8.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/4df9a8.wgsl rename to test/builtins/gen/textureDimensions/4df9a8.wgsl index 5c8a80e24d..0d5704770d 100644 --- a/test/intrinsics/gen/textureDimensions/4df9a8.wgsl +++ b/test/builtins/gen/textureDimensions/4df9a8.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/4df9a8.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/4df9a8.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/4df9a8.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/4df9a8.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/4df9a8.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/4df9a8.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/4df9a8.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/4df9a8.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/4df9a8.wgsl.expected.msl b/test/builtins/gen/textureDimensions/4df9a8.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/4df9a8.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/4df9a8.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/4df9a8.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/4df9a8.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/4df9a8.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/4df9a8.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/4df9a8.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/4df9a8.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/4df9a8.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/4df9a8.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/50a9ee.wgsl b/test/builtins/gen/textureDimensions/50a9ee.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/50a9ee.wgsl rename to test/builtins/gen/textureDimensions/50a9ee.wgsl index ab5dab132f..eb49af8adb 100644 --- a/test/intrinsics/gen/textureDimensions/50a9ee.wgsl +++ b/test/builtins/gen/textureDimensions/50a9ee.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/50a9ee.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/50a9ee.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/50a9ee.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/50a9ee.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/50a9ee.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/50a9ee.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/50a9ee.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/50a9ee.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/50a9ee.wgsl.expected.msl b/test/builtins/gen/textureDimensions/50a9ee.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/50a9ee.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/50a9ee.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/50a9ee.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/50a9ee.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/50a9ee.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/50a9ee.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/50a9ee.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/50a9ee.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/50a9ee.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/50a9ee.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/52045c.wgsl b/test/builtins/gen/textureDimensions/52045c.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/52045c.wgsl rename to test/builtins/gen/textureDimensions/52045c.wgsl index 25dfd9d02b..4bcfa46113 100644 --- a/test/intrinsics/gen/textureDimensions/52045c.wgsl +++ b/test/builtins/gen/textureDimensions/52045c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/52045c.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/52045c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/52045c.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/52045c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/52045c.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/52045c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/52045c.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/52045c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/52045c.wgsl.expected.msl b/test/builtins/gen/textureDimensions/52045c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/52045c.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/52045c.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/52045c.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/52045c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/52045c.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/52045c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/52045c.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/52045c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/52045c.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/52045c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/55b23e.wgsl b/test/builtins/gen/textureDimensions/55b23e.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/55b23e.wgsl rename to test/builtins/gen/textureDimensions/55b23e.wgsl index 182bd4f859..f8365a7be0 100644 --- a/test/intrinsics/gen/textureDimensions/55b23e.wgsl +++ b/test/builtins/gen/textureDimensions/55b23e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/55b23e.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/55b23e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/55b23e.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/55b23e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/55b23e.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/55b23e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/55b23e.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/55b23e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/55b23e.wgsl.expected.msl b/test/builtins/gen/textureDimensions/55b23e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/55b23e.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/55b23e.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/55b23e.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/55b23e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/55b23e.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/55b23e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/55b23e.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/55b23e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/55b23e.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/55b23e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/579629.wgsl b/test/builtins/gen/textureDimensions/579629.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/579629.wgsl rename to test/builtins/gen/textureDimensions/579629.wgsl index 3892c0a4ae..307a03a9a8 100644 --- a/test/intrinsics/gen/textureDimensions/579629.wgsl +++ b/test/builtins/gen/textureDimensions/579629.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/579629.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/579629.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/579629.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/579629.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/579629.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/579629.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/579629.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/579629.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/579629.wgsl.expected.msl b/test/builtins/gen/textureDimensions/579629.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/579629.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/579629.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/579629.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/579629.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/579629.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/579629.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/579629.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/579629.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/579629.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/579629.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/57da0b.wgsl b/test/builtins/gen/textureDimensions/57da0b.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/57da0b.wgsl rename to test/builtins/gen/textureDimensions/57da0b.wgsl index 92e1e1a5b7..b0f707a74f 100644 --- a/test/intrinsics/gen/textureDimensions/57da0b.wgsl +++ b/test/builtins/gen/textureDimensions/57da0b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/57da0b.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/57da0b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/57da0b.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/57da0b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/57da0b.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/57da0b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/57da0b.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/57da0b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/57da0b.wgsl.expected.msl b/test/builtins/gen/textureDimensions/57da0b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/57da0b.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/57da0b.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/57da0b.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/57da0b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/57da0b.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/57da0b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/57da0b.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/57da0b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/57da0b.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/57da0b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/57e28f.wgsl b/test/builtins/gen/textureDimensions/57e28f.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/57e28f.wgsl rename to test/builtins/gen/textureDimensions/57e28f.wgsl index b0cf7ccde5..7e40bd0ee5 100644 --- a/test/intrinsics/gen/textureDimensions/57e28f.wgsl +++ b/test/builtins/gen/textureDimensions/57e28f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/57e28f.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/57e28f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/57e28f.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/57e28f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/57e28f.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/57e28f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/57e28f.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/57e28f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/57e28f.wgsl.expected.msl b/test/builtins/gen/textureDimensions/57e28f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/57e28f.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/57e28f.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/57e28f.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/57e28f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/57e28f.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/57e28f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/57e28f.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/57e28f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/57e28f.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/57e28f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/58a515.wgsl b/test/builtins/gen/textureDimensions/58a515.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/58a515.wgsl rename to test/builtins/gen/textureDimensions/58a515.wgsl index 9cbebcbfa4..02ecaeaae6 100644 --- a/test/intrinsics/gen/textureDimensions/58a515.wgsl +++ b/test/builtins/gen/textureDimensions/58a515.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/58a515.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/58a515.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/58a515.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/58a515.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/58a515.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/58a515.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/58a515.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/58a515.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/58a515.wgsl.expected.msl b/test/builtins/gen/textureDimensions/58a515.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/58a515.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/58a515.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/58a515.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/58a515.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/58a515.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/58a515.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/58a515.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/58a515.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/58a515.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/58a515.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/5985f3.wgsl b/test/builtins/gen/textureDimensions/5985f3.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/5985f3.wgsl rename to test/builtins/gen/textureDimensions/5985f3.wgsl index 9c37e5f674..b1816224c9 100644 --- a/test/intrinsics/gen/textureDimensions/5985f3.wgsl +++ b/test/builtins/gen/textureDimensions/5985f3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/5985f3.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/5985f3.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/5985f3.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/5985f3.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/5985f3.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/5985f3.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/5985f3.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/5985f3.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/5985f3.wgsl.expected.msl b/test/builtins/gen/textureDimensions/5985f3.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/5985f3.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/5985f3.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/5985f3.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/5985f3.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/5985f3.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/5985f3.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/5985f3.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/5985f3.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/5985f3.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/5985f3.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/5caa5e.wgsl b/test/builtins/gen/textureDimensions/5caa5e.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/5caa5e.wgsl rename to test/builtins/gen/textureDimensions/5caa5e.wgsl index 37017637eb..8541575949 100644 --- a/test/intrinsics/gen/textureDimensions/5caa5e.wgsl +++ b/test/builtins/gen/textureDimensions/5caa5e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/5caa5e.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/5caa5e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/5caa5e.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/5caa5e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/5caa5e.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/5caa5e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/5caa5e.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/5caa5e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/5caa5e.wgsl.expected.msl b/test/builtins/gen/textureDimensions/5caa5e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/5caa5e.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/5caa5e.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/5caa5e.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/5caa5e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/5caa5e.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/5caa5e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/5caa5e.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/5caa5e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/5caa5e.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/5caa5e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/5e295d.wgsl b/test/builtins/gen/textureDimensions/5e295d.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/5e295d.wgsl rename to test/builtins/gen/textureDimensions/5e295d.wgsl index 3e4cd1bdce..62b1c79c1a 100644 --- a/test/intrinsics/gen/textureDimensions/5e295d.wgsl +++ b/test/builtins/gen/textureDimensions/5e295d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/5e295d.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/5e295d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/5e295d.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/5e295d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/5e295d.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/5e295d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/5e295d.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/5e295d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/5e295d.wgsl.expected.msl b/test/builtins/gen/textureDimensions/5e295d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/5e295d.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/5e295d.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/5e295d.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/5e295d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/5e295d.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/5e295d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/5e295d.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/5e295d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/5e295d.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/5e295d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/60bf54.wgsl b/test/builtins/gen/textureDimensions/60bf54.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/60bf54.wgsl rename to test/builtins/gen/textureDimensions/60bf54.wgsl index fd0c02b251..6eb6787c5e 100644 --- a/test/intrinsics/gen/textureDimensions/60bf54.wgsl +++ b/test/builtins/gen/textureDimensions/60bf54.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/60bf54.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/60bf54.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/60bf54.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/60bf54.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/60bf54.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/60bf54.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/60bf54.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/60bf54.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/60bf54.wgsl.expected.msl b/test/builtins/gen/textureDimensions/60bf54.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/60bf54.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/60bf54.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/60bf54.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/60bf54.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/60bf54.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/60bf54.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/60bf54.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/60bf54.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/60bf54.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/60bf54.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/63f3cf.wgsl b/test/builtins/gen/textureDimensions/63f3cf.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/63f3cf.wgsl rename to test/builtins/gen/textureDimensions/63f3cf.wgsl index 7cab4b85cf..c104a38f1a 100644 --- a/test/intrinsics/gen/textureDimensions/63f3cf.wgsl +++ b/test/builtins/gen/textureDimensions/63f3cf.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/63f3cf.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/63f3cf.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/63f3cf.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/63f3cf.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/63f3cf.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/63f3cf.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/63f3cf.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/63f3cf.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/63f3cf.wgsl.expected.msl b/test/builtins/gen/textureDimensions/63f3cf.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/63f3cf.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/63f3cf.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/63f3cf.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/63f3cf.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/63f3cf.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/63f3cf.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/63f3cf.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/63f3cf.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/63f3cf.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/63f3cf.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/68105c.wgsl b/test/builtins/gen/textureDimensions/68105c.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/68105c.wgsl rename to test/builtins/gen/textureDimensions/68105c.wgsl index 9e15d77034..4e457dbeed 100644 --- a/test/intrinsics/gen/textureDimensions/68105c.wgsl +++ b/test/builtins/gen/textureDimensions/68105c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/68105c.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/68105c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/68105c.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/68105c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/68105c.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/68105c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/68105c.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/68105c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/68105c.wgsl.expected.msl b/test/builtins/gen/textureDimensions/68105c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/68105c.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/68105c.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/68105c.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/68105c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/68105c.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/68105c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/68105c.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/68105c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/68105c.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/68105c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/686ef2.wgsl b/test/builtins/gen/textureDimensions/686ef2.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/686ef2.wgsl rename to test/builtins/gen/textureDimensions/686ef2.wgsl index 6ed1d53858..b05f0c5d9c 100644 --- a/test/intrinsics/gen/textureDimensions/686ef2.wgsl +++ b/test/builtins/gen/textureDimensions/686ef2.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/686ef2.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/686ef2.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/686ef2.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/686ef2.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/686ef2.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/686ef2.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/686ef2.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/686ef2.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/686ef2.wgsl.expected.msl b/test/builtins/gen/textureDimensions/686ef2.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/686ef2.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/686ef2.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/686ef2.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/686ef2.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/686ef2.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/686ef2.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/686ef2.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/686ef2.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/686ef2.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/686ef2.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/6adac6.wgsl b/test/builtins/gen/textureDimensions/6adac6.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/6adac6.wgsl rename to test/builtins/gen/textureDimensions/6adac6.wgsl index f35d628e52..1474994640 100644 --- a/test/intrinsics/gen/textureDimensions/6adac6.wgsl +++ b/test/builtins/gen/textureDimensions/6adac6.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/6adac6.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/6adac6.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/6adac6.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/6adac6.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/6adac6.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/6adac6.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/6adac6.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/6adac6.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/6adac6.wgsl.expected.msl b/test/builtins/gen/textureDimensions/6adac6.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/6adac6.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/6adac6.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/6adac6.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/6adac6.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/6adac6.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/6adac6.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/6adac6.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/6adac6.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/6adac6.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/6adac6.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/6ec1b4.wgsl b/test/builtins/gen/textureDimensions/6ec1b4.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/6ec1b4.wgsl rename to test/builtins/gen/textureDimensions/6ec1b4.wgsl index a8718fb7fc..652a4e12d8 100644 --- a/test/intrinsics/gen/textureDimensions/6ec1b4.wgsl +++ b/test/builtins/gen/textureDimensions/6ec1b4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/6ec1b4.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/6ec1b4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/6ec1b4.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/6ec1b4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/6ec1b4.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/6ec1b4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/6ec1b4.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/6ec1b4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/6ec1b4.wgsl.expected.msl b/test/builtins/gen/textureDimensions/6ec1b4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/6ec1b4.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/6ec1b4.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/6ec1b4.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/6ec1b4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/6ec1b4.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/6ec1b4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/6ec1b4.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/6ec1b4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/6ec1b4.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/6ec1b4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/6f0d79.wgsl b/test/builtins/gen/textureDimensions/6f0d79.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/6f0d79.wgsl rename to test/builtins/gen/textureDimensions/6f0d79.wgsl index 395a6e0c13..51b2d16af1 100644 --- a/test/intrinsics/gen/textureDimensions/6f0d79.wgsl +++ b/test/builtins/gen/textureDimensions/6f0d79.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/6f0d79.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/6f0d79.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/6f0d79.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/6f0d79.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/6f0d79.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/6f0d79.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/6f0d79.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/6f0d79.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/6f0d79.wgsl.expected.msl b/test/builtins/gen/textureDimensions/6f0d79.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/6f0d79.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/6f0d79.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/6f0d79.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/6f0d79.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/6f0d79.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/6f0d79.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/6f0d79.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/6f0d79.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/6f0d79.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/6f0d79.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/702c53.wgsl b/test/builtins/gen/textureDimensions/702c53.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/702c53.wgsl rename to test/builtins/gen/textureDimensions/702c53.wgsl index 401f1eaf95..aa809aa910 100644 --- a/test/intrinsics/gen/textureDimensions/702c53.wgsl +++ b/test/builtins/gen/textureDimensions/702c53.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/702c53.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/702c53.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/702c53.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/702c53.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/702c53.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/702c53.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/702c53.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/702c53.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/702c53.wgsl.expected.msl b/test/builtins/gen/textureDimensions/702c53.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/702c53.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/702c53.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/702c53.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/702c53.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/702c53.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/702c53.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/702c53.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/702c53.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/702c53.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/702c53.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/72e5d6.wgsl b/test/builtins/gen/textureDimensions/72e5d6.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/72e5d6.wgsl rename to test/builtins/gen/textureDimensions/72e5d6.wgsl index 309d93fd47..35274438f6 100644 --- a/test/intrinsics/gen/textureDimensions/72e5d6.wgsl +++ b/test/builtins/gen/textureDimensions/72e5d6.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/72e5d6.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/72e5d6.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/72e5d6.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/72e5d6.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/72e5d6.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/72e5d6.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/72e5d6.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/72e5d6.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/72e5d6.wgsl.expected.msl b/test/builtins/gen/textureDimensions/72e5d6.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/72e5d6.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/72e5d6.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/72e5d6.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/72e5d6.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/72e5d6.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/72e5d6.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/72e5d6.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/72e5d6.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/72e5d6.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/72e5d6.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/79df87.wgsl b/test/builtins/gen/textureDimensions/79df87.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/79df87.wgsl rename to test/builtins/gen/textureDimensions/79df87.wgsl index 4319d63e9f..a4402f30ad 100644 --- a/test/intrinsics/gen/textureDimensions/79df87.wgsl +++ b/test/builtins/gen/textureDimensions/79df87.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/79df87.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/79df87.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/79df87.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/79df87.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/79df87.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/79df87.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/79df87.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/79df87.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/79df87.wgsl.expected.msl b/test/builtins/gen/textureDimensions/79df87.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/79df87.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/79df87.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/79df87.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/79df87.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/79df87.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/79df87.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/79df87.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/79df87.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/79df87.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/79df87.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/7bf826.wgsl b/test/builtins/gen/textureDimensions/7bf826.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/7bf826.wgsl rename to test/builtins/gen/textureDimensions/7bf826.wgsl index 5f5b47c712..ae9fb9ead2 100644 --- a/test/intrinsics/gen/textureDimensions/7bf826.wgsl +++ b/test/builtins/gen/textureDimensions/7bf826.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/7bf826.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/7bf826.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/7bf826.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/7bf826.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/7bf826.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/7bf826.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/7bf826.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/7bf826.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/7bf826.wgsl.expected.msl b/test/builtins/gen/textureDimensions/7bf826.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/7bf826.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/7bf826.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/7bf826.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/7bf826.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/7bf826.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/7bf826.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/7bf826.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/7bf826.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/7bf826.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/7bf826.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/7f5c2e.wgsl b/test/builtins/gen/textureDimensions/7f5c2e.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/7f5c2e.wgsl rename to test/builtins/gen/textureDimensions/7f5c2e.wgsl index f74769cbaa..b1434fbf10 100644 --- a/test/intrinsics/gen/textureDimensions/7f5c2e.wgsl +++ b/test/builtins/gen/textureDimensions/7f5c2e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/7f5c2e.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/7f5c2e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/7f5c2e.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/7f5c2e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/7f5c2e.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/7f5c2e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/7f5c2e.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/7f5c2e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/7f5c2e.wgsl.expected.msl b/test/builtins/gen/textureDimensions/7f5c2e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/7f5c2e.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/7f5c2e.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/7f5c2e.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/7f5c2e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/7f5c2e.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/7f5c2e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/7f5c2e.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/7f5c2e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/7f5c2e.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/7f5c2e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/8028f3.wgsl b/test/builtins/gen/textureDimensions/8028f3.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/8028f3.wgsl rename to test/builtins/gen/textureDimensions/8028f3.wgsl index ade160db90..c50ad78dd9 100644 --- a/test/intrinsics/gen/textureDimensions/8028f3.wgsl +++ b/test/builtins/gen/textureDimensions/8028f3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/8028f3.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/8028f3.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/8028f3.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/8028f3.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/8028f3.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/8028f3.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/8028f3.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/8028f3.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/8028f3.wgsl.expected.msl b/test/builtins/gen/textureDimensions/8028f3.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/8028f3.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/8028f3.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/8028f3.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/8028f3.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/8028f3.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/8028f3.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/8028f3.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/8028f3.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/8028f3.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/8028f3.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/811679.wgsl b/test/builtins/gen/textureDimensions/811679.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/811679.wgsl rename to test/builtins/gen/textureDimensions/811679.wgsl index 70b9a6ca80..efc5213f0b 100644 --- a/test/intrinsics/gen/textureDimensions/811679.wgsl +++ b/test/builtins/gen/textureDimensions/811679.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/811679.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/811679.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/811679.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/811679.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/811679.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/811679.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/811679.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/811679.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/811679.wgsl.expected.msl b/test/builtins/gen/textureDimensions/811679.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/811679.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/811679.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/811679.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/811679.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/811679.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/811679.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/811679.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/811679.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/811679.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/811679.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/820596.wgsl b/test/builtins/gen/textureDimensions/820596.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/820596.wgsl rename to test/builtins/gen/textureDimensions/820596.wgsl index f17caf070f..8a900d4f1f 100644 --- a/test/intrinsics/gen/textureDimensions/820596.wgsl +++ b/test/builtins/gen/textureDimensions/820596.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/820596.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/820596.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/820596.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/820596.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/820596.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/820596.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/820596.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/820596.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/820596.wgsl.expected.msl b/test/builtins/gen/textureDimensions/820596.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/820596.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/820596.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/820596.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/820596.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/820596.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/820596.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/820596.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/820596.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/820596.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/820596.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/83ee5a.wgsl b/test/builtins/gen/textureDimensions/83ee5a.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/83ee5a.wgsl rename to test/builtins/gen/textureDimensions/83ee5a.wgsl index ff1a2bbc3c..b2b2e7b7f4 100644 --- a/test/intrinsics/gen/textureDimensions/83ee5a.wgsl +++ b/test/builtins/gen/textureDimensions/83ee5a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/83ee5a.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/83ee5a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/83ee5a.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/83ee5a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/83ee5a.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/83ee5a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/83ee5a.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/83ee5a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/83ee5a.wgsl.expected.msl b/test/builtins/gen/textureDimensions/83ee5a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/83ee5a.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/83ee5a.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/83ee5a.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/83ee5a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/83ee5a.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/83ee5a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/83ee5a.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/83ee5a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/83ee5a.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/83ee5a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/85d556.wgsl b/test/builtins/gen/textureDimensions/85d556.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/85d556.wgsl rename to test/builtins/gen/textureDimensions/85d556.wgsl index 91d1ef85b1..4c98522094 100644 --- a/test/intrinsics/gen/textureDimensions/85d556.wgsl +++ b/test/builtins/gen/textureDimensions/85d556.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/85d556.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/85d556.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/85d556.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/85d556.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/85d556.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/85d556.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/85d556.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/85d556.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/85d556.wgsl.expected.msl b/test/builtins/gen/textureDimensions/85d556.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/85d556.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/85d556.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/85d556.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/85d556.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/85d556.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/85d556.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/85d556.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/85d556.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/85d556.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/85d556.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/88ad17.wgsl b/test/builtins/gen/textureDimensions/88ad17.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/88ad17.wgsl rename to test/builtins/gen/textureDimensions/88ad17.wgsl index 7d9e6a81af..c4354f9737 100644 --- a/test/intrinsics/gen/textureDimensions/88ad17.wgsl +++ b/test/builtins/gen/textureDimensions/88ad17.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/88ad17.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/88ad17.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/88ad17.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/88ad17.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/88ad17.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/88ad17.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/88ad17.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/88ad17.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/88ad17.wgsl.expected.msl b/test/builtins/gen/textureDimensions/88ad17.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/88ad17.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/88ad17.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/88ad17.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/88ad17.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/88ad17.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/88ad17.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/88ad17.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/88ad17.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/88ad17.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/88ad17.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/8aa4c4.wgsl b/test/builtins/gen/textureDimensions/8aa4c4.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/8aa4c4.wgsl rename to test/builtins/gen/textureDimensions/8aa4c4.wgsl index abe1be423f..08f144de2a 100644 --- a/test/intrinsics/gen/textureDimensions/8aa4c4.wgsl +++ b/test/builtins/gen/textureDimensions/8aa4c4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/8aa4c4.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/8aa4c4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/8aa4c4.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/8aa4c4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/8aa4c4.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/8aa4c4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/8aa4c4.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/8aa4c4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/8aa4c4.wgsl.expected.msl b/test/builtins/gen/textureDimensions/8aa4c4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/8aa4c4.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/8aa4c4.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/8aa4c4.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/8aa4c4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/8aa4c4.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/8aa4c4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/8aa4c4.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/8aa4c4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/8aa4c4.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/8aa4c4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/8deb5e.wgsl b/test/builtins/gen/textureDimensions/8deb5e.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/8deb5e.wgsl rename to test/builtins/gen/textureDimensions/8deb5e.wgsl index 1e056c53aa..580b23dc46 100644 --- a/test/intrinsics/gen/textureDimensions/8deb5e.wgsl +++ b/test/builtins/gen/textureDimensions/8deb5e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/8deb5e.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/8deb5e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/8deb5e.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/8deb5e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/8deb5e.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/8deb5e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/8deb5e.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/8deb5e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/8deb5e.wgsl.expected.msl b/test/builtins/gen/textureDimensions/8deb5e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/8deb5e.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/8deb5e.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/8deb5e.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/8deb5e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/8deb5e.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/8deb5e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/8deb5e.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/8deb5e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/8deb5e.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/8deb5e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/8f20bf.wgsl b/test/builtins/gen/textureDimensions/8f20bf.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/8f20bf.wgsl rename to test/builtins/gen/textureDimensions/8f20bf.wgsl index 11b2d272c4..f4b74a790c 100644 --- a/test/intrinsics/gen/textureDimensions/8f20bf.wgsl +++ b/test/builtins/gen/textureDimensions/8f20bf.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/8f20bf.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/8f20bf.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/8f20bf.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/8f20bf.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/8f20bf.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/8f20bf.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/8f20bf.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/8f20bf.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/8f20bf.wgsl.expected.msl b/test/builtins/gen/textureDimensions/8f20bf.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/8f20bf.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/8f20bf.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/8f20bf.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/8f20bf.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/8f20bf.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/8f20bf.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/8f20bf.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/8f20bf.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/8f20bf.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/8f20bf.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/8fca0f.wgsl b/test/builtins/gen/textureDimensions/8fca0f.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/8fca0f.wgsl rename to test/builtins/gen/textureDimensions/8fca0f.wgsl index e86c3933fb..f7eda1351c 100644 --- a/test/intrinsics/gen/textureDimensions/8fca0f.wgsl +++ b/test/builtins/gen/textureDimensions/8fca0f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/8fca0f.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/8fca0f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/8fca0f.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/8fca0f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/8fca0f.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/8fca0f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/8fca0f.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/8fca0f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/8fca0f.wgsl.expected.msl b/test/builtins/gen/textureDimensions/8fca0f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/8fca0f.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/8fca0f.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/8fca0f.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/8fca0f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/8fca0f.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/8fca0f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/8fca0f.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/8fca0f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/8fca0f.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/8fca0f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/90340b.wgsl b/test/builtins/gen/textureDimensions/90340b.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/90340b.wgsl rename to test/builtins/gen/textureDimensions/90340b.wgsl index 3528ecf1fa..fdc2d1f80a 100644 --- a/test/intrinsics/gen/textureDimensions/90340b.wgsl +++ b/test/builtins/gen/textureDimensions/90340b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/90340b.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/90340b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/90340b.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/90340b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/90340b.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/90340b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/90340b.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/90340b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/90340b.wgsl.expected.msl b/test/builtins/gen/textureDimensions/90340b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/90340b.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/90340b.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/90340b.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/90340b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/90340b.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/90340b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/90340b.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/90340b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/90340b.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/90340b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/9042ab.wgsl b/test/builtins/gen/textureDimensions/9042ab.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/9042ab.wgsl rename to test/builtins/gen/textureDimensions/9042ab.wgsl index 6a02da1009..44a55b9310 100644 --- a/test/intrinsics/gen/textureDimensions/9042ab.wgsl +++ b/test/builtins/gen/textureDimensions/9042ab.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/9042ab.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/9042ab.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9042ab.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/9042ab.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/9042ab.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/9042ab.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9042ab.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/9042ab.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/9042ab.wgsl.expected.msl b/test/builtins/gen/textureDimensions/9042ab.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9042ab.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/9042ab.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/9042ab.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/9042ab.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/9042ab.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/9042ab.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/9042ab.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/9042ab.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9042ab.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/9042ab.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/9393b0.wgsl b/test/builtins/gen/textureDimensions/9393b0.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/9393b0.wgsl rename to test/builtins/gen/textureDimensions/9393b0.wgsl index 0ce4834e88..f9d49013a0 100644 --- a/test/intrinsics/gen/textureDimensions/9393b0.wgsl +++ b/test/builtins/gen/textureDimensions/9393b0.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/9393b0.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/9393b0.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9393b0.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/9393b0.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/9393b0.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/9393b0.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9393b0.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/9393b0.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/9393b0.wgsl.expected.msl b/test/builtins/gen/textureDimensions/9393b0.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9393b0.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/9393b0.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/9393b0.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/9393b0.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/9393b0.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/9393b0.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/9393b0.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/9393b0.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9393b0.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/9393b0.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/939fdb.wgsl b/test/builtins/gen/textureDimensions/939fdb.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/939fdb.wgsl rename to test/builtins/gen/textureDimensions/939fdb.wgsl index d29eec0b43..bd19de422c 100644 --- a/test/intrinsics/gen/textureDimensions/939fdb.wgsl +++ b/test/builtins/gen/textureDimensions/939fdb.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/939fdb.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/939fdb.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/939fdb.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/939fdb.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/939fdb.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/939fdb.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/939fdb.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/939fdb.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/939fdb.wgsl.expected.msl b/test/builtins/gen/textureDimensions/939fdb.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/939fdb.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/939fdb.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/939fdb.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/939fdb.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/939fdb.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/939fdb.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/939fdb.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/939fdb.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/939fdb.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/939fdb.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/962dcd.wgsl b/test/builtins/gen/textureDimensions/962dcd.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/962dcd.wgsl rename to test/builtins/gen/textureDimensions/962dcd.wgsl index 8831eb6551..68269ee777 100644 --- a/test/intrinsics/gen/textureDimensions/962dcd.wgsl +++ b/test/builtins/gen/textureDimensions/962dcd.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/962dcd.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/962dcd.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/962dcd.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/962dcd.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/962dcd.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/962dcd.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/962dcd.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/962dcd.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/962dcd.wgsl.expected.msl b/test/builtins/gen/textureDimensions/962dcd.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/962dcd.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/962dcd.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/962dcd.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/962dcd.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/962dcd.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/962dcd.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/962dcd.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/962dcd.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/962dcd.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/962dcd.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/9abfe5.wgsl b/test/builtins/gen/textureDimensions/9abfe5.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/9abfe5.wgsl rename to test/builtins/gen/textureDimensions/9abfe5.wgsl index 463f89781e..9cb143c6de 100644 --- a/test/intrinsics/gen/textureDimensions/9abfe5.wgsl +++ b/test/builtins/gen/textureDimensions/9abfe5.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/9abfe5.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/9abfe5.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9abfe5.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/9abfe5.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/9abfe5.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/9abfe5.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9abfe5.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/9abfe5.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/9abfe5.wgsl.expected.msl b/test/builtins/gen/textureDimensions/9abfe5.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9abfe5.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/9abfe5.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/9abfe5.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/9abfe5.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/9abfe5.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/9abfe5.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/9abfe5.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/9abfe5.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9abfe5.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/9abfe5.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/9c9c57.wgsl b/test/builtins/gen/textureDimensions/9c9c57.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/9c9c57.wgsl rename to test/builtins/gen/textureDimensions/9c9c57.wgsl index 62bdec3f07..cd7870c0f1 100644 --- a/test/intrinsics/gen/textureDimensions/9c9c57.wgsl +++ b/test/builtins/gen/textureDimensions/9c9c57.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/9c9c57.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/9c9c57.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9c9c57.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/9c9c57.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/9c9c57.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/9c9c57.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9c9c57.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/9c9c57.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/9c9c57.wgsl.expected.msl b/test/builtins/gen/textureDimensions/9c9c57.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9c9c57.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/9c9c57.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/9c9c57.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/9c9c57.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/9c9c57.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/9c9c57.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/9c9c57.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/9c9c57.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9c9c57.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/9c9c57.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/9da9e2.wgsl b/test/builtins/gen/textureDimensions/9da9e2.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/9da9e2.wgsl rename to test/builtins/gen/textureDimensions/9da9e2.wgsl index 6c82fccd88..832f4064df 100644 --- a/test/intrinsics/gen/textureDimensions/9da9e2.wgsl +++ b/test/builtins/gen/textureDimensions/9da9e2.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/9da9e2.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/9da9e2.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9da9e2.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/9da9e2.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/9da9e2.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/9da9e2.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9da9e2.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/9da9e2.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/9da9e2.wgsl.expected.msl b/test/builtins/gen/textureDimensions/9da9e2.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9da9e2.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/9da9e2.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/9da9e2.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/9da9e2.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/9da9e2.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/9da9e2.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/9da9e2.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/9da9e2.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9da9e2.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/9da9e2.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/9eb8d8.wgsl b/test/builtins/gen/textureDimensions/9eb8d8.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/9eb8d8.wgsl rename to test/builtins/gen/textureDimensions/9eb8d8.wgsl index 09afe70352..20884ff10b 100644 --- a/test/intrinsics/gen/textureDimensions/9eb8d8.wgsl +++ b/test/builtins/gen/textureDimensions/9eb8d8.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/9eb8d8.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/9eb8d8.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9eb8d8.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/9eb8d8.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/9eb8d8.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/9eb8d8.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9eb8d8.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/9eb8d8.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/9eb8d8.wgsl.expected.msl b/test/builtins/gen/textureDimensions/9eb8d8.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9eb8d8.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/9eb8d8.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/9eb8d8.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/9eb8d8.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/9eb8d8.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/9eb8d8.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/9eb8d8.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/9eb8d8.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9eb8d8.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/9eb8d8.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/9f8e46.wgsl b/test/builtins/gen/textureDimensions/9f8e46.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/9f8e46.wgsl rename to test/builtins/gen/textureDimensions/9f8e46.wgsl index 1892e828b5..b6f4be2dbb 100644 --- a/test/intrinsics/gen/textureDimensions/9f8e46.wgsl +++ b/test/builtins/gen/textureDimensions/9f8e46.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/9f8e46.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/9f8e46.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9f8e46.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/9f8e46.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/9f8e46.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/9f8e46.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9f8e46.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/9f8e46.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/9f8e46.wgsl.expected.msl b/test/builtins/gen/textureDimensions/9f8e46.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9f8e46.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/9f8e46.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/9f8e46.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/9f8e46.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/9f8e46.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/9f8e46.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/9f8e46.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/9f8e46.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/9f8e46.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/9f8e46.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/a01845.wgsl b/test/builtins/gen/textureDimensions/a01845.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/a01845.wgsl rename to test/builtins/gen/textureDimensions/a01845.wgsl index 3b7b1933ec..86c1911c94 100644 --- a/test/intrinsics/gen/textureDimensions/a01845.wgsl +++ b/test/builtins/gen/textureDimensions/a01845.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/a01845.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/a01845.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/a01845.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/a01845.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/a01845.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/a01845.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/a01845.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/a01845.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/a01845.wgsl.expected.msl b/test/builtins/gen/textureDimensions/a01845.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/a01845.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/a01845.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/a01845.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/a01845.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/a01845.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/a01845.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/a01845.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/a01845.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/a01845.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/a01845.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/a7d565.wgsl b/test/builtins/gen/textureDimensions/a7d565.wgsl similarity index 89% rename from test/intrinsics/gen/textureDimensions/a7d565.wgsl rename to test/builtins/gen/textureDimensions/a7d565.wgsl index 88779cb226..457d50cc21 100644 --- a/test/intrinsics/gen/textureDimensions/a7d565.wgsl +++ b/test/builtins/gen/textureDimensions/a7d565.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/a7d565.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/a7d565.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/a7d565.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/a7d565.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/a7d565.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/a7d565.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/a7d565.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/a7d565.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/a7d565.wgsl.expected.msl b/test/builtins/gen/textureDimensions/a7d565.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/a7d565.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/a7d565.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/a7d565.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/a7d565.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/a7d565.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/a7d565.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/a7d565.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/a7d565.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/a7d565.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/a7d565.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/a863f2.wgsl b/test/builtins/gen/textureDimensions/a863f2.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/a863f2.wgsl rename to test/builtins/gen/textureDimensions/a863f2.wgsl index 61b668c79d..94c32bce48 100644 --- a/test/intrinsics/gen/textureDimensions/a863f2.wgsl +++ b/test/builtins/gen/textureDimensions/a863f2.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/a863f2.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/a863f2.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/a863f2.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/a863f2.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/a863f2.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/a863f2.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/a863f2.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/a863f2.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/a863f2.wgsl.expected.msl b/test/builtins/gen/textureDimensions/a863f2.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/a863f2.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/a863f2.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/a863f2.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/a863f2.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/a863f2.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/a863f2.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/a863f2.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/a863f2.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/a863f2.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/a863f2.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/a9c9c1.wgsl b/test/builtins/gen/textureDimensions/a9c9c1.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/a9c9c1.wgsl rename to test/builtins/gen/textureDimensions/a9c9c1.wgsl index e10dcd1f44..83639dcf56 100644 --- a/test/intrinsics/gen/textureDimensions/a9c9c1.wgsl +++ b/test/builtins/gen/textureDimensions/a9c9c1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/a9c9c1.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/a9c9c1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/a9c9c1.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/a9c9c1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/a9c9c1.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/a9c9c1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/a9c9c1.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/a9c9c1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/a9c9c1.wgsl.expected.msl b/test/builtins/gen/textureDimensions/a9c9c1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/a9c9c1.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/a9c9c1.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/a9c9c1.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/a9c9c1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/a9c9c1.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/a9c9c1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/a9c9c1.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/a9c9c1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/a9c9c1.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/a9c9c1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/b0e16d.wgsl b/test/builtins/gen/textureDimensions/b0e16d.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/b0e16d.wgsl rename to test/builtins/gen/textureDimensions/b0e16d.wgsl index a1cc174146..2f55df099a 100644 --- a/test/intrinsics/gen/textureDimensions/b0e16d.wgsl +++ b/test/builtins/gen/textureDimensions/b0e16d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/b0e16d.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/b0e16d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/b0e16d.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/b0e16d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/b0e16d.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/b0e16d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/b0e16d.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/b0e16d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/b0e16d.wgsl.expected.msl b/test/builtins/gen/textureDimensions/b0e16d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/b0e16d.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/b0e16d.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/b0e16d.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/b0e16d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/b0e16d.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/b0e16d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/b0e16d.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/b0e16d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/b0e16d.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/b0e16d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/b3c954.wgsl b/test/builtins/gen/textureDimensions/b3c954.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/b3c954.wgsl rename to test/builtins/gen/textureDimensions/b3c954.wgsl index bdd81735af..46c27862d4 100644 --- a/test/intrinsics/gen/textureDimensions/b3c954.wgsl +++ b/test/builtins/gen/textureDimensions/b3c954.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/b3c954.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/b3c954.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/b3c954.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/b3c954.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/b3c954.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/b3c954.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/b3c954.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/b3c954.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/b3c954.wgsl.expected.msl b/test/builtins/gen/textureDimensions/b3c954.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/b3c954.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/b3c954.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/b3c954.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/b3c954.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/b3c954.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/b3c954.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/b3c954.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/b3c954.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/b3c954.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/b3c954.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/b3e407.wgsl b/test/builtins/gen/textureDimensions/b3e407.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/b3e407.wgsl rename to test/builtins/gen/textureDimensions/b3e407.wgsl index 8c7d95cb55..f5e1391469 100644 --- a/test/intrinsics/gen/textureDimensions/b3e407.wgsl +++ b/test/builtins/gen/textureDimensions/b3e407.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/b3e407.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/b3e407.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/b3e407.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/b3e407.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/b3e407.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/b3e407.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/b3e407.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/b3e407.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/b3e407.wgsl.expected.msl b/test/builtins/gen/textureDimensions/b3e407.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/b3e407.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/b3e407.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/b3e407.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/b3e407.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/b3e407.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/b3e407.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/b3e407.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/b3e407.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/b3e407.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/b3e407.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/b91240.wgsl b/test/builtins/gen/textureDimensions/b91240.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/b91240.wgsl rename to test/builtins/gen/textureDimensions/b91240.wgsl index baf25910bd..e7aba5a9a9 100644 --- a/test/intrinsics/gen/textureDimensions/b91240.wgsl +++ b/test/builtins/gen/textureDimensions/b91240.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/b91240.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/b91240.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/b91240.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/b91240.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/b91240.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/b91240.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/b91240.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/b91240.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/b91240.wgsl.expected.msl b/test/builtins/gen/textureDimensions/b91240.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/b91240.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/b91240.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/b91240.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/b91240.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/b91240.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/b91240.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/b91240.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/b91240.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/b91240.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/b91240.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/ba1481.wgsl b/test/builtins/gen/textureDimensions/ba1481.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/ba1481.wgsl rename to test/builtins/gen/textureDimensions/ba1481.wgsl index c372ea12d7..b9f20b831a 100644 --- a/test/intrinsics/gen/textureDimensions/ba1481.wgsl +++ b/test/builtins/gen/textureDimensions/ba1481.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/ba1481.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/ba1481.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/ba1481.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/ba1481.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/ba1481.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/ba1481.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/ba1481.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/ba1481.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/ba1481.wgsl.expected.msl b/test/builtins/gen/textureDimensions/ba1481.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/ba1481.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/ba1481.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/ba1481.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/ba1481.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/ba1481.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/ba1481.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/ba1481.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/ba1481.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/ba1481.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/ba1481.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/bb3dde.wgsl b/test/builtins/gen/textureDimensions/bb3dde.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/bb3dde.wgsl rename to test/builtins/gen/textureDimensions/bb3dde.wgsl index 5519317f4e..dfab743c9a 100644 --- a/test/intrinsics/gen/textureDimensions/bb3dde.wgsl +++ b/test/builtins/gen/textureDimensions/bb3dde.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/bb3dde.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/bb3dde.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/bb3dde.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/bb3dde.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/bb3dde.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/bb3dde.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/bb3dde.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/bb3dde.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/bb3dde.wgsl.expected.msl b/test/builtins/gen/textureDimensions/bb3dde.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/bb3dde.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/bb3dde.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/bb3dde.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/bb3dde.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/bb3dde.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/bb3dde.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/bb3dde.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/bb3dde.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/bb3dde.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/bb3dde.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/c30e75.wgsl b/test/builtins/gen/textureDimensions/c30e75.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/c30e75.wgsl rename to test/builtins/gen/textureDimensions/c30e75.wgsl index 275a7ca3d4..b8a1e10364 100644 --- a/test/intrinsics/gen/textureDimensions/c30e75.wgsl +++ b/test/builtins/gen/textureDimensions/c30e75.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/c30e75.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/c30e75.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/c30e75.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/c30e75.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/c30e75.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/c30e75.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/c30e75.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/c30e75.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/c30e75.wgsl.expected.msl b/test/builtins/gen/textureDimensions/c30e75.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/c30e75.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/c30e75.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/c30e75.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/c30e75.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/c30e75.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/c30e75.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/c30e75.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/c30e75.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/c30e75.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/c30e75.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/c7943d.wgsl b/test/builtins/gen/textureDimensions/c7943d.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/c7943d.wgsl rename to test/builtins/gen/textureDimensions/c7943d.wgsl index 98ad655a18..6da3f5a962 100644 --- a/test/intrinsics/gen/textureDimensions/c7943d.wgsl +++ b/test/builtins/gen/textureDimensions/c7943d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/c7943d.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/c7943d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/c7943d.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/c7943d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/c7943d.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/c7943d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/c7943d.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/c7943d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/c7943d.wgsl.expected.msl b/test/builtins/gen/textureDimensions/c7943d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/c7943d.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/c7943d.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/c7943d.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/c7943d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/c7943d.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/c7943d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/c7943d.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/c7943d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/c7943d.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/c7943d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/cc968c.wgsl b/test/builtins/gen/textureDimensions/cc968c.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/cc968c.wgsl rename to test/builtins/gen/textureDimensions/cc968c.wgsl index 2c32bb9896..f001aa6d83 100644 --- a/test/intrinsics/gen/textureDimensions/cc968c.wgsl +++ b/test/builtins/gen/textureDimensions/cc968c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/cc968c.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/cc968c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cc968c.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/cc968c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/cc968c.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/cc968c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cc968c.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/cc968c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/cc968c.wgsl.expected.msl b/test/builtins/gen/textureDimensions/cc968c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cc968c.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/cc968c.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/cc968c.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/cc968c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/cc968c.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/cc968c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/cc968c.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/cc968c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cc968c.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/cc968c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/cccc8f.wgsl b/test/builtins/gen/textureDimensions/cccc8f.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/cccc8f.wgsl rename to test/builtins/gen/textureDimensions/cccc8f.wgsl index 71072cca40..d990bc6da7 100644 --- a/test/intrinsics/gen/textureDimensions/cccc8f.wgsl +++ b/test/builtins/gen/textureDimensions/cccc8f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/cccc8f.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/cccc8f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cccc8f.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/cccc8f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/cccc8f.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/cccc8f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cccc8f.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/cccc8f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/cccc8f.wgsl.expected.msl b/test/builtins/gen/textureDimensions/cccc8f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cccc8f.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/cccc8f.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/cccc8f.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/cccc8f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/cccc8f.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/cccc8f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/cccc8f.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/cccc8f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cccc8f.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/cccc8f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/cd76a7.wgsl b/test/builtins/gen/textureDimensions/cd76a7.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/cd76a7.wgsl rename to test/builtins/gen/textureDimensions/cd76a7.wgsl index 79da9f10e1..bcf3f8f0af 100644 --- a/test/intrinsics/gen/textureDimensions/cd76a7.wgsl +++ b/test/builtins/gen/textureDimensions/cd76a7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/cd76a7.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/cd76a7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cd76a7.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/cd76a7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/cd76a7.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/cd76a7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cd76a7.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/cd76a7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/cd76a7.wgsl.expected.msl b/test/builtins/gen/textureDimensions/cd76a7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cd76a7.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/cd76a7.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/cd76a7.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/cd76a7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/cd76a7.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/cd76a7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/cd76a7.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/cd76a7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cd76a7.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/cd76a7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/cdf473.wgsl b/test/builtins/gen/textureDimensions/cdf473.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/cdf473.wgsl rename to test/builtins/gen/textureDimensions/cdf473.wgsl index 25ceca33a0..04b17c9935 100644 --- a/test/intrinsics/gen/textureDimensions/cdf473.wgsl +++ b/test/builtins/gen/textureDimensions/cdf473.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/cdf473.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/cdf473.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cdf473.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/cdf473.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/cdf473.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/cdf473.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cdf473.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/cdf473.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/cdf473.wgsl.expected.msl b/test/builtins/gen/textureDimensions/cdf473.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cdf473.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/cdf473.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/cdf473.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/cdf473.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/cdf473.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/cdf473.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/cdf473.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/cdf473.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cdf473.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/cdf473.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/cec841.wgsl b/test/builtins/gen/textureDimensions/cec841.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/cec841.wgsl rename to test/builtins/gen/textureDimensions/cec841.wgsl index 0710769138..21c773a0ad 100644 --- a/test/intrinsics/gen/textureDimensions/cec841.wgsl +++ b/test/builtins/gen/textureDimensions/cec841.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/cec841.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/cec841.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cec841.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/cec841.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/cec841.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/cec841.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cec841.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/cec841.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/cec841.wgsl.expected.msl b/test/builtins/gen/textureDimensions/cec841.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cec841.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/cec841.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/cec841.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/cec841.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/cec841.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/cec841.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/cec841.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/cec841.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cec841.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/cec841.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/cf7e43.wgsl b/test/builtins/gen/textureDimensions/cf7e43.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/cf7e43.wgsl rename to test/builtins/gen/textureDimensions/cf7e43.wgsl index 2768ccea77..76495cd429 100644 --- a/test/intrinsics/gen/textureDimensions/cf7e43.wgsl +++ b/test/builtins/gen/textureDimensions/cf7e43.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/cf7e43.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/cf7e43.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cf7e43.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/cf7e43.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/cf7e43.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/cf7e43.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cf7e43.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/cf7e43.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/cf7e43.wgsl.expected.msl b/test/builtins/gen/textureDimensions/cf7e43.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cf7e43.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/cf7e43.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/cf7e43.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/cf7e43.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/cf7e43.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/cf7e43.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/cf7e43.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/cf7e43.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/cf7e43.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/cf7e43.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/d125bc.wgsl b/test/builtins/gen/textureDimensions/d125bc.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/d125bc.wgsl rename to test/builtins/gen/textureDimensions/d125bc.wgsl index e380cb25fc..0e3d559c8d 100644 --- a/test/intrinsics/gen/textureDimensions/d125bc.wgsl +++ b/test/builtins/gen/textureDimensions/d125bc.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/d125bc.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/d125bc.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/d125bc.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/d125bc.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/d125bc.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/d125bc.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/d125bc.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/d125bc.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/d125bc.wgsl.expected.msl b/test/builtins/gen/textureDimensions/d125bc.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/d125bc.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/d125bc.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/d125bc.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/d125bc.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/d125bc.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/d125bc.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/d125bc.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/d125bc.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/d125bc.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/d125bc.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/d83c45.wgsl b/test/builtins/gen/textureDimensions/d83c45.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/d83c45.wgsl rename to test/builtins/gen/textureDimensions/d83c45.wgsl index feec4d5b2a..6e9f8833cb 100644 --- a/test/intrinsics/gen/textureDimensions/d83c45.wgsl +++ b/test/builtins/gen/textureDimensions/d83c45.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/d83c45.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/d83c45.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/d83c45.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/d83c45.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/d83c45.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/d83c45.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/d83c45.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/d83c45.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/d83c45.wgsl.expected.msl b/test/builtins/gen/textureDimensions/d83c45.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/d83c45.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/d83c45.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/d83c45.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/d83c45.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/d83c45.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/d83c45.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/d83c45.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/d83c45.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/d83c45.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/d83c45.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/daf7c0.wgsl b/test/builtins/gen/textureDimensions/daf7c0.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/daf7c0.wgsl rename to test/builtins/gen/textureDimensions/daf7c0.wgsl index 5fe4ee1768..1615d62c3f 100644 --- a/test/intrinsics/gen/textureDimensions/daf7c0.wgsl +++ b/test/builtins/gen/textureDimensions/daf7c0.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/daf7c0.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/daf7c0.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/daf7c0.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/daf7c0.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/daf7c0.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/daf7c0.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/daf7c0.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/daf7c0.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/daf7c0.wgsl.expected.msl b/test/builtins/gen/textureDimensions/daf7c0.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/daf7c0.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/daf7c0.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/daf7c0.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/daf7c0.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/daf7c0.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/daf7c0.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/daf7c0.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/daf7c0.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/daf7c0.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/daf7c0.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/dc2dd0.wgsl b/test/builtins/gen/textureDimensions/dc2dd0.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/dc2dd0.wgsl rename to test/builtins/gen/textureDimensions/dc2dd0.wgsl index d9da1be565..4836b46254 100644 --- a/test/intrinsics/gen/textureDimensions/dc2dd0.wgsl +++ b/test/builtins/gen/textureDimensions/dc2dd0.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/dc2dd0.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/dc2dd0.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/dc2dd0.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/dc2dd0.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/dc2dd0.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/dc2dd0.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/dc2dd0.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/dc2dd0.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/dc2dd0.wgsl.expected.msl b/test/builtins/gen/textureDimensions/dc2dd0.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/dc2dd0.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/dc2dd0.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/dc2dd0.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/dc2dd0.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/dc2dd0.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/dc2dd0.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/dc2dd0.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/dc2dd0.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/dc2dd0.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/dc2dd0.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/e927be.wgsl b/test/builtins/gen/textureDimensions/e927be.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/e927be.wgsl rename to test/builtins/gen/textureDimensions/e927be.wgsl index 38da82e243..a4ebee5c2a 100644 --- a/test/intrinsics/gen/textureDimensions/e927be.wgsl +++ b/test/builtins/gen/textureDimensions/e927be.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/e927be.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/e927be.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/e927be.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/e927be.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/e927be.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/e927be.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/e927be.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/e927be.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/e927be.wgsl.expected.msl b/test/builtins/gen/textureDimensions/e927be.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/e927be.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/e927be.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/e927be.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/e927be.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/e927be.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/e927be.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/e927be.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/e927be.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/e927be.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/e927be.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/e9e96c.wgsl b/test/builtins/gen/textureDimensions/e9e96c.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/e9e96c.wgsl rename to test/builtins/gen/textureDimensions/e9e96c.wgsl index e2ae8ec98c..49c2b15ccd 100644 --- a/test/intrinsics/gen/textureDimensions/e9e96c.wgsl +++ b/test/builtins/gen/textureDimensions/e9e96c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/e9e96c.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/e9e96c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/e9e96c.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/e9e96c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/e9e96c.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/e9e96c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/e9e96c.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/e9e96c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/e9e96c.wgsl.expected.msl b/test/builtins/gen/textureDimensions/e9e96c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/e9e96c.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/e9e96c.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/e9e96c.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/e9e96c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/e9e96c.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/e9e96c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/e9e96c.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/e9e96c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/e9e96c.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/e9e96c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/ef5b89.wgsl b/test/builtins/gen/textureDimensions/ef5b89.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/ef5b89.wgsl rename to test/builtins/gen/textureDimensions/ef5b89.wgsl index 80750e30ed..58838e2701 100644 --- a/test/intrinsics/gen/textureDimensions/ef5b89.wgsl +++ b/test/builtins/gen/textureDimensions/ef5b89.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/ef5b89.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/ef5b89.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/ef5b89.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/ef5b89.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/ef5b89.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/ef5b89.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/ef5b89.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/ef5b89.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/ef5b89.wgsl.expected.msl b/test/builtins/gen/textureDimensions/ef5b89.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/ef5b89.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/ef5b89.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/ef5b89.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/ef5b89.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/ef5b89.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/ef5b89.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/ef5b89.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/ef5b89.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/ef5b89.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/ef5b89.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/efc8a4.wgsl b/test/builtins/gen/textureDimensions/efc8a4.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/efc8a4.wgsl rename to test/builtins/gen/textureDimensions/efc8a4.wgsl index b7dc738a7c..843c6476d7 100644 --- a/test/intrinsics/gen/textureDimensions/efc8a4.wgsl +++ b/test/builtins/gen/textureDimensions/efc8a4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/efc8a4.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/efc8a4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/efc8a4.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/efc8a4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/efc8a4.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/efc8a4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/efc8a4.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/efc8a4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/efc8a4.wgsl.expected.msl b/test/builtins/gen/textureDimensions/efc8a4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/efc8a4.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/efc8a4.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/efc8a4.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/efc8a4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/efc8a4.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/efc8a4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/efc8a4.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/efc8a4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/efc8a4.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/efc8a4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/f60bdb.wgsl b/test/builtins/gen/textureDimensions/f60bdb.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/f60bdb.wgsl rename to test/builtins/gen/textureDimensions/f60bdb.wgsl index 13edf77e7b..ad2bb472f3 100644 --- a/test/intrinsics/gen/textureDimensions/f60bdb.wgsl +++ b/test/builtins/gen/textureDimensions/f60bdb.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/f60bdb.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/f60bdb.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/f60bdb.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/f60bdb.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/f60bdb.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/f60bdb.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/f60bdb.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/f60bdb.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/f60bdb.wgsl.expected.msl b/test/builtins/gen/textureDimensions/f60bdb.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/f60bdb.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/f60bdb.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/f60bdb.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/f60bdb.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/f60bdb.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/f60bdb.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/f60bdb.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/f60bdb.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/f60bdb.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/f60bdb.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/f7145b.wgsl b/test/builtins/gen/textureDimensions/f7145b.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/f7145b.wgsl rename to test/builtins/gen/textureDimensions/f7145b.wgsl index f8da7e1078..02b68c10c8 100644 --- a/test/intrinsics/gen/textureDimensions/f7145b.wgsl +++ b/test/builtins/gen/textureDimensions/f7145b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/f7145b.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/f7145b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/f7145b.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/f7145b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/f7145b.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/f7145b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/f7145b.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/f7145b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/f7145b.wgsl.expected.msl b/test/builtins/gen/textureDimensions/f7145b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/f7145b.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/f7145b.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/f7145b.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/f7145b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/f7145b.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/f7145b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/f7145b.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/f7145b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/f7145b.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/f7145b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/f931c7.wgsl b/test/builtins/gen/textureDimensions/f931c7.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/f931c7.wgsl rename to test/builtins/gen/textureDimensions/f931c7.wgsl index aa29d977b6..0270f12866 100644 --- a/test/intrinsics/gen/textureDimensions/f931c7.wgsl +++ b/test/builtins/gen/textureDimensions/f931c7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/f931c7.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/f931c7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/f931c7.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/f931c7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/f931c7.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/f931c7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/f931c7.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/f931c7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/f931c7.wgsl.expected.msl b/test/builtins/gen/textureDimensions/f931c7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/f931c7.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/f931c7.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/f931c7.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/f931c7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/f931c7.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/f931c7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/f931c7.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/f931c7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/f931c7.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/f931c7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/fa9859.wgsl b/test/builtins/gen/textureDimensions/fa9859.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/fa9859.wgsl rename to test/builtins/gen/textureDimensions/fa9859.wgsl index b6a1a04524..0035510153 100644 --- a/test/intrinsics/gen/textureDimensions/fa9859.wgsl +++ b/test/builtins/gen/textureDimensions/fa9859.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/fa9859.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/fa9859.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/fa9859.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/fa9859.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/fa9859.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/fa9859.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/fa9859.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/fa9859.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/fa9859.wgsl.expected.msl b/test/builtins/gen/textureDimensions/fa9859.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/fa9859.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/fa9859.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/fa9859.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/fa9859.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/fa9859.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/fa9859.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/fa9859.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/fa9859.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/fa9859.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/fa9859.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/fb5670.wgsl b/test/builtins/gen/textureDimensions/fb5670.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/fb5670.wgsl rename to test/builtins/gen/textureDimensions/fb5670.wgsl index 51515974dc..1ac472351b 100644 --- a/test/intrinsics/gen/textureDimensions/fb5670.wgsl +++ b/test/builtins/gen/textureDimensions/fb5670.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/fb5670.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/fb5670.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/fb5670.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/fb5670.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/fb5670.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/fb5670.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/fb5670.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/fb5670.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/fb5670.wgsl.expected.msl b/test/builtins/gen/textureDimensions/fb5670.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/fb5670.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/fb5670.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/fb5670.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/fb5670.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/fb5670.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/fb5670.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/fb5670.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/fb5670.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/fb5670.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/fb5670.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureDimensions/fcac78.wgsl b/test/builtins/gen/textureDimensions/fcac78.wgsl similarity index 90% rename from test/intrinsics/gen/textureDimensions/fcac78.wgsl rename to test/builtins/gen/textureDimensions/fcac78.wgsl index 6a3c215c7b..3b2121e98e 100644 --- a/test/intrinsics/gen/textureDimensions/fcac78.wgsl +++ b/test/builtins/gen/textureDimensions/fcac78.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureDimensions/fcac78.wgsl.expected.glsl b/test/builtins/gen/textureDimensions/fcac78.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/fcac78.wgsl.expected.glsl rename to test/builtins/gen/textureDimensions/fcac78.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureDimensions/fcac78.wgsl.expected.hlsl b/test/builtins/gen/textureDimensions/fcac78.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/fcac78.wgsl.expected.hlsl rename to test/builtins/gen/textureDimensions/fcac78.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureDimensions/fcac78.wgsl.expected.msl b/test/builtins/gen/textureDimensions/fcac78.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureDimensions/fcac78.wgsl.expected.msl rename to test/builtins/gen/textureDimensions/fcac78.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureDimensions/fcac78.wgsl.expected.spvasm b/test/builtins/gen/textureDimensions/fcac78.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureDimensions/fcac78.wgsl.expected.spvasm rename to test/builtins/gen/textureDimensions/fcac78.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureDimensions/fcac78.wgsl.expected.wgsl b/test/builtins/gen/textureDimensions/fcac78.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureDimensions/fcac78.wgsl.expected.wgsl rename to test/builtins/gen/textureDimensions/fcac78.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/01305f.wgsl b/test/builtins/gen/textureGather/01305f.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/01305f.wgsl rename to test/builtins/gen/textureGather/01305f.wgsl index 55af300885..8c521bf72b 100644 --- a/test/intrinsics/gen/textureGather/01305f.wgsl +++ b/test/builtins/gen/textureGather/01305f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/01305f.wgsl.expected.glsl b/test/builtins/gen/textureGather/01305f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/01305f.wgsl.expected.glsl rename to test/builtins/gen/textureGather/01305f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/01305f.wgsl.expected.hlsl b/test/builtins/gen/textureGather/01305f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/01305f.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/01305f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/01305f.wgsl.expected.msl b/test/builtins/gen/textureGather/01305f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/01305f.wgsl.expected.msl rename to test/builtins/gen/textureGather/01305f.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/01305f.wgsl.expected.spvasm b/test/builtins/gen/textureGather/01305f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/01305f.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/01305f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/01305f.wgsl.expected.wgsl b/test/builtins/gen/textureGather/01305f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/01305f.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/01305f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/06030a.wgsl b/test/builtins/gen/textureGather/06030a.wgsl similarity index 91% rename from test/intrinsics/gen/textureGather/06030a.wgsl rename to test/builtins/gen/textureGather/06030a.wgsl index 3ae410647c..c3cfc07185 100644 --- a/test/intrinsics/gen/textureGather/06030a.wgsl +++ b/test/builtins/gen/textureGather/06030a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/06030a.wgsl.expected.glsl b/test/builtins/gen/textureGather/06030a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/06030a.wgsl.expected.glsl rename to test/builtins/gen/textureGather/06030a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/06030a.wgsl.expected.hlsl b/test/builtins/gen/textureGather/06030a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/06030a.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/06030a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/06030a.wgsl.expected.msl b/test/builtins/gen/textureGather/06030a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/06030a.wgsl.expected.msl rename to test/builtins/gen/textureGather/06030a.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/06030a.wgsl.expected.spvasm b/test/builtins/gen/textureGather/06030a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/06030a.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/06030a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/06030a.wgsl.expected.wgsl b/test/builtins/gen/textureGather/06030a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/06030a.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/06030a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/10c554.wgsl b/test/builtins/gen/textureGather/10c554.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/10c554.wgsl rename to test/builtins/gen/textureGather/10c554.wgsl index 7abaa7f5fa..e240c55102 100644 --- a/test/intrinsics/gen/textureGather/10c554.wgsl +++ b/test/builtins/gen/textureGather/10c554.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/10c554.wgsl.expected.glsl b/test/builtins/gen/textureGather/10c554.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/10c554.wgsl.expected.glsl rename to test/builtins/gen/textureGather/10c554.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/10c554.wgsl.expected.hlsl b/test/builtins/gen/textureGather/10c554.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/10c554.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/10c554.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/10c554.wgsl.expected.msl b/test/builtins/gen/textureGather/10c554.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/10c554.wgsl.expected.msl rename to test/builtins/gen/textureGather/10c554.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/10c554.wgsl.expected.spvasm b/test/builtins/gen/textureGather/10c554.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/10c554.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/10c554.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/10c554.wgsl.expected.wgsl b/test/builtins/gen/textureGather/10c554.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/10c554.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/10c554.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/15d79c.wgsl b/test/builtins/gen/textureGather/15d79c.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/15d79c.wgsl rename to test/builtins/gen/textureGather/15d79c.wgsl index 47bc2dad95..830c832286 100644 --- a/test/intrinsics/gen/textureGather/15d79c.wgsl +++ b/test/builtins/gen/textureGather/15d79c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/15d79c.wgsl.expected.glsl b/test/builtins/gen/textureGather/15d79c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/15d79c.wgsl.expected.glsl rename to test/builtins/gen/textureGather/15d79c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/15d79c.wgsl.expected.hlsl b/test/builtins/gen/textureGather/15d79c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/15d79c.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/15d79c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/15d79c.wgsl.expected.msl b/test/builtins/gen/textureGather/15d79c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/15d79c.wgsl.expected.msl rename to test/builtins/gen/textureGather/15d79c.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/15d79c.wgsl.expected.spvasm b/test/builtins/gen/textureGather/15d79c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/15d79c.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/15d79c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/15d79c.wgsl.expected.wgsl b/test/builtins/gen/textureGather/15d79c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/15d79c.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/15d79c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/2e0ed5.wgsl b/test/builtins/gen/textureGather/2e0ed5.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/2e0ed5.wgsl rename to test/builtins/gen/textureGather/2e0ed5.wgsl index ff561c9adc..39b32d1305 100644 --- a/test/intrinsics/gen/textureGather/2e0ed5.wgsl +++ b/test/builtins/gen/textureGather/2e0ed5.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/2e0ed5.wgsl.expected.glsl b/test/builtins/gen/textureGather/2e0ed5.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/2e0ed5.wgsl.expected.glsl rename to test/builtins/gen/textureGather/2e0ed5.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/2e0ed5.wgsl.expected.hlsl b/test/builtins/gen/textureGather/2e0ed5.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/2e0ed5.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/2e0ed5.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/2e0ed5.wgsl.expected.msl b/test/builtins/gen/textureGather/2e0ed5.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/2e0ed5.wgsl.expected.msl rename to test/builtins/gen/textureGather/2e0ed5.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/2e0ed5.wgsl.expected.spvasm b/test/builtins/gen/textureGather/2e0ed5.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/2e0ed5.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/2e0ed5.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/2e0ed5.wgsl.expected.wgsl b/test/builtins/gen/textureGather/2e0ed5.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/2e0ed5.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/2e0ed5.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/3112e8.wgsl b/test/builtins/gen/textureGather/3112e8.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/3112e8.wgsl rename to test/builtins/gen/textureGather/3112e8.wgsl index a08ae70d6b..90210b615f 100644 --- a/test/intrinsics/gen/textureGather/3112e8.wgsl +++ b/test/builtins/gen/textureGather/3112e8.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/3112e8.wgsl.expected.glsl b/test/builtins/gen/textureGather/3112e8.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/3112e8.wgsl.expected.glsl rename to test/builtins/gen/textureGather/3112e8.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/3112e8.wgsl.expected.hlsl b/test/builtins/gen/textureGather/3112e8.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/3112e8.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/3112e8.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/3112e8.wgsl.expected.msl b/test/builtins/gen/textureGather/3112e8.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/3112e8.wgsl.expected.msl rename to test/builtins/gen/textureGather/3112e8.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/3112e8.wgsl.expected.spvasm b/test/builtins/gen/textureGather/3112e8.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/3112e8.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/3112e8.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/3112e8.wgsl.expected.wgsl b/test/builtins/gen/textureGather/3112e8.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/3112e8.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/3112e8.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/3c527e.wgsl b/test/builtins/gen/textureGather/3c527e.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/3c527e.wgsl rename to test/builtins/gen/textureGather/3c527e.wgsl index f6f8f6765c..9a90afeae9 100644 --- a/test/intrinsics/gen/textureGather/3c527e.wgsl +++ b/test/builtins/gen/textureGather/3c527e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/3c527e.wgsl.expected.glsl b/test/builtins/gen/textureGather/3c527e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/3c527e.wgsl.expected.glsl rename to test/builtins/gen/textureGather/3c527e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/3c527e.wgsl.expected.hlsl b/test/builtins/gen/textureGather/3c527e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/3c527e.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/3c527e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/3c527e.wgsl.expected.msl b/test/builtins/gen/textureGather/3c527e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/3c527e.wgsl.expected.msl rename to test/builtins/gen/textureGather/3c527e.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/3c527e.wgsl.expected.spvasm b/test/builtins/gen/textureGather/3c527e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/3c527e.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/3c527e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/3c527e.wgsl.expected.wgsl b/test/builtins/gen/textureGather/3c527e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/3c527e.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/3c527e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/43025d.wgsl b/test/builtins/gen/textureGather/43025d.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/43025d.wgsl rename to test/builtins/gen/textureGather/43025d.wgsl index 2cf28ef7e5..c96d1c4fc6 100644 --- a/test/intrinsics/gen/textureGather/43025d.wgsl +++ b/test/builtins/gen/textureGather/43025d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/43025d.wgsl.expected.glsl b/test/builtins/gen/textureGather/43025d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/43025d.wgsl.expected.glsl rename to test/builtins/gen/textureGather/43025d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/43025d.wgsl.expected.hlsl b/test/builtins/gen/textureGather/43025d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/43025d.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/43025d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/43025d.wgsl.expected.msl b/test/builtins/gen/textureGather/43025d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/43025d.wgsl.expected.msl rename to test/builtins/gen/textureGather/43025d.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/43025d.wgsl.expected.spvasm b/test/builtins/gen/textureGather/43025d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/43025d.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/43025d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/43025d.wgsl.expected.wgsl b/test/builtins/gen/textureGather/43025d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/43025d.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/43025d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/4f2350.wgsl b/test/builtins/gen/textureGather/4f2350.wgsl similarity index 91% rename from test/intrinsics/gen/textureGather/4f2350.wgsl rename to test/builtins/gen/textureGather/4f2350.wgsl index 69459680a2..29250e9147 100644 --- a/test/intrinsics/gen/textureGather/4f2350.wgsl +++ b/test/builtins/gen/textureGather/4f2350.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/4f2350.wgsl.expected.glsl b/test/builtins/gen/textureGather/4f2350.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/4f2350.wgsl.expected.glsl rename to test/builtins/gen/textureGather/4f2350.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/4f2350.wgsl.expected.hlsl b/test/builtins/gen/textureGather/4f2350.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/4f2350.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/4f2350.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/4f2350.wgsl.expected.msl b/test/builtins/gen/textureGather/4f2350.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/4f2350.wgsl.expected.msl rename to test/builtins/gen/textureGather/4f2350.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/4f2350.wgsl.expected.spvasm b/test/builtins/gen/textureGather/4f2350.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/4f2350.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/4f2350.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/4f2350.wgsl.expected.wgsl b/test/builtins/gen/textureGather/4f2350.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/4f2350.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/4f2350.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/51cf0b.wgsl b/test/builtins/gen/textureGather/51cf0b.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/51cf0b.wgsl rename to test/builtins/gen/textureGather/51cf0b.wgsl index 6e503ce049..f27f6b59d0 100644 --- a/test/intrinsics/gen/textureGather/51cf0b.wgsl +++ b/test/builtins/gen/textureGather/51cf0b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/51cf0b.wgsl.expected.glsl b/test/builtins/gen/textureGather/51cf0b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/51cf0b.wgsl.expected.glsl rename to test/builtins/gen/textureGather/51cf0b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/51cf0b.wgsl.expected.hlsl b/test/builtins/gen/textureGather/51cf0b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/51cf0b.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/51cf0b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/51cf0b.wgsl.expected.msl b/test/builtins/gen/textureGather/51cf0b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/51cf0b.wgsl.expected.msl rename to test/builtins/gen/textureGather/51cf0b.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/51cf0b.wgsl.expected.spvasm b/test/builtins/gen/textureGather/51cf0b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/51cf0b.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/51cf0b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/51cf0b.wgsl.expected.wgsl b/test/builtins/gen/textureGather/51cf0b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/51cf0b.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/51cf0b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/53ece6.wgsl b/test/builtins/gen/textureGather/53ece6.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/53ece6.wgsl rename to test/builtins/gen/textureGather/53ece6.wgsl index 045f2ba30b..2f4e0b4977 100644 --- a/test/intrinsics/gen/textureGather/53ece6.wgsl +++ b/test/builtins/gen/textureGather/53ece6.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/53ece6.wgsl.expected.glsl b/test/builtins/gen/textureGather/53ece6.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/53ece6.wgsl.expected.glsl rename to test/builtins/gen/textureGather/53ece6.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/53ece6.wgsl.expected.hlsl b/test/builtins/gen/textureGather/53ece6.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/53ece6.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/53ece6.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/53ece6.wgsl.expected.msl b/test/builtins/gen/textureGather/53ece6.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/53ece6.wgsl.expected.msl rename to test/builtins/gen/textureGather/53ece6.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/53ece6.wgsl.expected.spvasm b/test/builtins/gen/textureGather/53ece6.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/53ece6.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/53ece6.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/53ece6.wgsl.expected.wgsl b/test/builtins/gen/textureGather/53ece6.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/53ece6.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/53ece6.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/57bfc6.wgsl b/test/builtins/gen/textureGather/57bfc6.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/57bfc6.wgsl rename to test/builtins/gen/textureGather/57bfc6.wgsl index daf1cc0371..0fc0b73c9d 100644 --- a/test/intrinsics/gen/textureGather/57bfc6.wgsl +++ b/test/builtins/gen/textureGather/57bfc6.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/57bfc6.wgsl.expected.glsl b/test/builtins/gen/textureGather/57bfc6.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/57bfc6.wgsl.expected.glsl rename to test/builtins/gen/textureGather/57bfc6.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/57bfc6.wgsl.expected.hlsl b/test/builtins/gen/textureGather/57bfc6.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/57bfc6.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/57bfc6.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/57bfc6.wgsl.expected.msl b/test/builtins/gen/textureGather/57bfc6.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/57bfc6.wgsl.expected.msl rename to test/builtins/gen/textureGather/57bfc6.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/57bfc6.wgsl.expected.spvasm b/test/builtins/gen/textureGather/57bfc6.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/57bfc6.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/57bfc6.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/57bfc6.wgsl.expected.wgsl b/test/builtins/gen/textureGather/57bfc6.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/57bfc6.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/57bfc6.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/587ba3.wgsl b/test/builtins/gen/textureGather/587ba3.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/587ba3.wgsl rename to test/builtins/gen/textureGather/587ba3.wgsl index 5bc617cfe0..3f1e1e713d 100644 --- a/test/intrinsics/gen/textureGather/587ba3.wgsl +++ b/test/builtins/gen/textureGather/587ba3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/587ba3.wgsl.expected.glsl b/test/builtins/gen/textureGather/587ba3.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/587ba3.wgsl.expected.glsl rename to test/builtins/gen/textureGather/587ba3.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/587ba3.wgsl.expected.hlsl b/test/builtins/gen/textureGather/587ba3.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/587ba3.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/587ba3.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/587ba3.wgsl.expected.msl b/test/builtins/gen/textureGather/587ba3.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/587ba3.wgsl.expected.msl rename to test/builtins/gen/textureGather/587ba3.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/587ba3.wgsl.expected.spvasm b/test/builtins/gen/textureGather/587ba3.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/587ba3.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/587ba3.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/587ba3.wgsl.expected.wgsl b/test/builtins/gen/textureGather/587ba3.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/587ba3.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/587ba3.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/69e0fb.wgsl b/test/builtins/gen/textureGather/69e0fb.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/69e0fb.wgsl rename to test/builtins/gen/textureGather/69e0fb.wgsl index 3d4a9fae3f..8d09197df2 100644 --- a/test/intrinsics/gen/textureGather/69e0fb.wgsl +++ b/test/builtins/gen/textureGather/69e0fb.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/69e0fb.wgsl.expected.glsl b/test/builtins/gen/textureGather/69e0fb.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/69e0fb.wgsl.expected.glsl rename to test/builtins/gen/textureGather/69e0fb.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/69e0fb.wgsl.expected.hlsl b/test/builtins/gen/textureGather/69e0fb.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/69e0fb.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/69e0fb.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/69e0fb.wgsl.expected.msl b/test/builtins/gen/textureGather/69e0fb.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/69e0fb.wgsl.expected.msl rename to test/builtins/gen/textureGather/69e0fb.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/69e0fb.wgsl.expected.spvasm b/test/builtins/gen/textureGather/69e0fb.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/69e0fb.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/69e0fb.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/69e0fb.wgsl.expected.wgsl b/test/builtins/gen/textureGather/69e0fb.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/69e0fb.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/69e0fb.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/93003d.wgsl b/test/builtins/gen/textureGather/93003d.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/93003d.wgsl rename to test/builtins/gen/textureGather/93003d.wgsl index c194b51c4f..5fda02b236 100644 --- a/test/intrinsics/gen/textureGather/93003d.wgsl +++ b/test/builtins/gen/textureGather/93003d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/93003d.wgsl.expected.glsl b/test/builtins/gen/textureGather/93003d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/93003d.wgsl.expected.glsl rename to test/builtins/gen/textureGather/93003d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/93003d.wgsl.expected.hlsl b/test/builtins/gen/textureGather/93003d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/93003d.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/93003d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/93003d.wgsl.expected.msl b/test/builtins/gen/textureGather/93003d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/93003d.wgsl.expected.msl rename to test/builtins/gen/textureGather/93003d.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/93003d.wgsl.expected.spvasm b/test/builtins/gen/textureGather/93003d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/93003d.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/93003d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/93003d.wgsl.expected.wgsl b/test/builtins/gen/textureGather/93003d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/93003d.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/93003d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/9a6358.wgsl b/test/builtins/gen/textureGather/9a6358.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/9a6358.wgsl rename to test/builtins/gen/textureGather/9a6358.wgsl index 0aff04cb26..2159a40a6c 100644 --- a/test/intrinsics/gen/textureGather/9a6358.wgsl +++ b/test/builtins/gen/textureGather/9a6358.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/9a6358.wgsl.expected.glsl b/test/builtins/gen/textureGather/9a6358.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/9a6358.wgsl.expected.glsl rename to test/builtins/gen/textureGather/9a6358.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/9a6358.wgsl.expected.hlsl b/test/builtins/gen/textureGather/9a6358.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/9a6358.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/9a6358.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/9a6358.wgsl.expected.msl b/test/builtins/gen/textureGather/9a6358.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/9a6358.wgsl.expected.msl rename to test/builtins/gen/textureGather/9a6358.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/9a6358.wgsl.expected.spvasm b/test/builtins/gen/textureGather/9a6358.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/9a6358.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/9a6358.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/9a6358.wgsl.expected.wgsl b/test/builtins/gen/textureGather/9a6358.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/9a6358.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/9a6358.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/9efca2.wgsl b/test/builtins/gen/textureGather/9efca2.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/9efca2.wgsl rename to test/builtins/gen/textureGather/9efca2.wgsl index d1fd63fbfb..8b48e61086 100644 --- a/test/intrinsics/gen/textureGather/9efca2.wgsl +++ b/test/builtins/gen/textureGather/9efca2.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/9efca2.wgsl.expected.glsl b/test/builtins/gen/textureGather/9efca2.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/9efca2.wgsl.expected.glsl rename to test/builtins/gen/textureGather/9efca2.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/9efca2.wgsl.expected.hlsl b/test/builtins/gen/textureGather/9efca2.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/9efca2.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/9efca2.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/9efca2.wgsl.expected.msl b/test/builtins/gen/textureGather/9efca2.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/9efca2.wgsl.expected.msl rename to test/builtins/gen/textureGather/9efca2.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/9efca2.wgsl.expected.spvasm b/test/builtins/gen/textureGather/9efca2.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/9efca2.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/9efca2.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/9efca2.wgsl.expected.wgsl b/test/builtins/gen/textureGather/9efca2.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/9efca2.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/9efca2.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/bd0b1e.wgsl b/test/builtins/gen/textureGather/bd0b1e.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/bd0b1e.wgsl rename to test/builtins/gen/textureGather/bd0b1e.wgsl index e7bf959804..892c9979dd 100644 --- a/test/intrinsics/gen/textureGather/bd0b1e.wgsl +++ b/test/builtins/gen/textureGather/bd0b1e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/bd0b1e.wgsl.expected.glsl b/test/builtins/gen/textureGather/bd0b1e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/bd0b1e.wgsl.expected.glsl rename to test/builtins/gen/textureGather/bd0b1e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/bd0b1e.wgsl.expected.hlsl b/test/builtins/gen/textureGather/bd0b1e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/bd0b1e.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/bd0b1e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/bd0b1e.wgsl.expected.msl b/test/builtins/gen/textureGather/bd0b1e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/bd0b1e.wgsl.expected.msl rename to test/builtins/gen/textureGather/bd0b1e.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/bd0b1e.wgsl.expected.spvasm b/test/builtins/gen/textureGather/bd0b1e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/bd0b1e.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/bd0b1e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/bd0b1e.wgsl.expected.wgsl b/test/builtins/gen/textureGather/bd0b1e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/bd0b1e.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/bd0b1e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/c409ae.wgsl b/test/builtins/gen/textureGather/c409ae.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/c409ae.wgsl rename to test/builtins/gen/textureGather/c409ae.wgsl index 8778bb7f46..d37b2a4956 100644 --- a/test/intrinsics/gen/textureGather/c409ae.wgsl +++ b/test/builtins/gen/textureGather/c409ae.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/c409ae.wgsl.expected.glsl b/test/builtins/gen/textureGather/c409ae.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/c409ae.wgsl.expected.glsl rename to test/builtins/gen/textureGather/c409ae.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/c409ae.wgsl.expected.hlsl b/test/builtins/gen/textureGather/c409ae.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/c409ae.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/c409ae.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/c409ae.wgsl.expected.msl b/test/builtins/gen/textureGather/c409ae.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/c409ae.wgsl.expected.msl rename to test/builtins/gen/textureGather/c409ae.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/c409ae.wgsl.expected.spvasm b/test/builtins/gen/textureGather/c409ae.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/c409ae.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/c409ae.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/c409ae.wgsl.expected.wgsl b/test/builtins/gen/textureGather/c409ae.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/c409ae.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/c409ae.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/c55822.wgsl b/test/builtins/gen/textureGather/c55822.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/c55822.wgsl rename to test/builtins/gen/textureGather/c55822.wgsl index 9cedd5927b..2cebaac21a 100644 --- a/test/intrinsics/gen/textureGather/c55822.wgsl +++ b/test/builtins/gen/textureGather/c55822.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/c55822.wgsl.expected.glsl b/test/builtins/gen/textureGather/c55822.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/c55822.wgsl.expected.glsl rename to test/builtins/gen/textureGather/c55822.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/c55822.wgsl.expected.hlsl b/test/builtins/gen/textureGather/c55822.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/c55822.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/c55822.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/c55822.wgsl.expected.msl b/test/builtins/gen/textureGather/c55822.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/c55822.wgsl.expected.msl rename to test/builtins/gen/textureGather/c55822.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/c55822.wgsl.expected.spvasm b/test/builtins/gen/textureGather/c55822.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/c55822.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/c55822.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/c55822.wgsl.expected.wgsl b/test/builtins/gen/textureGather/c55822.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/c55822.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/c55822.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/e1b67d.wgsl b/test/builtins/gen/textureGather/e1b67d.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/e1b67d.wgsl rename to test/builtins/gen/textureGather/e1b67d.wgsl index ac8f15ae9a..9341319fc5 100644 --- a/test/intrinsics/gen/textureGather/e1b67d.wgsl +++ b/test/builtins/gen/textureGather/e1b67d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/e1b67d.wgsl.expected.glsl b/test/builtins/gen/textureGather/e1b67d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/e1b67d.wgsl.expected.glsl rename to test/builtins/gen/textureGather/e1b67d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/e1b67d.wgsl.expected.hlsl b/test/builtins/gen/textureGather/e1b67d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/e1b67d.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/e1b67d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/e1b67d.wgsl.expected.msl b/test/builtins/gen/textureGather/e1b67d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/e1b67d.wgsl.expected.msl rename to test/builtins/gen/textureGather/e1b67d.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/e1b67d.wgsl.expected.spvasm b/test/builtins/gen/textureGather/e1b67d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/e1b67d.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/e1b67d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/e1b67d.wgsl.expected.wgsl b/test/builtins/gen/textureGather/e1b67d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/e1b67d.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/e1b67d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/e9eff6.wgsl b/test/builtins/gen/textureGather/e9eff6.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/e9eff6.wgsl rename to test/builtins/gen/textureGather/e9eff6.wgsl index b0477f985f..bccabe3c5d 100644 --- a/test/intrinsics/gen/textureGather/e9eff6.wgsl +++ b/test/builtins/gen/textureGather/e9eff6.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/e9eff6.wgsl.expected.glsl b/test/builtins/gen/textureGather/e9eff6.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/e9eff6.wgsl.expected.glsl rename to test/builtins/gen/textureGather/e9eff6.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/e9eff6.wgsl.expected.hlsl b/test/builtins/gen/textureGather/e9eff6.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/e9eff6.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/e9eff6.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/e9eff6.wgsl.expected.msl b/test/builtins/gen/textureGather/e9eff6.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/e9eff6.wgsl.expected.msl rename to test/builtins/gen/textureGather/e9eff6.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/e9eff6.wgsl.expected.spvasm b/test/builtins/gen/textureGather/e9eff6.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/e9eff6.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/e9eff6.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/e9eff6.wgsl.expected.wgsl b/test/builtins/gen/textureGather/e9eff6.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/e9eff6.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/e9eff6.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/f5f3ba.wgsl b/test/builtins/gen/textureGather/f5f3ba.wgsl similarity index 91% rename from test/intrinsics/gen/textureGather/f5f3ba.wgsl rename to test/builtins/gen/textureGather/f5f3ba.wgsl index f2632569db..1d83ce10d3 100644 --- a/test/intrinsics/gen/textureGather/f5f3ba.wgsl +++ b/test/builtins/gen/textureGather/f5f3ba.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/f5f3ba.wgsl.expected.glsl b/test/builtins/gen/textureGather/f5f3ba.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/f5f3ba.wgsl.expected.glsl rename to test/builtins/gen/textureGather/f5f3ba.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/f5f3ba.wgsl.expected.hlsl b/test/builtins/gen/textureGather/f5f3ba.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/f5f3ba.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/f5f3ba.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/f5f3ba.wgsl.expected.msl b/test/builtins/gen/textureGather/f5f3ba.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/f5f3ba.wgsl.expected.msl rename to test/builtins/gen/textureGather/f5f3ba.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/f5f3ba.wgsl.expected.spvasm b/test/builtins/gen/textureGather/f5f3ba.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/f5f3ba.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/f5f3ba.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/f5f3ba.wgsl.expected.wgsl b/test/builtins/gen/textureGather/f5f3ba.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/f5f3ba.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/f5f3ba.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGather/f7995a.wgsl b/test/builtins/gen/textureGather/f7995a.wgsl similarity index 90% rename from test/intrinsics/gen/textureGather/f7995a.wgsl rename to test/builtins/gen/textureGather/f7995a.wgsl index 19c42fc5a2..2960054046 100644 --- a/test/intrinsics/gen/textureGather/f7995a.wgsl +++ b/test/builtins/gen/textureGather/f7995a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGather/f7995a.wgsl.expected.glsl b/test/builtins/gen/textureGather/f7995a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGather/f7995a.wgsl.expected.glsl rename to test/builtins/gen/textureGather/f7995a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGather/f7995a.wgsl.expected.hlsl b/test/builtins/gen/textureGather/f7995a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGather/f7995a.wgsl.expected.hlsl rename to test/builtins/gen/textureGather/f7995a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGather/f7995a.wgsl.expected.msl b/test/builtins/gen/textureGather/f7995a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGather/f7995a.wgsl.expected.msl rename to test/builtins/gen/textureGather/f7995a.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGather/f7995a.wgsl.expected.spvasm b/test/builtins/gen/textureGather/f7995a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGather/f7995a.wgsl.expected.spvasm rename to test/builtins/gen/textureGather/f7995a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGather/f7995a.wgsl.expected.wgsl b/test/builtins/gen/textureGather/f7995a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGather/f7995a.wgsl.expected.wgsl rename to test/builtins/gen/textureGather/f7995a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGatherCompare/182fd4.wgsl b/test/builtins/gen/textureGatherCompare/182fd4.wgsl similarity index 91% rename from test/intrinsics/gen/textureGatherCompare/182fd4.wgsl rename to test/builtins/gen/textureGatherCompare/182fd4.wgsl index afaaa84fa8..c62de56ef4 100644 --- a/test/intrinsics/gen/textureGatherCompare/182fd4.wgsl +++ b/test/builtins/gen/textureGatherCompare/182fd4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGatherCompare/182fd4.wgsl.expected.glsl b/test/builtins/gen/textureGatherCompare/182fd4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/182fd4.wgsl.expected.glsl rename to test/builtins/gen/textureGatherCompare/182fd4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGatherCompare/182fd4.wgsl.expected.hlsl b/test/builtins/gen/textureGatherCompare/182fd4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/182fd4.wgsl.expected.hlsl rename to test/builtins/gen/textureGatherCompare/182fd4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGatherCompare/182fd4.wgsl.expected.msl b/test/builtins/gen/textureGatherCompare/182fd4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/182fd4.wgsl.expected.msl rename to test/builtins/gen/textureGatherCompare/182fd4.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGatherCompare/182fd4.wgsl.expected.spvasm b/test/builtins/gen/textureGatherCompare/182fd4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/182fd4.wgsl.expected.spvasm rename to test/builtins/gen/textureGatherCompare/182fd4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGatherCompare/182fd4.wgsl.expected.wgsl b/test/builtins/gen/textureGatherCompare/182fd4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/182fd4.wgsl.expected.wgsl rename to test/builtins/gen/textureGatherCompare/182fd4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGatherCompare/60d2d1.wgsl b/test/builtins/gen/textureGatherCompare/60d2d1.wgsl similarity index 91% rename from test/intrinsics/gen/textureGatherCompare/60d2d1.wgsl rename to test/builtins/gen/textureGatherCompare/60d2d1.wgsl index 53ed423d13..5baa3785ab 100644 --- a/test/intrinsics/gen/textureGatherCompare/60d2d1.wgsl +++ b/test/builtins/gen/textureGatherCompare/60d2d1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGatherCompare/60d2d1.wgsl.expected.glsl b/test/builtins/gen/textureGatherCompare/60d2d1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/60d2d1.wgsl.expected.glsl rename to test/builtins/gen/textureGatherCompare/60d2d1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGatherCompare/60d2d1.wgsl.expected.hlsl b/test/builtins/gen/textureGatherCompare/60d2d1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/60d2d1.wgsl.expected.hlsl rename to test/builtins/gen/textureGatherCompare/60d2d1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGatherCompare/60d2d1.wgsl.expected.msl b/test/builtins/gen/textureGatherCompare/60d2d1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/60d2d1.wgsl.expected.msl rename to test/builtins/gen/textureGatherCompare/60d2d1.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGatherCompare/60d2d1.wgsl.expected.spvasm b/test/builtins/gen/textureGatherCompare/60d2d1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/60d2d1.wgsl.expected.spvasm rename to test/builtins/gen/textureGatherCompare/60d2d1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGatherCompare/60d2d1.wgsl.expected.wgsl b/test/builtins/gen/textureGatherCompare/60d2d1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/60d2d1.wgsl.expected.wgsl rename to test/builtins/gen/textureGatherCompare/60d2d1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGatherCompare/6d9352.wgsl b/test/builtins/gen/textureGatherCompare/6d9352.wgsl similarity index 91% rename from test/intrinsics/gen/textureGatherCompare/6d9352.wgsl rename to test/builtins/gen/textureGatherCompare/6d9352.wgsl index 5a577ba54f..e9edc14163 100644 --- a/test/intrinsics/gen/textureGatherCompare/6d9352.wgsl +++ b/test/builtins/gen/textureGatherCompare/6d9352.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGatherCompare/6d9352.wgsl.expected.glsl b/test/builtins/gen/textureGatherCompare/6d9352.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/6d9352.wgsl.expected.glsl rename to test/builtins/gen/textureGatherCompare/6d9352.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGatherCompare/6d9352.wgsl.expected.hlsl b/test/builtins/gen/textureGatherCompare/6d9352.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/6d9352.wgsl.expected.hlsl rename to test/builtins/gen/textureGatherCompare/6d9352.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGatherCompare/6d9352.wgsl.expected.msl b/test/builtins/gen/textureGatherCompare/6d9352.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/6d9352.wgsl.expected.msl rename to test/builtins/gen/textureGatherCompare/6d9352.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGatherCompare/6d9352.wgsl.expected.spvasm b/test/builtins/gen/textureGatherCompare/6d9352.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/6d9352.wgsl.expected.spvasm rename to test/builtins/gen/textureGatherCompare/6d9352.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGatherCompare/6d9352.wgsl.expected.wgsl b/test/builtins/gen/textureGatherCompare/6d9352.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/6d9352.wgsl.expected.wgsl rename to test/builtins/gen/textureGatherCompare/6d9352.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGatherCompare/6f1267.wgsl b/test/builtins/gen/textureGatherCompare/6f1267.wgsl similarity index 91% rename from test/intrinsics/gen/textureGatherCompare/6f1267.wgsl rename to test/builtins/gen/textureGatherCompare/6f1267.wgsl index c71a6996c1..19e744d1b1 100644 --- a/test/intrinsics/gen/textureGatherCompare/6f1267.wgsl +++ b/test/builtins/gen/textureGatherCompare/6f1267.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGatherCompare/6f1267.wgsl.expected.glsl b/test/builtins/gen/textureGatherCompare/6f1267.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/6f1267.wgsl.expected.glsl rename to test/builtins/gen/textureGatherCompare/6f1267.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGatherCompare/6f1267.wgsl.expected.hlsl b/test/builtins/gen/textureGatherCompare/6f1267.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/6f1267.wgsl.expected.hlsl rename to test/builtins/gen/textureGatherCompare/6f1267.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGatherCompare/6f1267.wgsl.expected.msl b/test/builtins/gen/textureGatherCompare/6f1267.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/6f1267.wgsl.expected.msl rename to test/builtins/gen/textureGatherCompare/6f1267.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGatherCompare/6f1267.wgsl.expected.spvasm b/test/builtins/gen/textureGatherCompare/6f1267.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/6f1267.wgsl.expected.spvasm rename to test/builtins/gen/textureGatherCompare/6f1267.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGatherCompare/6f1267.wgsl.expected.wgsl b/test/builtins/gen/textureGatherCompare/6f1267.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/6f1267.wgsl.expected.wgsl rename to test/builtins/gen/textureGatherCompare/6f1267.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGatherCompare/783e65.wgsl b/test/builtins/gen/textureGatherCompare/783e65.wgsl similarity index 91% rename from test/intrinsics/gen/textureGatherCompare/783e65.wgsl rename to test/builtins/gen/textureGatherCompare/783e65.wgsl index 8bd4779d57..7801019a8e 100644 --- a/test/intrinsics/gen/textureGatherCompare/783e65.wgsl +++ b/test/builtins/gen/textureGatherCompare/783e65.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGatherCompare/783e65.wgsl.expected.glsl b/test/builtins/gen/textureGatherCompare/783e65.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/783e65.wgsl.expected.glsl rename to test/builtins/gen/textureGatherCompare/783e65.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGatherCompare/783e65.wgsl.expected.hlsl b/test/builtins/gen/textureGatherCompare/783e65.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/783e65.wgsl.expected.hlsl rename to test/builtins/gen/textureGatherCompare/783e65.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGatherCompare/783e65.wgsl.expected.msl b/test/builtins/gen/textureGatherCompare/783e65.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/783e65.wgsl.expected.msl rename to test/builtins/gen/textureGatherCompare/783e65.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGatherCompare/783e65.wgsl.expected.spvasm b/test/builtins/gen/textureGatherCompare/783e65.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/783e65.wgsl.expected.spvasm rename to test/builtins/gen/textureGatherCompare/783e65.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGatherCompare/783e65.wgsl.expected.wgsl b/test/builtins/gen/textureGatherCompare/783e65.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/783e65.wgsl.expected.wgsl rename to test/builtins/gen/textureGatherCompare/783e65.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureGatherCompare/a5f587.wgsl b/test/builtins/gen/textureGatherCompare/a5f587.wgsl similarity index 91% rename from test/intrinsics/gen/textureGatherCompare/a5f587.wgsl rename to test/builtins/gen/textureGatherCompare/a5f587.wgsl index b8a27188f5..fe285c775b 100644 --- a/test/intrinsics/gen/textureGatherCompare/a5f587.wgsl +++ b/test/builtins/gen/textureGatherCompare/a5f587.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureGatherCompare/a5f587.wgsl.expected.glsl b/test/builtins/gen/textureGatherCompare/a5f587.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/a5f587.wgsl.expected.glsl rename to test/builtins/gen/textureGatherCompare/a5f587.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureGatherCompare/a5f587.wgsl.expected.hlsl b/test/builtins/gen/textureGatherCompare/a5f587.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/a5f587.wgsl.expected.hlsl rename to test/builtins/gen/textureGatherCompare/a5f587.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureGatherCompare/a5f587.wgsl.expected.msl b/test/builtins/gen/textureGatherCompare/a5f587.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/a5f587.wgsl.expected.msl rename to test/builtins/gen/textureGatherCompare/a5f587.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureGatherCompare/a5f587.wgsl.expected.spvasm b/test/builtins/gen/textureGatherCompare/a5f587.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/a5f587.wgsl.expected.spvasm rename to test/builtins/gen/textureGatherCompare/a5f587.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureGatherCompare/a5f587.wgsl.expected.wgsl b/test/builtins/gen/textureGatherCompare/a5f587.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureGatherCompare/a5f587.wgsl.expected.wgsl rename to test/builtins/gen/textureGatherCompare/a5f587.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureLoad/19cf87.wgsl b/test/builtins/gen/textureLoad/19cf87.wgsl similarity index 90% rename from test/intrinsics/gen/textureLoad/19cf87.wgsl rename to test/builtins/gen/textureLoad/19cf87.wgsl index 609ce46ae8..9d91de0314 100644 --- a/test/intrinsics/gen/textureLoad/19cf87.wgsl +++ b/test/builtins/gen/textureLoad/19cf87.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureLoad/19cf87.wgsl.expected.glsl b/test/builtins/gen/textureLoad/19cf87.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureLoad/19cf87.wgsl.expected.glsl rename to test/builtins/gen/textureLoad/19cf87.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureLoad/19cf87.wgsl.expected.hlsl b/test/builtins/gen/textureLoad/19cf87.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureLoad/19cf87.wgsl.expected.hlsl rename to test/builtins/gen/textureLoad/19cf87.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureLoad/19cf87.wgsl.expected.msl b/test/builtins/gen/textureLoad/19cf87.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureLoad/19cf87.wgsl.expected.msl rename to test/builtins/gen/textureLoad/19cf87.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureLoad/19cf87.wgsl.expected.spvasm b/test/builtins/gen/textureLoad/19cf87.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureLoad/19cf87.wgsl.expected.spvasm rename to test/builtins/gen/textureLoad/19cf87.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureLoad/19cf87.wgsl.expected.wgsl b/test/builtins/gen/textureLoad/19cf87.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureLoad/19cf87.wgsl.expected.wgsl rename to test/builtins/gen/textureLoad/19cf87.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureLoad/1b8588.wgsl b/test/builtins/gen/textureLoad/1b8588.wgsl similarity index 89% rename from test/intrinsics/gen/textureLoad/1b8588.wgsl rename to test/builtins/gen/textureLoad/1b8588.wgsl index 80a4cae5de..ba2383818b 100644 --- a/test/intrinsics/gen/textureLoad/1b8588.wgsl +++ b/test/builtins/gen/textureLoad/1b8588.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureLoad/1b8588.wgsl.expected.glsl b/test/builtins/gen/textureLoad/1b8588.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureLoad/1b8588.wgsl.expected.glsl rename to test/builtins/gen/textureLoad/1b8588.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureLoad/1b8588.wgsl.expected.hlsl b/test/builtins/gen/textureLoad/1b8588.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureLoad/1b8588.wgsl.expected.hlsl rename to test/builtins/gen/textureLoad/1b8588.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureLoad/1b8588.wgsl.expected.msl b/test/builtins/gen/textureLoad/1b8588.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureLoad/1b8588.wgsl.expected.msl rename to test/builtins/gen/textureLoad/1b8588.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureLoad/1b8588.wgsl.expected.spvasm b/test/builtins/gen/textureLoad/1b8588.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureLoad/1b8588.wgsl.expected.spvasm rename to test/builtins/gen/textureLoad/1b8588.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureLoad/1b8588.wgsl.expected.wgsl b/test/builtins/gen/textureLoad/1b8588.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureLoad/1b8588.wgsl.expected.wgsl rename to test/builtins/gen/textureLoad/1b8588.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureLoad/1f2016.wgsl b/test/builtins/gen/textureLoad/1f2016.wgsl similarity index 90% rename from test/intrinsics/gen/textureLoad/1f2016.wgsl rename to test/builtins/gen/textureLoad/1f2016.wgsl index 9e3a286bd5..64354c392d 100644 --- a/test/intrinsics/gen/textureLoad/1f2016.wgsl +++ b/test/builtins/gen/textureLoad/1f2016.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureLoad/1f2016.wgsl.expected.glsl b/test/builtins/gen/textureLoad/1f2016.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureLoad/1f2016.wgsl.expected.glsl rename to test/builtins/gen/textureLoad/1f2016.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureLoad/1f2016.wgsl.expected.hlsl b/test/builtins/gen/textureLoad/1f2016.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureLoad/1f2016.wgsl.expected.hlsl rename to test/builtins/gen/textureLoad/1f2016.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureLoad/1f2016.wgsl.expected.msl b/test/builtins/gen/textureLoad/1f2016.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureLoad/1f2016.wgsl.expected.msl rename to test/builtins/gen/textureLoad/1f2016.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureLoad/1f2016.wgsl.expected.spvasm b/test/builtins/gen/textureLoad/1f2016.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureLoad/1f2016.wgsl.expected.spvasm rename to test/builtins/gen/textureLoad/1f2016.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureLoad/1f2016.wgsl.expected.wgsl b/test/builtins/gen/textureLoad/1f2016.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureLoad/1f2016.wgsl.expected.wgsl rename to test/builtins/gen/textureLoad/1f2016.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureLoad/484344.wgsl b/test/builtins/gen/textureLoad/484344.wgsl similarity index 90% rename from test/intrinsics/gen/textureLoad/484344.wgsl rename to test/builtins/gen/textureLoad/484344.wgsl index 920d8e06b6..b82bb67c62 100644 --- a/test/intrinsics/gen/textureLoad/484344.wgsl +++ b/test/builtins/gen/textureLoad/484344.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureLoad/484344.wgsl.expected.glsl b/test/builtins/gen/textureLoad/484344.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureLoad/484344.wgsl.expected.glsl rename to test/builtins/gen/textureLoad/484344.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureLoad/484344.wgsl.expected.hlsl b/test/builtins/gen/textureLoad/484344.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureLoad/484344.wgsl.expected.hlsl rename to test/builtins/gen/textureLoad/484344.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureLoad/484344.wgsl.expected.msl b/test/builtins/gen/textureLoad/484344.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureLoad/484344.wgsl.expected.msl rename to test/builtins/gen/textureLoad/484344.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureLoad/484344.wgsl.expected.spvasm b/test/builtins/gen/textureLoad/484344.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureLoad/484344.wgsl.expected.spvasm rename to test/builtins/gen/textureLoad/484344.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureLoad/484344.wgsl.expected.wgsl b/test/builtins/gen/textureLoad/484344.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureLoad/484344.wgsl.expected.wgsl rename to test/builtins/gen/textureLoad/484344.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureLoad/4fd803.wgsl b/test/builtins/gen/textureLoad/4fd803.wgsl similarity index 90% rename from test/intrinsics/gen/textureLoad/4fd803.wgsl rename to test/builtins/gen/textureLoad/4fd803.wgsl index d309c2b7d1..34fac877f7 100644 --- a/test/intrinsics/gen/textureLoad/4fd803.wgsl +++ b/test/builtins/gen/textureLoad/4fd803.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureLoad/4fd803.wgsl.expected.glsl b/test/builtins/gen/textureLoad/4fd803.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureLoad/4fd803.wgsl.expected.glsl rename to test/builtins/gen/textureLoad/4fd803.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureLoad/4fd803.wgsl.expected.hlsl b/test/builtins/gen/textureLoad/4fd803.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureLoad/4fd803.wgsl.expected.hlsl rename to test/builtins/gen/textureLoad/4fd803.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureLoad/4fd803.wgsl.expected.msl b/test/builtins/gen/textureLoad/4fd803.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureLoad/4fd803.wgsl.expected.msl rename to test/builtins/gen/textureLoad/4fd803.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureLoad/4fd803.wgsl.expected.spvasm b/test/builtins/gen/textureLoad/4fd803.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureLoad/4fd803.wgsl.expected.spvasm rename to test/builtins/gen/textureLoad/4fd803.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureLoad/4fd803.wgsl.expected.wgsl b/test/builtins/gen/textureLoad/4fd803.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureLoad/4fd803.wgsl.expected.wgsl rename to test/builtins/gen/textureLoad/4fd803.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureLoad/5a2f9d.wgsl b/test/builtins/gen/textureLoad/5a2f9d.wgsl similarity index 89% rename from test/intrinsics/gen/textureLoad/5a2f9d.wgsl rename to test/builtins/gen/textureLoad/5a2f9d.wgsl index 5f19cb5d05..f03d92c74d 100644 --- a/test/intrinsics/gen/textureLoad/5a2f9d.wgsl +++ b/test/builtins/gen/textureLoad/5a2f9d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureLoad/5a2f9d.wgsl.expected.glsl b/test/builtins/gen/textureLoad/5a2f9d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureLoad/5a2f9d.wgsl.expected.glsl rename to test/builtins/gen/textureLoad/5a2f9d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureLoad/5a2f9d.wgsl.expected.hlsl b/test/builtins/gen/textureLoad/5a2f9d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureLoad/5a2f9d.wgsl.expected.hlsl rename to test/builtins/gen/textureLoad/5a2f9d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureLoad/5a2f9d.wgsl.expected.msl b/test/builtins/gen/textureLoad/5a2f9d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureLoad/5a2f9d.wgsl.expected.msl rename to test/builtins/gen/textureLoad/5a2f9d.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureLoad/5a2f9d.wgsl.expected.spvasm b/test/builtins/gen/textureLoad/5a2f9d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureLoad/5a2f9d.wgsl.expected.spvasm rename to test/builtins/gen/textureLoad/5a2f9d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureLoad/5a2f9d.wgsl.expected.wgsl b/test/builtins/gen/textureLoad/5a2f9d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureLoad/5a2f9d.wgsl.expected.wgsl rename to test/builtins/gen/textureLoad/5a2f9d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureLoad/6154d4.wgsl b/test/builtins/gen/textureLoad/6154d4.wgsl similarity index 90% rename from test/intrinsics/gen/textureLoad/6154d4.wgsl rename to test/builtins/gen/textureLoad/6154d4.wgsl index ba6d63319f..1d4e4b1f31 100644 --- a/test/intrinsics/gen/textureLoad/6154d4.wgsl +++ b/test/builtins/gen/textureLoad/6154d4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureLoad/6154d4.wgsl.expected.glsl b/test/builtins/gen/textureLoad/6154d4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureLoad/6154d4.wgsl.expected.glsl rename to test/builtins/gen/textureLoad/6154d4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureLoad/6154d4.wgsl.expected.hlsl b/test/builtins/gen/textureLoad/6154d4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureLoad/6154d4.wgsl.expected.hlsl rename to test/builtins/gen/textureLoad/6154d4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureLoad/6154d4.wgsl.expected.msl b/test/builtins/gen/textureLoad/6154d4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureLoad/6154d4.wgsl.expected.msl rename to test/builtins/gen/textureLoad/6154d4.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureLoad/6154d4.wgsl.expected.spvasm b/test/builtins/gen/textureLoad/6154d4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureLoad/6154d4.wgsl.expected.spvasm rename to test/builtins/gen/textureLoad/6154d4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureLoad/6154d4.wgsl.expected.wgsl b/test/builtins/gen/textureLoad/6154d4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureLoad/6154d4.wgsl.expected.wgsl rename to test/builtins/gen/textureLoad/6154d4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureLoad/6273b1.wgsl b/test/builtins/gen/textureLoad/6273b1.wgsl similarity index 90% rename from test/intrinsics/gen/textureLoad/6273b1.wgsl rename to test/builtins/gen/textureLoad/6273b1.wgsl index 944e5a328a..0ae2f4e964 100644 --- a/test/intrinsics/gen/textureLoad/6273b1.wgsl +++ b/test/builtins/gen/textureLoad/6273b1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureLoad/6273b1.wgsl.expected.glsl b/test/builtins/gen/textureLoad/6273b1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureLoad/6273b1.wgsl.expected.glsl rename to test/builtins/gen/textureLoad/6273b1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureLoad/6273b1.wgsl.expected.hlsl b/test/builtins/gen/textureLoad/6273b1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureLoad/6273b1.wgsl.expected.hlsl rename to test/builtins/gen/textureLoad/6273b1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureLoad/6273b1.wgsl.expected.msl b/test/builtins/gen/textureLoad/6273b1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureLoad/6273b1.wgsl.expected.msl rename to test/builtins/gen/textureLoad/6273b1.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureLoad/6273b1.wgsl.expected.spvasm b/test/builtins/gen/textureLoad/6273b1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureLoad/6273b1.wgsl.expected.spvasm rename to test/builtins/gen/textureLoad/6273b1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureLoad/6273b1.wgsl.expected.wgsl b/test/builtins/gen/textureLoad/6273b1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureLoad/6273b1.wgsl.expected.wgsl rename to test/builtins/gen/textureLoad/6273b1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureLoad/79e697.wgsl b/test/builtins/gen/textureLoad/79e697.wgsl similarity index 90% rename from test/intrinsics/gen/textureLoad/79e697.wgsl rename to test/builtins/gen/textureLoad/79e697.wgsl index 4ed308ec18..31043236b5 100644 --- a/test/intrinsics/gen/textureLoad/79e697.wgsl +++ b/test/builtins/gen/textureLoad/79e697.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureLoad/79e697.wgsl.expected.glsl b/test/builtins/gen/textureLoad/79e697.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureLoad/79e697.wgsl.expected.glsl rename to test/builtins/gen/textureLoad/79e697.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureLoad/79e697.wgsl.expected.hlsl b/test/builtins/gen/textureLoad/79e697.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureLoad/79e697.wgsl.expected.hlsl rename to test/builtins/gen/textureLoad/79e697.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureLoad/79e697.wgsl.expected.msl b/test/builtins/gen/textureLoad/79e697.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureLoad/79e697.wgsl.expected.msl rename to test/builtins/gen/textureLoad/79e697.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureLoad/79e697.wgsl.expected.spvasm b/test/builtins/gen/textureLoad/79e697.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureLoad/79e697.wgsl.expected.spvasm rename to test/builtins/gen/textureLoad/79e697.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureLoad/79e697.wgsl.expected.wgsl b/test/builtins/gen/textureLoad/79e697.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureLoad/79e697.wgsl.expected.wgsl rename to test/builtins/gen/textureLoad/79e697.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureLoad/7c90e5.wgsl b/test/builtins/gen/textureLoad/7c90e5.wgsl similarity index 90% rename from test/intrinsics/gen/textureLoad/7c90e5.wgsl rename to test/builtins/gen/textureLoad/7c90e5.wgsl index 29da0dc24b..54a7a1753e 100644 --- a/test/intrinsics/gen/textureLoad/7c90e5.wgsl +++ b/test/builtins/gen/textureLoad/7c90e5.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureLoad/7c90e5.wgsl.expected.glsl b/test/builtins/gen/textureLoad/7c90e5.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureLoad/7c90e5.wgsl.expected.glsl rename to test/builtins/gen/textureLoad/7c90e5.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureLoad/7c90e5.wgsl.expected.hlsl b/test/builtins/gen/textureLoad/7c90e5.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureLoad/7c90e5.wgsl.expected.hlsl rename to test/builtins/gen/textureLoad/7c90e5.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureLoad/7c90e5.wgsl.expected.msl b/test/builtins/gen/textureLoad/7c90e5.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureLoad/7c90e5.wgsl.expected.msl rename to test/builtins/gen/textureLoad/7c90e5.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureLoad/7c90e5.wgsl.expected.spvasm b/test/builtins/gen/textureLoad/7c90e5.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureLoad/7c90e5.wgsl.expected.spvasm rename to test/builtins/gen/textureLoad/7c90e5.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureLoad/7c90e5.wgsl.expected.wgsl b/test/builtins/gen/textureLoad/7c90e5.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureLoad/7c90e5.wgsl.expected.wgsl rename to test/builtins/gen/textureLoad/7c90e5.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureLoad/81c381.wgsl b/test/builtins/gen/textureLoad/81c381.wgsl similarity index 89% rename from test/intrinsics/gen/textureLoad/81c381.wgsl rename to test/builtins/gen/textureLoad/81c381.wgsl index dccf1b8f2c..7bcc8cdf86 100644 --- a/test/intrinsics/gen/textureLoad/81c381.wgsl +++ b/test/builtins/gen/textureLoad/81c381.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureLoad/81c381.wgsl.expected.glsl b/test/builtins/gen/textureLoad/81c381.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureLoad/81c381.wgsl.expected.glsl rename to test/builtins/gen/textureLoad/81c381.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureLoad/81c381.wgsl.expected.hlsl b/test/builtins/gen/textureLoad/81c381.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureLoad/81c381.wgsl.expected.hlsl rename to test/builtins/gen/textureLoad/81c381.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureLoad/81c381.wgsl.expected.msl b/test/builtins/gen/textureLoad/81c381.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureLoad/81c381.wgsl.expected.msl rename to test/builtins/gen/textureLoad/81c381.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureLoad/81c381.wgsl.expected.spvasm b/test/builtins/gen/textureLoad/81c381.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureLoad/81c381.wgsl.expected.spvasm rename to test/builtins/gen/textureLoad/81c381.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureLoad/81c381.wgsl.expected.wgsl b/test/builtins/gen/textureLoad/81c381.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureLoad/81c381.wgsl.expected.wgsl rename to test/builtins/gen/textureLoad/81c381.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureLoad/87be85.wgsl b/test/builtins/gen/textureLoad/87be85.wgsl similarity index 90% rename from test/intrinsics/gen/textureLoad/87be85.wgsl rename to test/builtins/gen/textureLoad/87be85.wgsl index b1124d7ad2..5317dabc40 100644 --- a/test/intrinsics/gen/textureLoad/87be85.wgsl +++ b/test/builtins/gen/textureLoad/87be85.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureLoad/87be85.wgsl.expected.glsl b/test/builtins/gen/textureLoad/87be85.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureLoad/87be85.wgsl.expected.glsl rename to test/builtins/gen/textureLoad/87be85.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureLoad/87be85.wgsl.expected.hlsl b/test/builtins/gen/textureLoad/87be85.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureLoad/87be85.wgsl.expected.hlsl rename to test/builtins/gen/textureLoad/87be85.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureLoad/87be85.wgsl.expected.msl b/test/builtins/gen/textureLoad/87be85.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureLoad/87be85.wgsl.expected.msl rename to test/builtins/gen/textureLoad/87be85.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureLoad/87be85.wgsl.expected.spvasm b/test/builtins/gen/textureLoad/87be85.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureLoad/87be85.wgsl.expected.spvasm rename to test/builtins/gen/textureLoad/87be85.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureLoad/87be85.wgsl.expected.wgsl b/test/builtins/gen/textureLoad/87be85.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureLoad/87be85.wgsl.expected.wgsl rename to test/builtins/gen/textureLoad/87be85.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureLoad/8acf41.wgsl b/test/builtins/gen/textureLoad/8acf41.wgsl similarity index 89% rename from test/intrinsics/gen/textureLoad/8acf41.wgsl rename to test/builtins/gen/textureLoad/8acf41.wgsl index effdecdc3b..02bcc10e80 100644 --- a/test/intrinsics/gen/textureLoad/8acf41.wgsl +++ b/test/builtins/gen/textureLoad/8acf41.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureLoad/8acf41.wgsl.expected.glsl b/test/builtins/gen/textureLoad/8acf41.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureLoad/8acf41.wgsl.expected.glsl rename to test/builtins/gen/textureLoad/8acf41.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureLoad/8acf41.wgsl.expected.hlsl b/test/builtins/gen/textureLoad/8acf41.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureLoad/8acf41.wgsl.expected.hlsl rename to test/builtins/gen/textureLoad/8acf41.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureLoad/8acf41.wgsl.expected.msl b/test/builtins/gen/textureLoad/8acf41.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureLoad/8acf41.wgsl.expected.msl rename to test/builtins/gen/textureLoad/8acf41.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureLoad/8acf41.wgsl.expected.spvasm b/test/builtins/gen/textureLoad/8acf41.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureLoad/8acf41.wgsl.expected.spvasm rename to test/builtins/gen/textureLoad/8acf41.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureLoad/8acf41.wgsl.expected.wgsl b/test/builtins/gen/textureLoad/8acf41.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureLoad/8acf41.wgsl.expected.wgsl rename to test/builtins/gen/textureLoad/8acf41.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureLoad/9b2667.wgsl b/test/builtins/gen/textureLoad/9b2667.wgsl similarity index 90% rename from test/intrinsics/gen/textureLoad/9b2667.wgsl rename to test/builtins/gen/textureLoad/9b2667.wgsl index 4372cdb61a..df70318b4f 100644 --- a/test/intrinsics/gen/textureLoad/9b2667.wgsl +++ b/test/builtins/gen/textureLoad/9b2667.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureLoad/9b2667.wgsl.expected.glsl b/test/builtins/gen/textureLoad/9b2667.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureLoad/9b2667.wgsl.expected.glsl rename to test/builtins/gen/textureLoad/9b2667.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureLoad/9b2667.wgsl.expected.hlsl b/test/builtins/gen/textureLoad/9b2667.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureLoad/9b2667.wgsl.expected.hlsl rename to test/builtins/gen/textureLoad/9b2667.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureLoad/9b2667.wgsl.expected.msl b/test/builtins/gen/textureLoad/9b2667.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureLoad/9b2667.wgsl.expected.msl rename to test/builtins/gen/textureLoad/9b2667.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureLoad/9b2667.wgsl.expected.spvasm b/test/builtins/gen/textureLoad/9b2667.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureLoad/9b2667.wgsl.expected.spvasm rename to test/builtins/gen/textureLoad/9b2667.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureLoad/9b2667.wgsl.expected.wgsl b/test/builtins/gen/textureLoad/9b2667.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureLoad/9b2667.wgsl.expected.wgsl rename to test/builtins/gen/textureLoad/9b2667.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureLoad/a583c9.wgsl b/test/builtins/gen/textureLoad/a583c9.wgsl similarity index 90% rename from test/intrinsics/gen/textureLoad/a583c9.wgsl rename to test/builtins/gen/textureLoad/a583c9.wgsl index 5f67c51324..1c8e21dd75 100644 --- a/test/intrinsics/gen/textureLoad/a583c9.wgsl +++ b/test/builtins/gen/textureLoad/a583c9.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureLoad/a583c9.wgsl.expected.glsl b/test/builtins/gen/textureLoad/a583c9.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureLoad/a583c9.wgsl.expected.glsl rename to test/builtins/gen/textureLoad/a583c9.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureLoad/a583c9.wgsl.expected.hlsl b/test/builtins/gen/textureLoad/a583c9.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureLoad/a583c9.wgsl.expected.hlsl rename to test/builtins/gen/textureLoad/a583c9.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureLoad/a583c9.wgsl.expected.msl b/test/builtins/gen/textureLoad/a583c9.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureLoad/a583c9.wgsl.expected.msl rename to test/builtins/gen/textureLoad/a583c9.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureLoad/a583c9.wgsl.expected.spvasm b/test/builtins/gen/textureLoad/a583c9.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureLoad/a583c9.wgsl.expected.spvasm rename to test/builtins/gen/textureLoad/a583c9.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureLoad/a583c9.wgsl.expected.wgsl b/test/builtins/gen/textureLoad/a583c9.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureLoad/a583c9.wgsl.expected.wgsl rename to test/builtins/gen/textureLoad/a583c9.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureLoad/a9a9f5.wgsl b/test/builtins/gen/textureLoad/a9a9f5.wgsl similarity index 90% rename from test/intrinsics/gen/textureLoad/a9a9f5.wgsl rename to test/builtins/gen/textureLoad/a9a9f5.wgsl index 236927bb72..83d4755480 100644 --- a/test/intrinsics/gen/textureLoad/a9a9f5.wgsl +++ b/test/builtins/gen/textureLoad/a9a9f5.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureLoad/a9a9f5.wgsl.expected.glsl b/test/builtins/gen/textureLoad/a9a9f5.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureLoad/a9a9f5.wgsl.expected.glsl rename to test/builtins/gen/textureLoad/a9a9f5.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureLoad/a9a9f5.wgsl.expected.hlsl b/test/builtins/gen/textureLoad/a9a9f5.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureLoad/a9a9f5.wgsl.expected.hlsl rename to test/builtins/gen/textureLoad/a9a9f5.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureLoad/a9a9f5.wgsl.expected.msl b/test/builtins/gen/textureLoad/a9a9f5.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureLoad/a9a9f5.wgsl.expected.msl rename to test/builtins/gen/textureLoad/a9a9f5.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureLoad/a9a9f5.wgsl.expected.spvasm b/test/builtins/gen/textureLoad/a9a9f5.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureLoad/a9a9f5.wgsl.expected.spvasm rename to test/builtins/gen/textureLoad/a9a9f5.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureLoad/a9a9f5.wgsl.expected.wgsl b/test/builtins/gen/textureLoad/a9a9f5.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureLoad/a9a9f5.wgsl.expected.wgsl rename to test/builtins/gen/textureLoad/a9a9f5.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureLoad/c2a480.wgsl b/test/builtins/gen/textureLoad/c2a480.wgsl similarity index 90% rename from test/intrinsics/gen/textureLoad/c2a480.wgsl rename to test/builtins/gen/textureLoad/c2a480.wgsl index 6aa17f76b0..cc70b1a070 100644 --- a/test/intrinsics/gen/textureLoad/c2a480.wgsl +++ b/test/builtins/gen/textureLoad/c2a480.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureLoad/c2a480.wgsl.expected.glsl b/test/builtins/gen/textureLoad/c2a480.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureLoad/c2a480.wgsl.expected.glsl rename to test/builtins/gen/textureLoad/c2a480.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureLoad/c2a480.wgsl.expected.hlsl b/test/builtins/gen/textureLoad/c2a480.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureLoad/c2a480.wgsl.expected.hlsl rename to test/builtins/gen/textureLoad/c2a480.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureLoad/c2a480.wgsl.expected.msl b/test/builtins/gen/textureLoad/c2a480.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureLoad/c2a480.wgsl.expected.msl rename to test/builtins/gen/textureLoad/c2a480.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureLoad/c2a480.wgsl.expected.spvasm b/test/builtins/gen/textureLoad/c2a480.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureLoad/c2a480.wgsl.expected.spvasm rename to test/builtins/gen/textureLoad/c2a480.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureLoad/c2a480.wgsl.expected.wgsl b/test/builtins/gen/textureLoad/c2a480.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureLoad/c2a480.wgsl.expected.wgsl rename to test/builtins/gen/textureLoad/c2a480.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureLoad/c378ee.wgsl b/test/builtins/gen/textureLoad/c378ee.wgsl similarity index 90% rename from test/intrinsics/gen/textureLoad/c378ee.wgsl rename to test/builtins/gen/textureLoad/c378ee.wgsl index 2ddc52a5a2..3c34a60103 100644 --- a/test/intrinsics/gen/textureLoad/c378ee.wgsl +++ b/test/builtins/gen/textureLoad/c378ee.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureLoad/c378ee.wgsl.expected.glsl b/test/builtins/gen/textureLoad/c378ee.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureLoad/c378ee.wgsl.expected.glsl rename to test/builtins/gen/textureLoad/c378ee.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureLoad/c378ee.wgsl.expected.hlsl b/test/builtins/gen/textureLoad/c378ee.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureLoad/c378ee.wgsl.expected.hlsl rename to test/builtins/gen/textureLoad/c378ee.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureLoad/c378ee.wgsl.expected.msl b/test/builtins/gen/textureLoad/c378ee.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureLoad/c378ee.wgsl.expected.msl rename to test/builtins/gen/textureLoad/c378ee.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureLoad/c378ee.wgsl.expected.spvasm b/test/builtins/gen/textureLoad/c378ee.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureLoad/c378ee.wgsl.expected.spvasm rename to test/builtins/gen/textureLoad/c378ee.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureLoad/c378ee.wgsl.expected.wgsl b/test/builtins/gen/textureLoad/c378ee.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureLoad/c378ee.wgsl.expected.wgsl rename to test/builtins/gen/textureLoad/c378ee.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureLoad/e3d2cc.wgsl b/test/builtins/gen/textureLoad/e3d2cc.wgsl similarity index 90% rename from test/intrinsics/gen/textureLoad/e3d2cc.wgsl rename to test/builtins/gen/textureLoad/e3d2cc.wgsl index 65b9d1756f..bc5ddf7b6a 100644 --- a/test/intrinsics/gen/textureLoad/e3d2cc.wgsl +++ b/test/builtins/gen/textureLoad/e3d2cc.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureLoad/e3d2cc.wgsl.expected.glsl b/test/builtins/gen/textureLoad/e3d2cc.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureLoad/e3d2cc.wgsl.expected.glsl rename to test/builtins/gen/textureLoad/e3d2cc.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureLoad/e3d2cc.wgsl.expected.hlsl b/test/builtins/gen/textureLoad/e3d2cc.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureLoad/e3d2cc.wgsl.expected.hlsl rename to test/builtins/gen/textureLoad/e3d2cc.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureLoad/e3d2cc.wgsl.expected.msl b/test/builtins/gen/textureLoad/e3d2cc.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureLoad/e3d2cc.wgsl.expected.msl rename to test/builtins/gen/textureLoad/e3d2cc.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureLoad/e3d2cc.wgsl.expected.spvasm b/test/builtins/gen/textureLoad/e3d2cc.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureLoad/e3d2cc.wgsl.expected.spvasm rename to test/builtins/gen/textureLoad/e3d2cc.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureLoad/e3d2cc.wgsl.expected.wgsl b/test/builtins/gen/textureLoad/e3d2cc.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureLoad/e3d2cc.wgsl.expected.wgsl rename to test/builtins/gen/textureLoad/e3d2cc.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/024820.wgsl b/test/builtins/gen/textureNumLayers/024820.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLayers/024820.wgsl rename to test/builtins/gen/textureNumLayers/024820.wgsl index e0ad9de094..c812b9dee8 100644 --- a/test/intrinsics/gen/textureNumLayers/024820.wgsl +++ b/test/builtins/gen/textureNumLayers/024820.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/024820.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/024820.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/024820.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/024820.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/024820.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/024820.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/024820.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/024820.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/024820.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/024820.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/024820.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/024820.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/024820.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/024820.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/024820.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/024820.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/024820.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/024820.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/024820.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/024820.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/053df7.wgsl b/test/builtins/gen/textureNumLayers/053df7.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLayers/053df7.wgsl rename to test/builtins/gen/textureNumLayers/053df7.wgsl index dcb5cf3e63..1322b406ab 100644 --- a/test/intrinsics/gen/textureNumLayers/053df7.wgsl +++ b/test/builtins/gen/textureNumLayers/053df7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/053df7.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/053df7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/053df7.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/053df7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/053df7.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/053df7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/053df7.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/053df7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/053df7.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/053df7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/053df7.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/053df7.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/053df7.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/053df7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/053df7.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/053df7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/053df7.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/053df7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/053df7.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/053df7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/058cc3.wgsl b/test/builtins/gen/textureNumLayers/058cc3.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumLayers/058cc3.wgsl rename to test/builtins/gen/textureNumLayers/058cc3.wgsl index 189755949d..30263b7222 100644 --- a/test/intrinsics/gen/textureNumLayers/058cc3.wgsl +++ b/test/builtins/gen/textureNumLayers/058cc3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/058cc3.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/058cc3.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/058cc3.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/058cc3.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/058cc3.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/058cc3.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/058cc3.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/058cc3.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/058cc3.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/058cc3.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/058cc3.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/058cc3.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/058cc3.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/058cc3.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/058cc3.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/058cc3.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/058cc3.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/058cc3.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/058cc3.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/058cc3.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/09d05d.wgsl b/test/builtins/gen/textureNumLayers/09d05d.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumLayers/09d05d.wgsl rename to test/builtins/gen/textureNumLayers/09d05d.wgsl index e39514f853..d3d8aeff6a 100644 --- a/test/intrinsics/gen/textureNumLayers/09d05d.wgsl +++ b/test/builtins/gen/textureNumLayers/09d05d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/09d05d.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/09d05d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/09d05d.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/09d05d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/09d05d.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/09d05d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/09d05d.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/09d05d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/09d05d.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/09d05d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/09d05d.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/09d05d.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/09d05d.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/09d05d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/09d05d.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/09d05d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/09d05d.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/09d05d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/09d05d.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/09d05d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/13b4ce.wgsl b/test/builtins/gen/textureNumLayers/13b4ce.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumLayers/13b4ce.wgsl rename to test/builtins/gen/textureNumLayers/13b4ce.wgsl index f6361f1d70..ced8911f28 100644 --- a/test/intrinsics/gen/textureNumLayers/13b4ce.wgsl +++ b/test/builtins/gen/textureNumLayers/13b4ce.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/13b4ce.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/13b4ce.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/13b4ce.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/13b4ce.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/13b4ce.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/13b4ce.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/13b4ce.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/13b4ce.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/13b4ce.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/13b4ce.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/13b4ce.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/13b4ce.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/13b4ce.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/13b4ce.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/13b4ce.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/13b4ce.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/13b4ce.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/13b4ce.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/13b4ce.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/13b4ce.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/22e53b.wgsl b/test/builtins/gen/textureNumLayers/22e53b.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumLayers/22e53b.wgsl rename to test/builtins/gen/textureNumLayers/22e53b.wgsl index c9101c081a..fee9bca085 100644 --- a/test/intrinsics/gen/textureNumLayers/22e53b.wgsl +++ b/test/builtins/gen/textureNumLayers/22e53b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/22e53b.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/22e53b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/22e53b.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/22e53b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/22e53b.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/22e53b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/22e53b.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/22e53b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/22e53b.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/22e53b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/22e53b.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/22e53b.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/22e53b.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/22e53b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/22e53b.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/22e53b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/22e53b.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/22e53b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/22e53b.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/22e53b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/562013.wgsl b/test/builtins/gen/textureNumLayers/562013.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumLayers/562013.wgsl rename to test/builtins/gen/textureNumLayers/562013.wgsl index 18c77ad104..df02d84341 100644 --- a/test/intrinsics/gen/textureNumLayers/562013.wgsl +++ b/test/builtins/gen/textureNumLayers/562013.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/562013.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/562013.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/562013.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/562013.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/562013.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/562013.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/562013.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/562013.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/562013.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/562013.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/562013.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/562013.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/562013.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/562013.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/562013.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/562013.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/562013.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/562013.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/562013.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/562013.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/5d59cd.wgsl b/test/builtins/gen/textureNumLayers/5d59cd.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLayers/5d59cd.wgsl rename to test/builtins/gen/textureNumLayers/5d59cd.wgsl index 2a0f4de9cc..339d2f04a2 100644 --- a/test/intrinsics/gen/textureNumLayers/5d59cd.wgsl +++ b/test/builtins/gen/textureNumLayers/5d59cd.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/5d59cd.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/5d59cd.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/5d59cd.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/5d59cd.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/5d59cd.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/5d59cd.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/5d59cd.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/5d59cd.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/5d59cd.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/5d59cd.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/5d59cd.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/5d59cd.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/5d59cd.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/5d59cd.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/5d59cd.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/5d59cd.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/5d59cd.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/5d59cd.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/5d59cd.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/5d59cd.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/68a65b.wgsl b/test/builtins/gen/textureNumLayers/68a65b.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumLayers/68a65b.wgsl rename to test/builtins/gen/textureNumLayers/68a65b.wgsl index f551fc2b36..fdaf92b66a 100644 --- a/test/intrinsics/gen/textureNumLayers/68a65b.wgsl +++ b/test/builtins/gen/textureNumLayers/68a65b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/68a65b.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/68a65b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/68a65b.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/68a65b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/68a65b.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/68a65b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/68a65b.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/68a65b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/68a65b.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/68a65b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/68a65b.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/68a65b.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/68a65b.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/68a65b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/68a65b.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/68a65b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/68a65b.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/68a65b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/68a65b.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/68a65b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/778bd1.wgsl b/test/builtins/gen/textureNumLayers/778bd1.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumLayers/778bd1.wgsl rename to test/builtins/gen/textureNumLayers/778bd1.wgsl index ec88c84026..a3c4ddc573 100644 --- a/test/intrinsics/gen/textureNumLayers/778bd1.wgsl +++ b/test/builtins/gen/textureNumLayers/778bd1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/778bd1.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/778bd1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/778bd1.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/778bd1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/778bd1.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/778bd1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/778bd1.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/778bd1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/778bd1.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/778bd1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/778bd1.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/778bd1.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/778bd1.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/778bd1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/778bd1.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/778bd1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/778bd1.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/778bd1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/778bd1.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/778bd1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/7f1937.wgsl b/test/builtins/gen/textureNumLayers/7f1937.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumLayers/7f1937.wgsl rename to test/builtins/gen/textureNumLayers/7f1937.wgsl index 7652201627..1cbfaffa05 100644 --- a/test/intrinsics/gen/textureNumLayers/7f1937.wgsl +++ b/test/builtins/gen/textureNumLayers/7f1937.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/7f1937.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/7f1937.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/7f1937.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/7f1937.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/7f1937.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/7f1937.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/7f1937.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/7f1937.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/7f1937.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/7f1937.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/7f1937.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/7f1937.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/7f1937.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/7f1937.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/7f1937.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/7f1937.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/7f1937.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/7f1937.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/7f1937.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/7f1937.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/85f980.wgsl b/test/builtins/gen/textureNumLayers/85f980.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLayers/85f980.wgsl rename to test/builtins/gen/textureNumLayers/85f980.wgsl index c91c09d417..83d405a8ea 100644 --- a/test/intrinsics/gen/textureNumLayers/85f980.wgsl +++ b/test/builtins/gen/textureNumLayers/85f980.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/85f980.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/85f980.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/85f980.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/85f980.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/85f980.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/85f980.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/85f980.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/85f980.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/85f980.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/85f980.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/85f980.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/85f980.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/85f980.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/85f980.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/85f980.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/85f980.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/85f980.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/85f980.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/85f980.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/85f980.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/87953e.wgsl b/test/builtins/gen/textureNumLayers/87953e.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLayers/87953e.wgsl rename to test/builtins/gen/textureNumLayers/87953e.wgsl index d4b3e5acc7..8fcd190b50 100644 --- a/test/intrinsics/gen/textureNumLayers/87953e.wgsl +++ b/test/builtins/gen/textureNumLayers/87953e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/87953e.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/87953e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/87953e.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/87953e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/87953e.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/87953e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/87953e.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/87953e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/87953e.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/87953e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/87953e.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/87953e.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/87953e.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/87953e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/87953e.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/87953e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/87953e.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/87953e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/87953e.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/87953e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/893e7c.wgsl b/test/builtins/gen/textureNumLayers/893e7c.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLayers/893e7c.wgsl rename to test/builtins/gen/textureNumLayers/893e7c.wgsl index b00bdbd9b6..f583a9f2a3 100644 --- a/test/intrinsics/gen/textureNumLayers/893e7c.wgsl +++ b/test/builtins/gen/textureNumLayers/893e7c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/893e7c.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/893e7c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/893e7c.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/893e7c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/893e7c.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/893e7c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/893e7c.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/893e7c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/893e7c.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/893e7c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/893e7c.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/893e7c.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/893e7c.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/893e7c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/893e7c.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/893e7c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/893e7c.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/893e7c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/893e7c.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/893e7c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/9700fb.wgsl b/test/builtins/gen/textureNumLayers/9700fb.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumLayers/9700fb.wgsl rename to test/builtins/gen/textureNumLayers/9700fb.wgsl index 474b691e83..07d1e40a84 100644 --- a/test/intrinsics/gen/textureNumLayers/9700fb.wgsl +++ b/test/builtins/gen/textureNumLayers/9700fb.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/9700fb.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/9700fb.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/9700fb.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/9700fb.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/9700fb.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/9700fb.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/9700fb.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/9700fb.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/9700fb.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/9700fb.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/9700fb.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/9700fb.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/9700fb.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/9700fb.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/9700fb.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/9700fb.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/9700fb.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/9700fb.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/9700fb.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/9700fb.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/a216d2.wgsl b/test/builtins/gen/textureNumLayers/a216d2.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumLayers/a216d2.wgsl rename to test/builtins/gen/textureNumLayers/a216d2.wgsl index f64da9ead0..991471e9fe 100644 --- a/test/intrinsics/gen/textureNumLayers/a216d2.wgsl +++ b/test/builtins/gen/textureNumLayers/a216d2.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/a216d2.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/a216d2.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/a216d2.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/a216d2.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/a216d2.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/a216d2.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/a216d2.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/a216d2.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/a216d2.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/a216d2.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/a216d2.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/a216d2.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/a216d2.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/a216d2.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/a216d2.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/a216d2.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/a216d2.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/a216d2.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/a216d2.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/a216d2.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/cd5dc8.wgsl b/test/builtins/gen/textureNumLayers/cd5dc8.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumLayers/cd5dc8.wgsl rename to test/builtins/gen/textureNumLayers/cd5dc8.wgsl index 3756b005eb..8351f88ae2 100644 --- a/test/intrinsics/gen/textureNumLayers/cd5dc8.wgsl +++ b/test/builtins/gen/textureNumLayers/cd5dc8.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/cd5dc8.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/cd5dc8.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/cd5dc8.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/cd5dc8.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/cd5dc8.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/cd5dc8.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/cd5dc8.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/cd5dc8.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/cd5dc8.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/cd5dc8.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/cd5dc8.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/cd5dc8.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/cd5dc8.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/cd5dc8.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/cd5dc8.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/cd5dc8.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/cd5dc8.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/cd5dc8.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/cd5dc8.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/cd5dc8.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/d5b228.wgsl b/test/builtins/gen/textureNumLayers/d5b228.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumLayers/d5b228.wgsl rename to test/builtins/gen/textureNumLayers/d5b228.wgsl index ccc1d48a27..ee873c1686 100644 --- a/test/intrinsics/gen/textureNumLayers/d5b228.wgsl +++ b/test/builtins/gen/textureNumLayers/d5b228.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/d5b228.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/d5b228.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/d5b228.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/d5b228.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/d5b228.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/d5b228.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/d5b228.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/d5b228.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/d5b228.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/d5b228.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/d5b228.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/d5b228.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/d5b228.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/d5b228.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/d5b228.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/d5b228.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/d5b228.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/d5b228.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/d5b228.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/d5b228.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/e31be1.wgsl b/test/builtins/gen/textureNumLayers/e31be1.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumLayers/e31be1.wgsl rename to test/builtins/gen/textureNumLayers/e31be1.wgsl index d80689a6f1..4c3a5ee868 100644 --- a/test/intrinsics/gen/textureNumLayers/e31be1.wgsl +++ b/test/builtins/gen/textureNumLayers/e31be1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/e31be1.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/e31be1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/e31be1.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/e31be1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/e31be1.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/e31be1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/e31be1.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/e31be1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/e31be1.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/e31be1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/e31be1.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/e31be1.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/e31be1.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/e31be1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/e31be1.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/e31be1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/e31be1.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/e31be1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/e31be1.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/e31be1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/e653c0.wgsl b/test/builtins/gen/textureNumLayers/e653c0.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLayers/e653c0.wgsl rename to test/builtins/gen/textureNumLayers/e653c0.wgsl index 44cb31cde7..d033b73861 100644 --- a/test/intrinsics/gen/textureNumLayers/e653c0.wgsl +++ b/test/builtins/gen/textureNumLayers/e653c0.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/e653c0.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/e653c0.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/e653c0.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/e653c0.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/e653c0.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/e653c0.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/e653c0.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/e653c0.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/e653c0.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/e653c0.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/e653c0.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/e653c0.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/e653c0.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/e653c0.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/e653c0.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/e653c0.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/e653c0.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/e653c0.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/e653c0.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/e653c0.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/ee942f.wgsl b/test/builtins/gen/textureNumLayers/ee942f.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumLayers/ee942f.wgsl rename to test/builtins/gen/textureNumLayers/ee942f.wgsl index 7c4e1b4c6b..b995bd8033 100644 --- a/test/intrinsics/gen/textureNumLayers/ee942f.wgsl +++ b/test/builtins/gen/textureNumLayers/ee942f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/ee942f.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/ee942f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/ee942f.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/ee942f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/ee942f.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/ee942f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/ee942f.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/ee942f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/ee942f.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/ee942f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/ee942f.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/ee942f.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/ee942f.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/ee942f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/ee942f.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/ee942f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/ee942f.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/ee942f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/ee942f.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/ee942f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/f33005.wgsl b/test/builtins/gen/textureNumLayers/f33005.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumLayers/f33005.wgsl rename to test/builtins/gen/textureNumLayers/f33005.wgsl index 6d5b10c042..38c5efffd1 100644 --- a/test/intrinsics/gen/textureNumLayers/f33005.wgsl +++ b/test/builtins/gen/textureNumLayers/f33005.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/f33005.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/f33005.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/f33005.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/f33005.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/f33005.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/f33005.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/f33005.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/f33005.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/f33005.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/f33005.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/f33005.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/f33005.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/f33005.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/f33005.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/f33005.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/f33005.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/f33005.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/f33005.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/f33005.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/f33005.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/fcec98.wgsl b/test/builtins/gen/textureNumLayers/fcec98.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumLayers/fcec98.wgsl rename to test/builtins/gen/textureNumLayers/fcec98.wgsl index aab70d9a78..845f7cb5c4 100644 --- a/test/intrinsics/gen/textureNumLayers/fcec98.wgsl +++ b/test/builtins/gen/textureNumLayers/fcec98.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/fcec98.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/fcec98.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/fcec98.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/fcec98.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/fcec98.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/fcec98.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/fcec98.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/fcec98.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/fcec98.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/fcec98.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/fcec98.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/fcec98.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/fcec98.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/fcec98.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/fcec98.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/fcec98.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/fcec98.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/fcec98.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/fcec98.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/fcec98.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLayers/ff5e89.wgsl b/test/builtins/gen/textureNumLayers/ff5e89.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumLayers/ff5e89.wgsl rename to test/builtins/gen/textureNumLayers/ff5e89.wgsl index e6fe277432..a641eed642 100644 --- a/test/intrinsics/gen/textureNumLayers/ff5e89.wgsl +++ b/test/builtins/gen/textureNumLayers/ff5e89.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLayers/ff5e89.wgsl.expected.glsl b/test/builtins/gen/textureNumLayers/ff5e89.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/ff5e89.wgsl.expected.glsl rename to test/builtins/gen/textureNumLayers/ff5e89.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLayers/ff5e89.wgsl.expected.hlsl b/test/builtins/gen/textureNumLayers/ff5e89.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/ff5e89.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLayers/ff5e89.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLayers/ff5e89.wgsl.expected.msl b/test/builtins/gen/textureNumLayers/ff5e89.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/ff5e89.wgsl.expected.msl rename to test/builtins/gen/textureNumLayers/ff5e89.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLayers/ff5e89.wgsl.expected.spvasm b/test/builtins/gen/textureNumLayers/ff5e89.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLayers/ff5e89.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLayers/ff5e89.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLayers/ff5e89.wgsl.expected.wgsl b/test/builtins/gen/textureNumLayers/ff5e89.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLayers/ff5e89.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLayers/ff5e89.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/076cb5.wgsl b/test/builtins/gen/textureNumLevels/076cb5.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/076cb5.wgsl rename to test/builtins/gen/textureNumLevels/076cb5.wgsl index 367dac4fc0..574393a54b 100644 --- a/test/intrinsics/gen/textureNumLevels/076cb5.wgsl +++ b/test/builtins/gen/textureNumLevels/076cb5.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/076cb5.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/076cb5.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/076cb5.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/076cb5.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/076cb5.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/076cb5.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/076cb5.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/076cb5.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/076cb5.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/076cb5.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/076cb5.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/076cb5.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/076cb5.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/076cb5.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/076cb5.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/076cb5.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/076cb5.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/076cb5.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/076cb5.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/076cb5.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/080d95.wgsl b/test/builtins/gen/textureNumLevels/080d95.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/080d95.wgsl rename to test/builtins/gen/textureNumLevels/080d95.wgsl index b3bbba3524..31a1cc0edf 100644 --- a/test/intrinsics/gen/textureNumLevels/080d95.wgsl +++ b/test/builtins/gen/textureNumLevels/080d95.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/080d95.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/080d95.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/080d95.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/080d95.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/080d95.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/080d95.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/080d95.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/080d95.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/080d95.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/080d95.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/080d95.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/080d95.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/080d95.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/080d95.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/080d95.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/080d95.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/080d95.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/080d95.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/080d95.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/080d95.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/09ddd0.wgsl b/test/builtins/gen/textureNumLevels/09ddd0.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/09ddd0.wgsl rename to test/builtins/gen/textureNumLevels/09ddd0.wgsl index b68221cf6b..90e763b1fc 100644 --- a/test/intrinsics/gen/textureNumLevels/09ddd0.wgsl +++ b/test/builtins/gen/textureNumLevels/09ddd0.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/09ddd0.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/09ddd0.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/09ddd0.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/09ddd0.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/09ddd0.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/09ddd0.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/09ddd0.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/09ddd0.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/09ddd0.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/09ddd0.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/09ddd0.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/09ddd0.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/09ddd0.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/09ddd0.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/09ddd0.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/09ddd0.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/09ddd0.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/09ddd0.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/09ddd0.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/09ddd0.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/105988.wgsl b/test/builtins/gen/textureNumLevels/105988.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/105988.wgsl rename to test/builtins/gen/textureNumLevels/105988.wgsl index 9f03753bcf..1bc80d22bb 100644 --- a/test/intrinsics/gen/textureNumLevels/105988.wgsl +++ b/test/builtins/gen/textureNumLevels/105988.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/105988.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/105988.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/105988.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/105988.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/105988.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/105988.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/105988.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/105988.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/105988.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/105988.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/105988.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/105988.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/105988.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/105988.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/105988.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/105988.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/105988.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/105988.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/105988.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/105988.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/1e6f3b.wgsl b/test/builtins/gen/textureNumLevels/1e6f3b.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/1e6f3b.wgsl rename to test/builtins/gen/textureNumLevels/1e6f3b.wgsl index fc14600b56..b053b55a58 100644 --- a/test/intrinsics/gen/textureNumLevels/1e6f3b.wgsl +++ b/test/builtins/gen/textureNumLevels/1e6f3b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/1e6f3b.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/1e6f3b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/1e6f3b.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/1e6f3b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/1e6f3b.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/1e6f3b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/1e6f3b.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/1e6f3b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/1e6f3b.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/1e6f3b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/1e6f3b.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/1e6f3b.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/1e6f3b.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/1e6f3b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/1e6f3b.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/1e6f3b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/1e6f3b.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/1e6f3b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/1e6f3b.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/1e6f3b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/23f750.wgsl b/test/builtins/gen/textureNumLevels/23f750.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/23f750.wgsl rename to test/builtins/gen/textureNumLevels/23f750.wgsl index 4b914fc729..8b1d5a05e6 100644 --- a/test/intrinsics/gen/textureNumLevels/23f750.wgsl +++ b/test/builtins/gen/textureNumLevels/23f750.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/23f750.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/23f750.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/23f750.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/23f750.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/23f750.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/23f750.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/23f750.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/23f750.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/23f750.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/23f750.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/23f750.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/23f750.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/23f750.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/23f750.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/23f750.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/23f750.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/23f750.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/23f750.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/23f750.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/23f750.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/2c3575.wgsl b/test/builtins/gen/textureNumLevels/2c3575.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumLevels/2c3575.wgsl rename to test/builtins/gen/textureNumLevels/2c3575.wgsl index 556e1032f4..1b4e271312 100644 --- a/test/intrinsics/gen/textureNumLevels/2c3575.wgsl +++ b/test/builtins/gen/textureNumLevels/2c3575.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/2c3575.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/2c3575.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/2c3575.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/2c3575.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/2c3575.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/2c3575.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/2c3575.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/2c3575.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/2c3575.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/2c3575.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/2c3575.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/2c3575.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/2c3575.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/2c3575.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/2c3575.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/2c3575.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/2c3575.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/2c3575.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/2c3575.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/2c3575.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/32a0ae.wgsl b/test/builtins/gen/textureNumLevels/32a0ae.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/32a0ae.wgsl rename to test/builtins/gen/textureNumLevels/32a0ae.wgsl index 04ae341661..64a18fc260 100644 --- a/test/intrinsics/gen/textureNumLevels/32a0ae.wgsl +++ b/test/builtins/gen/textureNumLevels/32a0ae.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/32a0ae.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/32a0ae.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/32a0ae.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/32a0ae.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/32a0ae.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/32a0ae.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/32a0ae.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/32a0ae.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/32a0ae.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/32a0ae.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/32a0ae.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/32a0ae.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/32a0ae.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/32a0ae.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/32a0ae.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/32a0ae.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/32a0ae.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/32a0ae.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/32a0ae.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/32a0ae.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/5101cf.wgsl b/test/builtins/gen/textureNumLevels/5101cf.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/5101cf.wgsl rename to test/builtins/gen/textureNumLevels/5101cf.wgsl index cab75517e1..c487f7a756 100644 --- a/test/intrinsics/gen/textureNumLevels/5101cf.wgsl +++ b/test/builtins/gen/textureNumLevels/5101cf.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/5101cf.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/5101cf.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/5101cf.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/5101cf.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/5101cf.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/5101cf.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/5101cf.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/5101cf.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/5101cf.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/5101cf.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/5101cf.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/5101cf.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/5101cf.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/5101cf.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/5101cf.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/5101cf.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/5101cf.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/5101cf.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/5101cf.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/5101cf.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/51b5bb.wgsl b/test/builtins/gen/textureNumLevels/51b5bb.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/51b5bb.wgsl rename to test/builtins/gen/textureNumLevels/51b5bb.wgsl index 04be5cba8d..4697f322d3 100644 --- a/test/intrinsics/gen/textureNumLevels/51b5bb.wgsl +++ b/test/builtins/gen/textureNumLevels/51b5bb.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/51b5bb.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/51b5bb.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/51b5bb.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/51b5bb.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/51b5bb.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/51b5bb.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/51b5bb.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/51b5bb.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/51b5bb.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/51b5bb.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/51b5bb.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/51b5bb.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/51b5bb.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/51b5bb.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/51b5bb.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/51b5bb.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/51b5bb.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/51b5bb.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/51b5bb.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/51b5bb.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/897aaf.wgsl b/test/builtins/gen/textureNumLevels/897aaf.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/897aaf.wgsl rename to test/builtins/gen/textureNumLevels/897aaf.wgsl index 6daf4db3d9..4416fd7918 100644 --- a/test/intrinsics/gen/textureNumLevels/897aaf.wgsl +++ b/test/builtins/gen/textureNumLevels/897aaf.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/897aaf.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/897aaf.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/897aaf.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/897aaf.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/897aaf.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/897aaf.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/897aaf.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/897aaf.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/897aaf.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/897aaf.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/897aaf.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/897aaf.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/897aaf.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/897aaf.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/897aaf.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/897aaf.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/897aaf.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/897aaf.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/897aaf.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/897aaf.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/9da7a5.wgsl b/test/builtins/gen/textureNumLevels/9da7a5.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/9da7a5.wgsl rename to test/builtins/gen/textureNumLevels/9da7a5.wgsl index c471ebaf19..922f51875f 100644 --- a/test/intrinsics/gen/textureNumLevels/9da7a5.wgsl +++ b/test/builtins/gen/textureNumLevels/9da7a5.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/9da7a5.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/9da7a5.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/9da7a5.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/9da7a5.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/9da7a5.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/9da7a5.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/9da7a5.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/9da7a5.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/9da7a5.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/9da7a5.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/9da7a5.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/9da7a5.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/9da7a5.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/9da7a5.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/9da7a5.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/9da7a5.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/9da7a5.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/9da7a5.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/9da7a5.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/9da7a5.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/a91c03.wgsl b/test/builtins/gen/textureNumLevels/a91c03.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/a91c03.wgsl rename to test/builtins/gen/textureNumLevels/a91c03.wgsl index 0d9d2014ad..c69f645be5 100644 --- a/test/intrinsics/gen/textureNumLevels/a91c03.wgsl +++ b/test/builtins/gen/textureNumLevels/a91c03.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/a91c03.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/a91c03.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/a91c03.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/a91c03.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/a91c03.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/a91c03.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/a91c03.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/a91c03.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/a91c03.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/a91c03.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/a91c03.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/a91c03.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/a91c03.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/a91c03.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/a91c03.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/a91c03.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/a91c03.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/a91c03.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/a91c03.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/a91c03.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/aee7c8.wgsl b/test/builtins/gen/textureNumLevels/aee7c8.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/aee7c8.wgsl rename to test/builtins/gen/textureNumLevels/aee7c8.wgsl index 701dd1e43a..6f1ca33a1e 100644 --- a/test/intrinsics/gen/textureNumLevels/aee7c8.wgsl +++ b/test/builtins/gen/textureNumLevels/aee7c8.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/aee7c8.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/aee7c8.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/aee7c8.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/aee7c8.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/aee7c8.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/aee7c8.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/aee7c8.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/aee7c8.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/aee7c8.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/aee7c8.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/aee7c8.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/aee7c8.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/aee7c8.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/aee7c8.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/aee7c8.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/aee7c8.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/aee7c8.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/aee7c8.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/aee7c8.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/aee7c8.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/b1b12b.wgsl b/test/builtins/gen/textureNumLevels/b1b12b.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/b1b12b.wgsl rename to test/builtins/gen/textureNumLevels/b1b12b.wgsl index 9f8980a2a5..b2cfd094c3 100644 --- a/test/intrinsics/gen/textureNumLevels/b1b12b.wgsl +++ b/test/builtins/gen/textureNumLevels/b1b12b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/b1b12b.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/b1b12b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/b1b12b.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/b1b12b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/b1b12b.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/b1b12b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/b1b12b.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/b1b12b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/b1b12b.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/b1b12b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/b1b12b.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/b1b12b.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/b1b12b.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/b1b12b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/b1b12b.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/b1b12b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/b1b12b.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/b1b12b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/b1b12b.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/b1b12b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/b4f5ea.wgsl b/test/builtins/gen/textureNumLevels/b4f5ea.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/b4f5ea.wgsl rename to test/builtins/gen/textureNumLevels/b4f5ea.wgsl index 57d2353efd..b83d5d184c 100644 --- a/test/intrinsics/gen/textureNumLevels/b4f5ea.wgsl +++ b/test/builtins/gen/textureNumLevels/b4f5ea.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/b4f5ea.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/b4f5ea.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/b4f5ea.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/b4f5ea.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/b4f5ea.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/b4f5ea.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/b4f5ea.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/b4f5ea.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/b4f5ea.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/b4f5ea.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/b4f5ea.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/b4f5ea.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/b4f5ea.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/b4f5ea.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/b4f5ea.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/b4f5ea.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/b4f5ea.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/b4f5ea.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/b4f5ea.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/b4f5ea.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/d004a9.wgsl b/test/builtins/gen/textureNumLevels/d004a9.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/d004a9.wgsl rename to test/builtins/gen/textureNumLevels/d004a9.wgsl index 862bc8d779..11cd5ec320 100644 --- a/test/intrinsics/gen/textureNumLevels/d004a9.wgsl +++ b/test/builtins/gen/textureNumLevels/d004a9.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/d004a9.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/d004a9.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/d004a9.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/d004a9.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/d004a9.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/d004a9.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/d004a9.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/d004a9.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/d004a9.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/d004a9.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/d004a9.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/d004a9.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/d004a9.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/d004a9.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/d004a9.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/d004a9.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/d004a9.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/d004a9.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/d004a9.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/d004a9.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/dca09e.wgsl b/test/builtins/gen/textureNumLevels/dca09e.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/dca09e.wgsl rename to test/builtins/gen/textureNumLevels/dca09e.wgsl index 85fb619609..69431a61a9 100644 --- a/test/intrinsics/gen/textureNumLevels/dca09e.wgsl +++ b/test/builtins/gen/textureNumLevels/dca09e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/dca09e.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/dca09e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/dca09e.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/dca09e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/dca09e.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/dca09e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/dca09e.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/dca09e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/dca09e.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/dca09e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/dca09e.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/dca09e.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/dca09e.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/dca09e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/dca09e.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/dca09e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/dca09e.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/dca09e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/dca09e.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/dca09e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/e67231.wgsl b/test/builtins/gen/textureNumLevels/e67231.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/e67231.wgsl rename to test/builtins/gen/textureNumLevels/e67231.wgsl index 05f8db01cd..1f965ba3cf 100644 --- a/test/intrinsics/gen/textureNumLevels/e67231.wgsl +++ b/test/builtins/gen/textureNumLevels/e67231.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/e67231.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/e67231.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/e67231.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/e67231.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/e67231.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/e67231.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/e67231.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/e67231.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/e67231.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/e67231.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/e67231.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/e67231.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/e67231.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/e67231.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/e67231.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/e67231.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/e67231.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/e67231.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/e67231.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/e67231.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/ed078b.wgsl b/test/builtins/gen/textureNumLevels/ed078b.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/ed078b.wgsl rename to test/builtins/gen/textureNumLevels/ed078b.wgsl index 76ac64c793..d9a83206b1 100644 --- a/test/intrinsics/gen/textureNumLevels/ed078b.wgsl +++ b/test/builtins/gen/textureNumLevels/ed078b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/ed078b.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/ed078b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/ed078b.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/ed078b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/ed078b.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/ed078b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/ed078b.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/ed078b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/ed078b.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/ed078b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/ed078b.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/ed078b.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/ed078b.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/ed078b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/ed078b.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/ed078b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/ed078b.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/ed078b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/ed078b.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/ed078b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/f46ec6.wgsl b/test/builtins/gen/textureNumLevels/f46ec6.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/f46ec6.wgsl rename to test/builtins/gen/textureNumLevels/f46ec6.wgsl index 10ccf4e00b..ed727a02f6 100644 --- a/test/intrinsics/gen/textureNumLevels/f46ec6.wgsl +++ b/test/builtins/gen/textureNumLevels/f46ec6.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/f46ec6.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/f46ec6.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/f46ec6.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/f46ec6.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/f46ec6.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/f46ec6.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/f46ec6.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/f46ec6.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/f46ec6.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/f46ec6.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/f46ec6.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/f46ec6.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/f46ec6.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/f46ec6.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/f46ec6.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/f46ec6.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/f46ec6.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/f46ec6.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/f46ec6.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/f46ec6.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumLevels/f5828d.wgsl b/test/builtins/gen/textureNumLevels/f5828d.wgsl similarity index 89% rename from test/intrinsics/gen/textureNumLevels/f5828d.wgsl rename to test/builtins/gen/textureNumLevels/f5828d.wgsl index bdfcc52065..3619b7cdd4 100644 --- a/test/intrinsics/gen/textureNumLevels/f5828d.wgsl +++ b/test/builtins/gen/textureNumLevels/f5828d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumLevels/f5828d.wgsl.expected.glsl b/test/builtins/gen/textureNumLevels/f5828d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/f5828d.wgsl.expected.glsl rename to test/builtins/gen/textureNumLevels/f5828d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumLevels/f5828d.wgsl.expected.hlsl b/test/builtins/gen/textureNumLevels/f5828d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/f5828d.wgsl.expected.hlsl rename to test/builtins/gen/textureNumLevels/f5828d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumLevels/f5828d.wgsl.expected.msl b/test/builtins/gen/textureNumLevels/f5828d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/f5828d.wgsl.expected.msl rename to test/builtins/gen/textureNumLevels/f5828d.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumLevels/f5828d.wgsl.expected.spvasm b/test/builtins/gen/textureNumLevels/f5828d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumLevels/f5828d.wgsl.expected.spvasm rename to test/builtins/gen/textureNumLevels/f5828d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumLevels/f5828d.wgsl.expected.wgsl b/test/builtins/gen/textureNumLevels/f5828d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumLevels/f5828d.wgsl.expected.wgsl rename to test/builtins/gen/textureNumLevels/f5828d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumSamples/2c6f14.wgsl b/test/builtins/gen/textureNumSamples/2c6f14.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumSamples/2c6f14.wgsl rename to test/builtins/gen/textureNumSamples/2c6f14.wgsl index 8a28fd4cdc..327bfce065 100644 --- a/test/intrinsics/gen/textureNumSamples/2c6f14.wgsl +++ b/test/builtins/gen/textureNumSamples/2c6f14.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumSamples/2c6f14.wgsl.expected.glsl b/test/builtins/gen/textureNumSamples/2c6f14.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumSamples/2c6f14.wgsl.expected.glsl rename to test/builtins/gen/textureNumSamples/2c6f14.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumSamples/2c6f14.wgsl.expected.hlsl b/test/builtins/gen/textureNumSamples/2c6f14.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumSamples/2c6f14.wgsl.expected.hlsl rename to test/builtins/gen/textureNumSamples/2c6f14.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumSamples/2c6f14.wgsl.expected.msl b/test/builtins/gen/textureNumSamples/2c6f14.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumSamples/2c6f14.wgsl.expected.msl rename to test/builtins/gen/textureNumSamples/2c6f14.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumSamples/2c6f14.wgsl.expected.spvasm b/test/builtins/gen/textureNumSamples/2c6f14.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumSamples/2c6f14.wgsl.expected.spvasm rename to test/builtins/gen/textureNumSamples/2c6f14.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumSamples/2c6f14.wgsl.expected.wgsl b/test/builtins/gen/textureNumSamples/2c6f14.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumSamples/2c6f14.wgsl.expected.wgsl rename to test/builtins/gen/textureNumSamples/2c6f14.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumSamples/42f8bb.wgsl b/test/builtins/gen/textureNumSamples/42f8bb.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumSamples/42f8bb.wgsl rename to test/builtins/gen/textureNumSamples/42f8bb.wgsl index 143f3a8951..3e64eddc08 100644 --- a/test/intrinsics/gen/textureNumSamples/42f8bb.wgsl +++ b/test/builtins/gen/textureNumSamples/42f8bb.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumSamples/42f8bb.wgsl.expected.glsl b/test/builtins/gen/textureNumSamples/42f8bb.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumSamples/42f8bb.wgsl.expected.glsl rename to test/builtins/gen/textureNumSamples/42f8bb.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumSamples/42f8bb.wgsl.expected.hlsl b/test/builtins/gen/textureNumSamples/42f8bb.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumSamples/42f8bb.wgsl.expected.hlsl rename to test/builtins/gen/textureNumSamples/42f8bb.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumSamples/42f8bb.wgsl.expected.msl b/test/builtins/gen/textureNumSamples/42f8bb.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumSamples/42f8bb.wgsl.expected.msl rename to test/builtins/gen/textureNumSamples/42f8bb.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumSamples/42f8bb.wgsl.expected.spvasm b/test/builtins/gen/textureNumSamples/42f8bb.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumSamples/42f8bb.wgsl.expected.spvasm rename to test/builtins/gen/textureNumSamples/42f8bb.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumSamples/42f8bb.wgsl.expected.wgsl b/test/builtins/gen/textureNumSamples/42f8bb.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumSamples/42f8bb.wgsl.expected.wgsl rename to test/builtins/gen/textureNumSamples/42f8bb.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumSamples/449d23.wgsl b/test/builtins/gen/textureNumSamples/449d23.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumSamples/449d23.wgsl rename to test/builtins/gen/textureNumSamples/449d23.wgsl index c34a440c78..51be43aed8 100644 --- a/test/intrinsics/gen/textureNumSamples/449d23.wgsl +++ b/test/builtins/gen/textureNumSamples/449d23.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumSamples/449d23.wgsl.expected.glsl b/test/builtins/gen/textureNumSamples/449d23.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumSamples/449d23.wgsl.expected.glsl rename to test/builtins/gen/textureNumSamples/449d23.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumSamples/449d23.wgsl.expected.hlsl b/test/builtins/gen/textureNumSamples/449d23.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumSamples/449d23.wgsl.expected.hlsl rename to test/builtins/gen/textureNumSamples/449d23.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumSamples/449d23.wgsl.expected.msl b/test/builtins/gen/textureNumSamples/449d23.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumSamples/449d23.wgsl.expected.msl rename to test/builtins/gen/textureNumSamples/449d23.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumSamples/449d23.wgsl.expected.spvasm b/test/builtins/gen/textureNumSamples/449d23.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumSamples/449d23.wgsl.expected.spvasm rename to test/builtins/gen/textureNumSamples/449d23.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumSamples/449d23.wgsl.expected.wgsl b/test/builtins/gen/textureNumSamples/449d23.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumSamples/449d23.wgsl.expected.wgsl rename to test/builtins/gen/textureNumSamples/449d23.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureNumSamples/a3c8a0.wgsl b/test/builtins/gen/textureNumSamples/a3c8a0.wgsl similarity index 90% rename from test/intrinsics/gen/textureNumSamples/a3c8a0.wgsl rename to test/builtins/gen/textureNumSamples/a3c8a0.wgsl index bafea1aae3..f0f05fd11e 100644 --- a/test/intrinsics/gen/textureNumSamples/a3c8a0.wgsl +++ b/test/builtins/gen/textureNumSamples/a3c8a0.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureNumSamples/a3c8a0.wgsl.expected.glsl b/test/builtins/gen/textureNumSamples/a3c8a0.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureNumSamples/a3c8a0.wgsl.expected.glsl rename to test/builtins/gen/textureNumSamples/a3c8a0.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureNumSamples/a3c8a0.wgsl.expected.hlsl b/test/builtins/gen/textureNumSamples/a3c8a0.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureNumSamples/a3c8a0.wgsl.expected.hlsl rename to test/builtins/gen/textureNumSamples/a3c8a0.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureNumSamples/a3c8a0.wgsl.expected.msl b/test/builtins/gen/textureNumSamples/a3c8a0.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureNumSamples/a3c8a0.wgsl.expected.msl rename to test/builtins/gen/textureNumSamples/a3c8a0.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureNumSamples/a3c8a0.wgsl.expected.spvasm b/test/builtins/gen/textureNumSamples/a3c8a0.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureNumSamples/a3c8a0.wgsl.expected.spvasm rename to test/builtins/gen/textureNumSamples/a3c8a0.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureNumSamples/a3c8a0.wgsl.expected.wgsl b/test/builtins/gen/textureNumSamples/a3c8a0.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureNumSamples/a3c8a0.wgsl.expected.wgsl rename to test/builtins/gen/textureNumSamples/a3c8a0.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSample/02aa9b.wgsl b/test/builtins/gen/textureSample/02aa9b.wgsl similarity index 89% rename from test/intrinsics/gen/textureSample/02aa9b.wgsl rename to test/builtins/gen/textureSample/02aa9b.wgsl index 006a838851..f5070fcb44 100644 --- a/test/intrinsics/gen/textureSample/02aa9b.wgsl +++ b/test/builtins/gen/textureSample/02aa9b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSample/02aa9b.wgsl.expected.glsl b/test/builtins/gen/textureSample/02aa9b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSample/02aa9b.wgsl.expected.glsl rename to test/builtins/gen/textureSample/02aa9b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSample/02aa9b.wgsl.expected.hlsl b/test/builtins/gen/textureSample/02aa9b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSample/02aa9b.wgsl.expected.hlsl rename to test/builtins/gen/textureSample/02aa9b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSample/02aa9b.wgsl.expected.msl b/test/builtins/gen/textureSample/02aa9b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSample/02aa9b.wgsl.expected.msl rename to test/builtins/gen/textureSample/02aa9b.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSample/02aa9b.wgsl.expected.spvasm b/test/builtins/gen/textureSample/02aa9b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSample/02aa9b.wgsl.expected.spvasm rename to test/builtins/gen/textureSample/02aa9b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSample/02aa9b.wgsl.expected.wgsl b/test/builtins/gen/textureSample/02aa9b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSample/02aa9b.wgsl.expected.wgsl rename to test/builtins/gen/textureSample/02aa9b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSample/100dc0.wgsl b/test/builtins/gen/textureSample/100dc0.wgsl similarity index 89% rename from test/intrinsics/gen/textureSample/100dc0.wgsl rename to test/builtins/gen/textureSample/100dc0.wgsl index a5f95e7da2..3bf6d64f5e 100644 --- a/test/intrinsics/gen/textureSample/100dc0.wgsl +++ b/test/builtins/gen/textureSample/100dc0.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSample/100dc0.wgsl.expected.glsl b/test/builtins/gen/textureSample/100dc0.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSample/100dc0.wgsl.expected.glsl rename to test/builtins/gen/textureSample/100dc0.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSample/100dc0.wgsl.expected.hlsl b/test/builtins/gen/textureSample/100dc0.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSample/100dc0.wgsl.expected.hlsl rename to test/builtins/gen/textureSample/100dc0.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSample/100dc0.wgsl.expected.msl b/test/builtins/gen/textureSample/100dc0.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSample/100dc0.wgsl.expected.msl rename to test/builtins/gen/textureSample/100dc0.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSample/100dc0.wgsl.expected.spvasm b/test/builtins/gen/textureSample/100dc0.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSample/100dc0.wgsl.expected.spvasm rename to test/builtins/gen/textureSample/100dc0.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSample/100dc0.wgsl.expected.wgsl b/test/builtins/gen/textureSample/100dc0.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSample/100dc0.wgsl.expected.wgsl rename to test/builtins/gen/textureSample/100dc0.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSample/38bbb9.wgsl b/test/builtins/gen/textureSample/38bbb9.wgsl similarity index 88% rename from test/intrinsics/gen/textureSample/38bbb9.wgsl rename to test/builtins/gen/textureSample/38bbb9.wgsl index ee2abbd8bf..cf78f1e438 100644 --- a/test/intrinsics/gen/textureSample/38bbb9.wgsl +++ b/test/builtins/gen/textureSample/38bbb9.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSample/38bbb9.wgsl.expected.glsl b/test/builtins/gen/textureSample/38bbb9.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSample/38bbb9.wgsl.expected.glsl rename to test/builtins/gen/textureSample/38bbb9.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSample/38bbb9.wgsl.expected.hlsl b/test/builtins/gen/textureSample/38bbb9.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSample/38bbb9.wgsl.expected.hlsl rename to test/builtins/gen/textureSample/38bbb9.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSample/38bbb9.wgsl.expected.msl b/test/builtins/gen/textureSample/38bbb9.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSample/38bbb9.wgsl.expected.msl rename to test/builtins/gen/textureSample/38bbb9.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSample/38bbb9.wgsl.expected.spvasm b/test/builtins/gen/textureSample/38bbb9.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSample/38bbb9.wgsl.expected.spvasm rename to test/builtins/gen/textureSample/38bbb9.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSample/38bbb9.wgsl.expected.wgsl b/test/builtins/gen/textureSample/38bbb9.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSample/38bbb9.wgsl.expected.wgsl rename to test/builtins/gen/textureSample/38bbb9.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSample/3b50bd.wgsl b/test/builtins/gen/textureSample/3b50bd.wgsl similarity index 89% rename from test/intrinsics/gen/textureSample/3b50bd.wgsl rename to test/builtins/gen/textureSample/3b50bd.wgsl index 0c0b55f3b8..1e6fcfa5dd 100644 --- a/test/intrinsics/gen/textureSample/3b50bd.wgsl +++ b/test/builtins/gen/textureSample/3b50bd.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSample/3b50bd.wgsl.expected.glsl b/test/builtins/gen/textureSample/3b50bd.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSample/3b50bd.wgsl.expected.glsl rename to test/builtins/gen/textureSample/3b50bd.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSample/3b50bd.wgsl.expected.hlsl b/test/builtins/gen/textureSample/3b50bd.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSample/3b50bd.wgsl.expected.hlsl rename to test/builtins/gen/textureSample/3b50bd.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSample/3b50bd.wgsl.expected.msl b/test/builtins/gen/textureSample/3b50bd.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSample/3b50bd.wgsl.expected.msl rename to test/builtins/gen/textureSample/3b50bd.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSample/3b50bd.wgsl.expected.spvasm b/test/builtins/gen/textureSample/3b50bd.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSample/3b50bd.wgsl.expected.spvasm rename to test/builtins/gen/textureSample/3b50bd.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSample/3b50bd.wgsl.expected.wgsl b/test/builtins/gen/textureSample/3b50bd.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSample/3b50bd.wgsl.expected.wgsl rename to test/builtins/gen/textureSample/3b50bd.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSample/4dd1bf.wgsl b/test/builtins/gen/textureSample/4dd1bf.wgsl similarity index 89% rename from test/intrinsics/gen/textureSample/4dd1bf.wgsl rename to test/builtins/gen/textureSample/4dd1bf.wgsl index f722cd1109..e4d0327af4 100644 --- a/test/intrinsics/gen/textureSample/4dd1bf.wgsl +++ b/test/builtins/gen/textureSample/4dd1bf.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSample/4dd1bf.wgsl.expected.glsl b/test/builtins/gen/textureSample/4dd1bf.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSample/4dd1bf.wgsl.expected.glsl rename to test/builtins/gen/textureSample/4dd1bf.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSample/4dd1bf.wgsl.expected.hlsl b/test/builtins/gen/textureSample/4dd1bf.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSample/4dd1bf.wgsl.expected.hlsl rename to test/builtins/gen/textureSample/4dd1bf.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSample/4dd1bf.wgsl.expected.msl b/test/builtins/gen/textureSample/4dd1bf.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSample/4dd1bf.wgsl.expected.msl rename to test/builtins/gen/textureSample/4dd1bf.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSample/4dd1bf.wgsl.expected.spvasm b/test/builtins/gen/textureSample/4dd1bf.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSample/4dd1bf.wgsl.expected.spvasm rename to test/builtins/gen/textureSample/4dd1bf.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSample/4dd1bf.wgsl.expected.wgsl b/test/builtins/gen/textureSample/4dd1bf.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSample/4dd1bf.wgsl.expected.wgsl rename to test/builtins/gen/textureSample/4dd1bf.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSample/51b514.wgsl b/test/builtins/gen/textureSample/51b514.wgsl similarity index 89% rename from test/intrinsics/gen/textureSample/51b514.wgsl rename to test/builtins/gen/textureSample/51b514.wgsl index 54334606b1..4c3b2da40f 100644 --- a/test/intrinsics/gen/textureSample/51b514.wgsl +++ b/test/builtins/gen/textureSample/51b514.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSample/51b514.wgsl.expected.glsl b/test/builtins/gen/textureSample/51b514.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSample/51b514.wgsl.expected.glsl rename to test/builtins/gen/textureSample/51b514.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSample/51b514.wgsl.expected.hlsl b/test/builtins/gen/textureSample/51b514.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSample/51b514.wgsl.expected.hlsl rename to test/builtins/gen/textureSample/51b514.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSample/51b514.wgsl.expected.msl b/test/builtins/gen/textureSample/51b514.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSample/51b514.wgsl.expected.msl rename to test/builtins/gen/textureSample/51b514.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSample/51b514.wgsl.expected.spvasm b/test/builtins/gen/textureSample/51b514.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSample/51b514.wgsl.expected.spvasm rename to test/builtins/gen/textureSample/51b514.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSample/51b514.wgsl.expected.wgsl b/test/builtins/gen/textureSample/51b514.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSample/51b514.wgsl.expected.wgsl rename to test/builtins/gen/textureSample/51b514.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSample/667d76.wgsl b/test/builtins/gen/textureSample/667d76.wgsl similarity index 89% rename from test/intrinsics/gen/textureSample/667d76.wgsl rename to test/builtins/gen/textureSample/667d76.wgsl index 23d98a9321..387a0bf144 100644 --- a/test/intrinsics/gen/textureSample/667d76.wgsl +++ b/test/builtins/gen/textureSample/667d76.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSample/667d76.wgsl.expected.glsl b/test/builtins/gen/textureSample/667d76.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSample/667d76.wgsl.expected.glsl rename to test/builtins/gen/textureSample/667d76.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSample/667d76.wgsl.expected.hlsl b/test/builtins/gen/textureSample/667d76.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSample/667d76.wgsl.expected.hlsl rename to test/builtins/gen/textureSample/667d76.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSample/667d76.wgsl.expected.msl b/test/builtins/gen/textureSample/667d76.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSample/667d76.wgsl.expected.msl rename to test/builtins/gen/textureSample/667d76.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSample/667d76.wgsl.expected.spvasm b/test/builtins/gen/textureSample/667d76.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSample/667d76.wgsl.expected.spvasm rename to test/builtins/gen/textureSample/667d76.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSample/667d76.wgsl.expected.wgsl b/test/builtins/gen/textureSample/667d76.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSample/667d76.wgsl.expected.wgsl rename to test/builtins/gen/textureSample/667d76.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSample/6717ca.wgsl b/test/builtins/gen/textureSample/6717ca.wgsl similarity index 89% rename from test/intrinsics/gen/textureSample/6717ca.wgsl rename to test/builtins/gen/textureSample/6717ca.wgsl index fc09cca1c5..85157ddc88 100644 --- a/test/intrinsics/gen/textureSample/6717ca.wgsl +++ b/test/builtins/gen/textureSample/6717ca.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSample/6717ca.wgsl.expected.glsl b/test/builtins/gen/textureSample/6717ca.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSample/6717ca.wgsl.expected.glsl rename to test/builtins/gen/textureSample/6717ca.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSample/6717ca.wgsl.expected.hlsl b/test/builtins/gen/textureSample/6717ca.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSample/6717ca.wgsl.expected.hlsl rename to test/builtins/gen/textureSample/6717ca.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSample/6717ca.wgsl.expected.msl b/test/builtins/gen/textureSample/6717ca.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSample/6717ca.wgsl.expected.msl rename to test/builtins/gen/textureSample/6717ca.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSample/6717ca.wgsl.expected.spvasm b/test/builtins/gen/textureSample/6717ca.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSample/6717ca.wgsl.expected.spvasm rename to test/builtins/gen/textureSample/6717ca.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSample/6717ca.wgsl.expected.wgsl b/test/builtins/gen/textureSample/6717ca.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSample/6717ca.wgsl.expected.wgsl rename to test/builtins/gen/textureSample/6717ca.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSample/6e64fb.wgsl b/test/builtins/gen/textureSample/6e64fb.wgsl similarity index 88% rename from test/intrinsics/gen/textureSample/6e64fb.wgsl rename to test/builtins/gen/textureSample/6e64fb.wgsl index d49bb9c491..e1277dcd99 100644 --- a/test/intrinsics/gen/textureSample/6e64fb.wgsl +++ b/test/builtins/gen/textureSample/6e64fb.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSample/6e64fb.wgsl.expected.glsl b/test/builtins/gen/textureSample/6e64fb.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSample/6e64fb.wgsl.expected.glsl rename to test/builtins/gen/textureSample/6e64fb.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSample/6e64fb.wgsl.expected.hlsl b/test/builtins/gen/textureSample/6e64fb.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSample/6e64fb.wgsl.expected.hlsl rename to test/builtins/gen/textureSample/6e64fb.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSample/6e64fb.wgsl.expected.msl b/test/builtins/gen/textureSample/6e64fb.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSample/6e64fb.wgsl.expected.msl rename to test/builtins/gen/textureSample/6e64fb.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSample/6e64fb.wgsl.expected.spvasm b/test/builtins/gen/textureSample/6e64fb.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSample/6e64fb.wgsl.expected.spvasm rename to test/builtins/gen/textureSample/6e64fb.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSample/6e64fb.wgsl.expected.wgsl b/test/builtins/gen/textureSample/6e64fb.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSample/6e64fb.wgsl.expected.wgsl rename to test/builtins/gen/textureSample/6e64fb.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSample/7c3baa.wgsl b/test/builtins/gen/textureSample/7c3baa.wgsl similarity index 89% rename from test/intrinsics/gen/textureSample/7c3baa.wgsl rename to test/builtins/gen/textureSample/7c3baa.wgsl index 9f32596e53..571ae075df 100644 --- a/test/intrinsics/gen/textureSample/7c3baa.wgsl +++ b/test/builtins/gen/textureSample/7c3baa.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSample/7c3baa.wgsl.expected.glsl b/test/builtins/gen/textureSample/7c3baa.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSample/7c3baa.wgsl.expected.glsl rename to test/builtins/gen/textureSample/7c3baa.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSample/7c3baa.wgsl.expected.hlsl b/test/builtins/gen/textureSample/7c3baa.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSample/7c3baa.wgsl.expected.hlsl rename to test/builtins/gen/textureSample/7c3baa.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSample/7c3baa.wgsl.expected.msl b/test/builtins/gen/textureSample/7c3baa.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSample/7c3baa.wgsl.expected.msl rename to test/builtins/gen/textureSample/7c3baa.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSample/7c3baa.wgsl.expected.spvasm b/test/builtins/gen/textureSample/7c3baa.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSample/7c3baa.wgsl.expected.spvasm rename to test/builtins/gen/textureSample/7c3baa.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSample/7c3baa.wgsl.expected.wgsl b/test/builtins/gen/textureSample/7c3baa.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSample/7c3baa.wgsl.expected.wgsl rename to test/builtins/gen/textureSample/7c3baa.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSample/7e9ffd.wgsl b/test/builtins/gen/textureSample/7e9ffd.wgsl similarity index 89% rename from test/intrinsics/gen/textureSample/7e9ffd.wgsl rename to test/builtins/gen/textureSample/7e9ffd.wgsl index d5242f6fe0..f6b9fd62fe 100644 --- a/test/intrinsics/gen/textureSample/7e9ffd.wgsl +++ b/test/builtins/gen/textureSample/7e9ffd.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSample/7e9ffd.wgsl.expected.glsl b/test/builtins/gen/textureSample/7e9ffd.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSample/7e9ffd.wgsl.expected.glsl rename to test/builtins/gen/textureSample/7e9ffd.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSample/7e9ffd.wgsl.expected.hlsl b/test/builtins/gen/textureSample/7e9ffd.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSample/7e9ffd.wgsl.expected.hlsl rename to test/builtins/gen/textureSample/7e9ffd.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSample/7e9ffd.wgsl.expected.msl b/test/builtins/gen/textureSample/7e9ffd.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSample/7e9ffd.wgsl.expected.msl rename to test/builtins/gen/textureSample/7e9ffd.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSample/7e9ffd.wgsl.expected.spvasm b/test/builtins/gen/textureSample/7e9ffd.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSample/7e9ffd.wgsl.expected.spvasm rename to test/builtins/gen/textureSample/7e9ffd.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSample/7e9ffd.wgsl.expected.wgsl b/test/builtins/gen/textureSample/7e9ffd.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSample/7e9ffd.wgsl.expected.wgsl rename to test/builtins/gen/textureSample/7e9ffd.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSample/8522e7.wgsl b/test/builtins/gen/textureSample/8522e7.wgsl similarity index 89% rename from test/intrinsics/gen/textureSample/8522e7.wgsl rename to test/builtins/gen/textureSample/8522e7.wgsl index 2ac3071481..2121c79c04 100644 --- a/test/intrinsics/gen/textureSample/8522e7.wgsl +++ b/test/builtins/gen/textureSample/8522e7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSample/8522e7.wgsl.expected.glsl b/test/builtins/gen/textureSample/8522e7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSample/8522e7.wgsl.expected.glsl rename to test/builtins/gen/textureSample/8522e7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSample/8522e7.wgsl.expected.hlsl b/test/builtins/gen/textureSample/8522e7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSample/8522e7.wgsl.expected.hlsl rename to test/builtins/gen/textureSample/8522e7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSample/8522e7.wgsl.expected.msl b/test/builtins/gen/textureSample/8522e7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSample/8522e7.wgsl.expected.msl rename to test/builtins/gen/textureSample/8522e7.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSample/8522e7.wgsl.expected.spvasm b/test/builtins/gen/textureSample/8522e7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSample/8522e7.wgsl.expected.spvasm rename to test/builtins/gen/textureSample/8522e7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSample/8522e7.wgsl.expected.wgsl b/test/builtins/gen/textureSample/8522e7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSample/8522e7.wgsl.expected.wgsl rename to test/builtins/gen/textureSample/8522e7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSample/c2f4e8.wgsl b/test/builtins/gen/textureSample/c2f4e8.wgsl similarity index 89% rename from test/intrinsics/gen/textureSample/c2f4e8.wgsl rename to test/builtins/gen/textureSample/c2f4e8.wgsl index e6c03a1f7c..504966c576 100644 --- a/test/intrinsics/gen/textureSample/c2f4e8.wgsl +++ b/test/builtins/gen/textureSample/c2f4e8.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSample/c2f4e8.wgsl.expected.glsl b/test/builtins/gen/textureSample/c2f4e8.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSample/c2f4e8.wgsl.expected.glsl rename to test/builtins/gen/textureSample/c2f4e8.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSample/c2f4e8.wgsl.expected.hlsl b/test/builtins/gen/textureSample/c2f4e8.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSample/c2f4e8.wgsl.expected.hlsl rename to test/builtins/gen/textureSample/c2f4e8.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSample/c2f4e8.wgsl.expected.msl b/test/builtins/gen/textureSample/c2f4e8.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSample/c2f4e8.wgsl.expected.msl rename to test/builtins/gen/textureSample/c2f4e8.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSample/c2f4e8.wgsl.expected.spvasm b/test/builtins/gen/textureSample/c2f4e8.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSample/c2f4e8.wgsl.expected.spvasm rename to test/builtins/gen/textureSample/c2f4e8.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSample/c2f4e8.wgsl.expected.wgsl b/test/builtins/gen/textureSample/c2f4e8.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSample/c2f4e8.wgsl.expected.wgsl rename to test/builtins/gen/textureSample/c2f4e8.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSample/e53267.wgsl b/test/builtins/gen/textureSample/e53267.wgsl similarity index 89% rename from test/intrinsics/gen/textureSample/e53267.wgsl rename to test/builtins/gen/textureSample/e53267.wgsl index 6ac4cd6a89..f4611dbfa0 100644 --- a/test/intrinsics/gen/textureSample/e53267.wgsl +++ b/test/builtins/gen/textureSample/e53267.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSample/e53267.wgsl.expected.glsl b/test/builtins/gen/textureSample/e53267.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSample/e53267.wgsl.expected.glsl rename to test/builtins/gen/textureSample/e53267.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSample/e53267.wgsl.expected.hlsl b/test/builtins/gen/textureSample/e53267.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSample/e53267.wgsl.expected.hlsl rename to test/builtins/gen/textureSample/e53267.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSample/e53267.wgsl.expected.msl b/test/builtins/gen/textureSample/e53267.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSample/e53267.wgsl.expected.msl rename to test/builtins/gen/textureSample/e53267.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSample/e53267.wgsl.expected.spvasm b/test/builtins/gen/textureSample/e53267.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSample/e53267.wgsl.expected.spvasm rename to test/builtins/gen/textureSample/e53267.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSample/e53267.wgsl.expected.wgsl b/test/builtins/gen/textureSample/e53267.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSample/e53267.wgsl.expected.wgsl rename to test/builtins/gen/textureSample/e53267.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSample/ea7030.wgsl b/test/builtins/gen/textureSample/ea7030.wgsl similarity index 88% rename from test/intrinsics/gen/textureSample/ea7030.wgsl rename to test/builtins/gen/textureSample/ea7030.wgsl index 482686a194..ae40c4e9ee 100644 --- a/test/intrinsics/gen/textureSample/ea7030.wgsl +++ b/test/builtins/gen/textureSample/ea7030.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSample/ea7030.wgsl.expected.glsl b/test/builtins/gen/textureSample/ea7030.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSample/ea7030.wgsl.expected.glsl rename to test/builtins/gen/textureSample/ea7030.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSample/ea7030.wgsl.expected.hlsl b/test/builtins/gen/textureSample/ea7030.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSample/ea7030.wgsl.expected.hlsl rename to test/builtins/gen/textureSample/ea7030.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSample/ea7030.wgsl.expected.msl b/test/builtins/gen/textureSample/ea7030.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSample/ea7030.wgsl.expected.msl rename to test/builtins/gen/textureSample/ea7030.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSample/ea7030.wgsl.expected.spvasm b/test/builtins/gen/textureSample/ea7030.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSample/ea7030.wgsl.expected.spvasm rename to test/builtins/gen/textureSample/ea7030.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSample/ea7030.wgsl.expected.wgsl b/test/builtins/gen/textureSample/ea7030.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSample/ea7030.wgsl.expected.wgsl rename to test/builtins/gen/textureSample/ea7030.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleBias/53b9f7.wgsl b/test/builtins/gen/textureSampleBias/53b9f7.wgsl similarity index 89% rename from test/intrinsics/gen/textureSampleBias/53b9f7.wgsl rename to test/builtins/gen/textureSampleBias/53b9f7.wgsl index 17b3557f62..14f0a89762 100644 --- a/test/intrinsics/gen/textureSampleBias/53b9f7.wgsl +++ b/test/builtins/gen/textureSampleBias/53b9f7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleBias/53b9f7.wgsl.expected.glsl b/test/builtins/gen/textureSampleBias/53b9f7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/53b9f7.wgsl.expected.glsl rename to test/builtins/gen/textureSampleBias/53b9f7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleBias/53b9f7.wgsl.expected.hlsl b/test/builtins/gen/textureSampleBias/53b9f7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/53b9f7.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleBias/53b9f7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleBias/53b9f7.wgsl.expected.msl b/test/builtins/gen/textureSampleBias/53b9f7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/53b9f7.wgsl.expected.msl rename to test/builtins/gen/textureSampleBias/53b9f7.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleBias/53b9f7.wgsl.expected.spvasm b/test/builtins/gen/textureSampleBias/53b9f7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleBias/53b9f7.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleBias/53b9f7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleBias/53b9f7.wgsl.expected.wgsl b/test/builtins/gen/textureSampleBias/53b9f7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/53b9f7.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleBias/53b9f7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleBias/65ac50.wgsl b/test/builtins/gen/textureSampleBias/65ac50.wgsl similarity index 89% rename from test/intrinsics/gen/textureSampleBias/65ac50.wgsl rename to test/builtins/gen/textureSampleBias/65ac50.wgsl index 5a95380b4e..1fdb3071a1 100644 --- a/test/intrinsics/gen/textureSampleBias/65ac50.wgsl +++ b/test/builtins/gen/textureSampleBias/65ac50.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleBias/65ac50.wgsl.expected.glsl b/test/builtins/gen/textureSampleBias/65ac50.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/65ac50.wgsl.expected.glsl rename to test/builtins/gen/textureSampleBias/65ac50.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleBias/65ac50.wgsl.expected.hlsl b/test/builtins/gen/textureSampleBias/65ac50.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/65ac50.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleBias/65ac50.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleBias/65ac50.wgsl.expected.msl b/test/builtins/gen/textureSampleBias/65ac50.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/65ac50.wgsl.expected.msl rename to test/builtins/gen/textureSampleBias/65ac50.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleBias/65ac50.wgsl.expected.spvasm b/test/builtins/gen/textureSampleBias/65ac50.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleBias/65ac50.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleBias/65ac50.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleBias/65ac50.wgsl.expected.wgsl b/test/builtins/gen/textureSampleBias/65ac50.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/65ac50.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleBias/65ac50.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleBias/6a9113.wgsl b/test/builtins/gen/textureSampleBias/6a9113.wgsl similarity index 89% rename from test/intrinsics/gen/textureSampleBias/6a9113.wgsl rename to test/builtins/gen/textureSampleBias/6a9113.wgsl index 8c17b477ac..6d2e058b22 100644 --- a/test/intrinsics/gen/textureSampleBias/6a9113.wgsl +++ b/test/builtins/gen/textureSampleBias/6a9113.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleBias/6a9113.wgsl.expected.glsl b/test/builtins/gen/textureSampleBias/6a9113.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/6a9113.wgsl.expected.glsl rename to test/builtins/gen/textureSampleBias/6a9113.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleBias/6a9113.wgsl.expected.hlsl b/test/builtins/gen/textureSampleBias/6a9113.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/6a9113.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleBias/6a9113.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleBias/6a9113.wgsl.expected.msl b/test/builtins/gen/textureSampleBias/6a9113.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/6a9113.wgsl.expected.msl rename to test/builtins/gen/textureSampleBias/6a9113.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleBias/6a9113.wgsl.expected.spvasm b/test/builtins/gen/textureSampleBias/6a9113.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleBias/6a9113.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleBias/6a9113.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleBias/6a9113.wgsl.expected.wgsl b/test/builtins/gen/textureSampleBias/6a9113.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/6a9113.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleBias/6a9113.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleBias/80e579.wgsl b/test/builtins/gen/textureSampleBias/80e579.wgsl similarity index 89% rename from test/intrinsics/gen/textureSampleBias/80e579.wgsl rename to test/builtins/gen/textureSampleBias/80e579.wgsl index 0ae5cc84be..3fed9f3af1 100644 --- a/test/intrinsics/gen/textureSampleBias/80e579.wgsl +++ b/test/builtins/gen/textureSampleBias/80e579.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleBias/80e579.wgsl.expected.glsl b/test/builtins/gen/textureSampleBias/80e579.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/80e579.wgsl.expected.glsl rename to test/builtins/gen/textureSampleBias/80e579.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleBias/80e579.wgsl.expected.hlsl b/test/builtins/gen/textureSampleBias/80e579.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/80e579.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleBias/80e579.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleBias/80e579.wgsl.expected.msl b/test/builtins/gen/textureSampleBias/80e579.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/80e579.wgsl.expected.msl rename to test/builtins/gen/textureSampleBias/80e579.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleBias/80e579.wgsl.expected.spvasm b/test/builtins/gen/textureSampleBias/80e579.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleBias/80e579.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleBias/80e579.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleBias/80e579.wgsl.expected.wgsl b/test/builtins/gen/textureSampleBias/80e579.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/80e579.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleBias/80e579.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleBias/81c19a.wgsl b/test/builtins/gen/textureSampleBias/81c19a.wgsl similarity index 89% rename from test/intrinsics/gen/textureSampleBias/81c19a.wgsl rename to test/builtins/gen/textureSampleBias/81c19a.wgsl index f6f996f905..7bd26b4451 100644 --- a/test/intrinsics/gen/textureSampleBias/81c19a.wgsl +++ b/test/builtins/gen/textureSampleBias/81c19a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleBias/81c19a.wgsl.expected.glsl b/test/builtins/gen/textureSampleBias/81c19a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/81c19a.wgsl.expected.glsl rename to test/builtins/gen/textureSampleBias/81c19a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleBias/81c19a.wgsl.expected.hlsl b/test/builtins/gen/textureSampleBias/81c19a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/81c19a.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleBias/81c19a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleBias/81c19a.wgsl.expected.msl b/test/builtins/gen/textureSampleBias/81c19a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/81c19a.wgsl.expected.msl rename to test/builtins/gen/textureSampleBias/81c19a.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleBias/81c19a.wgsl.expected.spvasm b/test/builtins/gen/textureSampleBias/81c19a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleBias/81c19a.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleBias/81c19a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleBias/81c19a.wgsl.expected.wgsl b/test/builtins/gen/textureSampleBias/81c19a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/81c19a.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleBias/81c19a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleBias/d3fa1b.wgsl b/test/builtins/gen/textureSampleBias/d3fa1b.wgsl similarity index 89% rename from test/intrinsics/gen/textureSampleBias/d3fa1b.wgsl rename to test/builtins/gen/textureSampleBias/d3fa1b.wgsl index d70657e241..8eaa91d9ee 100644 --- a/test/intrinsics/gen/textureSampleBias/d3fa1b.wgsl +++ b/test/builtins/gen/textureSampleBias/d3fa1b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleBias/d3fa1b.wgsl.expected.glsl b/test/builtins/gen/textureSampleBias/d3fa1b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/d3fa1b.wgsl.expected.glsl rename to test/builtins/gen/textureSampleBias/d3fa1b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleBias/d3fa1b.wgsl.expected.hlsl b/test/builtins/gen/textureSampleBias/d3fa1b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/d3fa1b.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleBias/d3fa1b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleBias/d3fa1b.wgsl.expected.msl b/test/builtins/gen/textureSampleBias/d3fa1b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/d3fa1b.wgsl.expected.msl rename to test/builtins/gen/textureSampleBias/d3fa1b.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleBias/d3fa1b.wgsl.expected.spvasm b/test/builtins/gen/textureSampleBias/d3fa1b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleBias/d3fa1b.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleBias/d3fa1b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleBias/d3fa1b.wgsl.expected.wgsl b/test/builtins/gen/textureSampleBias/d3fa1b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/d3fa1b.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleBias/d3fa1b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleBias/df91bb.wgsl b/test/builtins/gen/textureSampleBias/df91bb.wgsl similarity index 89% rename from test/intrinsics/gen/textureSampleBias/df91bb.wgsl rename to test/builtins/gen/textureSampleBias/df91bb.wgsl index b35e5a4ef5..88b1003247 100644 --- a/test/intrinsics/gen/textureSampleBias/df91bb.wgsl +++ b/test/builtins/gen/textureSampleBias/df91bb.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleBias/df91bb.wgsl.expected.glsl b/test/builtins/gen/textureSampleBias/df91bb.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/df91bb.wgsl.expected.glsl rename to test/builtins/gen/textureSampleBias/df91bb.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleBias/df91bb.wgsl.expected.hlsl b/test/builtins/gen/textureSampleBias/df91bb.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/df91bb.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleBias/df91bb.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleBias/df91bb.wgsl.expected.msl b/test/builtins/gen/textureSampleBias/df91bb.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/df91bb.wgsl.expected.msl rename to test/builtins/gen/textureSampleBias/df91bb.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleBias/df91bb.wgsl.expected.spvasm b/test/builtins/gen/textureSampleBias/df91bb.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleBias/df91bb.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleBias/df91bb.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleBias/df91bb.wgsl.expected.wgsl b/test/builtins/gen/textureSampleBias/df91bb.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/df91bb.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleBias/df91bb.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleBias/eed7c4.wgsl b/test/builtins/gen/textureSampleBias/eed7c4.wgsl similarity index 89% rename from test/intrinsics/gen/textureSampleBias/eed7c4.wgsl rename to test/builtins/gen/textureSampleBias/eed7c4.wgsl index 408326aa9e..14a33075f2 100644 --- a/test/intrinsics/gen/textureSampleBias/eed7c4.wgsl +++ b/test/builtins/gen/textureSampleBias/eed7c4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleBias/eed7c4.wgsl.expected.glsl b/test/builtins/gen/textureSampleBias/eed7c4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/eed7c4.wgsl.expected.glsl rename to test/builtins/gen/textureSampleBias/eed7c4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleBias/eed7c4.wgsl.expected.hlsl b/test/builtins/gen/textureSampleBias/eed7c4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/eed7c4.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleBias/eed7c4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleBias/eed7c4.wgsl.expected.msl b/test/builtins/gen/textureSampleBias/eed7c4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/eed7c4.wgsl.expected.msl rename to test/builtins/gen/textureSampleBias/eed7c4.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleBias/eed7c4.wgsl.expected.spvasm b/test/builtins/gen/textureSampleBias/eed7c4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleBias/eed7c4.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleBias/eed7c4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleBias/eed7c4.wgsl.expected.wgsl b/test/builtins/gen/textureSampleBias/eed7c4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleBias/eed7c4.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleBias/eed7c4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleCompare/25fcd1.wgsl b/test/builtins/gen/textureSampleCompare/25fcd1.wgsl similarity index 89% rename from test/intrinsics/gen/textureSampleCompare/25fcd1.wgsl rename to test/builtins/gen/textureSampleCompare/25fcd1.wgsl index 3f6096a450..c72a430884 100644 --- a/test/intrinsics/gen/textureSampleCompare/25fcd1.wgsl +++ b/test/builtins/gen/textureSampleCompare/25fcd1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleCompare/25fcd1.wgsl.expected.glsl b/test/builtins/gen/textureSampleCompare/25fcd1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/25fcd1.wgsl.expected.glsl rename to test/builtins/gen/textureSampleCompare/25fcd1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleCompare/25fcd1.wgsl.expected.hlsl b/test/builtins/gen/textureSampleCompare/25fcd1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/25fcd1.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleCompare/25fcd1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleCompare/25fcd1.wgsl.expected.msl b/test/builtins/gen/textureSampleCompare/25fcd1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/25fcd1.wgsl.expected.msl rename to test/builtins/gen/textureSampleCompare/25fcd1.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleCompare/25fcd1.wgsl.expected.spvasm b/test/builtins/gen/textureSampleCompare/25fcd1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/25fcd1.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleCompare/25fcd1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleCompare/25fcd1.wgsl.expected.wgsl b/test/builtins/gen/textureSampleCompare/25fcd1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/25fcd1.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleCompare/25fcd1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleCompare/3a5923.wgsl b/test/builtins/gen/textureSampleCompare/3a5923.wgsl similarity index 89% rename from test/intrinsics/gen/textureSampleCompare/3a5923.wgsl rename to test/builtins/gen/textureSampleCompare/3a5923.wgsl index 1c2c30c445..39453fe142 100644 --- a/test/intrinsics/gen/textureSampleCompare/3a5923.wgsl +++ b/test/builtins/gen/textureSampleCompare/3a5923.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleCompare/3a5923.wgsl.expected.glsl b/test/builtins/gen/textureSampleCompare/3a5923.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/3a5923.wgsl.expected.glsl rename to test/builtins/gen/textureSampleCompare/3a5923.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleCompare/3a5923.wgsl.expected.hlsl b/test/builtins/gen/textureSampleCompare/3a5923.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/3a5923.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleCompare/3a5923.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleCompare/3a5923.wgsl.expected.msl b/test/builtins/gen/textureSampleCompare/3a5923.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/3a5923.wgsl.expected.msl rename to test/builtins/gen/textureSampleCompare/3a5923.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleCompare/3a5923.wgsl.expected.spvasm b/test/builtins/gen/textureSampleCompare/3a5923.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/3a5923.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleCompare/3a5923.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleCompare/3a5923.wgsl.expected.wgsl b/test/builtins/gen/textureSampleCompare/3a5923.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/3a5923.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleCompare/3a5923.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleCompare/63fb83.wgsl b/test/builtins/gen/textureSampleCompare/63fb83.wgsl similarity index 89% rename from test/intrinsics/gen/textureSampleCompare/63fb83.wgsl rename to test/builtins/gen/textureSampleCompare/63fb83.wgsl index 1accd53990..a056ddd580 100644 --- a/test/intrinsics/gen/textureSampleCompare/63fb83.wgsl +++ b/test/builtins/gen/textureSampleCompare/63fb83.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleCompare/63fb83.wgsl.expected.glsl b/test/builtins/gen/textureSampleCompare/63fb83.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/63fb83.wgsl.expected.glsl rename to test/builtins/gen/textureSampleCompare/63fb83.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleCompare/63fb83.wgsl.expected.hlsl b/test/builtins/gen/textureSampleCompare/63fb83.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/63fb83.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleCompare/63fb83.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleCompare/63fb83.wgsl.expected.msl b/test/builtins/gen/textureSampleCompare/63fb83.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/63fb83.wgsl.expected.msl rename to test/builtins/gen/textureSampleCompare/63fb83.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleCompare/63fb83.wgsl.expected.spvasm b/test/builtins/gen/textureSampleCompare/63fb83.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/63fb83.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleCompare/63fb83.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleCompare/63fb83.wgsl.expected.wgsl b/test/builtins/gen/textureSampleCompare/63fb83.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/63fb83.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleCompare/63fb83.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleCompare/98b85c.wgsl b/test/builtins/gen/textureSampleCompare/98b85c.wgsl similarity index 90% rename from test/intrinsics/gen/textureSampleCompare/98b85c.wgsl rename to test/builtins/gen/textureSampleCompare/98b85c.wgsl index 43552d78ff..2e8e5d9a83 100644 --- a/test/intrinsics/gen/textureSampleCompare/98b85c.wgsl +++ b/test/builtins/gen/textureSampleCompare/98b85c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleCompare/98b85c.wgsl.expected.glsl b/test/builtins/gen/textureSampleCompare/98b85c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/98b85c.wgsl.expected.glsl rename to test/builtins/gen/textureSampleCompare/98b85c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleCompare/98b85c.wgsl.expected.hlsl b/test/builtins/gen/textureSampleCompare/98b85c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/98b85c.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleCompare/98b85c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleCompare/98b85c.wgsl.expected.msl b/test/builtins/gen/textureSampleCompare/98b85c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/98b85c.wgsl.expected.msl rename to test/builtins/gen/textureSampleCompare/98b85c.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleCompare/98b85c.wgsl.expected.spvasm b/test/builtins/gen/textureSampleCompare/98b85c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/98b85c.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleCompare/98b85c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleCompare/98b85c.wgsl.expected.wgsl b/test/builtins/gen/textureSampleCompare/98b85c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/98b85c.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleCompare/98b85c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleCompare/a3ca7e.wgsl b/test/builtins/gen/textureSampleCompare/a3ca7e.wgsl similarity index 89% rename from test/intrinsics/gen/textureSampleCompare/a3ca7e.wgsl rename to test/builtins/gen/textureSampleCompare/a3ca7e.wgsl index 073e25a338..23127fd528 100644 --- a/test/intrinsics/gen/textureSampleCompare/a3ca7e.wgsl +++ b/test/builtins/gen/textureSampleCompare/a3ca7e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleCompare/a3ca7e.wgsl.expected.glsl b/test/builtins/gen/textureSampleCompare/a3ca7e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/a3ca7e.wgsl.expected.glsl rename to test/builtins/gen/textureSampleCompare/a3ca7e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleCompare/a3ca7e.wgsl.expected.hlsl b/test/builtins/gen/textureSampleCompare/a3ca7e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/a3ca7e.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleCompare/a3ca7e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleCompare/a3ca7e.wgsl.expected.msl b/test/builtins/gen/textureSampleCompare/a3ca7e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/a3ca7e.wgsl.expected.msl rename to test/builtins/gen/textureSampleCompare/a3ca7e.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleCompare/a3ca7e.wgsl.expected.spvasm b/test/builtins/gen/textureSampleCompare/a3ca7e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/a3ca7e.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleCompare/a3ca7e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleCompare/a3ca7e.wgsl.expected.wgsl b/test/builtins/gen/textureSampleCompare/a3ca7e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/a3ca7e.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleCompare/a3ca7e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleCompare/dd431d.wgsl b/test/builtins/gen/textureSampleCompare/dd431d.wgsl similarity index 89% rename from test/intrinsics/gen/textureSampleCompare/dd431d.wgsl rename to test/builtins/gen/textureSampleCompare/dd431d.wgsl index 4291866301..226c9537cf 100644 --- a/test/intrinsics/gen/textureSampleCompare/dd431d.wgsl +++ b/test/builtins/gen/textureSampleCompare/dd431d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleCompare/dd431d.wgsl.expected.glsl b/test/builtins/gen/textureSampleCompare/dd431d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/dd431d.wgsl.expected.glsl rename to test/builtins/gen/textureSampleCompare/dd431d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleCompare/dd431d.wgsl.expected.hlsl b/test/builtins/gen/textureSampleCompare/dd431d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/dd431d.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleCompare/dd431d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleCompare/dd431d.wgsl.expected.msl b/test/builtins/gen/textureSampleCompare/dd431d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/dd431d.wgsl.expected.msl rename to test/builtins/gen/textureSampleCompare/dd431d.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleCompare/dd431d.wgsl.expected.spvasm b/test/builtins/gen/textureSampleCompare/dd431d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/dd431d.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleCompare/dd431d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleCompare/dd431d.wgsl.expected.wgsl b/test/builtins/gen/textureSampleCompare/dd431d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompare/dd431d.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleCompare/dd431d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/011a8f.wgsl b/test/builtins/gen/textureSampleCompareLevel/011a8f.wgsl similarity index 91% rename from test/intrinsics/gen/textureSampleCompareLevel/011a8f.wgsl rename to test/builtins/gen/textureSampleCompareLevel/011a8f.wgsl index 7cc7525f2a..0a998bd1c2 100644 --- a/test/intrinsics/gen/textureSampleCompareLevel/011a8f.wgsl +++ b/test/builtins/gen/textureSampleCompareLevel/011a8f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleCompareLevel/011a8f.wgsl.expected.glsl b/test/builtins/gen/textureSampleCompareLevel/011a8f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/011a8f.wgsl.expected.glsl rename to test/builtins/gen/textureSampleCompareLevel/011a8f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/011a8f.wgsl.expected.hlsl b/test/builtins/gen/textureSampleCompareLevel/011a8f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/011a8f.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleCompareLevel/011a8f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/011a8f.wgsl.expected.msl b/test/builtins/gen/textureSampleCompareLevel/011a8f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/011a8f.wgsl.expected.msl rename to test/builtins/gen/textureSampleCompareLevel/011a8f.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/011a8f.wgsl.expected.spvasm b/test/builtins/gen/textureSampleCompareLevel/011a8f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/011a8f.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleCompareLevel/011a8f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleCompareLevel/011a8f.wgsl.expected.wgsl b/test/builtins/gen/textureSampleCompareLevel/011a8f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/011a8f.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleCompareLevel/011a8f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/1116ed.wgsl b/test/builtins/gen/textureSampleCompareLevel/1116ed.wgsl similarity index 91% rename from test/intrinsics/gen/textureSampleCompareLevel/1116ed.wgsl rename to test/builtins/gen/textureSampleCompareLevel/1116ed.wgsl index 21a27d8ebc..1dd53b77f6 100644 --- a/test/intrinsics/gen/textureSampleCompareLevel/1116ed.wgsl +++ b/test/builtins/gen/textureSampleCompareLevel/1116ed.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleCompareLevel/1116ed.wgsl.expected.glsl b/test/builtins/gen/textureSampleCompareLevel/1116ed.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/1116ed.wgsl.expected.glsl rename to test/builtins/gen/textureSampleCompareLevel/1116ed.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/1116ed.wgsl.expected.hlsl b/test/builtins/gen/textureSampleCompareLevel/1116ed.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/1116ed.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleCompareLevel/1116ed.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/1116ed.wgsl.expected.msl b/test/builtins/gen/textureSampleCompareLevel/1116ed.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/1116ed.wgsl.expected.msl rename to test/builtins/gen/textureSampleCompareLevel/1116ed.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/1116ed.wgsl.expected.spvasm b/test/builtins/gen/textureSampleCompareLevel/1116ed.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/1116ed.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleCompareLevel/1116ed.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleCompareLevel/1116ed.wgsl.expected.wgsl b/test/builtins/gen/textureSampleCompareLevel/1116ed.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/1116ed.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleCompareLevel/1116ed.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/1568e3.wgsl b/test/builtins/gen/textureSampleCompareLevel/1568e3.wgsl similarity index 91% rename from test/intrinsics/gen/textureSampleCompareLevel/1568e3.wgsl rename to test/builtins/gen/textureSampleCompareLevel/1568e3.wgsl index 30c28670d1..2d620a87ca 100644 --- a/test/intrinsics/gen/textureSampleCompareLevel/1568e3.wgsl +++ b/test/builtins/gen/textureSampleCompareLevel/1568e3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleCompareLevel/1568e3.wgsl.expected.glsl b/test/builtins/gen/textureSampleCompareLevel/1568e3.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/1568e3.wgsl.expected.glsl rename to test/builtins/gen/textureSampleCompareLevel/1568e3.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/1568e3.wgsl.expected.hlsl b/test/builtins/gen/textureSampleCompareLevel/1568e3.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/1568e3.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleCompareLevel/1568e3.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/1568e3.wgsl.expected.msl b/test/builtins/gen/textureSampleCompareLevel/1568e3.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/1568e3.wgsl.expected.msl rename to test/builtins/gen/textureSampleCompareLevel/1568e3.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/1568e3.wgsl.expected.spvasm b/test/builtins/gen/textureSampleCompareLevel/1568e3.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/1568e3.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleCompareLevel/1568e3.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleCompareLevel/1568e3.wgsl.expected.wgsl b/test/builtins/gen/textureSampleCompareLevel/1568e3.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/1568e3.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleCompareLevel/1568e3.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/2ad2b1.wgsl b/test/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl similarity index 91% rename from test/intrinsics/gen/textureSampleCompareLevel/2ad2b1.wgsl rename to test/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl index 6a6fceef54..13451e8de1 100644 --- a/test/intrinsics/gen/textureSampleCompareLevel/2ad2b1.wgsl +++ b/test/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.glsl b/test/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.glsl rename to test/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.hlsl b/test/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.msl b/test/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.msl rename to test/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.spvasm b/test/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.wgsl b/test/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/4cf3a2.wgsl b/test/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl similarity index 91% rename from test/intrinsics/gen/textureSampleCompareLevel/4cf3a2.wgsl rename to test/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl index 02d5f74739..2fbaf402b9 100644 --- a/test/intrinsics/gen/textureSampleCompareLevel/4cf3a2.wgsl +++ b/test/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.glsl b/test/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.glsl rename to test/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.hlsl b/test/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.msl b/test/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.msl rename to test/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.spvasm b/test/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.wgsl b/test/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/f8121c.wgsl b/test/builtins/gen/textureSampleCompareLevel/f8121c.wgsl similarity index 91% rename from test/intrinsics/gen/textureSampleCompareLevel/f8121c.wgsl rename to test/builtins/gen/textureSampleCompareLevel/f8121c.wgsl index 97401ce07f..55617da36c 100644 --- a/test/intrinsics/gen/textureSampleCompareLevel/f8121c.wgsl +++ b/test/builtins/gen/textureSampleCompareLevel/f8121c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleCompareLevel/f8121c.wgsl.expected.glsl b/test/builtins/gen/textureSampleCompareLevel/f8121c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/f8121c.wgsl.expected.glsl rename to test/builtins/gen/textureSampleCompareLevel/f8121c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/f8121c.wgsl.expected.hlsl b/test/builtins/gen/textureSampleCompareLevel/f8121c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/f8121c.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleCompareLevel/f8121c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/f8121c.wgsl.expected.msl b/test/builtins/gen/textureSampleCompareLevel/f8121c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/f8121c.wgsl.expected.msl rename to test/builtins/gen/textureSampleCompareLevel/f8121c.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleCompareLevel/f8121c.wgsl.expected.spvasm b/test/builtins/gen/textureSampleCompareLevel/f8121c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/f8121c.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleCompareLevel/f8121c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleCompareLevel/f8121c.wgsl.expected.wgsl b/test/builtins/gen/textureSampleCompareLevel/f8121c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleCompareLevel/f8121c.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleCompareLevel/f8121c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleGrad/21402b.wgsl b/test/builtins/gen/textureSampleGrad/21402b.wgsl similarity index 90% rename from test/intrinsics/gen/textureSampleGrad/21402b.wgsl rename to test/builtins/gen/textureSampleGrad/21402b.wgsl index 8d8aa0f185..106be9750c 100644 --- a/test/intrinsics/gen/textureSampleGrad/21402b.wgsl +++ b/test/builtins/gen/textureSampleGrad/21402b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleGrad/21402b.wgsl.expected.glsl b/test/builtins/gen/textureSampleGrad/21402b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/21402b.wgsl.expected.glsl rename to test/builtins/gen/textureSampleGrad/21402b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleGrad/21402b.wgsl.expected.hlsl b/test/builtins/gen/textureSampleGrad/21402b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/21402b.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleGrad/21402b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleGrad/21402b.wgsl.expected.msl b/test/builtins/gen/textureSampleGrad/21402b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/21402b.wgsl.expected.msl rename to test/builtins/gen/textureSampleGrad/21402b.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleGrad/21402b.wgsl.expected.spvasm b/test/builtins/gen/textureSampleGrad/21402b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/21402b.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleGrad/21402b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleGrad/21402b.wgsl.expected.wgsl b/test/builtins/gen/textureSampleGrad/21402b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/21402b.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleGrad/21402b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleGrad/2ecd8f.wgsl b/test/builtins/gen/textureSampleGrad/2ecd8f.wgsl similarity index 91% rename from test/intrinsics/gen/textureSampleGrad/2ecd8f.wgsl rename to test/builtins/gen/textureSampleGrad/2ecd8f.wgsl index 5c242befd8..fa20488e5f 100644 --- a/test/intrinsics/gen/textureSampleGrad/2ecd8f.wgsl +++ b/test/builtins/gen/textureSampleGrad/2ecd8f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleGrad/2ecd8f.wgsl.expected.glsl b/test/builtins/gen/textureSampleGrad/2ecd8f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/2ecd8f.wgsl.expected.glsl rename to test/builtins/gen/textureSampleGrad/2ecd8f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleGrad/2ecd8f.wgsl.expected.hlsl b/test/builtins/gen/textureSampleGrad/2ecd8f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/2ecd8f.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleGrad/2ecd8f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleGrad/2ecd8f.wgsl.expected.msl b/test/builtins/gen/textureSampleGrad/2ecd8f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/2ecd8f.wgsl.expected.msl rename to test/builtins/gen/textureSampleGrad/2ecd8f.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleGrad/2ecd8f.wgsl.expected.spvasm b/test/builtins/gen/textureSampleGrad/2ecd8f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/2ecd8f.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleGrad/2ecd8f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleGrad/2ecd8f.wgsl.expected.wgsl b/test/builtins/gen/textureSampleGrad/2ecd8f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/2ecd8f.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleGrad/2ecd8f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleGrad/468f88.wgsl b/test/builtins/gen/textureSampleGrad/468f88.wgsl similarity index 91% rename from test/intrinsics/gen/textureSampleGrad/468f88.wgsl rename to test/builtins/gen/textureSampleGrad/468f88.wgsl index 7749ccd2a4..38cbf888e5 100644 --- a/test/intrinsics/gen/textureSampleGrad/468f88.wgsl +++ b/test/builtins/gen/textureSampleGrad/468f88.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleGrad/468f88.wgsl.expected.glsl b/test/builtins/gen/textureSampleGrad/468f88.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/468f88.wgsl.expected.glsl rename to test/builtins/gen/textureSampleGrad/468f88.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleGrad/468f88.wgsl.expected.hlsl b/test/builtins/gen/textureSampleGrad/468f88.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/468f88.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleGrad/468f88.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleGrad/468f88.wgsl.expected.msl b/test/builtins/gen/textureSampleGrad/468f88.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/468f88.wgsl.expected.msl rename to test/builtins/gen/textureSampleGrad/468f88.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleGrad/468f88.wgsl.expected.spvasm b/test/builtins/gen/textureSampleGrad/468f88.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/468f88.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleGrad/468f88.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleGrad/468f88.wgsl.expected.wgsl b/test/builtins/gen/textureSampleGrad/468f88.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/468f88.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleGrad/468f88.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleGrad/521263.wgsl b/test/builtins/gen/textureSampleGrad/521263.wgsl similarity index 90% rename from test/intrinsics/gen/textureSampleGrad/521263.wgsl rename to test/builtins/gen/textureSampleGrad/521263.wgsl index 7f832e9436..7c9e0f3fa4 100644 --- a/test/intrinsics/gen/textureSampleGrad/521263.wgsl +++ b/test/builtins/gen/textureSampleGrad/521263.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleGrad/521263.wgsl.expected.glsl b/test/builtins/gen/textureSampleGrad/521263.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/521263.wgsl.expected.glsl rename to test/builtins/gen/textureSampleGrad/521263.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleGrad/521263.wgsl.expected.hlsl b/test/builtins/gen/textureSampleGrad/521263.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/521263.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleGrad/521263.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleGrad/521263.wgsl.expected.msl b/test/builtins/gen/textureSampleGrad/521263.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/521263.wgsl.expected.msl rename to test/builtins/gen/textureSampleGrad/521263.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleGrad/521263.wgsl.expected.spvasm b/test/builtins/gen/textureSampleGrad/521263.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/521263.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleGrad/521263.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleGrad/521263.wgsl.expected.wgsl b/test/builtins/gen/textureSampleGrad/521263.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/521263.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleGrad/521263.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleGrad/5312f4.wgsl b/test/builtins/gen/textureSampleGrad/5312f4.wgsl similarity index 91% rename from test/intrinsics/gen/textureSampleGrad/5312f4.wgsl rename to test/builtins/gen/textureSampleGrad/5312f4.wgsl index 47a84a9647..ceadd6133a 100644 --- a/test/intrinsics/gen/textureSampleGrad/5312f4.wgsl +++ b/test/builtins/gen/textureSampleGrad/5312f4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleGrad/5312f4.wgsl.expected.glsl b/test/builtins/gen/textureSampleGrad/5312f4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/5312f4.wgsl.expected.glsl rename to test/builtins/gen/textureSampleGrad/5312f4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleGrad/5312f4.wgsl.expected.hlsl b/test/builtins/gen/textureSampleGrad/5312f4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/5312f4.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleGrad/5312f4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleGrad/5312f4.wgsl.expected.msl b/test/builtins/gen/textureSampleGrad/5312f4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/5312f4.wgsl.expected.msl rename to test/builtins/gen/textureSampleGrad/5312f4.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleGrad/5312f4.wgsl.expected.spvasm b/test/builtins/gen/textureSampleGrad/5312f4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/5312f4.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleGrad/5312f4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleGrad/5312f4.wgsl.expected.wgsl b/test/builtins/gen/textureSampleGrad/5312f4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/5312f4.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleGrad/5312f4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleGrad/872f00.wgsl b/test/builtins/gen/textureSampleGrad/872f00.wgsl similarity index 91% rename from test/intrinsics/gen/textureSampleGrad/872f00.wgsl rename to test/builtins/gen/textureSampleGrad/872f00.wgsl index cfb073f41a..adcfee3ad1 100644 --- a/test/intrinsics/gen/textureSampleGrad/872f00.wgsl +++ b/test/builtins/gen/textureSampleGrad/872f00.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleGrad/872f00.wgsl.expected.glsl b/test/builtins/gen/textureSampleGrad/872f00.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/872f00.wgsl.expected.glsl rename to test/builtins/gen/textureSampleGrad/872f00.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleGrad/872f00.wgsl.expected.hlsl b/test/builtins/gen/textureSampleGrad/872f00.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/872f00.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleGrad/872f00.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleGrad/872f00.wgsl.expected.msl b/test/builtins/gen/textureSampleGrad/872f00.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/872f00.wgsl.expected.msl rename to test/builtins/gen/textureSampleGrad/872f00.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleGrad/872f00.wgsl.expected.spvasm b/test/builtins/gen/textureSampleGrad/872f00.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/872f00.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleGrad/872f00.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleGrad/872f00.wgsl.expected.wgsl b/test/builtins/gen/textureSampleGrad/872f00.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/872f00.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleGrad/872f00.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleGrad/e383db.wgsl b/test/builtins/gen/textureSampleGrad/e383db.wgsl similarity index 91% rename from test/intrinsics/gen/textureSampleGrad/e383db.wgsl rename to test/builtins/gen/textureSampleGrad/e383db.wgsl index e2f4c944df..c5edcacb9b 100644 --- a/test/intrinsics/gen/textureSampleGrad/e383db.wgsl +++ b/test/builtins/gen/textureSampleGrad/e383db.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleGrad/e383db.wgsl.expected.glsl b/test/builtins/gen/textureSampleGrad/e383db.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/e383db.wgsl.expected.glsl rename to test/builtins/gen/textureSampleGrad/e383db.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleGrad/e383db.wgsl.expected.hlsl b/test/builtins/gen/textureSampleGrad/e383db.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/e383db.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleGrad/e383db.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleGrad/e383db.wgsl.expected.msl b/test/builtins/gen/textureSampleGrad/e383db.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/e383db.wgsl.expected.msl rename to test/builtins/gen/textureSampleGrad/e383db.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleGrad/e383db.wgsl.expected.spvasm b/test/builtins/gen/textureSampleGrad/e383db.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/e383db.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleGrad/e383db.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleGrad/e383db.wgsl.expected.wgsl b/test/builtins/gen/textureSampleGrad/e383db.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/e383db.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleGrad/e383db.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleGrad/e9a2f7.wgsl b/test/builtins/gen/textureSampleGrad/e9a2f7.wgsl similarity index 91% rename from test/intrinsics/gen/textureSampleGrad/e9a2f7.wgsl rename to test/builtins/gen/textureSampleGrad/e9a2f7.wgsl index aa909fa4ff..ca07aeb4a5 100644 --- a/test/intrinsics/gen/textureSampleGrad/e9a2f7.wgsl +++ b/test/builtins/gen/textureSampleGrad/e9a2f7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleGrad/e9a2f7.wgsl.expected.glsl b/test/builtins/gen/textureSampleGrad/e9a2f7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/e9a2f7.wgsl.expected.glsl rename to test/builtins/gen/textureSampleGrad/e9a2f7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleGrad/e9a2f7.wgsl.expected.hlsl b/test/builtins/gen/textureSampleGrad/e9a2f7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/e9a2f7.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleGrad/e9a2f7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleGrad/e9a2f7.wgsl.expected.msl b/test/builtins/gen/textureSampleGrad/e9a2f7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/e9a2f7.wgsl.expected.msl rename to test/builtins/gen/textureSampleGrad/e9a2f7.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleGrad/e9a2f7.wgsl.expected.spvasm b/test/builtins/gen/textureSampleGrad/e9a2f7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/e9a2f7.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleGrad/e9a2f7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleGrad/e9a2f7.wgsl.expected.wgsl b/test/builtins/gen/textureSampleGrad/e9a2f7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleGrad/e9a2f7.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleGrad/e9a2f7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleLevel/02be59.wgsl b/test/builtins/gen/textureSampleLevel/02be59.wgsl similarity index 90% rename from test/intrinsics/gen/textureSampleLevel/02be59.wgsl rename to test/builtins/gen/textureSampleLevel/02be59.wgsl index 421b596967..b7c576c212 100644 --- a/test/intrinsics/gen/textureSampleLevel/02be59.wgsl +++ b/test/builtins/gen/textureSampleLevel/02be59.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleLevel/02be59.wgsl.expected.glsl b/test/builtins/gen/textureSampleLevel/02be59.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/02be59.wgsl.expected.glsl rename to test/builtins/gen/textureSampleLevel/02be59.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleLevel/02be59.wgsl.expected.hlsl b/test/builtins/gen/textureSampleLevel/02be59.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/02be59.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleLevel/02be59.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleLevel/02be59.wgsl.expected.msl b/test/builtins/gen/textureSampleLevel/02be59.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/02be59.wgsl.expected.msl rename to test/builtins/gen/textureSampleLevel/02be59.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleLevel/02be59.wgsl.expected.spvasm b/test/builtins/gen/textureSampleLevel/02be59.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/02be59.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleLevel/02be59.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleLevel/02be59.wgsl.expected.wgsl b/test/builtins/gen/textureSampleLevel/02be59.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/02be59.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleLevel/02be59.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleLevel/0bdd9a.wgsl b/test/builtins/gen/textureSampleLevel/0bdd9a.wgsl similarity index 91% rename from test/intrinsics/gen/textureSampleLevel/0bdd9a.wgsl rename to test/builtins/gen/textureSampleLevel/0bdd9a.wgsl index c8a3064f9b..7f93103791 100644 --- a/test/intrinsics/gen/textureSampleLevel/0bdd9a.wgsl +++ b/test/builtins/gen/textureSampleLevel/0bdd9a.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleLevel/0bdd9a.wgsl.expected.glsl b/test/builtins/gen/textureSampleLevel/0bdd9a.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/0bdd9a.wgsl.expected.glsl rename to test/builtins/gen/textureSampleLevel/0bdd9a.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleLevel/0bdd9a.wgsl.expected.hlsl b/test/builtins/gen/textureSampleLevel/0bdd9a.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/0bdd9a.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleLevel/0bdd9a.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleLevel/0bdd9a.wgsl.expected.msl b/test/builtins/gen/textureSampleLevel/0bdd9a.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/0bdd9a.wgsl.expected.msl rename to test/builtins/gen/textureSampleLevel/0bdd9a.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleLevel/0bdd9a.wgsl.expected.spvasm b/test/builtins/gen/textureSampleLevel/0bdd9a.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/0bdd9a.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleLevel/0bdd9a.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleLevel/0bdd9a.wgsl.expected.wgsl b/test/builtins/gen/textureSampleLevel/0bdd9a.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/0bdd9a.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleLevel/0bdd9a.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleLevel/1b0291.wgsl b/test/builtins/gen/textureSampleLevel/1b0291.wgsl similarity index 90% rename from test/intrinsics/gen/textureSampleLevel/1b0291.wgsl rename to test/builtins/gen/textureSampleLevel/1b0291.wgsl index c7a2186b8a..21fe71da7c 100644 --- a/test/intrinsics/gen/textureSampleLevel/1b0291.wgsl +++ b/test/builtins/gen/textureSampleLevel/1b0291.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleLevel/1b0291.wgsl.expected.glsl b/test/builtins/gen/textureSampleLevel/1b0291.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/1b0291.wgsl.expected.glsl rename to test/builtins/gen/textureSampleLevel/1b0291.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleLevel/1b0291.wgsl.expected.hlsl b/test/builtins/gen/textureSampleLevel/1b0291.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/1b0291.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleLevel/1b0291.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleLevel/1b0291.wgsl.expected.msl b/test/builtins/gen/textureSampleLevel/1b0291.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/1b0291.wgsl.expected.msl rename to test/builtins/gen/textureSampleLevel/1b0291.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleLevel/1b0291.wgsl.expected.spvasm b/test/builtins/gen/textureSampleLevel/1b0291.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/1b0291.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleLevel/1b0291.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleLevel/1b0291.wgsl.expected.wgsl b/test/builtins/gen/textureSampleLevel/1b0291.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/1b0291.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleLevel/1b0291.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleLevel/1bf73e.wgsl b/test/builtins/gen/textureSampleLevel/1bf73e.wgsl similarity index 90% rename from test/intrinsics/gen/textureSampleLevel/1bf73e.wgsl rename to test/builtins/gen/textureSampleLevel/1bf73e.wgsl index c7a13c2980..33adc88165 100644 --- a/test/intrinsics/gen/textureSampleLevel/1bf73e.wgsl +++ b/test/builtins/gen/textureSampleLevel/1bf73e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleLevel/1bf73e.wgsl.expected.glsl b/test/builtins/gen/textureSampleLevel/1bf73e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/1bf73e.wgsl.expected.glsl rename to test/builtins/gen/textureSampleLevel/1bf73e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleLevel/1bf73e.wgsl.expected.hlsl b/test/builtins/gen/textureSampleLevel/1bf73e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/1bf73e.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleLevel/1bf73e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleLevel/1bf73e.wgsl.expected.msl b/test/builtins/gen/textureSampleLevel/1bf73e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/1bf73e.wgsl.expected.msl rename to test/builtins/gen/textureSampleLevel/1bf73e.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleLevel/1bf73e.wgsl.expected.spvasm b/test/builtins/gen/textureSampleLevel/1bf73e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/1bf73e.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleLevel/1bf73e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleLevel/1bf73e.wgsl.expected.wgsl b/test/builtins/gen/textureSampleLevel/1bf73e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/1bf73e.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleLevel/1bf73e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleLevel/302be4.wgsl b/test/builtins/gen/textureSampleLevel/302be4.wgsl similarity index 90% rename from test/intrinsics/gen/textureSampleLevel/302be4.wgsl rename to test/builtins/gen/textureSampleLevel/302be4.wgsl index a1c1612810..88fb77cf08 100644 --- a/test/intrinsics/gen/textureSampleLevel/302be4.wgsl +++ b/test/builtins/gen/textureSampleLevel/302be4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleLevel/302be4.wgsl.expected.glsl b/test/builtins/gen/textureSampleLevel/302be4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/302be4.wgsl.expected.glsl rename to test/builtins/gen/textureSampleLevel/302be4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleLevel/302be4.wgsl.expected.hlsl b/test/builtins/gen/textureSampleLevel/302be4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/302be4.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleLevel/302be4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleLevel/302be4.wgsl.expected.msl b/test/builtins/gen/textureSampleLevel/302be4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/302be4.wgsl.expected.msl rename to test/builtins/gen/textureSampleLevel/302be4.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleLevel/302be4.wgsl.expected.spvasm b/test/builtins/gen/textureSampleLevel/302be4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/302be4.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleLevel/302be4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleLevel/302be4.wgsl.expected.wgsl b/test/builtins/gen/textureSampleLevel/302be4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/302be4.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleLevel/302be4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleLevel/47daa4.wgsl b/test/builtins/gen/textureSampleLevel/47daa4.wgsl similarity index 90% rename from test/intrinsics/gen/textureSampleLevel/47daa4.wgsl rename to test/builtins/gen/textureSampleLevel/47daa4.wgsl index bda5904c6b..9ddf9f0561 100644 --- a/test/intrinsics/gen/textureSampleLevel/47daa4.wgsl +++ b/test/builtins/gen/textureSampleLevel/47daa4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleLevel/47daa4.wgsl.expected.glsl b/test/builtins/gen/textureSampleLevel/47daa4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/47daa4.wgsl.expected.glsl rename to test/builtins/gen/textureSampleLevel/47daa4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleLevel/47daa4.wgsl.expected.hlsl b/test/builtins/gen/textureSampleLevel/47daa4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/47daa4.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleLevel/47daa4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleLevel/47daa4.wgsl.expected.msl b/test/builtins/gen/textureSampleLevel/47daa4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/47daa4.wgsl.expected.msl rename to test/builtins/gen/textureSampleLevel/47daa4.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleLevel/47daa4.wgsl.expected.spvasm b/test/builtins/gen/textureSampleLevel/47daa4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/47daa4.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleLevel/47daa4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleLevel/47daa4.wgsl.expected.wgsl b/test/builtins/gen/textureSampleLevel/47daa4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/47daa4.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleLevel/47daa4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleLevel/690d95.wgsl b/test/builtins/gen/textureSampleLevel/690d95.wgsl similarity index 90% rename from test/intrinsics/gen/textureSampleLevel/690d95.wgsl rename to test/builtins/gen/textureSampleLevel/690d95.wgsl index d748cdc21f..678b4e43fa 100644 --- a/test/intrinsics/gen/textureSampleLevel/690d95.wgsl +++ b/test/builtins/gen/textureSampleLevel/690d95.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleLevel/690d95.wgsl.expected.glsl b/test/builtins/gen/textureSampleLevel/690d95.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/690d95.wgsl.expected.glsl rename to test/builtins/gen/textureSampleLevel/690d95.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleLevel/690d95.wgsl.expected.hlsl b/test/builtins/gen/textureSampleLevel/690d95.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/690d95.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleLevel/690d95.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleLevel/690d95.wgsl.expected.msl b/test/builtins/gen/textureSampleLevel/690d95.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/690d95.wgsl.expected.msl rename to test/builtins/gen/textureSampleLevel/690d95.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleLevel/690d95.wgsl.expected.spvasm b/test/builtins/gen/textureSampleLevel/690d95.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/690d95.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleLevel/690d95.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleLevel/690d95.wgsl.expected.wgsl b/test/builtins/gen/textureSampleLevel/690d95.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/690d95.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleLevel/690d95.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleLevel/979816.wgsl b/test/builtins/gen/textureSampleLevel/979816.wgsl similarity index 90% rename from test/intrinsics/gen/textureSampleLevel/979816.wgsl rename to test/builtins/gen/textureSampleLevel/979816.wgsl index 46360919ff..b8a0045031 100644 --- a/test/intrinsics/gen/textureSampleLevel/979816.wgsl +++ b/test/builtins/gen/textureSampleLevel/979816.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleLevel/979816.wgsl.expected.glsl b/test/builtins/gen/textureSampleLevel/979816.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/979816.wgsl.expected.glsl rename to test/builtins/gen/textureSampleLevel/979816.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleLevel/979816.wgsl.expected.hlsl b/test/builtins/gen/textureSampleLevel/979816.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/979816.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleLevel/979816.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleLevel/979816.wgsl.expected.msl b/test/builtins/gen/textureSampleLevel/979816.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/979816.wgsl.expected.msl rename to test/builtins/gen/textureSampleLevel/979816.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleLevel/979816.wgsl.expected.spvasm b/test/builtins/gen/textureSampleLevel/979816.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/979816.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleLevel/979816.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleLevel/979816.wgsl.expected.wgsl b/test/builtins/gen/textureSampleLevel/979816.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/979816.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleLevel/979816.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleLevel/9bd37b.wgsl b/test/builtins/gen/textureSampleLevel/9bd37b.wgsl similarity index 90% rename from test/intrinsics/gen/textureSampleLevel/9bd37b.wgsl rename to test/builtins/gen/textureSampleLevel/9bd37b.wgsl index 18304c88e3..3e8b5d32eb 100644 --- a/test/intrinsics/gen/textureSampleLevel/9bd37b.wgsl +++ b/test/builtins/gen/textureSampleLevel/9bd37b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleLevel/9bd37b.wgsl.expected.glsl b/test/builtins/gen/textureSampleLevel/9bd37b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/9bd37b.wgsl.expected.glsl rename to test/builtins/gen/textureSampleLevel/9bd37b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleLevel/9bd37b.wgsl.expected.hlsl b/test/builtins/gen/textureSampleLevel/9bd37b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/9bd37b.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleLevel/9bd37b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleLevel/9bd37b.wgsl.expected.msl b/test/builtins/gen/textureSampleLevel/9bd37b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/9bd37b.wgsl.expected.msl rename to test/builtins/gen/textureSampleLevel/9bd37b.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleLevel/9bd37b.wgsl.expected.spvasm b/test/builtins/gen/textureSampleLevel/9bd37b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/9bd37b.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleLevel/9bd37b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleLevel/9bd37b.wgsl.expected.wgsl b/test/builtins/gen/textureSampleLevel/9bd37b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/9bd37b.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleLevel/9bd37b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleLevel/a4af26.wgsl b/test/builtins/gen/textureSampleLevel/a4af26.wgsl similarity index 91% rename from test/intrinsics/gen/textureSampleLevel/a4af26.wgsl rename to test/builtins/gen/textureSampleLevel/a4af26.wgsl index ffb83eb0a8..9a65ca3771 100644 --- a/test/intrinsics/gen/textureSampleLevel/a4af26.wgsl +++ b/test/builtins/gen/textureSampleLevel/a4af26.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleLevel/a4af26.wgsl.expected.glsl b/test/builtins/gen/textureSampleLevel/a4af26.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/a4af26.wgsl.expected.glsl rename to test/builtins/gen/textureSampleLevel/a4af26.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleLevel/a4af26.wgsl.expected.hlsl b/test/builtins/gen/textureSampleLevel/a4af26.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/a4af26.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleLevel/a4af26.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleLevel/a4af26.wgsl.expected.msl b/test/builtins/gen/textureSampleLevel/a4af26.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/a4af26.wgsl.expected.msl rename to test/builtins/gen/textureSampleLevel/a4af26.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleLevel/a4af26.wgsl.expected.spvasm b/test/builtins/gen/textureSampleLevel/a4af26.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/a4af26.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleLevel/a4af26.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleLevel/a4af26.wgsl.expected.wgsl b/test/builtins/gen/textureSampleLevel/a4af26.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/a4af26.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleLevel/a4af26.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleLevel/abfcc0.wgsl b/test/builtins/gen/textureSampleLevel/abfcc0.wgsl similarity index 90% rename from test/intrinsics/gen/textureSampleLevel/abfcc0.wgsl rename to test/builtins/gen/textureSampleLevel/abfcc0.wgsl index 3cf621afe6..f5f2e29417 100644 --- a/test/intrinsics/gen/textureSampleLevel/abfcc0.wgsl +++ b/test/builtins/gen/textureSampleLevel/abfcc0.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleLevel/abfcc0.wgsl.expected.glsl b/test/builtins/gen/textureSampleLevel/abfcc0.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/abfcc0.wgsl.expected.glsl rename to test/builtins/gen/textureSampleLevel/abfcc0.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleLevel/abfcc0.wgsl.expected.hlsl b/test/builtins/gen/textureSampleLevel/abfcc0.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/abfcc0.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleLevel/abfcc0.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleLevel/abfcc0.wgsl.expected.msl b/test/builtins/gen/textureSampleLevel/abfcc0.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/abfcc0.wgsl.expected.msl rename to test/builtins/gen/textureSampleLevel/abfcc0.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleLevel/abfcc0.wgsl.expected.spvasm b/test/builtins/gen/textureSampleLevel/abfcc0.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/abfcc0.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleLevel/abfcc0.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleLevel/abfcc0.wgsl.expected.wgsl b/test/builtins/gen/textureSampleLevel/abfcc0.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/abfcc0.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleLevel/abfcc0.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleLevel/ae5e39.wgsl b/test/builtins/gen/textureSampleLevel/ae5e39.wgsl similarity index 90% rename from test/intrinsics/gen/textureSampleLevel/ae5e39.wgsl rename to test/builtins/gen/textureSampleLevel/ae5e39.wgsl index bca318958a..76bce20a8f 100644 --- a/test/intrinsics/gen/textureSampleLevel/ae5e39.wgsl +++ b/test/builtins/gen/textureSampleLevel/ae5e39.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleLevel/ae5e39.wgsl.expected.glsl b/test/builtins/gen/textureSampleLevel/ae5e39.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/ae5e39.wgsl.expected.glsl rename to test/builtins/gen/textureSampleLevel/ae5e39.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleLevel/ae5e39.wgsl.expected.hlsl b/test/builtins/gen/textureSampleLevel/ae5e39.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/ae5e39.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleLevel/ae5e39.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleLevel/ae5e39.wgsl.expected.msl b/test/builtins/gen/textureSampleLevel/ae5e39.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/ae5e39.wgsl.expected.msl rename to test/builtins/gen/textureSampleLevel/ae5e39.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleLevel/ae5e39.wgsl.expected.spvasm b/test/builtins/gen/textureSampleLevel/ae5e39.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/ae5e39.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleLevel/ae5e39.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleLevel/ae5e39.wgsl.expected.wgsl b/test/builtins/gen/textureSampleLevel/ae5e39.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/ae5e39.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleLevel/ae5e39.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleLevel/ba93b3.wgsl b/test/builtins/gen/textureSampleLevel/ba93b3.wgsl similarity index 91% rename from test/intrinsics/gen/textureSampleLevel/ba93b3.wgsl rename to test/builtins/gen/textureSampleLevel/ba93b3.wgsl index 07958ef112..c4d0a3d5fa 100644 --- a/test/intrinsics/gen/textureSampleLevel/ba93b3.wgsl +++ b/test/builtins/gen/textureSampleLevel/ba93b3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleLevel/ba93b3.wgsl.expected.glsl b/test/builtins/gen/textureSampleLevel/ba93b3.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/ba93b3.wgsl.expected.glsl rename to test/builtins/gen/textureSampleLevel/ba93b3.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleLevel/ba93b3.wgsl.expected.hlsl b/test/builtins/gen/textureSampleLevel/ba93b3.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/ba93b3.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleLevel/ba93b3.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleLevel/ba93b3.wgsl.expected.msl b/test/builtins/gen/textureSampleLevel/ba93b3.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/ba93b3.wgsl.expected.msl rename to test/builtins/gen/textureSampleLevel/ba93b3.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleLevel/ba93b3.wgsl.expected.spvasm b/test/builtins/gen/textureSampleLevel/ba93b3.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/ba93b3.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleLevel/ba93b3.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleLevel/ba93b3.wgsl.expected.wgsl b/test/builtins/gen/textureSampleLevel/ba93b3.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/ba93b3.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleLevel/ba93b3.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleLevel/c32df7.wgsl b/test/builtins/gen/textureSampleLevel/c32df7.wgsl similarity index 90% rename from test/intrinsics/gen/textureSampleLevel/c32df7.wgsl rename to test/builtins/gen/textureSampleLevel/c32df7.wgsl index 9dc6e1554f..9cee583df5 100644 --- a/test/intrinsics/gen/textureSampleLevel/c32df7.wgsl +++ b/test/builtins/gen/textureSampleLevel/c32df7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleLevel/c32df7.wgsl.expected.glsl b/test/builtins/gen/textureSampleLevel/c32df7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/c32df7.wgsl.expected.glsl rename to test/builtins/gen/textureSampleLevel/c32df7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleLevel/c32df7.wgsl.expected.hlsl b/test/builtins/gen/textureSampleLevel/c32df7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/c32df7.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleLevel/c32df7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleLevel/c32df7.wgsl.expected.msl b/test/builtins/gen/textureSampleLevel/c32df7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/c32df7.wgsl.expected.msl rename to test/builtins/gen/textureSampleLevel/c32df7.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleLevel/c32df7.wgsl.expected.spvasm b/test/builtins/gen/textureSampleLevel/c32df7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/c32df7.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleLevel/c32df7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleLevel/c32df7.wgsl.expected.wgsl b/test/builtins/gen/textureSampleLevel/c32df7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/c32df7.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleLevel/c32df7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureSampleLevel/c6aca6.wgsl b/test/builtins/gen/textureSampleLevel/c6aca6.wgsl similarity index 90% rename from test/intrinsics/gen/textureSampleLevel/c6aca6.wgsl rename to test/builtins/gen/textureSampleLevel/c6aca6.wgsl index f58dfd116b..532b6c3599 100644 --- a/test/intrinsics/gen/textureSampleLevel/c6aca6.wgsl +++ b/test/builtins/gen/textureSampleLevel/c6aca6.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureSampleLevel/c6aca6.wgsl.expected.glsl b/test/builtins/gen/textureSampleLevel/c6aca6.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/c6aca6.wgsl.expected.glsl rename to test/builtins/gen/textureSampleLevel/c6aca6.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureSampleLevel/c6aca6.wgsl.expected.hlsl b/test/builtins/gen/textureSampleLevel/c6aca6.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/c6aca6.wgsl.expected.hlsl rename to test/builtins/gen/textureSampleLevel/c6aca6.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureSampleLevel/c6aca6.wgsl.expected.msl b/test/builtins/gen/textureSampleLevel/c6aca6.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/c6aca6.wgsl.expected.msl rename to test/builtins/gen/textureSampleLevel/c6aca6.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureSampleLevel/c6aca6.wgsl.expected.spvasm b/test/builtins/gen/textureSampleLevel/c6aca6.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/c6aca6.wgsl.expected.spvasm rename to test/builtins/gen/textureSampleLevel/c6aca6.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureSampleLevel/c6aca6.wgsl.expected.wgsl b/test/builtins/gen/textureSampleLevel/c6aca6.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureSampleLevel/c6aca6.wgsl.expected.wgsl rename to test/builtins/gen/textureSampleLevel/c6aca6.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/05ce15.wgsl b/test/builtins/gen/textureStore/05ce15.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/05ce15.wgsl rename to test/builtins/gen/textureStore/05ce15.wgsl index 8bccc96436..890e421285 100644 --- a/test/intrinsics/gen/textureStore/05ce15.wgsl +++ b/test/builtins/gen/textureStore/05ce15.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/05ce15.wgsl.expected.glsl b/test/builtins/gen/textureStore/05ce15.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/05ce15.wgsl.expected.glsl rename to test/builtins/gen/textureStore/05ce15.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/05ce15.wgsl.expected.hlsl b/test/builtins/gen/textureStore/05ce15.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/05ce15.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/05ce15.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/05ce15.wgsl.expected.msl b/test/builtins/gen/textureStore/05ce15.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/05ce15.wgsl.expected.msl rename to test/builtins/gen/textureStore/05ce15.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/05ce15.wgsl.expected.spvasm b/test/builtins/gen/textureStore/05ce15.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/05ce15.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/05ce15.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/05ce15.wgsl.expected.wgsl b/test/builtins/gen/textureStore/05ce15.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/05ce15.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/05ce15.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/064c7f.wgsl b/test/builtins/gen/textureStore/064c7f.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/064c7f.wgsl rename to test/builtins/gen/textureStore/064c7f.wgsl index 71130e470a..a05b1ab6bf 100644 --- a/test/intrinsics/gen/textureStore/064c7f.wgsl +++ b/test/builtins/gen/textureStore/064c7f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/064c7f.wgsl.expected.glsl b/test/builtins/gen/textureStore/064c7f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/064c7f.wgsl.expected.glsl rename to test/builtins/gen/textureStore/064c7f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/064c7f.wgsl.expected.hlsl b/test/builtins/gen/textureStore/064c7f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/064c7f.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/064c7f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/064c7f.wgsl.expected.msl b/test/builtins/gen/textureStore/064c7f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/064c7f.wgsl.expected.msl rename to test/builtins/gen/textureStore/064c7f.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/064c7f.wgsl.expected.spvasm b/test/builtins/gen/textureStore/064c7f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/064c7f.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/064c7f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/064c7f.wgsl.expected.wgsl b/test/builtins/gen/textureStore/064c7f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/064c7f.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/064c7f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/068641.wgsl b/test/builtins/gen/textureStore/068641.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/068641.wgsl rename to test/builtins/gen/textureStore/068641.wgsl index 7b1052911a..8f2cf0c15b 100644 --- a/test/intrinsics/gen/textureStore/068641.wgsl +++ b/test/builtins/gen/textureStore/068641.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/068641.wgsl.expected.glsl b/test/builtins/gen/textureStore/068641.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/068641.wgsl.expected.glsl rename to test/builtins/gen/textureStore/068641.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/068641.wgsl.expected.hlsl b/test/builtins/gen/textureStore/068641.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/068641.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/068641.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/068641.wgsl.expected.msl b/test/builtins/gen/textureStore/068641.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/068641.wgsl.expected.msl rename to test/builtins/gen/textureStore/068641.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/068641.wgsl.expected.spvasm b/test/builtins/gen/textureStore/068641.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/068641.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/068641.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/068641.wgsl.expected.wgsl b/test/builtins/gen/textureStore/068641.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/068641.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/068641.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/0af6b5.wgsl b/test/builtins/gen/textureStore/0af6b5.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/0af6b5.wgsl rename to test/builtins/gen/textureStore/0af6b5.wgsl index d66614e6f1..aef7b6ce3b 100644 --- a/test/intrinsics/gen/textureStore/0af6b5.wgsl +++ b/test/builtins/gen/textureStore/0af6b5.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/0af6b5.wgsl.expected.glsl b/test/builtins/gen/textureStore/0af6b5.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/0af6b5.wgsl.expected.glsl rename to test/builtins/gen/textureStore/0af6b5.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/0af6b5.wgsl.expected.hlsl b/test/builtins/gen/textureStore/0af6b5.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/0af6b5.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/0af6b5.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/0af6b5.wgsl.expected.msl b/test/builtins/gen/textureStore/0af6b5.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/0af6b5.wgsl.expected.msl rename to test/builtins/gen/textureStore/0af6b5.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/0af6b5.wgsl.expected.spvasm b/test/builtins/gen/textureStore/0af6b5.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/0af6b5.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/0af6b5.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/0af6b5.wgsl.expected.wgsl b/test/builtins/gen/textureStore/0af6b5.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/0af6b5.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/0af6b5.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/0c3dff.wgsl b/test/builtins/gen/textureStore/0c3dff.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/0c3dff.wgsl rename to test/builtins/gen/textureStore/0c3dff.wgsl index 4ace9a915a..9d3b6082b3 100644 --- a/test/intrinsics/gen/textureStore/0c3dff.wgsl +++ b/test/builtins/gen/textureStore/0c3dff.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/0c3dff.wgsl.expected.glsl b/test/builtins/gen/textureStore/0c3dff.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/0c3dff.wgsl.expected.glsl rename to test/builtins/gen/textureStore/0c3dff.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/0c3dff.wgsl.expected.hlsl b/test/builtins/gen/textureStore/0c3dff.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/0c3dff.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/0c3dff.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/0c3dff.wgsl.expected.msl b/test/builtins/gen/textureStore/0c3dff.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/0c3dff.wgsl.expected.msl rename to test/builtins/gen/textureStore/0c3dff.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/0c3dff.wgsl.expected.spvasm b/test/builtins/gen/textureStore/0c3dff.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/0c3dff.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/0c3dff.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/0c3dff.wgsl.expected.wgsl b/test/builtins/gen/textureStore/0c3dff.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/0c3dff.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/0c3dff.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/102722.wgsl b/test/builtins/gen/textureStore/102722.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/102722.wgsl rename to test/builtins/gen/textureStore/102722.wgsl index a096321203..48a2f6b564 100644 --- a/test/intrinsics/gen/textureStore/102722.wgsl +++ b/test/builtins/gen/textureStore/102722.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/102722.wgsl.expected.glsl b/test/builtins/gen/textureStore/102722.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/102722.wgsl.expected.glsl rename to test/builtins/gen/textureStore/102722.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/102722.wgsl.expected.hlsl b/test/builtins/gen/textureStore/102722.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/102722.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/102722.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/102722.wgsl.expected.msl b/test/builtins/gen/textureStore/102722.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/102722.wgsl.expected.msl rename to test/builtins/gen/textureStore/102722.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/102722.wgsl.expected.spvasm b/test/builtins/gen/textureStore/102722.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/102722.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/102722.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/102722.wgsl.expected.wgsl b/test/builtins/gen/textureStore/102722.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/102722.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/102722.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/1bbd08.wgsl b/test/builtins/gen/textureStore/1bbd08.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/1bbd08.wgsl rename to test/builtins/gen/textureStore/1bbd08.wgsl index 922921bbe8..709455e591 100644 --- a/test/intrinsics/gen/textureStore/1bbd08.wgsl +++ b/test/builtins/gen/textureStore/1bbd08.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/1bbd08.wgsl.expected.glsl b/test/builtins/gen/textureStore/1bbd08.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/1bbd08.wgsl.expected.glsl rename to test/builtins/gen/textureStore/1bbd08.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/1bbd08.wgsl.expected.hlsl b/test/builtins/gen/textureStore/1bbd08.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/1bbd08.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/1bbd08.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/1bbd08.wgsl.expected.msl b/test/builtins/gen/textureStore/1bbd08.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/1bbd08.wgsl.expected.msl rename to test/builtins/gen/textureStore/1bbd08.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/1bbd08.wgsl.expected.spvasm b/test/builtins/gen/textureStore/1bbd08.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/1bbd08.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/1bbd08.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/1bbd08.wgsl.expected.wgsl b/test/builtins/gen/textureStore/1bbd08.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/1bbd08.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/1bbd08.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/1c02e7.wgsl b/test/builtins/gen/textureStore/1c02e7.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/1c02e7.wgsl rename to test/builtins/gen/textureStore/1c02e7.wgsl index df6bca8322..8d069d852e 100644 --- a/test/intrinsics/gen/textureStore/1c02e7.wgsl +++ b/test/builtins/gen/textureStore/1c02e7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/1c02e7.wgsl.expected.glsl b/test/builtins/gen/textureStore/1c02e7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/1c02e7.wgsl.expected.glsl rename to test/builtins/gen/textureStore/1c02e7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/1c02e7.wgsl.expected.hlsl b/test/builtins/gen/textureStore/1c02e7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/1c02e7.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/1c02e7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/1c02e7.wgsl.expected.msl b/test/builtins/gen/textureStore/1c02e7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/1c02e7.wgsl.expected.msl rename to test/builtins/gen/textureStore/1c02e7.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/1c02e7.wgsl.expected.spvasm b/test/builtins/gen/textureStore/1c02e7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/1c02e7.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/1c02e7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/1c02e7.wgsl.expected.wgsl b/test/builtins/gen/textureStore/1c02e7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/1c02e7.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/1c02e7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/22d955.wgsl b/test/builtins/gen/textureStore/22d955.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/22d955.wgsl rename to test/builtins/gen/textureStore/22d955.wgsl index 716aa4274b..cf8aeb1c4c 100644 --- a/test/intrinsics/gen/textureStore/22d955.wgsl +++ b/test/builtins/gen/textureStore/22d955.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/22d955.wgsl.expected.glsl b/test/builtins/gen/textureStore/22d955.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/22d955.wgsl.expected.glsl rename to test/builtins/gen/textureStore/22d955.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/22d955.wgsl.expected.hlsl b/test/builtins/gen/textureStore/22d955.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/22d955.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/22d955.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/22d955.wgsl.expected.msl b/test/builtins/gen/textureStore/22d955.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/22d955.wgsl.expected.msl rename to test/builtins/gen/textureStore/22d955.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/22d955.wgsl.expected.spvasm b/test/builtins/gen/textureStore/22d955.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/22d955.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/22d955.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/22d955.wgsl.expected.wgsl b/test/builtins/gen/textureStore/22d955.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/22d955.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/22d955.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/26bf70.wgsl b/test/builtins/gen/textureStore/26bf70.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/26bf70.wgsl rename to test/builtins/gen/textureStore/26bf70.wgsl index 083e62a6af..68435b3c34 100644 --- a/test/intrinsics/gen/textureStore/26bf70.wgsl +++ b/test/builtins/gen/textureStore/26bf70.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/26bf70.wgsl.expected.glsl b/test/builtins/gen/textureStore/26bf70.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/26bf70.wgsl.expected.glsl rename to test/builtins/gen/textureStore/26bf70.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/26bf70.wgsl.expected.hlsl b/test/builtins/gen/textureStore/26bf70.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/26bf70.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/26bf70.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/26bf70.wgsl.expected.msl b/test/builtins/gen/textureStore/26bf70.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/26bf70.wgsl.expected.msl rename to test/builtins/gen/textureStore/26bf70.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/26bf70.wgsl.expected.spvasm b/test/builtins/gen/textureStore/26bf70.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/26bf70.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/26bf70.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/26bf70.wgsl.expected.wgsl b/test/builtins/gen/textureStore/26bf70.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/26bf70.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/26bf70.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/2796b4.wgsl b/test/builtins/gen/textureStore/2796b4.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/2796b4.wgsl rename to test/builtins/gen/textureStore/2796b4.wgsl index dce9df69f9..a6cb869be3 100644 --- a/test/intrinsics/gen/textureStore/2796b4.wgsl +++ b/test/builtins/gen/textureStore/2796b4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/2796b4.wgsl.expected.glsl b/test/builtins/gen/textureStore/2796b4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/2796b4.wgsl.expected.glsl rename to test/builtins/gen/textureStore/2796b4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/2796b4.wgsl.expected.hlsl b/test/builtins/gen/textureStore/2796b4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/2796b4.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/2796b4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/2796b4.wgsl.expected.msl b/test/builtins/gen/textureStore/2796b4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/2796b4.wgsl.expected.msl rename to test/builtins/gen/textureStore/2796b4.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/2796b4.wgsl.expected.spvasm b/test/builtins/gen/textureStore/2796b4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/2796b4.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/2796b4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/2796b4.wgsl.expected.wgsl b/test/builtins/gen/textureStore/2796b4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/2796b4.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/2796b4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/2ac6c7.wgsl b/test/builtins/gen/textureStore/2ac6c7.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/2ac6c7.wgsl rename to test/builtins/gen/textureStore/2ac6c7.wgsl index 35cec999f9..c77c788818 100644 --- a/test/intrinsics/gen/textureStore/2ac6c7.wgsl +++ b/test/builtins/gen/textureStore/2ac6c7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/2ac6c7.wgsl.expected.glsl b/test/builtins/gen/textureStore/2ac6c7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/2ac6c7.wgsl.expected.glsl rename to test/builtins/gen/textureStore/2ac6c7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/2ac6c7.wgsl.expected.hlsl b/test/builtins/gen/textureStore/2ac6c7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/2ac6c7.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/2ac6c7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/2ac6c7.wgsl.expected.msl b/test/builtins/gen/textureStore/2ac6c7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/2ac6c7.wgsl.expected.msl rename to test/builtins/gen/textureStore/2ac6c7.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/2ac6c7.wgsl.expected.spvasm b/test/builtins/gen/textureStore/2ac6c7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/2ac6c7.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/2ac6c7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/2ac6c7.wgsl.expected.wgsl b/test/builtins/gen/textureStore/2ac6c7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/2ac6c7.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/2ac6c7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/2eb2a4.wgsl b/test/builtins/gen/textureStore/2eb2a4.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/2eb2a4.wgsl rename to test/builtins/gen/textureStore/2eb2a4.wgsl index ad1ccd58a7..757a807631 100644 --- a/test/intrinsics/gen/textureStore/2eb2a4.wgsl +++ b/test/builtins/gen/textureStore/2eb2a4.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/2eb2a4.wgsl.expected.glsl b/test/builtins/gen/textureStore/2eb2a4.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/2eb2a4.wgsl.expected.glsl rename to test/builtins/gen/textureStore/2eb2a4.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/2eb2a4.wgsl.expected.hlsl b/test/builtins/gen/textureStore/2eb2a4.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/2eb2a4.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/2eb2a4.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/2eb2a4.wgsl.expected.msl b/test/builtins/gen/textureStore/2eb2a4.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/2eb2a4.wgsl.expected.msl rename to test/builtins/gen/textureStore/2eb2a4.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/2eb2a4.wgsl.expected.spvasm b/test/builtins/gen/textureStore/2eb2a4.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/2eb2a4.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/2eb2a4.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/2eb2a4.wgsl.expected.wgsl b/test/builtins/gen/textureStore/2eb2a4.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/2eb2a4.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/2eb2a4.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/2ed2a3.wgsl b/test/builtins/gen/textureStore/2ed2a3.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/2ed2a3.wgsl rename to test/builtins/gen/textureStore/2ed2a3.wgsl index bcf4113bee..1116d06fc3 100644 --- a/test/intrinsics/gen/textureStore/2ed2a3.wgsl +++ b/test/builtins/gen/textureStore/2ed2a3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/2ed2a3.wgsl.expected.glsl b/test/builtins/gen/textureStore/2ed2a3.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/2ed2a3.wgsl.expected.glsl rename to test/builtins/gen/textureStore/2ed2a3.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/2ed2a3.wgsl.expected.hlsl b/test/builtins/gen/textureStore/2ed2a3.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/2ed2a3.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/2ed2a3.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/2ed2a3.wgsl.expected.msl b/test/builtins/gen/textureStore/2ed2a3.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/2ed2a3.wgsl.expected.msl rename to test/builtins/gen/textureStore/2ed2a3.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/2ed2a3.wgsl.expected.spvasm b/test/builtins/gen/textureStore/2ed2a3.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/2ed2a3.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/2ed2a3.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/2ed2a3.wgsl.expected.wgsl b/test/builtins/gen/textureStore/2ed2a3.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/2ed2a3.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/2ed2a3.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/31745b.wgsl b/test/builtins/gen/textureStore/31745b.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/31745b.wgsl rename to test/builtins/gen/textureStore/31745b.wgsl index 5dea4e12a6..92ba02e1b3 100644 --- a/test/intrinsics/gen/textureStore/31745b.wgsl +++ b/test/builtins/gen/textureStore/31745b.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/31745b.wgsl.expected.glsl b/test/builtins/gen/textureStore/31745b.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/31745b.wgsl.expected.glsl rename to test/builtins/gen/textureStore/31745b.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/31745b.wgsl.expected.hlsl b/test/builtins/gen/textureStore/31745b.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/31745b.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/31745b.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/31745b.wgsl.expected.msl b/test/builtins/gen/textureStore/31745b.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/31745b.wgsl.expected.msl rename to test/builtins/gen/textureStore/31745b.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/31745b.wgsl.expected.spvasm b/test/builtins/gen/textureStore/31745b.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/31745b.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/31745b.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/31745b.wgsl.expected.wgsl b/test/builtins/gen/textureStore/31745b.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/31745b.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/31745b.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/32f368.wgsl b/test/builtins/gen/textureStore/32f368.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/32f368.wgsl rename to test/builtins/gen/textureStore/32f368.wgsl index 50f4e660fc..ac8b536f4e 100644 --- a/test/intrinsics/gen/textureStore/32f368.wgsl +++ b/test/builtins/gen/textureStore/32f368.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/32f368.wgsl.expected.glsl b/test/builtins/gen/textureStore/32f368.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/32f368.wgsl.expected.glsl rename to test/builtins/gen/textureStore/32f368.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/32f368.wgsl.expected.hlsl b/test/builtins/gen/textureStore/32f368.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/32f368.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/32f368.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/32f368.wgsl.expected.msl b/test/builtins/gen/textureStore/32f368.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/32f368.wgsl.expected.msl rename to test/builtins/gen/textureStore/32f368.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/32f368.wgsl.expected.spvasm b/test/builtins/gen/textureStore/32f368.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/32f368.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/32f368.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/32f368.wgsl.expected.wgsl b/test/builtins/gen/textureStore/32f368.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/32f368.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/32f368.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/331aee.wgsl b/test/builtins/gen/textureStore/331aee.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/331aee.wgsl rename to test/builtins/gen/textureStore/331aee.wgsl index 4bc9a4ddf9..329799949d 100644 --- a/test/intrinsics/gen/textureStore/331aee.wgsl +++ b/test/builtins/gen/textureStore/331aee.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/331aee.wgsl.expected.glsl b/test/builtins/gen/textureStore/331aee.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/331aee.wgsl.expected.glsl rename to test/builtins/gen/textureStore/331aee.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/331aee.wgsl.expected.hlsl b/test/builtins/gen/textureStore/331aee.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/331aee.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/331aee.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/331aee.wgsl.expected.msl b/test/builtins/gen/textureStore/331aee.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/331aee.wgsl.expected.msl rename to test/builtins/gen/textureStore/331aee.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/331aee.wgsl.expected.spvasm b/test/builtins/gen/textureStore/331aee.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/331aee.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/331aee.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/331aee.wgsl.expected.wgsl b/test/builtins/gen/textureStore/331aee.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/331aee.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/331aee.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/38e8d7.wgsl b/test/builtins/gen/textureStore/38e8d7.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/38e8d7.wgsl rename to test/builtins/gen/textureStore/38e8d7.wgsl index 6cfe7a0edf..926527cb61 100644 --- a/test/intrinsics/gen/textureStore/38e8d7.wgsl +++ b/test/builtins/gen/textureStore/38e8d7.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/38e8d7.wgsl.expected.glsl b/test/builtins/gen/textureStore/38e8d7.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/38e8d7.wgsl.expected.glsl rename to test/builtins/gen/textureStore/38e8d7.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/38e8d7.wgsl.expected.hlsl b/test/builtins/gen/textureStore/38e8d7.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/38e8d7.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/38e8d7.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/38e8d7.wgsl.expected.msl b/test/builtins/gen/textureStore/38e8d7.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/38e8d7.wgsl.expected.msl rename to test/builtins/gen/textureStore/38e8d7.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/38e8d7.wgsl.expected.spvasm b/test/builtins/gen/textureStore/38e8d7.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/38e8d7.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/38e8d7.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/38e8d7.wgsl.expected.wgsl b/test/builtins/gen/textureStore/38e8d7.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/38e8d7.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/38e8d7.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/3a52ac.wgsl b/test/builtins/gen/textureStore/3a52ac.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/3a52ac.wgsl rename to test/builtins/gen/textureStore/3a52ac.wgsl index 92cb0bbf90..46140cfeec 100644 --- a/test/intrinsics/gen/textureStore/3a52ac.wgsl +++ b/test/builtins/gen/textureStore/3a52ac.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/3a52ac.wgsl.expected.glsl b/test/builtins/gen/textureStore/3a52ac.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/3a52ac.wgsl.expected.glsl rename to test/builtins/gen/textureStore/3a52ac.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/3a52ac.wgsl.expected.hlsl b/test/builtins/gen/textureStore/3a52ac.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/3a52ac.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/3a52ac.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/3a52ac.wgsl.expected.msl b/test/builtins/gen/textureStore/3a52ac.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/3a52ac.wgsl.expected.msl rename to test/builtins/gen/textureStore/3a52ac.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/3a52ac.wgsl.expected.spvasm b/test/builtins/gen/textureStore/3a52ac.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/3a52ac.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/3a52ac.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/3a52ac.wgsl.expected.wgsl b/test/builtins/gen/textureStore/3a52ac.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/3a52ac.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/3a52ac.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/3bb7a1.wgsl b/test/builtins/gen/textureStore/3bb7a1.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/3bb7a1.wgsl rename to test/builtins/gen/textureStore/3bb7a1.wgsl index c665a5b3a7..c033c45100 100644 --- a/test/intrinsics/gen/textureStore/3bb7a1.wgsl +++ b/test/builtins/gen/textureStore/3bb7a1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/3bb7a1.wgsl.expected.glsl b/test/builtins/gen/textureStore/3bb7a1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/3bb7a1.wgsl.expected.glsl rename to test/builtins/gen/textureStore/3bb7a1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/3bb7a1.wgsl.expected.hlsl b/test/builtins/gen/textureStore/3bb7a1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/3bb7a1.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/3bb7a1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/3bb7a1.wgsl.expected.msl b/test/builtins/gen/textureStore/3bb7a1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/3bb7a1.wgsl.expected.msl rename to test/builtins/gen/textureStore/3bb7a1.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/3bb7a1.wgsl.expected.spvasm b/test/builtins/gen/textureStore/3bb7a1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/3bb7a1.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/3bb7a1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/3bb7a1.wgsl.expected.wgsl b/test/builtins/gen/textureStore/3bb7a1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/3bb7a1.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/3bb7a1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/3bec15.wgsl b/test/builtins/gen/textureStore/3bec15.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/3bec15.wgsl rename to test/builtins/gen/textureStore/3bec15.wgsl index b56de8d7bb..38a0b2a408 100644 --- a/test/intrinsics/gen/textureStore/3bec15.wgsl +++ b/test/builtins/gen/textureStore/3bec15.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/3bec15.wgsl.expected.glsl b/test/builtins/gen/textureStore/3bec15.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/3bec15.wgsl.expected.glsl rename to test/builtins/gen/textureStore/3bec15.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/3bec15.wgsl.expected.hlsl b/test/builtins/gen/textureStore/3bec15.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/3bec15.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/3bec15.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/3bec15.wgsl.expected.msl b/test/builtins/gen/textureStore/3bec15.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/3bec15.wgsl.expected.msl rename to test/builtins/gen/textureStore/3bec15.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/3bec15.wgsl.expected.spvasm b/test/builtins/gen/textureStore/3bec15.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/3bec15.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/3bec15.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/3bec15.wgsl.expected.wgsl b/test/builtins/gen/textureStore/3bec15.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/3bec15.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/3bec15.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/441ba8.wgsl b/test/builtins/gen/textureStore/441ba8.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/441ba8.wgsl rename to test/builtins/gen/textureStore/441ba8.wgsl index a110f0c154..40be067760 100644 --- a/test/intrinsics/gen/textureStore/441ba8.wgsl +++ b/test/builtins/gen/textureStore/441ba8.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/441ba8.wgsl.expected.glsl b/test/builtins/gen/textureStore/441ba8.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/441ba8.wgsl.expected.glsl rename to test/builtins/gen/textureStore/441ba8.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/441ba8.wgsl.expected.hlsl b/test/builtins/gen/textureStore/441ba8.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/441ba8.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/441ba8.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/441ba8.wgsl.expected.msl b/test/builtins/gen/textureStore/441ba8.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/441ba8.wgsl.expected.msl rename to test/builtins/gen/textureStore/441ba8.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/441ba8.wgsl.expected.spvasm b/test/builtins/gen/textureStore/441ba8.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/441ba8.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/441ba8.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/441ba8.wgsl.expected.wgsl b/test/builtins/gen/textureStore/441ba8.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/441ba8.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/441ba8.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/4fc057.wgsl b/test/builtins/gen/textureStore/4fc057.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/4fc057.wgsl rename to test/builtins/gen/textureStore/4fc057.wgsl index b74637023d..12c2b38add 100644 --- a/test/intrinsics/gen/textureStore/4fc057.wgsl +++ b/test/builtins/gen/textureStore/4fc057.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/4fc057.wgsl.expected.glsl b/test/builtins/gen/textureStore/4fc057.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/4fc057.wgsl.expected.glsl rename to test/builtins/gen/textureStore/4fc057.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/4fc057.wgsl.expected.hlsl b/test/builtins/gen/textureStore/4fc057.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/4fc057.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/4fc057.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/4fc057.wgsl.expected.msl b/test/builtins/gen/textureStore/4fc057.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/4fc057.wgsl.expected.msl rename to test/builtins/gen/textureStore/4fc057.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/4fc057.wgsl.expected.spvasm b/test/builtins/gen/textureStore/4fc057.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/4fc057.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/4fc057.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/4fc057.wgsl.expected.wgsl b/test/builtins/gen/textureStore/4fc057.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/4fc057.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/4fc057.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/5a2f8f.wgsl b/test/builtins/gen/textureStore/5a2f8f.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/5a2f8f.wgsl rename to test/builtins/gen/textureStore/5a2f8f.wgsl index b9fc23d55a..10f1c5d558 100644 --- a/test/intrinsics/gen/textureStore/5a2f8f.wgsl +++ b/test/builtins/gen/textureStore/5a2f8f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/5a2f8f.wgsl.expected.glsl b/test/builtins/gen/textureStore/5a2f8f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/5a2f8f.wgsl.expected.glsl rename to test/builtins/gen/textureStore/5a2f8f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/5a2f8f.wgsl.expected.hlsl b/test/builtins/gen/textureStore/5a2f8f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/5a2f8f.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/5a2f8f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/5a2f8f.wgsl.expected.msl b/test/builtins/gen/textureStore/5a2f8f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/5a2f8f.wgsl.expected.msl rename to test/builtins/gen/textureStore/5a2f8f.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/5a2f8f.wgsl.expected.spvasm b/test/builtins/gen/textureStore/5a2f8f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/5a2f8f.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/5a2f8f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/5a2f8f.wgsl.expected.wgsl b/test/builtins/gen/textureStore/5a2f8f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/5a2f8f.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/5a2f8f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/60975f.wgsl b/test/builtins/gen/textureStore/60975f.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/60975f.wgsl rename to test/builtins/gen/textureStore/60975f.wgsl index 3408855d91..e73e4f0f6b 100644 --- a/test/intrinsics/gen/textureStore/60975f.wgsl +++ b/test/builtins/gen/textureStore/60975f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/60975f.wgsl.expected.glsl b/test/builtins/gen/textureStore/60975f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/60975f.wgsl.expected.glsl rename to test/builtins/gen/textureStore/60975f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/60975f.wgsl.expected.hlsl b/test/builtins/gen/textureStore/60975f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/60975f.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/60975f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/60975f.wgsl.expected.msl b/test/builtins/gen/textureStore/60975f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/60975f.wgsl.expected.msl rename to test/builtins/gen/textureStore/60975f.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/60975f.wgsl.expected.spvasm b/test/builtins/gen/textureStore/60975f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/60975f.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/60975f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/60975f.wgsl.expected.wgsl b/test/builtins/gen/textureStore/60975f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/60975f.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/60975f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/682fd6.wgsl b/test/builtins/gen/textureStore/682fd6.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/682fd6.wgsl rename to test/builtins/gen/textureStore/682fd6.wgsl index 7d74607707..68be6e3eb6 100644 --- a/test/intrinsics/gen/textureStore/682fd6.wgsl +++ b/test/builtins/gen/textureStore/682fd6.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/682fd6.wgsl.expected.glsl b/test/builtins/gen/textureStore/682fd6.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/682fd6.wgsl.expected.glsl rename to test/builtins/gen/textureStore/682fd6.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/682fd6.wgsl.expected.hlsl b/test/builtins/gen/textureStore/682fd6.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/682fd6.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/682fd6.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/682fd6.wgsl.expected.msl b/test/builtins/gen/textureStore/682fd6.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/682fd6.wgsl.expected.msl rename to test/builtins/gen/textureStore/682fd6.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/682fd6.wgsl.expected.spvasm b/test/builtins/gen/textureStore/682fd6.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/682fd6.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/682fd6.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/682fd6.wgsl.expected.wgsl b/test/builtins/gen/textureStore/682fd6.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/682fd6.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/682fd6.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/6b75c3.wgsl b/test/builtins/gen/textureStore/6b75c3.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/6b75c3.wgsl rename to test/builtins/gen/textureStore/6b75c3.wgsl index 16dc47dd29..6ded5c19b3 100644 --- a/test/intrinsics/gen/textureStore/6b75c3.wgsl +++ b/test/builtins/gen/textureStore/6b75c3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/6b75c3.wgsl.expected.glsl b/test/builtins/gen/textureStore/6b75c3.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/6b75c3.wgsl.expected.glsl rename to test/builtins/gen/textureStore/6b75c3.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/6b75c3.wgsl.expected.hlsl b/test/builtins/gen/textureStore/6b75c3.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/6b75c3.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/6b75c3.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/6b75c3.wgsl.expected.msl b/test/builtins/gen/textureStore/6b75c3.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/6b75c3.wgsl.expected.msl rename to test/builtins/gen/textureStore/6b75c3.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/6b75c3.wgsl.expected.spvasm b/test/builtins/gen/textureStore/6b75c3.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/6b75c3.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/6b75c3.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/6b75c3.wgsl.expected.wgsl b/test/builtins/gen/textureStore/6b75c3.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/6b75c3.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/6b75c3.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/6b80d2.wgsl b/test/builtins/gen/textureStore/6b80d2.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/6b80d2.wgsl rename to test/builtins/gen/textureStore/6b80d2.wgsl index 95535c4267..dcd07a5111 100644 --- a/test/intrinsics/gen/textureStore/6b80d2.wgsl +++ b/test/builtins/gen/textureStore/6b80d2.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/6b80d2.wgsl.expected.glsl b/test/builtins/gen/textureStore/6b80d2.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/6b80d2.wgsl.expected.glsl rename to test/builtins/gen/textureStore/6b80d2.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/6b80d2.wgsl.expected.hlsl b/test/builtins/gen/textureStore/6b80d2.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/6b80d2.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/6b80d2.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/6b80d2.wgsl.expected.msl b/test/builtins/gen/textureStore/6b80d2.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/6b80d2.wgsl.expected.msl rename to test/builtins/gen/textureStore/6b80d2.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/6b80d2.wgsl.expected.spvasm b/test/builtins/gen/textureStore/6b80d2.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/6b80d2.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/6b80d2.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/6b80d2.wgsl.expected.wgsl b/test/builtins/gen/textureStore/6b80d2.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/6b80d2.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/6b80d2.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/6cff2e.wgsl b/test/builtins/gen/textureStore/6cff2e.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/6cff2e.wgsl rename to test/builtins/gen/textureStore/6cff2e.wgsl index 26320a288a..565fd4d2f9 100644 --- a/test/intrinsics/gen/textureStore/6cff2e.wgsl +++ b/test/builtins/gen/textureStore/6cff2e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/6cff2e.wgsl.expected.glsl b/test/builtins/gen/textureStore/6cff2e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/6cff2e.wgsl.expected.glsl rename to test/builtins/gen/textureStore/6cff2e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/6cff2e.wgsl.expected.hlsl b/test/builtins/gen/textureStore/6cff2e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/6cff2e.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/6cff2e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/6cff2e.wgsl.expected.msl b/test/builtins/gen/textureStore/6cff2e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/6cff2e.wgsl.expected.msl rename to test/builtins/gen/textureStore/6cff2e.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/6cff2e.wgsl.expected.spvasm b/test/builtins/gen/textureStore/6cff2e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/6cff2e.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/6cff2e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/6cff2e.wgsl.expected.wgsl b/test/builtins/gen/textureStore/6cff2e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/6cff2e.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/6cff2e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/6da692.wgsl b/test/builtins/gen/textureStore/6da692.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/6da692.wgsl rename to test/builtins/gen/textureStore/6da692.wgsl index dd40882ae4..0f147fb622 100644 --- a/test/intrinsics/gen/textureStore/6da692.wgsl +++ b/test/builtins/gen/textureStore/6da692.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/6da692.wgsl.expected.glsl b/test/builtins/gen/textureStore/6da692.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/6da692.wgsl.expected.glsl rename to test/builtins/gen/textureStore/6da692.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/6da692.wgsl.expected.hlsl b/test/builtins/gen/textureStore/6da692.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/6da692.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/6da692.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/6da692.wgsl.expected.msl b/test/builtins/gen/textureStore/6da692.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/6da692.wgsl.expected.msl rename to test/builtins/gen/textureStore/6da692.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/6da692.wgsl.expected.spvasm b/test/builtins/gen/textureStore/6da692.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/6da692.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/6da692.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/6da692.wgsl.expected.wgsl b/test/builtins/gen/textureStore/6da692.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/6da692.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/6da692.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/731349.wgsl b/test/builtins/gen/textureStore/731349.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/731349.wgsl rename to test/builtins/gen/textureStore/731349.wgsl index ca0d0ef78b..7082079afe 100644 --- a/test/intrinsics/gen/textureStore/731349.wgsl +++ b/test/builtins/gen/textureStore/731349.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/731349.wgsl.expected.glsl b/test/builtins/gen/textureStore/731349.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/731349.wgsl.expected.glsl rename to test/builtins/gen/textureStore/731349.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/731349.wgsl.expected.hlsl b/test/builtins/gen/textureStore/731349.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/731349.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/731349.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/731349.wgsl.expected.msl b/test/builtins/gen/textureStore/731349.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/731349.wgsl.expected.msl rename to test/builtins/gen/textureStore/731349.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/731349.wgsl.expected.spvasm b/test/builtins/gen/textureStore/731349.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/731349.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/731349.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/731349.wgsl.expected.wgsl b/test/builtins/gen/textureStore/731349.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/731349.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/731349.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/752da6.wgsl b/test/builtins/gen/textureStore/752da6.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/752da6.wgsl rename to test/builtins/gen/textureStore/752da6.wgsl index 6310341776..40c615c8ff 100644 --- a/test/intrinsics/gen/textureStore/752da6.wgsl +++ b/test/builtins/gen/textureStore/752da6.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/752da6.wgsl.expected.glsl b/test/builtins/gen/textureStore/752da6.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/752da6.wgsl.expected.glsl rename to test/builtins/gen/textureStore/752da6.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/752da6.wgsl.expected.hlsl b/test/builtins/gen/textureStore/752da6.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/752da6.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/752da6.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/752da6.wgsl.expected.msl b/test/builtins/gen/textureStore/752da6.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/752da6.wgsl.expected.msl rename to test/builtins/gen/textureStore/752da6.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/752da6.wgsl.expected.spvasm b/test/builtins/gen/textureStore/752da6.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/752da6.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/752da6.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/752da6.wgsl.expected.wgsl b/test/builtins/gen/textureStore/752da6.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/752da6.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/752da6.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/77c0ae.wgsl b/test/builtins/gen/textureStore/77c0ae.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/77c0ae.wgsl rename to test/builtins/gen/textureStore/77c0ae.wgsl index f122e9f6c4..2a82ed7405 100644 --- a/test/intrinsics/gen/textureStore/77c0ae.wgsl +++ b/test/builtins/gen/textureStore/77c0ae.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/77c0ae.wgsl.expected.glsl b/test/builtins/gen/textureStore/77c0ae.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/77c0ae.wgsl.expected.glsl rename to test/builtins/gen/textureStore/77c0ae.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/77c0ae.wgsl.expected.hlsl b/test/builtins/gen/textureStore/77c0ae.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/77c0ae.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/77c0ae.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/77c0ae.wgsl.expected.msl b/test/builtins/gen/textureStore/77c0ae.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/77c0ae.wgsl.expected.msl rename to test/builtins/gen/textureStore/77c0ae.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/77c0ae.wgsl.expected.spvasm b/test/builtins/gen/textureStore/77c0ae.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/77c0ae.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/77c0ae.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/77c0ae.wgsl.expected.wgsl b/test/builtins/gen/textureStore/77c0ae.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/77c0ae.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/77c0ae.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/7cec8d.wgsl b/test/builtins/gen/textureStore/7cec8d.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/7cec8d.wgsl rename to test/builtins/gen/textureStore/7cec8d.wgsl index 5b0f47b0bf..d3a2b80d8d 100644 --- a/test/intrinsics/gen/textureStore/7cec8d.wgsl +++ b/test/builtins/gen/textureStore/7cec8d.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/7cec8d.wgsl.expected.glsl b/test/builtins/gen/textureStore/7cec8d.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/7cec8d.wgsl.expected.glsl rename to test/builtins/gen/textureStore/7cec8d.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/7cec8d.wgsl.expected.hlsl b/test/builtins/gen/textureStore/7cec8d.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/7cec8d.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/7cec8d.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/7cec8d.wgsl.expected.msl b/test/builtins/gen/textureStore/7cec8d.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/7cec8d.wgsl.expected.msl rename to test/builtins/gen/textureStore/7cec8d.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/7cec8d.wgsl.expected.spvasm b/test/builtins/gen/textureStore/7cec8d.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/7cec8d.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/7cec8d.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/7cec8d.wgsl.expected.wgsl b/test/builtins/gen/textureStore/7cec8d.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/7cec8d.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/7cec8d.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/7f7fae.wgsl b/test/builtins/gen/textureStore/7f7fae.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/7f7fae.wgsl rename to test/builtins/gen/textureStore/7f7fae.wgsl index d1d80046d2..589db224e9 100644 --- a/test/intrinsics/gen/textureStore/7f7fae.wgsl +++ b/test/builtins/gen/textureStore/7f7fae.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/7f7fae.wgsl.expected.glsl b/test/builtins/gen/textureStore/7f7fae.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/7f7fae.wgsl.expected.glsl rename to test/builtins/gen/textureStore/7f7fae.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/7f7fae.wgsl.expected.hlsl b/test/builtins/gen/textureStore/7f7fae.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/7f7fae.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/7f7fae.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/7f7fae.wgsl.expected.msl b/test/builtins/gen/textureStore/7f7fae.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/7f7fae.wgsl.expected.msl rename to test/builtins/gen/textureStore/7f7fae.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/7f7fae.wgsl.expected.spvasm b/test/builtins/gen/textureStore/7f7fae.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/7f7fae.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/7f7fae.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/7f7fae.wgsl.expected.wgsl b/test/builtins/gen/textureStore/7f7fae.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/7f7fae.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/7f7fae.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/804942.wgsl b/test/builtins/gen/textureStore/804942.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/804942.wgsl rename to test/builtins/gen/textureStore/804942.wgsl index 6c76b007d7..bcdd0c775d 100644 --- a/test/intrinsics/gen/textureStore/804942.wgsl +++ b/test/builtins/gen/textureStore/804942.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/804942.wgsl.expected.glsl b/test/builtins/gen/textureStore/804942.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/804942.wgsl.expected.glsl rename to test/builtins/gen/textureStore/804942.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/804942.wgsl.expected.hlsl b/test/builtins/gen/textureStore/804942.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/804942.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/804942.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/804942.wgsl.expected.msl b/test/builtins/gen/textureStore/804942.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/804942.wgsl.expected.msl rename to test/builtins/gen/textureStore/804942.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/804942.wgsl.expected.spvasm b/test/builtins/gen/textureStore/804942.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/804942.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/804942.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/804942.wgsl.expected.wgsl b/test/builtins/gen/textureStore/804942.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/804942.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/804942.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/805dae.wgsl b/test/builtins/gen/textureStore/805dae.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/805dae.wgsl rename to test/builtins/gen/textureStore/805dae.wgsl index 962a3ff15e..15061f97dd 100644 --- a/test/intrinsics/gen/textureStore/805dae.wgsl +++ b/test/builtins/gen/textureStore/805dae.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/805dae.wgsl.expected.glsl b/test/builtins/gen/textureStore/805dae.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/805dae.wgsl.expected.glsl rename to test/builtins/gen/textureStore/805dae.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/805dae.wgsl.expected.hlsl b/test/builtins/gen/textureStore/805dae.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/805dae.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/805dae.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/805dae.wgsl.expected.msl b/test/builtins/gen/textureStore/805dae.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/805dae.wgsl.expected.msl rename to test/builtins/gen/textureStore/805dae.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/805dae.wgsl.expected.spvasm b/test/builtins/gen/textureStore/805dae.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/805dae.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/805dae.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/805dae.wgsl.expected.wgsl b/test/builtins/gen/textureStore/805dae.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/805dae.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/805dae.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/83bcc1.wgsl b/test/builtins/gen/textureStore/83bcc1.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/83bcc1.wgsl rename to test/builtins/gen/textureStore/83bcc1.wgsl index 657a679b33..1e13ead7bf 100644 --- a/test/intrinsics/gen/textureStore/83bcc1.wgsl +++ b/test/builtins/gen/textureStore/83bcc1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/83bcc1.wgsl.expected.glsl b/test/builtins/gen/textureStore/83bcc1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/83bcc1.wgsl.expected.glsl rename to test/builtins/gen/textureStore/83bcc1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/83bcc1.wgsl.expected.hlsl b/test/builtins/gen/textureStore/83bcc1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/83bcc1.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/83bcc1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/83bcc1.wgsl.expected.msl b/test/builtins/gen/textureStore/83bcc1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/83bcc1.wgsl.expected.msl rename to test/builtins/gen/textureStore/83bcc1.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/83bcc1.wgsl.expected.spvasm b/test/builtins/gen/textureStore/83bcc1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/83bcc1.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/83bcc1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/83bcc1.wgsl.expected.wgsl b/test/builtins/gen/textureStore/83bcc1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/83bcc1.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/83bcc1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/872747.wgsl b/test/builtins/gen/textureStore/872747.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/872747.wgsl rename to test/builtins/gen/textureStore/872747.wgsl index cbb964b8cd..8975750c6f 100644 --- a/test/intrinsics/gen/textureStore/872747.wgsl +++ b/test/builtins/gen/textureStore/872747.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/872747.wgsl.expected.glsl b/test/builtins/gen/textureStore/872747.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/872747.wgsl.expected.glsl rename to test/builtins/gen/textureStore/872747.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/872747.wgsl.expected.hlsl b/test/builtins/gen/textureStore/872747.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/872747.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/872747.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/872747.wgsl.expected.msl b/test/builtins/gen/textureStore/872747.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/872747.wgsl.expected.msl rename to test/builtins/gen/textureStore/872747.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/872747.wgsl.expected.spvasm b/test/builtins/gen/textureStore/872747.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/872747.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/872747.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/872747.wgsl.expected.wgsl b/test/builtins/gen/textureStore/872747.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/872747.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/872747.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/8e0479.wgsl b/test/builtins/gen/textureStore/8e0479.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/8e0479.wgsl rename to test/builtins/gen/textureStore/8e0479.wgsl index 98b7f8c725..265532c260 100644 --- a/test/intrinsics/gen/textureStore/8e0479.wgsl +++ b/test/builtins/gen/textureStore/8e0479.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/8e0479.wgsl.expected.glsl b/test/builtins/gen/textureStore/8e0479.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/8e0479.wgsl.expected.glsl rename to test/builtins/gen/textureStore/8e0479.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/8e0479.wgsl.expected.hlsl b/test/builtins/gen/textureStore/8e0479.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/8e0479.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/8e0479.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/8e0479.wgsl.expected.msl b/test/builtins/gen/textureStore/8e0479.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/8e0479.wgsl.expected.msl rename to test/builtins/gen/textureStore/8e0479.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/8e0479.wgsl.expected.spvasm b/test/builtins/gen/textureStore/8e0479.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/8e0479.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/8e0479.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/8e0479.wgsl.expected.wgsl b/test/builtins/gen/textureStore/8e0479.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/8e0479.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/8e0479.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/8f71a1.wgsl b/test/builtins/gen/textureStore/8f71a1.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/8f71a1.wgsl rename to test/builtins/gen/textureStore/8f71a1.wgsl index a1298a4897..e2f77ff56e 100644 --- a/test/intrinsics/gen/textureStore/8f71a1.wgsl +++ b/test/builtins/gen/textureStore/8f71a1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/8f71a1.wgsl.expected.glsl b/test/builtins/gen/textureStore/8f71a1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/8f71a1.wgsl.expected.glsl rename to test/builtins/gen/textureStore/8f71a1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/8f71a1.wgsl.expected.hlsl b/test/builtins/gen/textureStore/8f71a1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/8f71a1.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/8f71a1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/8f71a1.wgsl.expected.msl b/test/builtins/gen/textureStore/8f71a1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/8f71a1.wgsl.expected.msl rename to test/builtins/gen/textureStore/8f71a1.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/8f71a1.wgsl.expected.spvasm b/test/builtins/gen/textureStore/8f71a1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/8f71a1.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/8f71a1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/8f71a1.wgsl.expected.wgsl b/test/builtins/gen/textureStore/8f71a1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/8f71a1.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/8f71a1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/969534.wgsl b/test/builtins/gen/textureStore/969534.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/969534.wgsl rename to test/builtins/gen/textureStore/969534.wgsl index d87249fa4f..c16476d1b0 100644 --- a/test/intrinsics/gen/textureStore/969534.wgsl +++ b/test/builtins/gen/textureStore/969534.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/969534.wgsl.expected.glsl b/test/builtins/gen/textureStore/969534.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/969534.wgsl.expected.glsl rename to test/builtins/gen/textureStore/969534.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/969534.wgsl.expected.hlsl b/test/builtins/gen/textureStore/969534.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/969534.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/969534.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/969534.wgsl.expected.msl b/test/builtins/gen/textureStore/969534.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/969534.wgsl.expected.msl rename to test/builtins/gen/textureStore/969534.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/969534.wgsl.expected.spvasm b/test/builtins/gen/textureStore/969534.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/969534.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/969534.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/969534.wgsl.expected.wgsl b/test/builtins/gen/textureStore/969534.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/969534.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/969534.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/9a3ecc.wgsl b/test/builtins/gen/textureStore/9a3ecc.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/9a3ecc.wgsl rename to test/builtins/gen/textureStore/9a3ecc.wgsl index 0bfd6b0148..0cb6232fb6 100644 --- a/test/intrinsics/gen/textureStore/9a3ecc.wgsl +++ b/test/builtins/gen/textureStore/9a3ecc.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/9a3ecc.wgsl.expected.glsl b/test/builtins/gen/textureStore/9a3ecc.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/9a3ecc.wgsl.expected.glsl rename to test/builtins/gen/textureStore/9a3ecc.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/9a3ecc.wgsl.expected.hlsl b/test/builtins/gen/textureStore/9a3ecc.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/9a3ecc.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/9a3ecc.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/9a3ecc.wgsl.expected.msl b/test/builtins/gen/textureStore/9a3ecc.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/9a3ecc.wgsl.expected.msl rename to test/builtins/gen/textureStore/9a3ecc.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/9a3ecc.wgsl.expected.spvasm b/test/builtins/gen/textureStore/9a3ecc.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/9a3ecc.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/9a3ecc.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/9a3ecc.wgsl.expected.wgsl b/test/builtins/gen/textureStore/9a3ecc.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/9a3ecc.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/9a3ecc.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/9d9cd5.wgsl b/test/builtins/gen/textureStore/9d9cd5.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/9d9cd5.wgsl rename to test/builtins/gen/textureStore/9d9cd5.wgsl index 776ac7c117..514db90ba5 100644 --- a/test/intrinsics/gen/textureStore/9d9cd5.wgsl +++ b/test/builtins/gen/textureStore/9d9cd5.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/9d9cd5.wgsl.expected.glsl b/test/builtins/gen/textureStore/9d9cd5.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/9d9cd5.wgsl.expected.glsl rename to test/builtins/gen/textureStore/9d9cd5.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/9d9cd5.wgsl.expected.hlsl b/test/builtins/gen/textureStore/9d9cd5.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/9d9cd5.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/9d9cd5.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/9d9cd5.wgsl.expected.msl b/test/builtins/gen/textureStore/9d9cd5.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/9d9cd5.wgsl.expected.msl rename to test/builtins/gen/textureStore/9d9cd5.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/9d9cd5.wgsl.expected.spvasm b/test/builtins/gen/textureStore/9d9cd5.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/9d9cd5.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/9d9cd5.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/9d9cd5.wgsl.expected.wgsl b/test/builtins/gen/textureStore/9d9cd5.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/9d9cd5.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/9d9cd5.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/9e3ec5.wgsl b/test/builtins/gen/textureStore/9e3ec5.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/9e3ec5.wgsl rename to test/builtins/gen/textureStore/9e3ec5.wgsl index 7b643ca06e..45a8963429 100644 --- a/test/intrinsics/gen/textureStore/9e3ec5.wgsl +++ b/test/builtins/gen/textureStore/9e3ec5.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/9e3ec5.wgsl.expected.glsl b/test/builtins/gen/textureStore/9e3ec5.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/9e3ec5.wgsl.expected.glsl rename to test/builtins/gen/textureStore/9e3ec5.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/9e3ec5.wgsl.expected.hlsl b/test/builtins/gen/textureStore/9e3ec5.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/9e3ec5.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/9e3ec5.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/9e3ec5.wgsl.expected.msl b/test/builtins/gen/textureStore/9e3ec5.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/9e3ec5.wgsl.expected.msl rename to test/builtins/gen/textureStore/9e3ec5.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/9e3ec5.wgsl.expected.spvasm b/test/builtins/gen/textureStore/9e3ec5.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/9e3ec5.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/9e3ec5.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/9e3ec5.wgsl.expected.wgsl b/test/builtins/gen/textureStore/9e3ec5.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/9e3ec5.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/9e3ec5.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/ac67aa.wgsl b/test/builtins/gen/textureStore/ac67aa.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/ac67aa.wgsl rename to test/builtins/gen/textureStore/ac67aa.wgsl index 19bbe7217d..3431a53b10 100644 --- a/test/intrinsics/gen/textureStore/ac67aa.wgsl +++ b/test/builtins/gen/textureStore/ac67aa.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/ac67aa.wgsl.expected.glsl b/test/builtins/gen/textureStore/ac67aa.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/ac67aa.wgsl.expected.glsl rename to test/builtins/gen/textureStore/ac67aa.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/ac67aa.wgsl.expected.hlsl b/test/builtins/gen/textureStore/ac67aa.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/ac67aa.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/ac67aa.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/ac67aa.wgsl.expected.msl b/test/builtins/gen/textureStore/ac67aa.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/ac67aa.wgsl.expected.msl rename to test/builtins/gen/textureStore/ac67aa.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/ac67aa.wgsl.expected.spvasm b/test/builtins/gen/textureStore/ac67aa.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/ac67aa.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/ac67aa.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/ac67aa.wgsl.expected.wgsl b/test/builtins/gen/textureStore/ac67aa.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/ac67aa.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/ac67aa.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/b706b1.wgsl b/test/builtins/gen/textureStore/b706b1.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/b706b1.wgsl rename to test/builtins/gen/textureStore/b706b1.wgsl index 6eb9f07f22..3852067ae5 100644 --- a/test/intrinsics/gen/textureStore/b706b1.wgsl +++ b/test/builtins/gen/textureStore/b706b1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/b706b1.wgsl.expected.glsl b/test/builtins/gen/textureStore/b706b1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/b706b1.wgsl.expected.glsl rename to test/builtins/gen/textureStore/b706b1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/b706b1.wgsl.expected.hlsl b/test/builtins/gen/textureStore/b706b1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/b706b1.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/b706b1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/b706b1.wgsl.expected.msl b/test/builtins/gen/textureStore/b706b1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/b706b1.wgsl.expected.msl rename to test/builtins/gen/textureStore/b706b1.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/b706b1.wgsl.expected.spvasm b/test/builtins/gen/textureStore/b706b1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/b706b1.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/b706b1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/b706b1.wgsl.expected.wgsl b/test/builtins/gen/textureStore/b706b1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/b706b1.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/b706b1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/bbcb7f.wgsl b/test/builtins/gen/textureStore/bbcb7f.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/bbcb7f.wgsl rename to test/builtins/gen/textureStore/bbcb7f.wgsl index fc16ac9545..84d3a16390 100644 --- a/test/intrinsics/gen/textureStore/bbcb7f.wgsl +++ b/test/builtins/gen/textureStore/bbcb7f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/bbcb7f.wgsl.expected.glsl b/test/builtins/gen/textureStore/bbcb7f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/bbcb7f.wgsl.expected.glsl rename to test/builtins/gen/textureStore/bbcb7f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/bbcb7f.wgsl.expected.hlsl b/test/builtins/gen/textureStore/bbcb7f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/bbcb7f.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/bbcb7f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/bbcb7f.wgsl.expected.msl b/test/builtins/gen/textureStore/bbcb7f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/bbcb7f.wgsl.expected.msl rename to test/builtins/gen/textureStore/bbcb7f.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/bbcb7f.wgsl.expected.spvasm b/test/builtins/gen/textureStore/bbcb7f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/bbcb7f.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/bbcb7f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/bbcb7f.wgsl.expected.wgsl b/test/builtins/gen/textureStore/bbcb7f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/bbcb7f.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/bbcb7f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/be6e30.wgsl b/test/builtins/gen/textureStore/be6e30.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/be6e30.wgsl rename to test/builtins/gen/textureStore/be6e30.wgsl index 4cd683403c..92713bbe98 100644 --- a/test/intrinsics/gen/textureStore/be6e30.wgsl +++ b/test/builtins/gen/textureStore/be6e30.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/be6e30.wgsl.expected.glsl b/test/builtins/gen/textureStore/be6e30.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/be6e30.wgsl.expected.glsl rename to test/builtins/gen/textureStore/be6e30.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/be6e30.wgsl.expected.hlsl b/test/builtins/gen/textureStore/be6e30.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/be6e30.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/be6e30.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/be6e30.wgsl.expected.msl b/test/builtins/gen/textureStore/be6e30.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/be6e30.wgsl.expected.msl rename to test/builtins/gen/textureStore/be6e30.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/be6e30.wgsl.expected.spvasm b/test/builtins/gen/textureStore/be6e30.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/be6e30.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/be6e30.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/be6e30.wgsl.expected.wgsl b/test/builtins/gen/textureStore/be6e30.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/be6e30.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/be6e30.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/bf775c.wgsl b/test/builtins/gen/textureStore/bf775c.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/bf775c.wgsl rename to test/builtins/gen/textureStore/bf775c.wgsl index b3671320e0..5dc738fccc 100644 --- a/test/intrinsics/gen/textureStore/bf775c.wgsl +++ b/test/builtins/gen/textureStore/bf775c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/bf775c.wgsl.expected.glsl b/test/builtins/gen/textureStore/bf775c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/bf775c.wgsl.expected.glsl rename to test/builtins/gen/textureStore/bf775c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/bf775c.wgsl.expected.hlsl b/test/builtins/gen/textureStore/bf775c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/bf775c.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/bf775c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/bf775c.wgsl.expected.msl b/test/builtins/gen/textureStore/bf775c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/bf775c.wgsl.expected.msl rename to test/builtins/gen/textureStore/bf775c.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/bf775c.wgsl.expected.spvasm b/test/builtins/gen/textureStore/bf775c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/bf775c.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/bf775c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/bf775c.wgsl.expected.wgsl b/test/builtins/gen/textureStore/bf775c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/bf775c.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/bf775c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/c5af1e.wgsl b/test/builtins/gen/textureStore/c5af1e.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/c5af1e.wgsl rename to test/builtins/gen/textureStore/c5af1e.wgsl index e4cbfa9c4f..65b7ee8613 100644 --- a/test/intrinsics/gen/textureStore/c5af1e.wgsl +++ b/test/builtins/gen/textureStore/c5af1e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/c5af1e.wgsl.expected.glsl b/test/builtins/gen/textureStore/c5af1e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/c5af1e.wgsl.expected.glsl rename to test/builtins/gen/textureStore/c5af1e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/c5af1e.wgsl.expected.hlsl b/test/builtins/gen/textureStore/c5af1e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/c5af1e.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/c5af1e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/c5af1e.wgsl.expected.msl b/test/builtins/gen/textureStore/c5af1e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/c5af1e.wgsl.expected.msl rename to test/builtins/gen/textureStore/c5af1e.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/c5af1e.wgsl.expected.spvasm b/test/builtins/gen/textureStore/c5af1e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/c5af1e.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/c5af1e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/c5af1e.wgsl.expected.wgsl b/test/builtins/gen/textureStore/c5af1e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/c5af1e.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/c5af1e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/c863be.wgsl b/test/builtins/gen/textureStore/c863be.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/c863be.wgsl rename to test/builtins/gen/textureStore/c863be.wgsl index b3d05f83a2..6b97911b69 100644 --- a/test/intrinsics/gen/textureStore/c863be.wgsl +++ b/test/builtins/gen/textureStore/c863be.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/c863be.wgsl.expected.glsl b/test/builtins/gen/textureStore/c863be.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/c863be.wgsl.expected.glsl rename to test/builtins/gen/textureStore/c863be.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/c863be.wgsl.expected.hlsl b/test/builtins/gen/textureStore/c863be.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/c863be.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/c863be.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/c863be.wgsl.expected.msl b/test/builtins/gen/textureStore/c863be.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/c863be.wgsl.expected.msl rename to test/builtins/gen/textureStore/c863be.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/c863be.wgsl.expected.spvasm b/test/builtins/gen/textureStore/c863be.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/c863be.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/c863be.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/c863be.wgsl.expected.wgsl b/test/builtins/gen/textureStore/c863be.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/c863be.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/c863be.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/d73b5c.wgsl b/test/builtins/gen/textureStore/d73b5c.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/d73b5c.wgsl rename to test/builtins/gen/textureStore/d73b5c.wgsl index 29a764defe..ff53404300 100644 --- a/test/intrinsics/gen/textureStore/d73b5c.wgsl +++ b/test/builtins/gen/textureStore/d73b5c.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/d73b5c.wgsl.expected.glsl b/test/builtins/gen/textureStore/d73b5c.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/d73b5c.wgsl.expected.glsl rename to test/builtins/gen/textureStore/d73b5c.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/d73b5c.wgsl.expected.hlsl b/test/builtins/gen/textureStore/d73b5c.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/d73b5c.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/d73b5c.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/d73b5c.wgsl.expected.msl b/test/builtins/gen/textureStore/d73b5c.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/d73b5c.wgsl.expected.msl rename to test/builtins/gen/textureStore/d73b5c.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/d73b5c.wgsl.expected.spvasm b/test/builtins/gen/textureStore/d73b5c.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/d73b5c.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/d73b5c.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/d73b5c.wgsl.expected.wgsl b/test/builtins/gen/textureStore/d73b5c.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/d73b5c.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/d73b5c.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/dd7d81.wgsl b/test/builtins/gen/textureStore/dd7d81.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/dd7d81.wgsl rename to test/builtins/gen/textureStore/dd7d81.wgsl index 4730c2e84d..a9e5ddafe5 100644 --- a/test/intrinsics/gen/textureStore/dd7d81.wgsl +++ b/test/builtins/gen/textureStore/dd7d81.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/dd7d81.wgsl.expected.glsl b/test/builtins/gen/textureStore/dd7d81.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/dd7d81.wgsl.expected.glsl rename to test/builtins/gen/textureStore/dd7d81.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/dd7d81.wgsl.expected.hlsl b/test/builtins/gen/textureStore/dd7d81.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/dd7d81.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/dd7d81.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/dd7d81.wgsl.expected.msl b/test/builtins/gen/textureStore/dd7d81.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/dd7d81.wgsl.expected.msl rename to test/builtins/gen/textureStore/dd7d81.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/dd7d81.wgsl.expected.spvasm b/test/builtins/gen/textureStore/dd7d81.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/dd7d81.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/dd7d81.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/dd7d81.wgsl.expected.wgsl b/test/builtins/gen/textureStore/dd7d81.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/dd7d81.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/dd7d81.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/dde364.wgsl b/test/builtins/gen/textureStore/dde364.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/dde364.wgsl rename to test/builtins/gen/textureStore/dde364.wgsl index 705024792c..1bf72fdf66 100644 --- a/test/intrinsics/gen/textureStore/dde364.wgsl +++ b/test/builtins/gen/textureStore/dde364.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/dde364.wgsl.expected.glsl b/test/builtins/gen/textureStore/dde364.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/dde364.wgsl.expected.glsl rename to test/builtins/gen/textureStore/dde364.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/dde364.wgsl.expected.hlsl b/test/builtins/gen/textureStore/dde364.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/dde364.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/dde364.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/dde364.wgsl.expected.msl b/test/builtins/gen/textureStore/dde364.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/dde364.wgsl.expected.msl rename to test/builtins/gen/textureStore/dde364.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/dde364.wgsl.expected.spvasm b/test/builtins/gen/textureStore/dde364.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/dde364.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/dde364.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/dde364.wgsl.expected.wgsl b/test/builtins/gen/textureStore/dde364.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/dde364.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/dde364.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/e885e8.wgsl b/test/builtins/gen/textureStore/e885e8.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/e885e8.wgsl rename to test/builtins/gen/textureStore/e885e8.wgsl index fd0c31caf1..1aedddcd7b 100644 --- a/test/intrinsics/gen/textureStore/e885e8.wgsl +++ b/test/builtins/gen/textureStore/e885e8.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/e885e8.wgsl.expected.glsl b/test/builtins/gen/textureStore/e885e8.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/e885e8.wgsl.expected.glsl rename to test/builtins/gen/textureStore/e885e8.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/e885e8.wgsl.expected.hlsl b/test/builtins/gen/textureStore/e885e8.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/e885e8.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/e885e8.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/e885e8.wgsl.expected.msl b/test/builtins/gen/textureStore/e885e8.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/e885e8.wgsl.expected.msl rename to test/builtins/gen/textureStore/e885e8.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/e885e8.wgsl.expected.spvasm b/test/builtins/gen/textureStore/e885e8.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/e885e8.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/e885e8.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/e885e8.wgsl.expected.wgsl b/test/builtins/gen/textureStore/e885e8.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/e885e8.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/e885e8.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/eb702f.wgsl b/test/builtins/gen/textureStore/eb702f.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/eb702f.wgsl rename to test/builtins/gen/textureStore/eb702f.wgsl index 283888d035..09747704bc 100644 --- a/test/intrinsics/gen/textureStore/eb702f.wgsl +++ b/test/builtins/gen/textureStore/eb702f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/eb702f.wgsl.expected.glsl b/test/builtins/gen/textureStore/eb702f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/eb702f.wgsl.expected.glsl rename to test/builtins/gen/textureStore/eb702f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/eb702f.wgsl.expected.hlsl b/test/builtins/gen/textureStore/eb702f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/eb702f.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/eb702f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/eb702f.wgsl.expected.msl b/test/builtins/gen/textureStore/eb702f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/eb702f.wgsl.expected.msl rename to test/builtins/gen/textureStore/eb702f.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/eb702f.wgsl.expected.spvasm b/test/builtins/gen/textureStore/eb702f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/eb702f.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/eb702f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/eb702f.wgsl.expected.wgsl b/test/builtins/gen/textureStore/eb702f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/eb702f.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/eb702f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/eb78b9.wgsl b/test/builtins/gen/textureStore/eb78b9.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/eb78b9.wgsl rename to test/builtins/gen/textureStore/eb78b9.wgsl index db051b1d1d..d0416f9f8d 100644 --- a/test/intrinsics/gen/textureStore/eb78b9.wgsl +++ b/test/builtins/gen/textureStore/eb78b9.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/eb78b9.wgsl.expected.glsl b/test/builtins/gen/textureStore/eb78b9.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/eb78b9.wgsl.expected.glsl rename to test/builtins/gen/textureStore/eb78b9.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/eb78b9.wgsl.expected.hlsl b/test/builtins/gen/textureStore/eb78b9.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/eb78b9.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/eb78b9.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/eb78b9.wgsl.expected.msl b/test/builtins/gen/textureStore/eb78b9.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/eb78b9.wgsl.expected.msl rename to test/builtins/gen/textureStore/eb78b9.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/eb78b9.wgsl.expected.spvasm b/test/builtins/gen/textureStore/eb78b9.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/eb78b9.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/eb78b9.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/eb78b9.wgsl.expected.wgsl b/test/builtins/gen/textureStore/eb78b9.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/eb78b9.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/eb78b9.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/ee6acc.wgsl b/test/builtins/gen/textureStore/ee6acc.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/ee6acc.wgsl rename to test/builtins/gen/textureStore/ee6acc.wgsl index b6db2d0e50..80976c4155 100644 --- a/test/intrinsics/gen/textureStore/ee6acc.wgsl +++ b/test/builtins/gen/textureStore/ee6acc.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/ee6acc.wgsl.expected.glsl b/test/builtins/gen/textureStore/ee6acc.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/ee6acc.wgsl.expected.glsl rename to test/builtins/gen/textureStore/ee6acc.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/ee6acc.wgsl.expected.hlsl b/test/builtins/gen/textureStore/ee6acc.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/ee6acc.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/ee6acc.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/ee6acc.wgsl.expected.msl b/test/builtins/gen/textureStore/ee6acc.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/ee6acc.wgsl.expected.msl rename to test/builtins/gen/textureStore/ee6acc.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/ee6acc.wgsl.expected.spvasm b/test/builtins/gen/textureStore/ee6acc.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/ee6acc.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/ee6acc.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/ee6acc.wgsl.expected.wgsl b/test/builtins/gen/textureStore/ee6acc.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/ee6acc.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/ee6acc.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/ef9f2f.wgsl b/test/builtins/gen/textureStore/ef9f2f.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/ef9f2f.wgsl rename to test/builtins/gen/textureStore/ef9f2f.wgsl index 51c8545b10..5913a2443e 100644 --- a/test/intrinsics/gen/textureStore/ef9f2f.wgsl +++ b/test/builtins/gen/textureStore/ef9f2f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/ef9f2f.wgsl.expected.glsl b/test/builtins/gen/textureStore/ef9f2f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/ef9f2f.wgsl.expected.glsl rename to test/builtins/gen/textureStore/ef9f2f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/ef9f2f.wgsl.expected.hlsl b/test/builtins/gen/textureStore/ef9f2f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/ef9f2f.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/ef9f2f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/ef9f2f.wgsl.expected.msl b/test/builtins/gen/textureStore/ef9f2f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/ef9f2f.wgsl.expected.msl rename to test/builtins/gen/textureStore/ef9f2f.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/ef9f2f.wgsl.expected.spvasm b/test/builtins/gen/textureStore/ef9f2f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/ef9f2f.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/ef9f2f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/ef9f2f.wgsl.expected.wgsl b/test/builtins/gen/textureStore/ef9f2f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/ef9f2f.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/ef9f2f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/f8dead.wgsl b/test/builtins/gen/textureStore/f8dead.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/f8dead.wgsl rename to test/builtins/gen/textureStore/f8dead.wgsl index 8cd8a241e5..955c42c110 100644 --- a/test/intrinsics/gen/textureStore/f8dead.wgsl +++ b/test/builtins/gen/textureStore/f8dead.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/f8dead.wgsl.expected.glsl b/test/builtins/gen/textureStore/f8dead.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/f8dead.wgsl.expected.glsl rename to test/builtins/gen/textureStore/f8dead.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/f8dead.wgsl.expected.hlsl b/test/builtins/gen/textureStore/f8dead.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/f8dead.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/f8dead.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/f8dead.wgsl.expected.msl b/test/builtins/gen/textureStore/f8dead.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/f8dead.wgsl.expected.msl rename to test/builtins/gen/textureStore/f8dead.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/f8dead.wgsl.expected.spvasm b/test/builtins/gen/textureStore/f8dead.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/f8dead.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/f8dead.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/f8dead.wgsl.expected.wgsl b/test/builtins/gen/textureStore/f8dead.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/f8dead.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/f8dead.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/f9be83.wgsl b/test/builtins/gen/textureStore/f9be83.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/f9be83.wgsl rename to test/builtins/gen/textureStore/f9be83.wgsl index a5f5b60470..f0627b4adf 100644 --- a/test/intrinsics/gen/textureStore/f9be83.wgsl +++ b/test/builtins/gen/textureStore/f9be83.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/f9be83.wgsl.expected.glsl b/test/builtins/gen/textureStore/f9be83.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/f9be83.wgsl.expected.glsl rename to test/builtins/gen/textureStore/f9be83.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/f9be83.wgsl.expected.hlsl b/test/builtins/gen/textureStore/f9be83.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/f9be83.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/f9be83.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/f9be83.wgsl.expected.msl b/test/builtins/gen/textureStore/f9be83.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/f9be83.wgsl.expected.msl rename to test/builtins/gen/textureStore/f9be83.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/f9be83.wgsl.expected.spvasm b/test/builtins/gen/textureStore/f9be83.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/f9be83.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/f9be83.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/f9be83.wgsl.expected.wgsl b/test/builtins/gen/textureStore/f9be83.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/f9be83.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/f9be83.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/fb9a8f.wgsl b/test/builtins/gen/textureStore/fb9a8f.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/fb9a8f.wgsl rename to test/builtins/gen/textureStore/fb9a8f.wgsl index e8002d0eef..9fcc489121 100644 --- a/test/intrinsics/gen/textureStore/fb9a8f.wgsl +++ b/test/builtins/gen/textureStore/fb9a8f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/fb9a8f.wgsl.expected.glsl b/test/builtins/gen/textureStore/fb9a8f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/fb9a8f.wgsl.expected.glsl rename to test/builtins/gen/textureStore/fb9a8f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/fb9a8f.wgsl.expected.hlsl b/test/builtins/gen/textureStore/fb9a8f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/fb9a8f.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/fb9a8f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/fb9a8f.wgsl.expected.msl b/test/builtins/gen/textureStore/fb9a8f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/fb9a8f.wgsl.expected.msl rename to test/builtins/gen/textureStore/fb9a8f.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/fb9a8f.wgsl.expected.spvasm b/test/builtins/gen/textureStore/fb9a8f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/fb9a8f.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/fb9a8f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/fb9a8f.wgsl.expected.wgsl b/test/builtins/gen/textureStore/fb9a8f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/fb9a8f.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/fb9a8f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/textureStore/fbf53f.wgsl b/test/builtins/gen/textureStore/fbf53f.wgsl similarity index 90% rename from test/intrinsics/gen/textureStore/fbf53f.wgsl rename to test/builtins/gen/textureStore/fbf53f.wgsl index eefd540874..158d3f077f 100644 --- a/test/intrinsics/gen/textureStore/fbf53f.wgsl +++ b/test/builtins/gen/textureStore/fbf53f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/textureStore/fbf53f.wgsl.expected.glsl b/test/builtins/gen/textureStore/fbf53f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/textureStore/fbf53f.wgsl.expected.glsl rename to test/builtins/gen/textureStore/fbf53f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/textureStore/fbf53f.wgsl.expected.hlsl b/test/builtins/gen/textureStore/fbf53f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/textureStore/fbf53f.wgsl.expected.hlsl rename to test/builtins/gen/textureStore/fbf53f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/textureStore/fbf53f.wgsl.expected.msl b/test/builtins/gen/textureStore/fbf53f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/textureStore/fbf53f.wgsl.expected.msl rename to test/builtins/gen/textureStore/fbf53f.wgsl.expected.msl diff --git a/test/intrinsics/gen/textureStore/fbf53f.wgsl.expected.spvasm b/test/builtins/gen/textureStore/fbf53f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/textureStore/fbf53f.wgsl.expected.spvasm rename to test/builtins/gen/textureStore/fbf53f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/textureStore/fbf53f.wgsl.expected.wgsl b/test/builtins/gen/textureStore/fbf53f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/textureStore/fbf53f.wgsl.expected.wgsl rename to test/builtins/gen/textureStore/fbf53f.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/transpose/2585cd.wgsl b/test/builtins/gen/transpose/2585cd.wgsl similarity index 89% rename from test/intrinsics/gen/transpose/2585cd.wgsl rename to test/builtins/gen/transpose/2585cd.wgsl index d693d259f1..93d79ad443 100644 --- a/test/intrinsics/gen/transpose/2585cd.wgsl +++ b/test/builtins/gen/transpose/2585cd.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/transpose/2585cd.wgsl.expected.glsl b/test/builtins/gen/transpose/2585cd.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/transpose/2585cd.wgsl.expected.glsl rename to test/builtins/gen/transpose/2585cd.wgsl.expected.glsl diff --git a/test/intrinsics/gen/transpose/2585cd.wgsl.expected.hlsl b/test/builtins/gen/transpose/2585cd.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/transpose/2585cd.wgsl.expected.hlsl rename to test/builtins/gen/transpose/2585cd.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/transpose/2585cd.wgsl.expected.msl b/test/builtins/gen/transpose/2585cd.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/transpose/2585cd.wgsl.expected.msl rename to test/builtins/gen/transpose/2585cd.wgsl.expected.msl diff --git a/test/intrinsics/gen/transpose/2585cd.wgsl.expected.spvasm b/test/builtins/gen/transpose/2585cd.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/transpose/2585cd.wgsl.expected.spvasm rename to test/builtins/gen/transpose/2585cd.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/transpose/2585cd.wgsl.expected.wgsl b/test/builtins/gen/transpose/2585cd.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/transpose/2585cd.wgsl.expected.wgsl rename to test/builtins/gen/transpose/2585cd.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/transpose/31d679.wgsl b/test/builtins/gen/transpose/31d679.wgsl similarity index 89% rename from test/intrinsics/gen/transpose/31d679.wgsl rename to test/builtins/gen/transpose/31d679.wgsl index 2f5b72a35a..0d596825a7 100644 --- a/test/intrinsics/gen/transpose/31d679.wgsl +++ b/test/builtins/gen/transpose/31d679.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/transpose/31d679.wgsl.expected.glsl b/test/builtins/gen/transpose/31d679.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/transpose/31d679.wgsl.expected.glsl rename to test/builtins/gen/transpose/31d679.wgsl.expected.glsl diff --git a/test/intrinsics/gen/transpose/31d679.wgsl.expected.hlsl b/test/builtins/gen/transpose/31d679.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/transpose/31d679.wgsl.expected.hlsl rename to test/builtins/gen/transpose/31d679.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/transpose/31d679.wgsl.expected.msl b/test/builtins/gen/transpose/31d679.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/transpose/31d679.wgsl.expected.msl rename to test/builtins/gen/transpose/31d679.wgsl.expected.msl diff --git a/test/intrinsics/gen/transpose/31d679.wgsl.expected.spvasm b/test/builtins/gen/transpose/31d679.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/transpose/31d679.wgsl.expected.spvasm rename to test/builtins/gen/transpose/31d679.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/transpose/31d679.wgsl.expected.wgsl b/test/builtins/gen/transpose/31d679.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/transpose/31d679.wgsl.expected.wgsl rename to test/builtins/gen/transpose/31d679.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/transpose/31e37e.wgsl b/test/builtins/gen/transpose/31e37e.wgsl similarity index 89% rename from test/intrinsics/gen/transpose/31e37e.wgsl rename to test/builtins/gen/transpose/31e37e.wgsl index 0246329c35..9773170bfd 100644 --- a/test/intrinsics/gen/transpose/31e37e.wgsl +++ b/test/builtins/gen/transpose/31e37e.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/transpose/31e37e.wgsl.expected.glsl b/test/builtins/gen/transpose/31e37e.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/transpose/31e37e.wgsl.expected.glsl rename to test/builtins/gen/transpose/31e37e.wgsl.expected.glsl diff --git a/test/intrinsics/gen/transpose/31e37e.wgsl.expected.hlsl b/test/builtins/gen/transpose/31e37e.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/transpose/31e37e.wgsl.expected.hlsl rename to test/builtins/gen/transpose/31e37e.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/transpose/31e37e.wgsl.expected.msl b/test/builtins/gen/transpose/31e37e.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/transpose/31e37e.wgsl.expected.msl rename to test/builtins/gen/transpose/31e37e.wgsl.expected.msl diff --git a/test/intrinsics/gen/transpose/31e37e.wgsl.expected.spvasm b/test/builtins/gen/transpose/31e37e.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/transpose/31e37e.wgsl.expected.spvasm rename to test/builtins/gen/transpose/31e37e.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/transpose/31e37e.wgsl.expected.wgsl b/test/builtins/gen/transpose/31e37e.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/transpose/31e37e.wgsl.expected.wgsl rename to test/builtins/gen/transpose/31e37e.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/transpose/4ce359.wgsl b/test/builtins/gen/transpose/4ce359.wgsl similarity index 89% rename from test/intrinsics/gen/transpose/4ce359.wgsl rename to test/builtins/gen/transpose/4ce359.wgsl index 5f8c9ccada..88b25bca47 100644 --- a/test/intrinsics/gen/transpose/4ce359.wgsl +++ b/test/builtins/gen/transpose/4ce359.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/transpose/4ce359.wgsl.expected.glsl b/test/builtins/gen/transpose/4ce359.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/transpose/4ce359.wgsl.expected.glsl rename to test/builtins/gen/transpose/4ce359.wgsl.expected.glsl diff --git a/test/intrinsics/gen/transpose/4ce359.wgsl.expected.hlsl b/test/builtins/gen/transpose/4ce359.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/transpose/4ce359.wgsl.expected.hlsl rename to test/builtins/gen/transpose/4ce359.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/transpose/4ce359.wgsl.expected.msl b/test/builtins/gen/transpose/4ce359.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/transpose/4ce359.wgsl.expected.msl rename to test/builtins/gen/transpose/4ce359.wgsl.expected.msl diff --git a/test/intrinsics/gen/transpose/4ce359.wgsl.expected.spvasm b/test/builtins/gen/transpose/4ce359.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/transpose/4ce359.wgsl.expected.spvasm rename to test/builtins/gen/transpose/4ce359.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/transpose/4ce359.wgsl.expected.wgsl b/test/builtins/gen/transpose/4ce359.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/transpose/4ce359.wgsl.expected.wgsl rename to test/builtins/gen/transpose/4ce359.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/transpose/4dc9a1.wgsl b/test/builtins/gen/transpose/4dc9a1.wgsl similarity index 89% rename from test/intrinsics/gen/transpose/4dc9a1.wgsl rename to test/builtins/gen/transpose/4dc9a1.wgsl index f98f9e2df1..9cc6473dd2 100644 --- a/test/intrinsics/gen/transpose/4dc9a1.wgsl +++ b/test/builtins/gen/transpose/4dc9a1.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/transpose/4dc9a1.wgsl.expected.glsl b/test/builtins/gen/transpose/4dc9a1.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/transpose/4dc9a1.wgsl.expected.glsl rename to test/builtins/gen/transpose/4dc9a1.wgsl.expected.glsl diff --git a/test/intrinsics/gen/transpose/4dc9a1.wgsl.expected.hlsl b/test/builtins/gen/transpose/4dc9a1.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/transpose/4dc9a1.wgsl.expected.hlsl rename to test/builtins/gen/transpose/4dc9a1.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/transpose/4dc9a1.wgsl.expected.msl b/test/builtins/gen/transpose/4dc9a1.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/transpose/4dc9a1.wgsl.expected.msl rename to test/builtins/gen/transpose/4dc9a1.wgsl.expected.msl diff --git a/test/intrinsics/gen/transpose/4dc9a1.wgsl.expected.spvasm b/test/builtins/gen/transpose/4dc9a1.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/transpose/4dc9a1.wgsl.expected.spvasm rename to test/builtins/gen/transpose/4dc9a1.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/transpose/4dc9a1.wgsl.expected.wgsl b/test/builtins/gen/transpose/4dc9a1.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/transpose/4dc9a1.wgsl.expected.wgsl rename to test/builtins/gen/transpose/4dc9a1.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/transpose/854336.wgsl b/test/builtins/gen/transpose/854336.wgsl similarity index 89% rename from test/intrinsics/gen/transpose/854336.wgsl rename to test/builtins/gen/transpose/854336.wgsl index 9dccf318d8..a6ed5e3d6c 100644 --- a/test/intrinsics/gen/transpose/854336.wgsl +++ b/test/builtins/gen/transpose/854336.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/transpose/854336.wgsl.expected.glsl b/test/builtins/gen/transpose/854336.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/transpose/854336.wgsl.expected.glsl rename to test/builtins/gen/transpose/854336.wgsl.expected.glsl diff --git a/test/intrinsics/gen/transpose/854336.wgsl.expected.hlsl b/test/builtins/gen/transpose/854336.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/transpose/854336.wgsl.expected.hlsl rename to test/builtins/gen/transpose/854336.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/transpose/854336.wgsl.expected.msl b/test/builtins/gen/transpose/854336.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/transpose/854336.wgsl.expected.msl rename to test/builtins/gen/transpose/854336.wgsl.expected.msl diff --git a/test/intrinsics/gen/transpose/854336.wgsl.expected.spvasm b/test/builtins/gen/transpose/854336.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/transpose/854336.wgsl.expected.spvasm rename to test/builtins/gen/transpose/854336.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/transpose/854336.wgsl.expected.wgsl b/test/builtins/gen/transpose/854336.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/transpose/854336.wgsl.expected.wgsl rename to test/builtins/gen/transpose/854336.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/transpose/c1b600.wgsl b/test/builtins/gen/transpose/c1b600.wgsl similarity index 89% rename from test/intrinsics/gen/transpose/c1b600.wgsl rename to test/builtins/gen/transpose/c1b600.wgsl index e0fc4fc8a6..fdc47dc412 100644 --- a/test/intrinsics/gen/transpose/c1b600.wgsl +++ b/test/builtins/gen/transpose/c1b600.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/transpose/c1b600.wgsl.expected.glsl b/test/builtins/gen/transpose/c1b600.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/transpose/c1b600.wgsl.expected.glsl rename to test/builtins/gen/transpose/c1b600.wgsl.expected.glsl diff --git a/test/intrinsics/gen/transpose/c1b600.wgsl.expected.hlsl b/test/builtins/gen/transpose/c1b600.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/transpose/c1b600.wgsl.expected.hlsl rename to test/builtins/gen/transpose/c1b600.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/transpose/c1b600.wgsl.expected.msl b/test/builtins/gen/transpose/c1b600.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/transpose/c1b600.wgsl.expected.msl rename to test/builtins/gen/transpose/c1b600.wgsl.expected.msl diff --git a/test/intrinsics/gen/transpose/c1b600.wgsl.expected.spvasm b/test/builtins/gen/transpose/c1b600.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/transpose/c1b600.wgsl.expected.spvasm rename to test/builtins/gen/transpose/c1b600.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/transpose/c1b600.wgsl.expected.wgsl b/test/builtins/gen/transpose/c1b600.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/transpose/c1b600.wgsl.expected.wgsl rename to test/builtins/gen/transpose/c1b600.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/transpose/d8f8ba.wgsl b/test/builtins/gen/transpose/d8f8ba.wgsl similarity index 89% rename from test/intrinsics/gen/transpose/d8f8ba.wgsl rename to test/builtins/gen/transpose/d8f8ba.wgsl index a09be46334..d22d71dfa1 100644 --- a/test/intrinsics/gen/transpose/d8f8ba.wgsl +++ b/test/builtins/gen/transpose/d8f8ba.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/transpose/d8f8ba.wgsl.expected.glsl b/test/builtins/gen/transpose/d8f8ba.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/transpose/d8f8ba.wgsl.expected.glsl rename to test/builtins/gen/transpose/d8f8ba.wgsl.expected.glsl diff --git a/test/intrinsics/gen/transpose/d8f8ba.wgsl.expected.hlsl b/test/builtins/gen/transpose/d8f8ba.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/transpose/d8f8ba.wgsl.expected.hlsl rename to test/builtins/gen/transpose/d8f8ba.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/transpose/d8f8ba.wgsl.expected.msl b/test/builtins/gen/transpose/d8f8ba.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/transpose/d8f8ba.wgsl.expected.msl rename to test/builtins/gen/transpose/d8f8ba.wgsl.expected.msl diff --git a/test/intrinsics/gen/transpose/d8f8ba.wgsl.expected.spvasm b/test/builtins/gen/transpose/d8f8ba.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/transpose/d8f8ba.wgsl.expected.spvasm rename to test/builtins/gen/transpose/d8f8ba.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/transpose/d8f8ba.wgsl.expected.wgsl b/test/builtins/gen/transpose/d8f8ba.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/transpose/d8f8ba.wgsl.expected.wgsl rename to test/builtins/gen/transpose/d8f8ba.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/transpose/ed4bdc.wgsl b/test/builtins/gen/transpose/ed4bdc.wgsl similarity index 89% rename from test/intrinsics/gen/transpose/ed4bdc.wgsl rename to test/builtins/gen/transpose/ed4bdc.wgsl index 0ed170e7c3..5fd4e48652 100644 --- a/test/intrinsics/gen/transpose/ed4bdc.wgsl +++ b/test/builtins/gen/transpose/ed4bdc.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/transpose/ed4bdc.wgsl.expected.glsl b/test/builtins/gen/transpose/ed4bdc.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/transpose/ed4bdc.wgsl.expected.glsl rename to test/builtins/gen/transpose/ed4bdc.wgsl.expected.glsl diff --git a/test/intrinsics/gen/transpose/ed4bdc.wgsl.expected.hlsl b/test/builtins/gen/transpose/ed4bdc.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/transpose/ed4bdc.wgsl.expected.hlsl rename to test/builtins/gen/transpose/ed4bdc.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/transpose/ed4bdc.wgsl.expected.msl b/test/builtins/gen/transpose/ed4bdc.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/transpose/ed4bdc.wgsl.expected.msl rename to test/builtins/gen/transpose/ed4bdc.wgsl.expected.msl diff --git a/test/intrinsics/gen/transpose/ed4bdc.wgsl.expected.spvasm b/test/builtins/gen/transpose/ed4bdc.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/transpose/ed4bdc.wgsl.expected.spvasm rename to test/builtins/gen/transpose/ed4bdc.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/transpose/ed4bdc.wgsl.expected.wgsl b/test/builtins/gen/transpose/ed4bdc.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/transpose/ed4bdc.wgsl.expected.wgsl rename to test/builtins/gen/transpose/ed4bdc.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/trunc/562d05.wgsl b/test/builtins/gen/trunc/562d05.wgsl similarity index 89% rename from test/intrinsics/gen/trunc/562d05.wgsl rename to test/builtins/gen/trunc/562d05.wgsl index 65a0b42c3f..1d792e8e95 100644 --- a/test/intrinsics/gen/trunc/562d05.wgsl +++ b/test/builtins/gen/trunc/562d05.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/trunc/562d05.wgsl.expected.glsl b/test/builtins/gen/trunc/562d05.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/trunc/562d05.wgsl.expected.glsl rename to test/builtins/gen/trunc/562d05.wgsl.expected.glsl diff --git a/test/intrinsics/gen/trunc/562d05.wgsl.expected.hlsl b/test/builtins/gen/trunc/562d05.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/trunc/562d05.wgsl.expected.hlsl rename to test/builtins/gen/trunc/562d05.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/trunc/562d05.wgsl.expected.msl b/test/builtins/gen/trunc/562d05.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/trunc/562d05.wgsl.expected.msl rename to test/builtins/gen/trunc/562d05.wgsl.expected.msl diff --git a/test/intrinsics/gen/trunc/562d05.wgsl.expected.spvasm b/test/builtins/gen/trunc/562d05.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/trunc/562d05.wgsl.expected.spvasm rename to test/builtins/gen/trunc/562d05.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/trunc/562d05.wgsl.expected.wgsl b/test/builtins/gen/trunc/562d05.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/trunc/562d05.wgsl.expected.wgsl rename to test/builtins/gen/trunc/562d05.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/trunc/e183aa.wgsl b/test/builtins/gen/trunc/e183aa.wgsl similarity index 89% rename from test/intrinsics/gen/trunc/e183aa.wgsl rename to test/builtins/gen/trunc/e183aa.wgsl index 186a1e9df8..d719d01dec 100644 --- a/test/intrinsics/gen/trunc/e183aa.wgsl +++ b/test/builtins/gen/trunc/e183aa.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/trunc/e183aa.wgsl.expected.glsl b/test/builtins/gen/trunc/e183aa.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/trunc/e183aa.wgsl.expected.glsl rename to test/builtins/gen/trunc/e183aa.wgsl.expected.glsl diff --git a/test/intrinsics/gen/trunc/e183aa.wgsl.expected.hlsl b/test/builtins/gen/trunc/e183aa.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/trunc/e183aa.wgsl.expected.hlsl rename to test/builtins/gen/trunc/e183aa.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/trunc/e183aa.wgsl.expected.msl b/test/builtins/gen/trunc/e183aa.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/trunc/e183aa.wgsl.expected.msl rename to test/builtins/gen/trunc/e183aa.wgsl.expected.msl diff --git a/test/intrinsics/gen/trunc/e183aa.wgsl.expected.spvasm b/test/builtins/gen/trunc/e183aa.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/trunc/e183aa.wgsl.expected.spvasm rename to test/builtins/gen/trunc/e183aa.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/trunc/e183aa.wgsl.expected.wgsl b/test/builtins/gen/trunc/e183aa.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/trunc/e183aa.wgsl.expected.wgsl rename to test/builtins/gen/trunc/e183aa.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/trunc/eb83df.wgsl b/test/builtins/gen/trunc/eb83df.wgsl similarity index 88% rename from test/intrinsics/gen/trunc/eb83df.wgsl rename to test/builtins/gen/trunc/eb83df.wgsl index 4da7b28771..685dcbaa3c 100644 --- a/test/intrinsics/gen/trunc/eb83df.wgsl +++ b/test/builtins/gen/trunc/eb83df.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/trunc/eb83df.wgsl.expected.glsl b/test/builtins/gen/trunc/eb83df.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/trunc/eb83df.wgsl.expected.glsl rename to test/builtins/gen/trunc/eb83df.wgsl.expected.glsl diff --git a/test/intrinsics/gen/trunc/eb83df.wgsl.expected.hlsl b/test/builtins/gen/trunc/eb83df.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/trunc/eb83df.wgsl.expected.hlsl rename to test/builtins/gen/trunc/eb83df.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/trunc/eb83df.wgsl.expected.msl b/test/builtins/gen/trunc/eb83df.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/trunc/eb83df.wgsl.expected.msl rename to test/builtins/gen/trunc/eb83df.wgsl.expected.msl diff --git a/test/intrinsics/gen/trunc/eb83df.wgsl.expected.spvasm b/test/builtins/gen/trunc/eb83df.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/trunc/eb83df.wgsl.expected.spvasm rename to test/builtins/gen/trunc/eb83df.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/trunc/eb83df.wgsl.expected.wgsl b/test/builtins/gen/trunc/eb83df.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/trunc/eb83df.wgsl.expected.wgsl rename to test/builtins/gen/trunc/eb83df.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/trunc/f370d3.wgsl b/test/builtins/gen/trunc/f370d3.wgsl similarity index 89% rename from test/intrinsics/gen/trunc/f370d3.wgsl rename to test/builtins/gen/trunc/f370d3.wgsl index 0587914772..dbf5a05022 100644 --- a/test/intrinsics/gen/trunc/f370d3.wgsl +++ b/test/builtins/gen/trunc/f370d3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/trunc/f370d3.wgsl.expected.glsl b/test/builtins/gen/trunc/f370d3.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/trunc/f370d3.wgsl.expected.glsl rename to test/builtins/gen/trunc/f370d3.wgsl.expected.glsl diff --git a/test/intrinsics/gen/trunc/f370d3.wgsl.expected.hlsl b/test/builtins/gen/trunc/f370d3.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/trunc/f370d3.wgsl.expected.hlsl rename to test/builtins/gen/trunc/f370d3.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/trunc/f370d3.wgsl.expected.msl b/test/builtins/gen/trunc/f370d3.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/trunc/f370d3.wgsl.expected.msl rename to test/builtins/gen/trunc/f370d3.wgsl.expected.msl diff --git a/test/intrinsics/gen/trunc/f370d3.wgsl.expected.spvasm b/test/builtins/gen/trunc/f370d3.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/trunc/f370d3.wgsl.expected.spvasm rename to test/builtins/gen/trunc/f370d3.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/trunc/f370d3.wgsl.expected.wgsl b/test/builtins/gen/trunc/f370d3.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/trunc/f370d3.wgsl.expected.wgsl rename to test/builtins/gen/trunc/f370d3.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/unpack2x16float/32a5cf.wgsl b/test/builtins/gen/unpack2x16float/32a5cf.wgsl similarity index 89% rename from test/intrinsics/gen/unpack2x16float/32a5cf.wgsl rename to test/builtins/gen/unpack2x16float/32a5cf.wgsl index db4b36b308..c270720912 100644 --- a/test/intrinsics/gen/unpack2x16float/32a5cf.wgsl +++ b/test/builtins/gen/unpack2x16float/32a5cf.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/unpack2x16float/32a5cf.wgsl.expected.glsl b/test/builtins/gen/unpack2x16float/32a5cf.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/unpack2x16float/32a5cf.wgsl.expected.glsl rename to test/builtins/gen/unpack2x16float/32a5cf.wgsl.expected.glsl diff --git a/test/intrinsics/gen/unpack2x16float/32a5cf.wgsl.expected.hlsl b/test/builtins/gen/unpack2x16float/32a5cf.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/unpack2x16float/32a5cf.wgsl.expected.hlsl rename to test/builtins/gen/unpack2x16float/32a5cf.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/unpack2x16float/32a5cf.wgsl.expected.msl b/test/builtins/gen/unpack2x16float/32a5cf.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/unpack2x16float/32a5cf.wgsl.expected.msl rename to test/builtins/gen/unpack2x16float/32a5cf.wgsl.expected.msl diff --git a/test/intrinsics/gen/unpack2x16float/32a5cf.wgsl.expected.spvasm b/test/builtins/gen/unpack2x16float/32a5cf.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/unpack2x16float/32a5cf.wgsl.expected.spvasm rename to test/builtins/gen/unpack2x16float/32a5cf.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/unpack2x16float/32a5cf.wgsl.expected.wgsl b/test/builtins/gen/unpack2x16float/32a5cf.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/unpack2x16float/32a5cf.wgsl.expected.wgsl rename to test/builtins/gen/unpack2x16float/32a5cf.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/unpack2x16snorm/b4aea6.wgsl b/test/builtins/gen/unpack2x16snorm/b4aea6.wgsl similarity index 89% rename from test/intrinsics/gen/unpack2x16snorm/b4aea6.wgsl rename to test/builtins/gen/unpack2x16snorm/b4aea6.wgsl index 0ff4ddd98e..7a284ceba2 100644 --- a/test/intrinsics/gen/unpack2x16snorm/b4aea6.wgsl +++ b/test/builtins/gen/unpack2x16snorm/b4aea6.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/unpack2x16snorm/b4aea6.wgsl.expected.glsl b/test/builtins/gen/unpack2x16snorm/b4aea6.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/unpack2x16snorm/b4aea6.wgsl.expected.glsl rename to test/builtins/gen/unpack2x16snorm/b4aea6.wgsl.expected.glsl diff --git a/test/intrinsics/gen/unpack2x16snorm/b4aea6.wgsl.expected.hlsl b/test/builtins/gen/unpack2x16snorm/b4aea6.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/unpack2x16snorm/b4aea6.wgsl.expected.hlsl rename to test/builtins/gen/unpack2x16snorm/b4aea6.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/unpack2x16snorm/b4aea6.wgsl.expected.msl b/test/builtins/gen/unpack2x16snorm/b4aea6.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/unpack2x16snorm/b4aea6.wgsl.expected.msl rename to test/builtins/gen/unpack2x16snorm/b4aea6.wgsl.expected.msl diff --git a/test/intrinsics/gen/unpack2x16snorm/b4aea6.wgsl.expected.spvasm b/test/builtins/gen/unpack2x16snorm/b4aea6.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/unpack2x16snorm/b4aea6.wgsl.expected.spvasm rename to test/builtins/gen/unpack2x16snorm/b4aea6.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/unpack2x16snorm/b4aea6.wgsl.expected.wgsl b/test/builtins/gen/unpack2x16snorm/b4aea6.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/unpack2x16snorm/b4aea6.wgsl.expected.wgsl rename to test/builtins/gen/unpack2x16snorm/b4aea6.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/unpack2x16unorm/7699c0.wgsl b/test/builtins/gen/unpack2x16unorm/7699c0.wgsl similarity index 89% rename from test/intrinsics/gen/unpack2x16unorm/7699c0.wgsl rename to test/builtins/gen/unpack2x16unorm/7699c0.wgsl index 7a5e3ad5a0..9e20260af5 100644 --- a/test/intrinsics/gen/unpack2x16unorm/7699c0.wgsl +++ b/test/builtins/gen/unpack2x16unorm/7699c0.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/unpack2x16unorm/7699c0.wgsl.expected.glsl b/test/builtins/gen/unpack2x16unorm/7699c0.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/unpack2x16unorm/7699c0.wgsl.expected.glsl rename to test/builtins/gen/unpack2x16unorm/7699c0.wgsl.expected.glsl diff --git a/test/intrinsics/gen/unpack2x16unorm/7699c0.wgsl.expected.hlsl b/test/builtins/gen/unpack2x16unorm/7699c0.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/unpack2x16unorm/7699c0.wgsl.expected.hlsl rename to test/builtins/gen/unpack2x16unorm/7699c0.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/unpack2x16unorm/7699c0.wgsl.expected.msl b/test/builtins/gen/unpack2x16unorm/7699c0.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/unpack2x16unorm/7699c0.wgsl.expected.msl rename to test/builtins/gen/unpack2x16unorm/7699c0.wgsl.expected.msl diff --git a/test/intrinsics/gen/unpack2x16unorm/7699c0.wgsl.expected.spvasm b/test/builtins/gen/unpack2x16unorm/7699c0.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/unpack2x16unorm/7699c0.wgsl.expected.spvasm rename to test/builtins/gen/unpack2x16unorm/7699c0.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/unpack2x16unorm/7699c0.wgsl.expected.wgsl b/test/builtins/gen/unpack2x16unorm/7699c0.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/unpack2x16unorm/7699c0.wgsl.expected.wgsl rename to test/builtins/gen/unpack2x16unorm/7699c0.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/unpack4x8snorm/523fb3.wgsl b/test/builtins/gen/unpack4x8snorm/523fb3.wgsl similarity index 89% rename from test/intrinsics/gen/unpack4x8snorm/523fb3.wgsl rename to test/builtins/gen/unpack4x8snorm/523fb3.wgsl index 0692bf2872..a6495ea650 100644 --- a/test/intrinsics/gen/unpack4x8snorm/523fb3.wgsl +++ b/test/builtins/gen/unpack4x8snorm/523fb3.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/unpack4x8snorm/523fb3.wgsl.expected.glsl b/test/builtins/gen/unpack4x8snorm/523fb3.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/unpack4x8snorm/523fb3.wgsl.expected.glsl rename to test/builtins/gen/unpack4x8snorm/523fb3.wgsl.expected.glsl diff --git a/test/intrinsics/gen/unpack4x8snorm/523fb3.wgsl.expected.hlsl b/test/builtins/gen/unpack4x8snorm/523fb3.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/unpack4x8snorm/523fb3.wgsl.expected.hlsl rename to test/builtins/gen/unpack4x8snorm/523fb3.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/unpack4x8snorm/523fb3.wgsl.expected.msl b/test/builtins/gen/unpack4x8snorm/523fb3.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/unpack4x8snorm/523fb3.wgsl.expected.msl rename to test/builtins/gen/unpack4x8snorm/523fb3.wgsl.expected.msl diff --git a/test/intrinsics/gen/unpack4x8snorm/523fb3.wgsl.expected.spvasm b/test/builtins/gen/unpack4x8snorm/523fb3.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/unpack4x8snorm/523fb3.wgsl.expected.spvasm rename to test/builtins/gen/unpack4x8snorm/523fb3.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/unpack4x8snorm/523fb3.wgsl.expected.wgsl b/test/builtins/gen/unpack4x8snorm/523fb3.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/unpack4x8snorm/523fb3.wgsl.expected.wgsl rename to test/builtins/gen/unpack4x8snorm/523fb3.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/unpack4x8unorm/750c74.wgsl b/test/builtins/gen/unpack4x8unorm/750c74.wgsl similarity index 89% rename from test/intrinsics/gen/unpack4x8unorm/750c74.wgsl rename to test/builtins/gen/unpack4x8unorm/750c74.wgsl index f0fcae3765..89fa81c2dd 100644 --- a/test/intrinsics/gen/unpack4x8unorm/750c74.wgsl +++ b/test/builtins/gen/unpack4x8unorm/750c74.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/unpack4x8unorm/750c74.wgsl.expected.glsl b/test/builtins/gen/unpack4x8unorm/750c74.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/unpack4x8unorm/750c74.wgsl.expected.glsl rename to test/builtins/gen/unpack4x8unorm/750c74.wgsl.expected.glsl diff --git a/test/intrinsics/gen/unpack4x8unorm/750c74.wgsl.expected.hlsl b/test/builtins/gen/unpack4x8unorm/750c74.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/unpack4x8unorm/750c74.wgsl.expected.hlsl rename to test/builtins/gen/unpack4x8unorm/750c74.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/unpack4x8unorm/750c74.wgsl.expected.msl b/test/builtins/gen/unpack4x8unorm/750c74.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/unpack4x8unorm/750c74.wgsl.expected.msl rename to test/builtins/gen/unpack4x8unorm/750c74.wgsl.expected.msl diff --git a/test/intrinsics/gen/unpack4x8unorm/750c74.wgsl.expected.spvasm b/test/builtins/gen/unpack4x8unorm/750c74.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/unpack4x8unorm/750c74.wgsl.expected.spvasm rename to test/builtins/gen/unpack4x8unorm/750c74.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/unpack4x8unorm/750c74.wgsl.expected.wgsl b/test/builtins/gen/unpack4x8unorm/750c74.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/unpack4x8unorm/750c74.wgsl.expected.wgsl rename to test/builtins/gen/unpack4x8unorm/750c74.wgsl.expected.wgsl diff --git a/test/intrinsics/gen/workgroupBarrier/a17f7f.wgsl b/test/builtins/gen/workgroupBarrier/a17f7f.wgsl similarity index 87% rename from test/intrinsics/gen/workgroupBarrier/a17f7f.wgsl rename to test/builtins/gen/workgroupBarrier/a17f7f.wgsl index a0065479df..89fc240751 100644 --- a/test/intrinsics/gen/workgroupBarrier/a17f7f.wgsl +++ b/test/builtins/gen/workgroupBarrier/a17f7f.wgsl @@ -13,11 +13,11 @@ // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: -// test/intrinsics/intrinsics.wgsl.tmpl -// and the intrinsic defintion file: -// src/intrinsics.def +// test/builtins/builtins.wgsl.tmpl +// and the builtin defintion file: +// src/builtins.def // // Do not modify this file directly //////////////////////////////////////////////////////////////////////////////// diff --git a/test/intrinsics/gen/workgroupBarrier/a17f7f.wgsl.expected.glsl b/test/builtins/gen/workgroupBarrier/a17f7f.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/gen/workgroupBarrier/a17f7f.wgsl.expected.glsl rename to test/builtins/gen/workgroupBarrier/a17f7f.wgsl.expected.glsl diff --git a/test/intrinsics/gen/workgroupBarrier/a17f7f.wgsl.expected.hlsl b/test/builtins/gen/workgroupBarrier/a17f7f.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/gen/workgroupBarrier/a17f7f.wgsl.expected.hlsl rename to test/builtins/gen/workgroupBarrier/a17f7f.wgsl.expected.hlsl diff --git a/test/intrinsics/gen/workgroupBarrier/a17f7f.wgsl.expected.msl b/test/builtins/gen/workgroupBarrier/a17f7f.wgsl.expected.msl similarity index 100% rename from test/intrinsics/gen/workgroupBarrier/a17f7f.wgsl.expected.msl rename to test/builtins/gen/workgroupBarrier/a17f7f.wgsl.expected.msl diff --git a/test/intrinsics/gen/workgroupBarrier/a17f7f.wgsl.expected.spvasm b/test/builtins/gen/workgroupBarrier/a17f7f.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/gen/workgroupBarrier/a17f7f.wgsl.expected.spvasm rename to test/builtins/gen/workgroupBarrier/a17f7f.wgsl.expected.spvasm diff --git a/test/intrinsics/gen/workgroupBarrier/a17f7f.wgsl.expected.wgsl b/test/builtins/gen/workgroupBarrier/a17f7f.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/gen/workgroupBarrier/a17f7f.wgsl.expected.wgsl rename to test/builtins/gen/workgroupBarrier/a17f7f.wgsl.expected.wgsl diff --git a/test/intrinsics/modf.wgsl b/test/builtins/modf.wgsl similarity index 100% rename from test/intrinsics/modf.wgsl rename to test/builtins/modf.wgsl diff --git a/test/intrinsics/modf.wgsl.expected.glsl b/test/builtins/modf.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/modf.wgsl.expected.glsl rename to test/builtins/modf.wgsl.expected.glsl diff --git a/test/intrinsics/modf.wgsl.expected.hlsl b/test/builtins/modf.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/modf.wgsl.expected.hlsl rename to test/builtins/modf.wgsl.expected.hlsl diff --git a/test/intrinsics/modf.wgsl.expected.msl b/test/builtins/modf.wgsl.expected.msl similarity index 100% rename from test/intrinsics/modf.wgsl.expected.msl rename to test/builtins/modf.wgsl.expected.msl diff --git a/test/intrinsics/modf.wgsl.expected.spvasm b/test/builtins/modf.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/modf.wgsl.expected.spvasm rename to test/builtins/modf.wgsl.expected.spvasm diff --git a/test/intrinsics/modf.wgsl.expected.wgsl b/test/builtins/modf.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/modf.wgsl.expected.wgsl rename to test/builtins/modf.wgsl.expected.wgsl diff --git a/test/intrinsics/radians.spvasm b/test/builtins/radians.spvasm similarity index 100% rename from test/intrinsics/radians.spvasm rename to test/builtins/radians.spvasm diff --git a/test/intrinsics/radians.spvasm.expected.glsl b/test/builtins/radians.spvasm.expected.glsl similarity index 100% rename from test/intrinsics/radians.spvasm.expected.glsl rename to test/builtins/radians.spvasm.expected.glsl diff --git a/test/intrinsics/radians.spvasm.expected.hlsl b/test/builtins/radians.spvasm.expected.hlsl similarity index 100% rename from test/intrinsics/radians.spvasm.expected.hlsl rename to test/builtins/radians.spvasm.expected.hlsl diff --git a/test/intrinsics/radians.spvasm.expected.msl b/test/builtins/radians.spvasm.expected.msl similarity index 100% rename from test/intrinsics/radians.spvasm.expected.msl rename to test/builtins/radians.spvasm.expected.msl diff --git a/test/intrinsics/radians.spvasm.expected.spvasm b/test/builtins/radians.spvasm.expected.spvasm similarity index 100% rename from test/intrinsics/radians.spvasm.expected.spvasm rename to test/builtins/radians.spvasm.expected.spvasm diff --git a/test/intrinsics/radians.spvasm.expected.wgsl b/test/builtins/radians.spvasm.expected.wgsl similarity index 100% rename from test/intrinsics/radians.spvasm.expected.wgsl rename to test/builtins/radians.spvasm.expected.wgsl diff --git a/test/intrinsics/repeated_use.wgsl b/test/builtins/repeated_use.wgsl similarity index 100% rename from test/intrinsics/repeated_use.wgsl rename to test/builtins/repeated_use.wgsl diff --git a/test/intrinsics/repeated_use.wgsl.expected.glsl b/test/builtins/repeated_use.wgsl.expected.glsl similarity index 68% rename from test/intrinsics/repeated_use.wgsl.expected.glsl rename to test/builtins/repeated_use.wgsl.expected.glsl index f759523680..450afef4f7 100644 --- a/test/intrinsics/repeated_use.wgsl.expected.glsl +++ b/test/builtins/repeated_use.wgsl.expected.glsl @@ -1,50 +1,50 @@ SKIP: FAILED -intrinsics/repeated_use.wgsl:5:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:5:9 warning: use of deprecated builtin _ = isNormal(vec4()); ^^^^^^^^ -intrinsics/repeated_use.wgsl:6:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:6:9 warning: use of deprecated builtin _ = isNormal(vec4(1.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:7:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:7:9 warning: use of deprecated builtin _ = isNormal(vec4(1., 2., 3., 4.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:9:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:9:9 warning: use of deprecated builtin _ = isNormal(vec3()); ^^^^^^^^ -intrinsics/repeated_use.wgsl:10:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:10:9 warning: use of deprecated builtin _ = isNormal(vec3(1.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:11:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:11:9 warning: use of deprecated builtin _ = isNormal(vec3(1., 2., 3.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:13:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:13:9 warning: use of deprecated builtin _ = isNormal(vec2()); ^^^^^^^^ -intrinsics/repeated_use.wgsl:14:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:14:9 warning: use of deprecated builtin _ = isNormal(vec2(1.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:15:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:15:9 warning: use of deprecated builtin _ = isNormal(vec2(1., 2.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:17:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:17:9 warning: use of deprecated builtin _ = isNormal(1.); ^^^^^^^^ -intrinsics/repeated_use.wgsl:18:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:18:9 warning: use of deprecated builtin _ = isNormal(2.); ^^^^^^^^ -intrinsics/repeated_use.wgsl:19:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:19:9 warning: use of deprecated builtin _ = isNormal(3.); ^^^^^^^^ @@ -97,8 +97,8 @@ void main() { return; } Error parsing GLSL shader: -ERROR: 0:5: 'uint4' : undeclared identifier -ERROR: 0:5: '' : compilation terminated +ERROR: 0:5: 'uint4' : undeclared identifier +ERROR: 0:5: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/intrinsics/repeated_use.wgsl.expected.hlsl b/test/builtins/repeated_use.wgsl.expected.hlsl similarity index 68% rename from test/intrinsics/repeated_use.wgsl.expected.hlsl rename to test/builtins/repeated_use.wgsl.expected.hlsl index 588662486f..eb05edfc7b 100644 --- a/test/intrinsics/repeated_use.wgsl.expected.hlsl +++ b/test/builtins/repeated_use.wgsl.expected.hlsl @@ -1,48 +1,48 @@ -intrinsics/repeated_use.wgsl:5:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:5:9 warning: use of deprecated builtin _ = isNormal(vec4()); ^^^^^^^^ -intrinsics/repeated_use.wgsl:6:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:6:9 warning: use of deprecated builtin _ = isNormal(vec4(1.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:7:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:7:9 warning: use of deprecated builtin _ = isNormal(vec4(1., 2., 3., 4.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:9:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:9:9 warning: use of deprecated builtin _ = isNormal(vec3()); ^^^^^^^^ -intrinsics/repeated_use.wgsl:10:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:10:9 warning: use of deprecated builtin _ = isNormal(vec3(1.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:11:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:11:9 warning: use of deprecated builtin _ = isNormal(vec3(1., 2., 3.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:13:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:13:9 warning: use of deprecated builtin _ = isNormal(vec2()); ^^^^^^^^ -intrinsics/repeated_use.wgsl:14:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:14:9 warning: use of deprecated builtin _ = isNormal(vec2(1.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:15:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:15:9 warning: use of deprecated builtin _ = isNormal(vec2(1., 2.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:17:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:17:9 warning: use of deprecated builtin _ = isNormal(1.); ^^^^^^^^ -intrinsics/repeated_use.wgsl:18:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:18:9 warning: use of deprecated builtin _ = isNormal(2.); ^^^^^^^^ -intrinsics/repeated_use.wgsl:19:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:19:9 warning: use of deprecated builtin _ = isNormal(3.); ^^^^^^^^ diff --git a/test/intrinsics/repeated_use.wgsl.expected.msl b/test/builtins/repeated_use.wgsl.expected.msl similarity index 54% rename from test/intrinsics/repeated_use.wgsl.expected.msl rename to test/builtins/repeated_use.wgsl.expected.msl index 848c224482..5b7314a006 100644 --- a/test/intrinsics/repeated_use.wgsl.expected.msl +++ b/test/builtins/repeated_use.wgsl.expected.msl @@ -1,48 +1,48 @@ -intrinsics/repeated_use.wgsl:5:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:5:9 warning: use of deprecated builtin _ = isNormal(vec4()); ^^^^^^^^ -intrinsics/repeated_use.wgsl:6:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:6:9 warning: use of deprecated builtin _ = isNormal(vec4(1.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:7:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:7:9 warning: use of deprecated builtin _ = isNormal(vec4(1., 2., 3., 4.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:9:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:9:9 warning: use of deprecated builtin _ = isNormal(vec3()); ^^^^^^^^ -intrinsics/repeated_use.wgsl:10:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:10:9 warning: use of deprecated builtin _ = isNormal(vec3(1.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:11:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:11:9 warning: use of deprecated builtin _ = isNormal(vec3(1., 2., 3.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:13:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:13:9 warning: use of deprecated builtin _ = isNormal(vec2()); ^^^^^^^^ -intrinsics/repeated_use.wgsl:14:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:14:9 warning: use of deprecated builtin _ = isNormal(vec2(1.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:15:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:15:9 warning: use of deprecated builtin _ = isNormal(vec2(1., 2.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:17:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:17:9 warning: use of deprecated builtin _ = isNormal(1.); ^^^^^^^^ -intrinsics/repeated_use.wgsl:18:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:18:9 warning: use of deprecated builtin _ = isNormal(2.); ^^^^^^^^ -intrinsics/repeated_use.wgsl:19:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:19:9 warning: use of deprecated builtin _ = isNormal(3.); ^^^^^^^^ diff --git a/test/intrinsics/repeated_use.wgsl.expected.spvasm b/test/builtins/repeated_use.wgsl.expected.spvasm similarity index 89% rename from test/intrinsics/repeated_use.wgsl.expected.spvasm rename to test/builtins/repeated_use.wgsl.expected.spvasm index 3e3beb030a..2c50ace4b4 100644 --- a/test/intrinsics/repeated_use.wgsl.expected.spvasm +++ b/test/builtins/repeated_use.wgsl.expected.spvasm @@ -1,48 +1,48 @@ -intrinsics/repeated_use.wgsl:5:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:5:9 warning: use of deprecated builtin _ = isNormal(vec4()); ^^^^^^^^ -intrinsics/repeated_use.wgsl:6:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:6:9 warning: use of deprecated builtin _ = isNormal(vec4(1.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:7:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:7:9 warning: use of deprecated builtin _ = isNormal(vec4(1., 2., 3., 4.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:9:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:9:9 warning: use of deprecated builtin _ = isNormal(vec3()); ^^^^^^^^ -intrinsics/repeated_use.wgsl:10:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:10:9 warning: use of deprecated builtin _ = isNormal(vec3(1.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:11:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:11:9 warning: use of deprecated builtin _ = isNormal(vec3(1., 2., 3.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:13:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:13:9 warning: use of deprecated builtin _ = isNormal(vec2()); ^^^^^^^^ -intrinsics/repeated_use.wgsl:14:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:14:9 warning: use of deprecated builtin _ = isNormal(vec2(1.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:15:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:15:9 warning: use of deprecated builtin _ = isNormal(vec2(1., 2.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:17:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:17:9 warning: use of deprecated builtin _ = isNormal(1.); ^^^^^^^^ -intrinsics/repeated_use.wgsl:18:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:18:9 warning: use of deprecated builtin _ = isNormal(2.); ^^^^^^^^ -intrinsics/repeated_use.wgsl:19:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:19:9 warning: use of deprecated builtin _ = isNormal(3.); ^^^^^^^^ diff --git a/test/intrinsics/repeated_use.wgsl.expected.wgsl b/test/builtins/repeated_use.wgsl.expected.wgsl similarity index 54% rename from test/intrinsics/repeated_use.wgsl.expected.wgsl rename to test/builtins/repeated_use.wgsl.expected.wgsl index 3f21e25dd9..f33ea1c3e8 100644 --- a/test/intrinsics/repeated_use.wgsl.expected.wgsl +++ b/test/builtins/repeated_use.wgsl.expected.wgsl @@ -1,48 +1,48 @@ -intrinsics/repeated_use.wgsl:5:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:5:9 warning: use of deprecated builtin _ = isNormal(vec4()); ^^^^^^^^ -intrinsics/repeated_use.wgsl:6:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:6:9 warning: use of deprecated builtin _ = isNormal(vec4(1.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:7:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:7:9 warning: use of deprecated builtin _ = isNormal(vec4(1., 2., 3., 4.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:9:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:9:9 warning: use of deprecated builtin _ = isNormal(vec3()); ^^^^^^^^ -intrinsics/repeated_use.wgsl:10:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:10:9 warning: use of deprecated builtin _ = isNormal(vec3(1.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:11:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:11:9 warning: use of deprecated builtin _ = isNormal(vec3(1., 2., 3.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:13:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:13:9 warning: use of deprecated builtin _ = isNormal(vec2()); ^^^^^^^^ -intrinsics/repeated_use.wgsl:14:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:14:9 warning: use of deprecated builtin _ = isNormal(vec2(1.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:15:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:15:9 warning: use of deprecated builtin _ = isNormal(vec2(1., 2.)); ^^^^^^^^ -intrinsics/repeated_use.wgsl:17:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:17:9 warning: use of deprecated builtin _ = isNormal(1.); ^^^^^^^^ -intrinsics/repeated_use.wgsl:18:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:18:9 warning: use of deprecated builtin _ = isNormal(2.); ^^^^^^^^ -intrinsics/repeated_use.wgsl:19:9 warning: use of deprecated intrinsic +builtins/repeated_use.wgsl:19:9 warning: use of deprecated builtin _ = isNormal(3.); ^^^^^^^^ diff --git a/test/intrinsics/textureDimensions/depth_ms.spvasm b/test/builtins/textureDimensions/depth_ms.spvasm similarity index 100% rename from test/intrinsics/textureDimensions/depth_ms.spvasm rename to test/builtins/textureDimensions/depth_ms.spvasm diff --git a/test/intrinsics/textureDimensions/depth_ms.spvasm.expected.glsl b/test/builtins/textureDimensions/depth_ms.spvasm.expected.glsl similarity index 100% rename from test/intrinsics/textureDimensions/depth_ms.spvasm.expected.glsl rename to test/builtins/textureDimensions/depth_ms.spvasm.expected.glsl diff --git a/test/intrinsics/textureDimensions/depth_ms.spvasm.expected.hlsl b/test/builtins/textureDimensions/depth_ms.spvasm.expected.hlsl similarity index 100% rename from test/intrinsics/textureDimensions/depth_ms.spvasm.expected.hlsl rename to test/builtins/textureDimensions/depth_ms.spvasm.expected.hlsl diff --git a/test/intrinsics/textureDimensions/depth_ms.spvasm.expected.msl b/test/builtins/textureDimensions/depth_ms.spvasm.expected.msl similarity index 100% rename from test/intrinsics/textureDimensions/depth_ms.spvasm.expected.msl rename to test/builtins/textureDimensions/depth_ms.spvasm.expected.msl diff --git a/test/intrinsics/textureDimensions/depth_ms.spvasm.expected.spvasm b/test/builtins/textureDimensions/depth_ms.spvasm.expected.spvasm similarity index 100% rename from test/intrinsics/textureDimensions/depth_ms.spvasm.expected.spvasm rename to test/builtins/textureDimensions/depth_ms.spvasm.expected.spvasm diff --git a/test/intrinsics/textureDimensions/depth_ms.spvasm.expected.wgsl b/test/builtins/textureDimensions/depth_ms.spvasm.expected.wgsl similarity index 100% rename from test/intrinsics/textureDimensions/depth_ms.spvasm.expected.wgsl rename to test/builtins/textureDimensions/depth_ms.spvasm.expected.wgsl diff --git a/test/intrinsics/textureGather/f32/alpha.wgsl b/test/builtins/textureGather/f32/alpha.wgsl similarity index 100% rename from test/intrinsics/textureGather/f32/alpha.wgsl rename to test/builtins/textureGather/f32/alpha.wgsl diff --git a/test/intrinsics/textureGather/f32/alpha.wgsl.expected.glsl b/test/builtins/textureGather/f32/alpha.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/textureGather/f32/alpha.wgsl.expected.glsl rename to test/builtins/textureGather/f32/alpha.wgsl.expected.glsl diff --git a/test/intrinsics/textureGather/f32/alpha.wgsl.expected.hlsl b/test/builtins/textureGather/f32/alpha.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/textureGather/f32/alpha.wgsl.expected.hlsl rename to test/builtins/textureGather/f32/alpha.wgsl.expected.hlsl diff --git a/test/intrinsics/textureGather/f32/alpha.wgsl.expected.msl b/test/builtins/textureGather/f32/alpha.wgsl.expected.msl similarity index 100% rename from test/intrinsics/textureGather/f32/alpha.wgsl.expected.msl rename to test/builtins/textureGather/f32/alpha.wgsl.expected.msl diff --git a/test/intrinsics/textureGather/f32/alpha.wgsl.expected.spvasm b/test/builtins/textureGather/f32/alpha.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/textureGather/f32/alpha.wgsl.expected.spvasm rename to test/builtins/textureGather/f32/alpha.wgsl.expected.spvasm diff --git a/test/intrinsics/textureGather/f32/alpha.wgsl.expected.wgsl b/test/builtins/textureGather/f32/alpha.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/textureGather/f32/alpha.wgsl.expected.wgsl rename to test/builtins/textureGather/f32/alpha.wgsl.expected.wgsl diff --git a/test/intrinsics/textureGather/f32/blue.wgsl b/test/builtins/textureGather/f32/blue.wgsl similarity index 100% rename from test/intrinsics/textureGather/f32/blue.wgsl rename to test/builtins/textureGather/f32/blue.wgsl diff --git a/test/intrinsics/textureGather/f32/blue.wgsl.expected.glsl b/test/builtins/textureGather/f32/blue.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/textureGather/f32/blue.wgsl.expected.glsl rename to test/builtins/textureGather/f32/blue.wgsl.expected.glsl diff --git a/test/intrinsics/textureGather/f32/blue.wgsl.expected.hlsl b/test/builtins/textureGather/f32/blue.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/textureGather/f32/blue.wgsl.expected.hlsl rename to test/builtins/textureGather/f32/blue.wgsl.expected.hlsl diff --git a/test/intrinsics/textureGather/f32/blue.wgsl.expected.msl b/test/builtins/textureGather/f32/blue.wgsl.expected.msl similarity index 100% rename from test/intrinsics/textureGather/f32/blue.wgsl.expected.msl rename to test/builtins/textureGather/f32/blue.wgsl.expected.msl diff --git a/test/intrinsics/textureGather/f32/blue.wgsl.expected.spvasm b/test/builtins/textureGather/f32/blue.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/textureGather/f32/blue.wgsl.expected.spvasm rename to test/builtins/textureGather/f32/blue.wgsl.expected.spvasm diff --git a/test/intrinsics/textureGather/f32/blue.wgsl.expected.wgsl b/test/builtins/textureGather/f32/blue.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/textureGather/f32/blue.wgsl.expected.wgsl rename to test/builtins/textureGather/f32/blue.wgsl.expected.wgsl diff --git a/test/intrinsics/textureGather/f32/green.wgsl b/test/builtins/textureGather/f32/green.wgsl similarity index 100% rename from test/intrinsics/textureGather/f32/green.wgsl rename to test/builtins/textureGather/f32/green.wgsl diff --git a/test/intrinsics/textureGather/f32/green.wgsl.expected.glsl b/test/builtins/textureGather/f32/green.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/textureGather/f32/green.wgsl.expected.glsl rename to test/builtins/textureGather/f32/green.wgsl.expected.glsl diff --git a/test/intrinsics/textureGather/f32/green.wgsl.expected.hlsl b/test/builtins/textureGather/f32/green.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/textureGather/f32/green.wgsl.expected.hlsl rename to test/builtins/textureGather/f32/green.wgsl.expected.hlsl diff --git a/test/intrinsics/textureGather/f32/green.wgsl.expected.msl b/test/builtins/textureGather/f32/green.wgsl.expected.msl similarity index 100% rename from test/intrinsics/textureGather/f32/green.wgsl.expected.msl rename to test/builtins/textureGather/f32/green.wgsl.expected.msl diff --git a/test/intrinsics/textureGather/f32/green.wgsl.expected.spvasm b/test/builtins/textureGather/f32/green.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/textureGather/f32/green.wgsl.expected.spvasm rename to test/builtins/textureGather/f32/green.wgsl.expected.spvasm diff --git a/test/intrinsics/textureGather/f32/green.wgsl.expected.wgsl b/test/builtins/textureGather/f32/green.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/textureGather/f32/green.wgsl.expected.wgsl rename to test/builtins/textureGather/f32/green.wgsl.expected.wgsl diff --git a/test/intrinsics/textureGather/f32/red.wgsl b/test/builtins/textureGather/f32/red.wgsl similarity index 100% rename from test/intrinsics/textureGather/f32/red.wgsl rename to test/builtins/textureGather/f32/red.wgsl diff --git a/test/intrinsics/textureGather/f32/red.wgsl.expected.glsl b/test/builtins/textureGather/f32/red.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/textureGather/f32/red.wgsl.expected.glsl rename to test/builtins/textureGather/f32/red.wgsl.expected.glsl diff --git a/test/intrinsics/textureGather/f32/red.wgsl.expected.hlsl b/test/builtins/textureGather/f32/red.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/textureGather/f32/red.wgsl.expected.hlsl rename to test/builtins/textureGather/f32/red.wgsl.expected.hlsl diff --git a/test/intrinsics/textureGather/f32/red.wgsl.expected.msl b/test/builtins/textureGather/f32/red.wgsl.expected.msl similarity index 100% rename from test/intrinsics/textureGather/f32/red.wgsl.expected.msl rename to test/builtins/textureGather/f32/red.wgsl.expected.msl diff --git a/test/intrinsics/textureGather/f32/red.wgsl.expected.spvasm b/test/builtins/textureGather/f32/red.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/textureGather/f32/red.wgsl.expected.spvasm rename to test/builtins/textureGather/f32/red.wgsl.expected.spvasm diff --git a/test/intrinsics/textureGather/f32/red.wgsl.expected.wgsl b/test/builtins/textureGather/f32/red.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/textureGather/f32/red.wgsl.expected.wgsl rename to test/builtins/textureGather/f32/red.wgsl.expected.wgsl diff --git a/test/intrinsics/textureGather/i32/alpha.wgsl b/test/builtins/textureGather/i32/alpha.wgsl similarity index 100% rename from test/intrinsics/textureGather/i32/alpha.wgsl rename to test/builtins/textureGather/i32/alpha.wgsl diff --git a/test/intrinsics/textureGather/i32/alpha.wgsl.expected.glsl b/test/builtins/textureGather/i32/alpha.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/textureGather/i32/alpha.wgsl.expected.glsl rename to test/builtins/textureGather/i32/alpha.wgsl.expected.glsl diff --git a/test/intrinsics/textureGather/i32/alpha.wgsl.expected.hlsl b/test/builtins/textureGather/i32/alpha.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/textureGather/i32/alpha.wgsl.expected.hlsl rename to test/builtins/textureGather/i32/alpha.wgsl.expected.hlsl diff --git a/test/intrinsics/textureGather/i32/alpha.wgsl.expected.msl b/test/builtins/textureGather/i32/alpha.wgsl.expected.msl similarity index 100% rename from test/intrinsics/textureGather/i32/alpha.wgsl.expected.msl rename to test/builtins/textureGather/i32/alpha.wgsl.expected.msl diff --git a/test/intrinsics/textureGather/i32/alpha.wgsl.expected.spvasm b/test/builtins/textureGather/i32/alpha.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/textureGather/i32/alpha.wgsl.expected.spvasm rename to test/builtins/textureGather/i32/alpha.wgsl.expected.spvasm diff --git a/test/intrinsics/textureGather/i32/alpha.wgsl.expected.wgsl b/test/builtins/textureGather/i32/alpha.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/textureGather/i32/alpha.wgsl.expected.wgsl rename to test/builtins/textureGather/i32/alpha.wgsl.expected.wgsl diff --git a/test/intrinsics/textureGather/i32/blue.wgsl b/test/builtins/textureGather/i32/blue.wgsl similarity index 100% rename from test/intrinsics/textureGather/i32/blue.wgsl rename to test/builtins/textureGather/i32/blue.wgsl diff --git a/test/intrinsics/textureGather/i32/blue.wgsl.expected.glsl b/test/builtins/textureGather/i32/blue.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/textureGather/i32/blue.wgsl.expected.glsl rename to test/builtins/textureGather/i32/blue.wgsl.expected.glsl diff --git a/test/intrinsics/textureGather/i32/blue.wgsl.expected.hlsl b/test/builtins/textureGather/i32/blue.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/textureGather/i32/blue.wgsl.expected.hlsl rename to test/builtins/textureGather/i32/blue.wgsl.expected.hlsl diff --git a/test/intrinsics/textureGather/i32/blue.wgsl.expected.msl b/test/builtins/textureGather/i32/blue.wgsl.expected.msl similarity index 100% rename from test/intrinsics/textureGather/i32/blue.wgsl.expected.msl rename to test/builtins/textureGather/i32/blue.wgsl.expected.msl diff --git a/test/intrinsics/textureGather/i32/blue.wgsl.expected.spvasm b/test/builtins/textureGather/i32/blue.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/textureGather/i32/blue.wgsl.expected.spvasm rename to test/builtins/textureGather/i32/blue.wgsl.expected.spvasm diff --git a/test/intrinsics/textureGather/i32/blue.wgsl.expected.wgsl b/test/builtins/textureGather/i32/blue.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/textureGather/i32/blue.wgsl.expected.wgsl rename to test/builtins/textureGather/i32/blue.wgsl.expected.wgsl diff --git a/test/intrinsics/textureGather/i32/green.wgsl b/test/builtins/textureGather/i32/green.wgsl similarity index 100% rename from test/intrinsics/textureGather/i32/green.wgsl rename to test/builtins/textureGather/i32/green.wgsl diff --git a/test/intrinsics/textureGather/i32/green.wgsl.expected.glsl b/test/builtins/textureGather/i32/green.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/textureGather/i32/green.wgsl.expected.glsl rename to test/builtins/textureGather/i32/green.wgsl.expected.glsl diff --git a/test/intrinsics/textureGather/i32/green.wgsl.expected.hlsl b/test/builtins/textureGather/i32/green.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/textureGather/i32/green.wgsl.expected.hlsl rename to test/builtins/textureGather/i32/green.wgsl.expected.hlsl diff --git a/test/intrinsics/textureGather/i32/green.wgsl.expected.msl b/test/builtins/textureGather/i32/green.wgsl.expected.msl similarity index 100% rename from test/intrinsics/textureGather/i32/green.wgsl.expected.msl rename to test/builtins/textureGather/i32/green.wgsl.expected.msl diff --git a/test/intrinsics/textureGather/i32/green.wgsl.expected.spvasm b/test/builtins/textureGather/i32/green.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/textureGather/i32/green.wgsl.expected.spvasm rename to test/builtins/textureGather/i32/green.wgsl.expected.spvasm diff --git a/test/intrinsics/textureGather/i32/green.wgsl.expected.wgsl b/test/builtins/textureGather/i32/green.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/textureGather/i32/green.wgsl.expected.wgsl rename to test/builtins/textureGather/i32/green.wgsl.expected.wgsl diff --git a/test/intrinsics/textureGather/i32/red.wgsl b/test/builtins/textureGather/i32/red.wgsl similarity index 100% rename from test/intrinsics/textureGather/i32/red.wgsl rename to test/builtins/textureGather/i32/red.wgsl diff --git a/test/intrinsics/textureGather/i32/red.wgsl.expected.glsl b/test/builtins/textureGather/i32/red.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/textureGather/i32/red.wgsl.expected.glsl rename to test/builtins/textureGather/i32/red.wgsl.expected.glsl diff --git a/test/intrinsics/textureGather/i32/red.wgsl.expected.hlsl b/test/builtins/textureGather/i32/red.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/textureGather/i32/red.wgsl.expected.hlsl rename to test/builtins/textureGather/i32/red.wgsl.expected.hlsl diff --git a/test/intrinsics/textureGather/i32/red.wgsl.expected.msl b/test/builtins/textureGather/i32/red.wgsl.expected.msl similarity index 100% rename from test/intrinsics/textureGather/i32/red.wgsl.expected.msl rename to test/builtins/textureGather/i32/red.wgsl.expected.msl diff --git a/test/intrinsics/textureGather/i32/red.wgsl.expected.spvasm b/test/builtins/textureGather/i32/red.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/textureGather/i32/red.wgsl.expected.spvasm rename to test/builtins/textureGather/i32/red.wgsl.expected.spvasm diff --git a/test/intrinsics/textureGather/i32/red.wgsl.expected.wgsl b/test/builtins/textureGather/i32/red.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/textureGather/i32/red.wgsl.expected.wgsl rename to test/builtins/textureGather/i32/red.wgsl.expected.wgsl diff --git a/test/intrinsics/textureGather/u32/alpha.wgsl b/test/builtins/textureGather/u32/alpha.wgsl similarity index 100% rename from test/intrinsics/textureGather/u32/alpha.wgsl rename to test/builtins/textureGather/u32/alpha.wgsl diff --git a/test/intrinsics/textureGather/u32/alpha.wgsl.expected.glsl b/test/builtins/textureGather/u32/alpha.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/textureGather/u32/alpha.wgsl.expected.glsl rename to test/builtins/textureGather/u32/alpha.wgsl.expected.glsl diff --git a/test/intrinsics/textureGather/u32/alpha.wgsl.expected.hlsl b/test/builtins/textureGather/u32/alpha.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/textureGather/u32/alpha.wgsl.expected.hlsl rename to test/builtins/textureGather/u32/alpha.wgsl.expected.hlsl diff --git a/test/intrinsics/textureGather/u32/alpha.wgsl.expected.msl b/test/builtins/textureGather/u32/alpha.wgsl.expected.msl similarity index 100% rename from test/intrinsics/textureGather/u32/alpha.wgsl.expected.msl rename to test/builtins/textureGather/u32/alpha.wgsl.expected.msl diff --git a/test/intrinsics/textureGather/u32/alpha.wgsl.expected.spvasm b/test/builtins/textureGather/u32/alpha.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/textureGather/u32/alpha.wgsl.expected.spvasm rename to test/builtins/textureGather/u32/alpha.wgsl.expected.spvasm diff --git a/test/intrinsics/textureGather/u32/alpha.wgsl.expected.wgsl b/test/builtins/textureGather/u32/alpha.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/textureGather/u32/alpha.wgsl.expected.wgsl rename to test/builtins/textureGather/u32/alpha.wgsl.expected.wgsl diff --git a/test/intrinsics/textureGather/u32/blue.wgsl b/test/builtins/textureGather/u32/blue.wgsl similarity index 100% rename from test/intrinsics/textureGather/u32/blue.wgsl rename to test/builtins/textureGather/u32/blue.wgsl diff --git a/test/intrinsics/textureGather/u32/blue.wgsl.expected.glsl b/test/builtins/textureGather/u32/blue.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/textureGather/u32/blue.wgsl.expected.glsl rename to test/builtins/textureGather/u32/blue.wgsl.expected.glsl diff --git a/test/intrinsics/textureGather/u32/blue.wgsl.expected.hlsl b/test/builtins/textureGather/u32/blue.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/textureGather/u32/blue.wgsl.expected.hlsl rename to test/builtins/textureGather/u32/blue.wgsl.expected.hlsl diff --git a/test/intrinsics/textureGather/u32/blue.wgsl.expected.msl b/test/builtins/textureGather/u32/blue.wgsl.expected.msl similarity index 100% rename from test/intrinsics/textureGather/u32/blue.wgsl.expected.msl rename to test/builtins/textureGather/u32/blue.wgsl.expected.msl diff --git a/test/intrinsics/textureGather/u32/blue.wgsl.expected.spvasm b/test/builtins/textureGather/u32/blue.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/textureGather/u32/blue.wgsl.expected.spvasm rename to test/builtins/textureGather/u32/blue.wgsl.expected.spvasm diff --git a/test/intrinsics/textureGather/u32/blue.wgsl.expected.wgsl b/test/builtins/textureGather/u32/blue.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/textureGather/u32/blue.wgsl.expected.wgsl rename to test/builtins/textureGather/u32/blue.wgsl.expected.wgsl diff --git a/test/intrinsics/textureGather/u32/green.wgsl b/test/builtins/textureGather/u32/green.wgsl similarity index 100% rename from test/intrinsics/textureGather/u32/green.wgsl rename to test/builtins/textureGather/u32/green.wgsl diff --git a/test/intrinsics/textureGather/u32/green.wgsl.expected.glsl b/test/builtins/textureGather/u32/green.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/textureGather/u32/green.wgsl.expected.glsl rename to test/builtins/textureGather/u32/green.wgsl.expected.glsl diff --git a/test/intrinsics/textureGather/u32/green.wgsl.expected.hlsl b/test/builtins/textureGather/u32/green.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/textureGather/u32/green.wgsl.expected.hlsl rename to test/builtins/textureGather/u32/green.wgsl.expected.hlsl diff --git a/test/intrinsics/textureGather/u32/green.wgsl.expected.msl b/test/builtins/textureGather/u32/green.wgsl.expected.msl similarity index 100% rename from test/intrinsics/textureGather/u32/green.wgsl.expected.msl rename to test/builtins/textureGather/u32/green.wgsl.expected.msl diff --git a/test/intrinsics/textureGather/u32/green.wgsl.expected.spvasm b/test/builtins/textureGather/u32/green.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/textureGather/u32/green.wgsl.expected.spvasm rename to test/builtins/textureGather/u32/green.wgsl.expected.spvasm diff --git a/test/intrinsics/textureGather/u32/green.wgsl.expected.wgsl b/test/builtins/textureGather/u32/green.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/textureGather/u32/green.wgsl.expected.wgsl rename to test/builtins/textureGather/u32/green.wgsl.expected.wgsl diff --git a/test/intrinsics/textureGather/u32/red.wgsl b/test/builtins/textureGather/u32/red.wgsl similarity index 100% rename from test/intrinsics/textureGather/u32/red.wgsl rename to test/builtins/textureGather/u32/red.wgsl diff --git a/test/intrinsics/textureGather/u32/red.wgsl.expected.glsl b/test/builtins/textureGather/u32/red.wgsl.expected.glsl similarity index 100% rename from test/intrinsics/textureGather/u32/red.wgsl.expected.glsl rename to test/builtins/textureGather/u32/red.wgsl.expected.glsl diff --git a/test/intrinsics/textureGather/u32/red.wgsl.expected.hlsl b/test/builtins/textureGather/u32/red.wgsl.expected.hlsl similarity index 100% rename from test/intrinsics/textureGather/u32/red.wgsl.expected.hlsl rename to test/builtins/textureGather/u32/red.wgsl.expected.hlsl diff --git a/test/intrinsics/textureGather/u32/red.wgsl.expected.msl b/test/builtins/textureGather/u32/red.wgsl.expected.msl similarity index 100% rename from test/intrinsics/textureGather/u32/red.wgsl.expected.msl rename to test/builtins/textureGather/u32/red.wgsl.expected.msl diff --git a/test/intrinsics/textureGather/u32/red.wgsl.expected.spvasm b/test/builtins/textureGather/u32/red.wgsl.expected.spvasm similarity index 100% rename from test/intrinsics/textureGather/u32/red.wgsl.expected.spvasm rename to test/builtins/textureGather/u32/red.wgsl.expected.spvasm diff --git a/test/intrinsics/textureGather/u32/red.wgsl.expected.wgsl b/test/builtins/textureGather/u32/red.wgsl.expected.wgsl similarity index 100% rename from test/intrinsics/textureGather/u32/red.wgsl.expected.wgsl rename to test/builtins/textureGather/u32/red.wgsl.expected.wgsl diff --git a/test/intrinsics/textureLoad/depth_ms.spvasm b/test/builtins/textureLoad/depth_ms.spvasm similarity index 100% rename from test/intrinsics/textureLoad/depth_ms.spvasm rename to test/builtins/textureLoad/depth_ms.spvasm diff --git a/test/intrinsics/textureLoad/depth_ms.spvasm.expected.glsl b/test/builtins/textureLoad/depth_ms.spvasm.expected.glsl similarity index 100% rename from test/intrinsics/textureLoad/depth_ms.spvasm.expected.glsl rename to test/builtins/textureLoad/depth_ms.spvasm.expected.glsl diff --git a/test/intrinsics/textureLoad/depth_ms.spvasm.expected.hlsl b/test/builtins/textureLoad/depth_ms.spvasm.expected.hlsl similarity index 100% rename from test/intrinsics/textureLoad/depth_ms.spvasm.expected.hlsl rename to test/builtins/textureLoad/depth_ms.spvasm.expected.hlsl diff --git a/test/intrinsics/textureLoad/depth_ms.spvasm.expected.msl b/test/builtins/textureLoad/depth_ms.spvasm.expected.msl similarity index 100% rename from test/intrinsics/textureLoad/depth_ms.spvasm.expected.msl rename to test/builtins/textureLoad/depth_ms.spvasm.expected.msl diff --git a/test/intrinsics/textureLoad/depth_ms.spvasm.expected.spvasm b/test/builtins/textureLoad/depth_ms.spvasm.expected.spvasm similarity index 100% rename from test/intrinsics/textureLoad/depth_ms.spvasm.expected.spvasm rename to test/builtins/textureLoad/depth_ms.spvasm.expected.spvasm diff --git a/test/intrinsics/textureLoad/depth_ms.spvasm.expected.wgsl b/test/builtins/textureLoad/depth_ms.spvasm.expected.wgsl similarity index 100% rename from test/intrinsics/textureLoad/depth_ms.spvasm.expected.wgsl rename to test/builtins/textureLoad/depth_ms.spvasm.expected.wgsl diff --git a/test/intrinsics/textureNumSamples/depth_ms.spvasm b/test/builtins/textureNumSamples/depth_ms.spvasm similarity index 100% rename from test/intrinsics/textureNumSamples/depth_ms.spvasm rename to test/builtins/textureNumSamples/depth_ms.spvasm diff --git a/test/intrinsics/textureNumSamples/depth_ms.spvasm.expected.glsl b/test/builtins/textureNumSamples/depth_ms.spvasm.expected.glsl similarity index 100% rename from test/intrinsics/textureNumSamples/depth_ms.spvasm.expected.glsl rename to test/builtins/textureNumSamples/depth_ms.spvasm.expected.glsl diff --git a/test/intrinsics/textureNumSamples/depth_ms.spvasm.expected.hlsl b/test/builtins/textureNumSamples/depth_ms.spvasm.expected.hlsl similarity index 100% rename from test/intrinsics/textureNumSamples/depth_ms.spvasm.expected.hlsl rename to test/builtins/textureNumSamples/depth_ms.spvasm.expected.hlsl diff --git a/test/intrinsics/textureNumSamples/depth_ms.spvasm.expected.msl b/test/builtins/textureNumSamples/depth_ms.spvasm.expected.msl similarity index 100% rename from test/intrinsics/textureNumSamples/depth_ms.spvasm.expected.msl rename to test/builtins/textureNumSamples/depth_ms.spvasm.expected.msl diff --git a/test/intrinsics/textureNumSamples/depth_ms.spvasm.expected.spvasm b/test/builtins/textureNumSamples/depth_ms.spvasm.expected.spvasm similarity index 100% rename from test/intrinsics/textureNumSamples/depth_ms.spvasm.expected.spvasm rename to test/builtins/textureNumSamples/depth_ms.spvasm.expected.spvasm diff --git a/test/intrinsics/textureNumSamples/depth_ms.spvasm.expected.wgsl b/test/builtins/textureNumSamples/depth_ms.spvasm.expected.wgsl similarity index 100% rename from test/intrinsics/textureNumSamples/depth_ms.spvasm.expected.wgsl rename to test/builtins/textureNumSamples/depth_ms.spvasm.expected.wgsl diff --git a/test/unittest/reader/spirv/SpvLogicalTest_IsNan_Vector.spvasm.expected.hlsl b/test/unittest/reader/spirv/SpvLogicalTest_IsNan_Vector.spvasm.expected.hlsl index 1c4f65908e..415f63120a 100644 --- a/test/unittest/reader/spirv/SpvLogicalTest_IsNan_Vector.spvasm.expected.hlsl +++ b/test/unittest/reader/spirv/SpvLogicalTest_IsNan_Vector.spvasm.expected.hlsl @@ -1,6 +1,6 @@ SKIP: FAILED -warning: use of deprecated intrinsic +warning: use of deprecated builtin void main_1() { const bool2 x_1 = isnan(float2(50.0f, 60.0f)); return; diff --git a/test/vk-gl-cts/graphicsfuzz/cov-apfloat-module-small-number/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-apfloat-module-small-number/0-opt.spvasm.expected.glsl index 6c40edae22..7d514df328 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-apfloat-module-small-number/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-apfloat-module-small-number/0-opt.spvasm.expected.glsl @@ -1,6 +1,6 @@ SKIP: FAILED -warning: use of deprecated intrinsic +warning: use of deprecated builtin #version 310 es precision mediump float; @@ -92,7 +92,7 @@ void main() { } Error parsing GLSL shader: ERROR: 0:43: '|' : wrong operand types: no operation '|' exists that takes a left-hand operand of type ' global bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) -ERROR: 0:43: '' : compilation terminated +ERROR: 0:43: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-apfloat-module-small-number/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-apfloat-module-small-number/0-opt.wgsl.expected.glsl index 4782e04ec7..604dfed5fc 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-apfloat-module-small-number/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-apfloat-module-small-number/0-opt.wgsl.expected.glsl @@ -8,7 +8,7 @@ vk-gl-cts/graphicsfuzz/cov-apfloat-module-small-number/0-opt.wgsl:7:15 warning: type Arr_1 = @stride(16) array; ^^^^^^ -vk-gl-cts/graphicsfuzz/cov-apfloat-module-small-number/0-opt.wgsl:39:22 warning: use of deprecated intrinsic +vk-gl-cts/graphicsfuzz/cov-apfloat-module-small-number/0-opt.wgsl:39:22 warning: use of deprecated builtin let x_48 : bool = (isInf(x_44) || (x_46 == 1.0)); ^^^^^ @@ -118,7 +118,7 @@ void main() { } Error parsing GLSL shader: ERROR: 0:32: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' const float' and a right operand of type ' const float' (or there is no acceptable conversion) -ERROR: 0:32: '' : compilation terminated +ERROR: 0:32: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/tools/intrinsic-gen b/tools/builtin-gen similarity index 91% rename from tools/intrinsic-gen rename to tools/builtin-gen index cfbbd4eeff..58dc5657bf 100755 --- a/tools/intrinsic-gen +++ b/tools/builtin-gen @@ -22,11 +22,11 @@ fi SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd )" ROOT_DIR="$( cd "${SCRIPT_DIR}/.." >/dev/null 2>&1 && pwd )" -BINARY="${SCRIPT_DIR}/bin/intrinsic-gen" +BINARY="${SCRIPT_DIR}/bin/builtin-gen" # Rebuild the binary. # Note, go caches build artifacts, so this is quick for repeat calls -pushd "${SCRIPT_DIR}/src/cmd/intrinsic-gen" > /dev/null +pushd "${SCRIPT_DIR}/src/cmd/builtin-gen" > /dev/null go build -o "${BINARY}" main.go popd > /dev/null diff --git a/tools/src/cmd/intrinsic-gen/ast/ast.go b/tools/src/cmd/builtin-gen/ast/ast.go similarity index 99% rename from tools/src/cmd/intrinsic-gen/ast/ast.go rename to tools/src/cmd/builtin-gen/ast/ast.go index 8d1da0e2bd..e67530bd03 100644 --- a/tools/src/cmd/intrinsic-gen/ast/ast.go +++ b/tools/src/cmd/builtin-gen/ast/ast.go @@ -20,7 +20,7 @@ import ( "fmt" "strings" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/tok" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/tok" ) // AST is the parsed syntax tree of the intrinsic definition file diff --git a/tools/src/cmd/intrinsic-gen/gen/intrinsic_table.go b/tools/src/cmd/builtin-gen/gen/builtin_table.go similarity index 87% rename from tools/src/cmd/intrinsic-gen/gen/intrinsic_table.go rename to tools/src/cmd/builtin-gen/gen/builtin_table.go index 821b1d6007..dcd7a5f4d8 100644 --- a/tools/src/cmd/intrinsic-gen/gen/intrinsic_table.go +++ b/tools/src/cmd/builtin-gen/gen/builtin_table.go @@ -17,13 +17,13 @@ package gen import ( "fmt" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/sem" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/sem" "dawn.googlesource.com/tint/tools/src/list" "dawn.googlesource.com/tint/tools/src/lut" ) -// IntrinsicTable holds data specific to the intrinsic_table.inl.tmpl template -type IntrinsicTable struct { +// BuiltinTable holds data specific to the intrinsic_table.inl.tmpl template +type BuiltinTable struct { // The semantic info Sem *sem.Sem @@ -42,7 +42,7 @@ type IntrinsicTable struct { OpenNumbers []OpenNumber // kOpenNumbers table content Parameters []Parameter // kParameters table content Overloads []Overload // kOverloads table content - Functions []Function // kIntrinsics table content + Functions []Function // kBuiltins table content } // OpenType is used to create the C++ OpenTypeInfo structure @@ -68,9 +68,9 @@ type Parameter struct { // The parameter usage (parameter name) Usage string - // Index into IntrinsicTable.MatcherIndices, beginning the list of matchers + // Index into BuiltinTable.MatcherIndices, beginning the list of matchers // required to match the parameter type. The matcher indices index - // into IntrinsicTable::TMatchers and / or IntrinsicTable::NMatchers. + // into BuiltinTable::TMatchers and / or BuiltinTable::NMatchers. // These indices are consumed by the matchers themselves. // The first index is always a TypeMatcher. MatcherIndicesOffset *int @@ -84,15 +84,15 @@ type Overload struct { NumOpenTypes int // Total number of open numbers for the overload NumOpenNumbers int - // Index to the first open type in IntrinsicTable.OpenTypes + // Index to the first open type in BuiltinTable.OpenTypes OpenTypesOffset *int - // Index to the first open number in IntrinsicTable.OpenNumbers + // Index to the first open number in BuiltinTable.OpenNumbers OpenNumbersOffset *int - // Index to the first parameter in IntrinsicTable.Parameters + // Index to the first parameter in BuiltinTable.Parameters ParametersOffset *int - // Index into IntrinsicTable.MatcherIndices, beginning the list of matchers + // Index into BuiltinTable.MatcherIndices, beginning the list of matchers // required to match the return type. The matcher indices index - // into IntrinsicTable::TMatchers and / or IntrinsicTable::NMatchers. + // into BuiltinTable::TMatchers and / or BuiltinTable::NMatchers. // These indices are consumed by the matchers themselves. // The first index is always a TypeMatcher. ReturnMatcherIndicesOffset *int @@ -109,10 +109,10 @@ type Function struct { OverloadsOffset *int } -// Helper for building the IntrinsicTable -type intrinsicTableBuilder struct { +// Helper for building the BuiltinTable +type BuiltinTableBuilder struct { // The output of the builder - IntrinsicTable + BuiltinTable // Lookup tables. // These are packed (compressed) once all the entries have been added. @@ -127,7 +127,7 @@ type intrinsicTableBuilder struct { // Helper for building a single overload type overloadBuilder struct { - *intrinsicTableBuilder + *BuiltinTableBuilder // Maps TemplateParam to index in openTypes openTypeIndex map[sem.TemplateParam]int // Maps TemplateParam to index in openNumbers @@ -138,9 +138,9 @@ type overloadBuilder struct { openNumbers []OpenNumber // All parameters declared by the overload parameters []Parameter - // Index into IntrinsicTable.MatcherIndices, beginning the list of matchers + // Index into BuiltinTable.MatcherIndices, beginning the list of matchers // required to match the return type. The matcher indices index - // into IntrinsicTable::TMatchers and / or IntrinsicTable::NMatchers. + // into BuiltinTable::TMatchers and / or BuiltinTable::NMatchers. // These indices are consumed by the matchers themselves. // The first index is always a TypeMatcher. returnTypeMatcherIndicesOffset *int @@ -148,7 +148,7 @@ type overloadBuilder struct { // layoutMatchers assigns each of the TMatchers and NMatchers a unique index // in the C++ Matchers::type and Matchers::number arrays, respectively. -func (b *intrinsicTableBuilder) layoutMatchers(s *sem.Sem) { +func (b *BuiltinTableBuilder) layoutMatchers(s *sem.Sem) { // First MaxOpenTypes of TMatchers are open types b.TMatchers = make([]sem.Named, s.MaxOpenTypes) for _, m := range s.Types { @@ -169,11 +169,11 @@ func (b *intrinsicTableBuilder) layoutMatchers(s *sem.Sem) { } // buildOverload constructs an Overload for a sem.Overload -func (b *intrinsicTableBuilder) buildOverload(o *sem.Overload) (Overload, error) { +func (b *BuiltinTableBuilder) buildOverload(o *sem.Overload) (Overload, error) { ob := overloadBuilder{ - intrinsicTableBuilder: b, - openTypeIndex: map[sem.TemplateParam]int{}, - openNumberIndex: map[sem.TemplateParam]int{}, + BuiltinTableBuilder: b, + openTypeIndex: map[sem.TemplateParam]int{}, + openNumberIndex: map[sem.TemplateParam]int{}, } if err := ob.buildOpenTypes(o); err != nil { @@ -279,7 +279,7 @@ func (b *overloadBuilder) buildReturnType(o *sem.Overload) error { } // matcherIndex returns the index of TMatcher or NMatcher in -// IntrinsicTable.TMatcher or IntrinsicTable.NMatcher, respectively. +// BuiltinTable.TMatcher or BuiltinTable.NMatcher, respectively. func (b *overloadBuilder) matcherIndex(n sem.Named) (int, error) { switch n := n.(type) { case *sem.Type, *sem.TypeMatcher: @@ -342,10 +342,10 @@ func (b *overloadBuilder) collectMatcherIndices(fqn sem.FullyQualifiedName) ([]i return out, nil } -// buildIntrinsicTable builds the IntrinsicTable from the semantic info -func buildIntrinsicTable(s *sem.Sem) (*IntrinsicTable, error) { - b := intrinsicTableBuilder{ - IntrinsicTable: IntrinsicTable{ +// buildBuiltinTable builds the BuiltinTable from the semantic info +func buildBuiltinTable(s *sem.Sem) (*BuiltinTable, error) { + b := BuiltinTableBuilder{ + BuiltinTable: BuiltinTable{ Sem: s, TMatcherIndex: map[sem.Named]int{}, NMatcherIndex: map[sem.Named]int{}, @@ -383,5 +383,5 @@ func buildIntrinsicTable(s *sem.Sem) (*IntrinsicTable, error) { b.lut.parameters.Compact() b.lut.overloads.Compact() - return &b.IntrinsicTable, nil + return &b.BuiltinTable, nil } diff --git a/tools/src/cmd/intrinsic-gen/gen/generate.go b/tools/src/cmd/builtin-gen/gen/generate.go similarity index 93% rename from tools/src/cmd/intrinsic-gen/gen/generate.go rename to tools/src/cmd/builtin-gen/gen/generate.go index 34a8257942..ad9fd7ed55 100644 --- a/tools/src/cmd/intrinsic-gen/gen/generate.go +++ b/tools/src/cmd/builtin-gen/gen/generate.go @@ -22,15 +22,15 @@ import ( "text/template" "unicode" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/sem" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/sem" ) type generator struct { s *sem.Sem t *template.Template cached struct { - intrinsicTable *IntrinsicTable // lazily built by intrinsicTable() - permuter *Permuter // lazily built by permute() + builtinTable *BuiltinTable // lazily built by builtinTable() + permuter *Permuter // lazily built by permute() } } @@ -73,7 +73,7 @@ func (g *generator) generate(tmpl string, w io.Writer, writeFile WriteFile) erro "IsDeclarable": isDeclarable, "IsFirstIn": isFirstIn, "IsLastIn": isLastIn, - "IntrinsicTable": g.intrinsicTable, + "BuiltinTable": g.builtinTable, "Permute": g.permute, "Eval": g.eval, "WriteFile": func(relpath, content string) (string, error) { return "", writeFile(relpath, content) }, @@ -121,17 +121,17 @@ func (g *generator) eval(template string, args ...interface{}) (string, error) { return sb.String(), nil } -// intrinsicTable lazily calls and returns the result of buildIntrinsicTable(), +// builtinTable lazily calls and returns the result of buildBuiltinTable(), // caching the result for repeated calls. -func (g *generator) intrinsicTable() (*IntrinsicTable, error) { - if g.cached.intrinsicTable == nil { +func (g *generator) builtinTable() (*BuiltinTable, error) { + if g.cached.builtinTable == nil { var err error - g.cached.intrinsicTable, err = buildIntrinsicTable(g.s) + g.cached.builtinTable, err = buildBuiltinTable(g.s) if err != nil { return nil, err } } - return g.cached.intrinsicTable, nil + return g.cached.builtinTable, nil } // permute lazily calls buildPermuter(), caching the result for repeated diff --git a/tools/src/cmd/intrinsic-gen/gen/permutate.go b/tools/src/cmd/builtin-gen/gen/permutate.go similarity index 99% rename from tools/src/cmd/intrinsic-gen/gen/permutate.go rename to tools/src/cmd/builtin-gen/gen/permutate.go index 61fda1a47c..814fcbcb63 100644 --- a/tools/src/cmd/intrinsic-gen/gen/permutate.go +++ b/tools/src/cmd/builtin-gen/gen/permutate.go @@ -20,7 +20,7 @@ import ( "fmt" "strings" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/sem" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/sem" "dawn.googlesource.com/tint/tools/src/fileutils" ) diff --git a/tools/src/cmd/intrinsic-gen/lexer/lexer.go b/tools/src/cmd/builtin-gen/lexer/lexer.go similarity index 98% rename from tools/src/cmd/intrinsic-gen/lexer/lexer.go rename to tools/src/cmd/builtin-gen/lexer/lexer.go index 1f25aea4e0..fa50b22cf6 100644 --- a/tools/src/cmd/intrinsic-gen/lexer/lexer.go +++ b/tools/src/cmd/builtin-gen/lexer/lexer.go @@ -20,7 +20,7 @@ import ( "fmt" "unicode" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/tok" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/tok" ) // Lex produces a list of tokens for the given source code diff --git a/tools/src/cmd/intrinsic-gen/lexer/lexer_test.go b/tools/src/cmd/builtin-gen/lexer/lexer_test.go similarity index 97% rename from tools/src/cmd/intrinsic-gen/lexer/lexer_test.go rename to tools/src/cmd/builtin-gen/lexer/lexer_test.go index d0ec922e2d..940163df5a 100644 --- a/tools/src/cmd/intrinsic-gen/lexer/lexer_test.go +++ b/tools/src/cmd/builtin-gen/lexer/lexer_test.go @@ -18,8 +18,8 @@ import ( "fmt" "testing" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/lexer" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/tok" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/lexer" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/tok" ) func TestLexTokens(t *testing.T) { diff --git a/tools/src/cmd/intrinsic-gen/main.go b/tools/src/cmd/builtin-gen/main.go similarity index 88% rename from tools/src/cmd/intrinsic-gen/main.go rename to tools/src/cmd/builtin-gen/main.go index 0a55fddc7f..d126cf9147 100644 --- a/tools/src/cmd/intrinsic-gen/main.go +++ b/tools/src/cmd/builtin-gen/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// intrinsic-gen parses the /src/intrinsics.def file, then scans the +// builtin-gen parses the /src/builtins.def file, then scans the // project directory for '.tmpl' files, to produce '' source code // files. package main @@ -25,14 +25,14 @@ import ( "path/filepath" "strings" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/gen" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/parser" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/resolver" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/gen" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/parser" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/resolver" "dawn.googlesource.com/tint/tools/src/fileutils" "dawn.googlesource.com/tint/tools/src/glob" ) -const defProjectRelPath = "src/intrinsics.def" +const defProjectRelPath = "src/builtins.def" func main() { if err := run(); err != nil { @@ -43,13 +43,13 @@ func main() { func showUsage() { fmt.Println(` -intrinsic-gen generates the intrinsic table for the Tint compiler +builtin-gen generates the builtin table for the Tint compiler -intrinsic-gen parses the /src/intrinsics.def file, then scans the project +builtin-gen parses the /src/builtins.def file, then scans the project directory for '.tmpl' files, to produce '' source code files. usage: - intrinsic-gen + builtin-gen optional flags:`) flag.PrintDefaults() @@ -58,7 +58,7 @@ optional flags:`) } func run() error { - // Load the intrinsics definition file + // Load the builtins definition file projectRoot := fileutils.ProjectRoot() defPath := filepath.Join(projectRoot, defProjectRelPath) @@ -161,10 +161,10 @@ const header = `// Copyright 2021 The Tint Authors. // limitations under the License. //////////////////////////////////////////////////////////////////////////////// -// File generated by tools/intrinsic-gen +// File generated by tools/builtin-gen // using the template: // %v -// and the intrinsic defintion file: +// and the builtin defintion file: // %v // // Do not modify this file directly diff --git a/tools/src/cmd/intrinsic-gen/parser/parser.go b/tools/src/cmd/builtin-gen/parser/parser.go similarity index 96% rename from tools/src/cmd/intrinsic-gen/parser/parser.go rename to tools/src/cmd/builtin-gen/parser/parser.go index 4ab35167c1..4709bca2f4 100644 --- a/tools/src/cmd/intrinsic-gen/parser/parser.go +++ b/tools/src/cmd/builtin-gen/parser/parser.go @@ -12,16 +12,16 @@ // See the License for the specific language governing permissions and // limitations under the License. -// Package parser provides a basic parser for the Tint intrinsic definition +// Package parser provides a basic parser for the Tint builtin definition // language package parser import ( "fmt" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/ast" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/lexer" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/tok" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/ast" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/lexer" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/tok" ) // Parse produces a list of tokens for the given source code diff --git a/tools/src/cmd/intrinsic-gen/parser/parser_test.go b/tools/src/cmd/builtin-gen/parser/parser_test.go similarity index 97% rename from tools/src/cmd/intrinsic-gen/parser/parser_test.go rename to tools/src/cmd/builtin-gen/parser/parser_test.go index fdc884bcf6..3d229c0ac3 100644 --- a/tools/src/cmd/intrinsic-gen/parser/parser_test.go +++ b/tools/src/cmd/builtin-gen/parser/parser_test.go @@ -17,8 +17,8 @@ package parser_test import ( "testing" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/ast" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/parser" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/ast" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/parser" ) func TestParser(t *testing.T) { diff --git a/tools/src/cmd/intrinsic-gen/resolver/resolve.go b/tools/src/cmd/builtin-gen/resolver/resolve.go similarity index 98% rename from tools/src/cmd/intrinsic-gen/resolver/resolve.go rename to tools/src/cmd/builtin-gen/resolver/resolve.go index 951df74bf3..fbd9c9d684 100644 --- a/tools/src/cmd/intrinsic-gen/resolver/resolve.go +++ b/tools/src/cmd/builtin-gen/resolver/resolve.go @@ -18,9 +18,9 @@ import ( "fmt" "sort" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/ast" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/sem" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/tok" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/ast" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/sem" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/tok" ) type resolver struct { diff --git a/tools/src/cmd/intrinsic-gen/resolver/resolver_test.go b/tools/src/cmd/builtin-gen/resolver/resolver_test.go similarity index 97% rename from tools/src/cmd/intrinsic-gen/resolver/resolver_test.go rename to tools/src/cmd/builtin-gen/resolver/resolver_test.go index 944ddb44e7..11359dd34c 100644 --- a/tools/src/cmd/intrinsic-gen/resolver/resolver_test.go +++ b/tools/src/cmd/builtin-gen/resolver/resolver_test.go @@ -19,8 +19,8 @@ import ( "strings" "testing" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/parser" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/resolver" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/parser" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/resolver" ) func TestResolver(t *testing.T) { diff --git a/tools/src/cmd/intrinsic-gen/sem/sem.go b/tools/src/cmd/builtin-gen/sem/sem.go similarity index 96% rename from tools/src/cmd/intrinsic-gen/sem/sem.go rename to tools/src/cmd/builtin-gen/sem/sem.go index b1dc485b10..16a8c3ee30 100644 --- a/tools/src/cmd/intrinsic-gen/sem/sem.go +++ b/tools/src/cmd/builtin-gen/sem/sem.go @@ -17,7 +17,7 @@ package sem import ( "fmt" - "dawn.googlesource.com/tint/tools/src/cmd/intrinsic-gen/ast" + "dawn.googlesource.com/tint/tools/src/cmd/builtin-gen/ast" ) // Sem is the root of the semantic tree @@ -27,9 +27,9 @@ type Sem struct { TypeMatchers []*TypeMatcher EnumMatchers []*EnumMatcher Functions []*Function - // Maximum number of open-types used across all intrinsics + // Maximum number of open-types used across all builtins MaxOpenTypes int - // Maximum number of open-numbers used across all intrinsics + // Maximum number of open-numbers used across all builtins MaxOpenNumbers int // The alphabetically sorted list of unique parameter names UniqueParameterNames []string @@ -121,7 +121,7 @@ type TemplateNumberParam struct { Name string } -// Function describes the overloads of an intrinsic function +// Function describes the overloads of a builtin function type Function struct { Name string Overloads []*Overload diff --git a/tools/src/cmd/intrinsic-gen/tok/tok.go b/tools/src/cmd/builtin-gen/tok/tok.go similarity index 100% rename from tools/src/cmd/intrinsic-gen/tok/tok.go rename to tools/src/cmd/builtin-gen/tok/tok.go