mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-19 04:53:39 +00:00
There's an odd mix of IR classes that use raw fields, and others that have getters. Migrate a bunch of those getters to raw fields. Change-Id: I5c80abe16d3b4e6e5e9dc8f985611f9edfe5cdc6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/131621 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Kokoro: Ben Clayton <bclayton@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
28 lines
909 B
C++
28 lines
909 B
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/ir/instruction.h"
|
|
|
|
TINT_INSTANTIATE_TYPEINFO(tint::ir::Instruction);
|
|
|
|
namespace tint::ir {
|
|
|
|
Instruction::Instruction() = default;
|
|
|
|
Instruction::Instruction(uint32_t identifier, const type::Type* ty) : id(identifier), type(ty) {}
|
|
|
|
Instruction::~Instruction() = default;
|
|
|
|
} // namespace tint::ir
|