mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-24 14:05:53 +00:00
Bug: tint:1504 Bug: tint:1516 Change-Id: I7dafaade903c85a6bd6ed095d0d7545de2f238a7 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/88309 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
41 lines
1.2 KiB
C++
41 lines
1.2 KiB
C++
// Copyright 2022 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/tint/sem/abstract_float.h"
|
|
|
|
#include "src/tint/program_builder.h"
|
|
#include "src/tint/utils/hash.h"
|
|
|
|
TINT_INSTANTIATE_TYPEINFO(tint::sem::AbstractFloat);
|
|
|
|
namespace tint::sem {
|
|
|
|
AbstractFloat::AbstractFloat() = default;
|
|
AbstractFloat::AbstractFloat(AbstractFloat&&) = default;
|
|
AbstractFloat::~AbstractFloat() = default;
|
|
|
|
size_t AbstractFloat::Hash() const {
|
|
return utils::Hash(TypeInfo::Of<AbstractFloat>().full_hashcode);
|
|
}
|
|
|
|
bool AbstractFloat::Equals(const sem::Type& other) const {
|
|
return other.Is<AbstractFloat>();
|
|
}
|
|
|
|
std::string AbstractFloat::FriendlyName(const SymbolTable&) const {
|
|
return "AbstractFloat";
|
|
}
|
|
|
|
} // namespace tint::sem
|