Path: blob/master/thirdparty/metal-cpp/Metal/MTL4BinaryFunction.hpp
21066 views
//-------------------------------------------------------------------------------------------------------------------------------------------------------------1//2// Metal/MTL4BinaryFunction.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 "MTLLibrary.hpp"26#include "MTLPrivate.hpp"2728namespace MTL429{3031class BinaryFunction : public NS::Referencing<BinaryFunction>32{33public:34MTL::FunctionType functionType() const;3536NS::String* name() const;37};3839}4041_MTL_INLINE MTL::FunctionType MTL4::BinaryFunction::functionType() const42{43return Object::sendMessage<MTL::FunctionType>(this, _MTL_PRIVATE_SEL(functionType));44}4546_MTL_INLINE NS::String* MTL4::BinaryFunction::name() const47{48return Object::sendMessage<NS::String*>(this, _MTL_PRIVATE_SEL(name));49}505152