Path: blob/master/thirdparty/metal-cpp/Metal/MTLAllocation.hpp
21066 views
//-------------------------------------------------------------------------------------------------------------------------------------------------------------1//2// Metal/MTLAllocation.hpp3//4// Copyright 2020-2025 Apple Inc.5//6// Licensed under the Apache License, Version 2.0 (the "License");7// you may not use this file except in compliance with the License.8// You may obtain a copy of the License at9//10// http://www.apache.org/licenses/LICENSE-2.011//12// Unless required by applicable law or agreed to in writing, software13// distributed under the License is distributed on an "AS IS" BASIS,14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.15// See the License for the specific language governing permissions and16// limitations under the License.17//18//-------------------------------------------------------------------------------------------------------------------------------------------------------------1920#pragma once2122#include "../Foundation/Foundation.hpp"23#include "MTLDefines.hpp"24#include "MTLHeaderBridge.hpp"25#include "MTLPrivate.hpp"2627namespace MTL28{29class Allocation : public NS::Referencing<Allocation>30{31public:32NS::UInteger allocatedSize() const;33};3435}36_MTL_INLINE NS::UInteger MTL::Allocation::allocatedSize() const37{38return Object::sendMessage<NS::UInteger>(this, _MTL_PRIVATE_SEL(allocatedSize));39}404142