telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
David Beck | ecb56cd | 2018-09-05 12:52:57 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 4 | // |
| 5 | #pragma once |
| 6 | |
| 7 | #include "LayerFwd.hpp" |
| 8 | |
Aron Virginas-Tar | c9cc804 | 2018-11-01 16:15:57 +0000 | [diff] [blame] | 9 | #include <backendsCommon/OutputHandler.hpp> |
| 10 | #include <backendsCommon/WorkloadDataCollector.hpp> |
| 11 | #include <backendsCommon/WorkloadInfo.hpp> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 12 | #include "InternalTypes.hpp" |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 13 | #include "SerializeLayerParameters.hpp" |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 14 | |
| 15 | #include <armnn/Types.hpp> |
| 16 | #include <armnn/Tensor.hpp> |
| 17 | #include <armnn/INetwork.hpp> |
| 18 | |
| 19 | #include <algorithm> |
| 20 | #include <memory> |
| 21 | #include <string> |
| 22 | #include <vector> |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 23 | #include <iostream> |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 24 | #include <functional> |
| 25 | #include <list> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 26 | |
| 27 | #include <boost/numeric/conversion/cast.hpp> |
| 28 | #include <boost/core/ignore_unused.hpp> |
| 29 | #include <boost/cast.hpp> |
| 30 | |
| 31 | namespace armnn |
| 32 | { |
| 33 | |
| 34 | class IWorkload; |
| 35 | class IWorkloadFactory; |
| 36 | class Layer; |
| 37 | class Graph; |
| 38 | |
| 39 | class InputSlot final : public IInputSlot |
| 40 | { |
| 41 | public: |
| 42 | explicit InputSlot(Layer& owner, unsigned int slotIndex) |
| 43 | : m_OwningLayer(owner) |
| 44 | , m_Connection(nullptr) |
| 45 | , m_SlotIndex(slotIndex) |
| 46 | {} |
| 47 | |
| 48 | ~InputSlot(); |
| 49 | |
| 50 | Layer& GetOwningLayer() const { return m_OwningLayer; } |
| 51 | unsigned int GetSlotIndex() const { return m_SlotIndex; } |
| 52 | |
| 53 | const OutputSlot* GetConnectedOutputSlot() const { return m_Connection; } |
| 54 | OutputSlot* GetConnectedOutputSlot() { return m_Connection; } |
| 55 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 56 | /// Links the slot to an output slot or breaks an existing link if passing nullptr. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 57 | void SetConnection(OutputSlot* source) |
| 58 | { |
| 59 | if (m_Connection != nullptr && source != nullptr) |
| 60 | { |
| 61 | throw InvalidArgumentException("Tried to connect an output slot to an input slot, " |
| 62 | "but the latter already has a connection"); |
| 63 | } |
| 64 | m_Connection = source; |
| 65 | } |
| 66 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 67 | // Inserts single-output existing layer at this point in the graph. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 68 | void Insert(Layer& layer); |
| 69 | |
| 70 | // IInputSlot |
| 71 | |
| 72 | const IOutputSlot* GetConnection() const override; |
| 73 | IOutputSlot* GetConnection() override; |
| 74 | |
| 75 | private: |
| 76 | Layer& m_OwningLayer; |
| 77 | OutputSlot* m_Connection; |
| 78 | const unsigned int m_SlotIndex; |
| 79 | }; |
| 80 | |
| 81 | class OutputSlot final : public IOutputSlot |
| 82 | { |
| 83 | public: |
| 84 | explicit OutputSlot(Layer& owner, OutputHandler& outputHandler) |
| 85 | : m_OwningLayer(owner) |
| 86 | , m_OutputHandler(outputHandler) |
| 87 | {} |
| 88 | |
| 89 | ~OutputSlot() |
| 90 | { |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 91 | try |
| 92 | { |
| 93 | // Coverity fix: DisconnectAll() may throw uncaught exceptions. |
| 94 | DisconnectAll(); |
| 95 | } |
| 96 | catch (const std::exception& e) |
| 97 | { |
| 98 | // Coverity fix: BOOST_LOG_TRIVIAL (typically used to report errors) may throw an |
| 99 | // exception of type std::length_error. |
| 100 | // Using stderr instead in this context as there is no point in nesting try-catch blocks here. |
| 101 | std::cerr << "WARNING: An error has occurred when disconnecting all output slots: " |
| 102 | << e.what() << std::endl; |
| 103 | } |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 104 | } |
| 105 | |
| 106 | Layer& GetOwningLayer() const { return m_OwningLayer; } |
| 107 | |
Mike Kelly | 8c1701a | 2019-02-11 17:01:27 +0000 | [diff] [blame] | 108 | LayerGuid GetOwningLayerGuid() const override; |
| 109 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 110 | const OutputHandler& GetOutputHandler() const { return m_OutputHandler; } |
| 111 | OutputHandler& GetOutputHandler() { return m_OutputHandler; } |
| 112 | |
| 113 | int Connect(InputSlot& destination); |
| 114 | void Disconnect(InputSlot& slot); |
| 115 | |
| 116 | const std::vector<InputSlot*>& GetConnections() const { return m_Connections; } |
| 117 | |
| 118 | bool ValidateTensorShape(const TensorShape& shape) const; |
| 119 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 120 | // Disconnect all conections. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 121 | void DisconnectAll(); |
| 122 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 123 | /// Moves all connections to another OutputSlot. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 124 | void MoveAllConnections(OutputSlot& destination); |
| 125 | |
| 126 | // IOutputSlot |
| 127 | |
| 128 | unsigned int GetNumConnections() const override { return boost::numeric_cast<unsigned int>(m_Connections.size()); } |
| 129 | const InputSlot* GetConnection(unsigned int index) const override; |
| 130 | InputSlot* GetConnection(unsigned int index) override; |
| 131 | |
| 132 | void SetTensorInfo(const TensorInfo& tensorInfo) override; |
| 133 | const TensorInfo& GetTensorInfo() const override; |
| 134 | bool IsTensorInfoSet() const override; |
| 135 | |
| 136 | int Connect(IInputSlot& destination) override |
| 137 | { |
| 138 | return Connect(*boost::polymorphic_downcast<InputSlot*>(&destination)); |
| 139 | } |
| 140 | |
| 141 | void Disconnect(IInputSlot& slot) override |
| 142 | { |
| 143 | return Disconnect(*boost::polymorphic_downcast<InputSlot*>(&slot)); |
| 144 | } |
| 145 | |
Mike Kelly | 8c1701a | 2019-02-11 17:01:27 +0000 | [diff] [blame] | 146 | unsigned int CalculateIndexOnOwner() const override; |
Derek Lamberti | 27d8307 | 2019-02-05 16:00:08 +0000 | [diff] [blame] | 147 | |
| 148 | bool operator==(const OutputSlot& other) const; |
| 149 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 150 | private: |
| 151 | void ValidateConnectionIndex(unsigned int index) const; |
| 152 | |
| 153 | Layer& m_OwningLayer; |
| 154 | OutputHandler& m_OutputHandler; |
| 155 | std::vector<InputSlot*> m_Connections; |
| 156 | }; |
| 157 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 158 | // InputSlot inlines that need OutputSlot declaration. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 159 | |
| 160 | inline InputSlot::~InputSlot() |
| 161 | { |
| 162 | if (m_Connection != nullptr) |
| 163 | { |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 164 | try |
| 165 | { |
| 166 | // Coverity fix: Disconnect() may throw uncaught exceptions. |
| 167 | m_Connection->Disconnect(*this); |
| 168 | } |
| 169 | catch (const std::exception& e) |
| 170 | { |
| 171 | // Coverity fix: BOOST_LOG_TRIVIAL (typically used to report errors) may throw an |
| 172 | // exception of type std::length_error. |
| 173 | // Using stderr instead in this context as there is no point in nesting try-catch blocks here. |
| 174 | std::cerr << "WARNING: An error has occurred when disconnecting an input slot: " |
| 175 | << e.what() << std::endl; |
| 176 | } |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 177 | } |
| 178 | } |
| 179 | |
| 180 | inline const IOutputSlot* InputSlot::GetConnection() const { return GetConnectedOutputSlot(); } |
| 181 | inline IOutputSlot* InputSlot::GetConnection() { return GetConnectedOutputSlot(); } |
| 182 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 183 | |
| 184 | class ScopedCpuTensorHandle; |
| 185 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 186 | // Base layer class |
| 187 | |
| 188 | using LayerPriority = unsigned int; |
| 189 | |
| 190 | class Layer : public IConnectableLayer |
| 191 | { |
| 192 | public: |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 193 | /// @param name - Optional name for the layer (may be nullptr). |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 194 | Layer(unsigned int numInputSlots, unsigned int numOutputSlots, LayerType type, const char* name); |
Derek Lamberti | 0cff163 | 2018-09-18 16:02:25 +0100 | [diff] [blame] | 195 | Layer(unsigned int numInputSlots, unsigned int numOutputSlots, LayerType type, DataLayout layout, const char* name); |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 196 | |
| 197 | const std::string& GetNameStr() const |
| 198 | { |
| 199 | return m_LayerName; |
| 200 | } |
| 201 | |
| 202 | const OutputHandler& GetOutputHandler(unsigned int i = 0) const |
| 203 | { |
| 204 | return m_OutputHandlers[i]; |
| 205 | } |
| 206 | |
| 207 | OutputHandler& GetOutputHandler(unsigned int i = 0) |
| 208 | { |
| 209 | return const_cast<OutputHandler&>(const_cast<const Layer*>(this)->GetOutputHandler(i)); |
| 210 | } |
| 211 | |
| 212 | const std::vector<InputSlot>& GetInputSlots() const { return m_InputSlots; } |
| 213 | const std::vector<OutputSlot>& GetOutputSlots() const { return m_OutputSlots; } |
| 214 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 215 | // Allows non-const access to input slots, but don't expose vector (vector size is fixed at layer construction). |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 216 | std::vector<InputSlot>::iterator BeginInputSlots() { return m_InputSlots.begin(); } |
| 217 | std::vector<InputSlot>::iterator EndInputSlots() { return m_InputSlots.end(); } |
| 218 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 219 | // Allows non-const access to output slots, but don't expose vector (vector size is fixed at layer construction). |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 220 | std::vector<OutputSlot>::iterator BeginOutputSlots() { return m_OutputSlots.begin(); } |
| 221 | std::vector<OutputSlot>::iterator EndOutputSlots() { return m_OutputSlots.end(); } |
| 222 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 223 | // Checks whether the outputs of this layer don't have any connection. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 224 | bool IsOutputUnconnected() |
| 225 | { |
| 226 | unsigned int numConnections = 0; |
| 227 | |
| 228 | for (auto&& output : GetOutputSlots()) |
| 229 | { |
| 230 | numConnections += output.GetNumConnections(); |
| 231 | } |
| 232 | |
| 233 | return (GetNumOutputSlots() > 0) && (numConnections == 0); |
| 234 | } |
| 235 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 236 | // Used for sorting. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 237 | void ResetPriority() const; |
| 238 | LayerPriority GetPriority() const; |
| 239 | |
| 240 | LayerType GetType() const { return m_Type; } |
| 241 | |
| 242 | DataType GetDataType() const; |
| 243 | |
David Beck | 33f0ae0 | 2018-10-18 15:13:56 +0100 | [diff] [blame] | 244 | const BackendId& GetBackendId() const { return m_BackendId; } |
| 245 | void SetBackendId(const BackendId& id) { m_BackendId = id; } |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 246 | |
| 247 | // Virtuals |
| 248 | |
| 249 | virtual std::unique_ptr<IWorkload> CreateWorkload(const Graph& graph, const IWorkloadFactory& factory) const = 0; |
| 250 | |
| 251 | virtual void CreateTensorHandles(Graph& graph, const IWorkloadFactory& factory); |
| 252 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 253 | /// Creates a dynamically-allocated copy of this layer. |
| 254 | /// @param graph - The Graph into which this Layer is being cloned. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 255 | virtual Layer* Clone(Graph& graph) const = 0; |
| 256 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 257 | void VerifyLayerConnections(unsigned int expectedConnections, const CheckLocation& location) const; |
| 258 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 259 | virtual void ValidateTensorShapesFromInputs() = 0; |
| 260 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 261 | std::vector<TensorShape> InferOutputShapes(const std::vector<TensorShape>& inputShapes) const override; |
| 262 | |
| 263 | /// Helper to serialize the layer parameters to string. |
| 264 | /// (currently used in DotSerializer and company). |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 265 | virtual void SerializeLayerParameters(ParameterStringifyFunction &) const {} |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 266 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 267 | // Free up the constant source data |
| 268 | virtual void ReleaseConstantData(); |
| 269 | |
| 270 | template<typename Op> |
| 271 | void OperateOnConstantTensors(Op op) |
| 272 | { |
| 273 | for (auto constant : GetConstantTensorsByRef()) |
| 274 | { |
| 275 | if (constant.get()) |
| 276 | { |
| 277 | op(constant); |
| 278 | } |
| 279 | } |
| 280 | }; |
| 281 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 282 | // IConnectableLayer |
| 283 | |
| 284 | const char* GetName() const override { return m_LayerName.c_str(); } |
| 285 | |
| 286 | unsigned int GetNumInputSlots() const override { return static_cast<unsigned int>(m_InputSlots.size()); } |
| 287 | unsigned int GetNumOutputSlots() const override { return static_cast<unsigned int>(m_OutputSlots.size()); } |
| 288 | |
| 289 | const InputSlot& GetInputSlot(unsigned int index) const override { return m_InputSlots.at(index); } |
| 290 | InputSlot& GetInputSlot(unsigned int index) override { return m_InputSlots.at(index); } |
| 291 | const OutputSlot& GetOutputSlot(unsigned int index = 0) const override { return m_OutputSlots.at(index); } |
| 292 | OutputSlot& GetOutputSlot(unsigned int index = 0) override { return m_OutputSlots.at(index); } |
| 293 | |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 294 | void SetGuid(LayerGuid guid) { m_Guid = guid; } |
| 295 | LayerGuid GetGuid() const final { return m_Guid; } |
| 296 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 297 | void AddRelatedLayerName(const std::string layerName) { m_RelatedLayerNames.emplace_back(layerName); } |
| 298 | |
| 299 | const std::list<std::string>& GetRelatedLayerNames() { return m_RelatedLayerNames; } |
| 300 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 301 | protected: |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 302 | // Graph needs access to the virtual destructor. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 303 | friend class Graph; |
| 304 | virtual ~Layer() = default; |
| 305 | |
| 306 | template <typename QueueDescriptor> |
| 307 | void CollectQueueDescriptorInputs(QueueDescriptor& descriptor, WorkloadInfo& info, const Graph& graph) const |
| 308 | { |
| 309 | WorkloadDataCollector dataCollector(descriptor.m_Inputs, info.m_InputTensorInfos); |
| 310 | CollectWorkloadInputs(dataCollector, graph); |
| 311 | } |
| 312 | |
| 313 | template <typename QueueDescriptor> |
| 314 | void CollectQueueDescriptorOutputs(QueueDescriptor& descriptor, WorkloadInfo& info, const Graph& graph) const |
| 315 | { |
| 316 | WorkloadDataCollector dataCollector(descriptor.m_Outputs, info.m_OutputTensorInfos); |
| 317 | CollectWorkloadOutputs(dataCollector, graph); |
| 318 | } |
| 319 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 320 | /// Helper function to reduce duplication in *Layer::CreateWorkload. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 321 | template <typename QueueDescriptor> |
| 322 | WorkloadInfo PrepInfoAndDesc(QueueDescriptor& descriptor, const Graph& graph) const |
| 323 | { |
| 324 | WorkloadInfo info; |
| 325 | CollectQueueDescriptorInputs(descriptor, info, graph); |
| 326 | CollectQueueDescriptorOutputs(descriptor, info, graph); |
| 327 | return info; |
| 328 | } |
| 329 | |
| 330 | template <typename LayerType, typename ... Params> |
| 331 | LayerType* CloneBase(Graph& graph, Params&& ... params) const; |
| 332 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 333 | // Retrieve the Handles to the constants |
| 334 | using ConstantTensors = std::vector<std::reference_wrapper<std::unique_ptr<ScopedCpuTensorHandle>>>; |
| 335 | virtual ConstantTensors GetConstantTensorsByRef() {return ConstantTensors(); }; |
| 336 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 337 | private: |
| 338 | void CollectWorkloadInputs(WorkloadDataCollector& dataCollector, const Graph& graph) const; |
| 339 | void CollectWorkloadOutputs(WorkloadDataCollector& dataCollector, const Graph& graph) const; |
| 340 | |
| 341 | protected: |
| 342 | std::vector<OutputHandler> m_OutputHandlers; |
| 343 | |
| 344 | private: |
| 345 | const std::string m_LayerName; |
| 346 | |
| 347 | std::vector<InputSlot> m_InputSlots; |
| 348 | std::vector<OutputSlot> m_OutputSlots; |
| 349 | |
| 350 | const LayerType m_Type; |
David Beck | 33f0ae0 | 2018-10-18 15:13:56 +0100 | [diff] [blame] | 351 | BackendId m_BackendId; |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 352 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 353 | /// Used for sorting. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 354 | mutable LayerPriority m_Priority = 0; |
| 355 | mutable bool m_Visiting = false; |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 356 | |
| 357 | LayerGuid m_Guid; |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 358 | |
| 359 | std::list<std::string> m_RelatedLayerNames; |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 360 | }; |
| 361 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 362 | // A layer user-provided data can be bound to (e.g. inputs, outputs). |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 363 | class BindableLayer : public Layer |
| 364 | { |
| 365 | public: |
| 366 | BindableLayer(unsigned int numInputSlots, |
| 367 | unsigned int numOutputSlots, |
| 368 | LayerType type, |
| 369 | const char* name, |
| 370 | LayerBindingId id) |
| 371 | : Layer(numInputSlots, numOutputSlots, type, name) |
| 372 | , m_Id(id) |
| 373 | { |
| 374 | } |
| 375 | |
| 376 | LayerBindingId GetBindingId() const { return m_Id; }; |
| 377 | |
| 378 | protected: |
| 379 | ~BindableLayer() = default; |
| 380 | |
| 381 | private: |
| 382 | LayerBindingId m_Id; |
| 383 | }; |
| 384 | |
| 385 | } |