dawn-cmake/src/tint/resolver/init_conv_intrinsic.cc
dan sinclair 6e77b47ed9 Update internals to initializer instead of constructor.
This CL catches up the internals (along with a few error messages) to
say `initializer` instead of `constructor.

Bug: tint:1600
Change-Id: I8e56572c310d77da1130380bdd32b334f27c8e46
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/106462
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Auto-Submit: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
2022-10-20 13:38:28 +00:00

70 lines
2.3 KiB
C++

// 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/src/cmd/gen
// using the template:
// src/tint/resolver/init_conv_intrinsic.cc.tmpl
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
#include "src/tint/resolver/init_conv_intrinsic.h"
namespace tint::resolver {
const char* str(InitConvIntrinsic i) {
switch (i) {
case InitConvIntrinsic::kNone:
return "<none>";
case InitConvIntrinsic::kI32:
return "i32";
case InitConvIntrinsic::kU32:
return "u32";
case InitConvIntrinsic::kF32:
return "f32";
case InitConvIntrinsic::kF16:
return "f16";
case InitConvIntrinsic::kBool:
return "bool";
case InitConvIntrinsic::kVec2:
return "vec2";
case InitConvIntrinsic::kVec3:
return "vec3";
case InitConvIntrinsic::kVec4:
return "vec4";
case InitConvIntrinsic::kMat2x2:
return "mat2x2";
case InitConvIntrinsic::kMat2x3:
return "mat2x3";
case InitConvIntrinsic::kMat2x4:
return "mat2x4";
case InitConvIntrinsic::kMat3x2:
return "mat3x2";
case InitConvIntrinsic::kMat3x3:
return "mat3x3";
case InitConvIntrinsic::kMat3x4:
return "mat3x4";
case InitConvIntrinsic::kMat4x2:
return "mat4x2";
case InitConvIntrinsic::kMat4x3:
return "mat4x3";
case InitConvIntrinsic::kMat4x4:
return "mat4x4";
}
return "<unknown>";
}
} // namespace tint::resolver